I have this issue as well. My ~/.xsession-errors.old file contains this:
openConnection: connect: No such file or directory
cannot connect to brltty at :0
upstart: bamfdaemon main process (2855) terminated with status 1
upstart: bamfdaemon main process ended, respawning
upstart: bamfdaemon main process (9791) killed by TERM signal
upstart: Disconnected from notified D-Bus bus
Sometimes, I'm kicked to the LightDM login screen, as what happened this
time and is what the error here is showing. Other times, Xorg crashes
entirely, leaving me unable to get to the terminal sessions on
Ctrl+Alt+F1-6, and I get this error after rebooting:
The crashes always seem to happen for me when I put my GPU under load,
such as when playing a game, when I was editing an image in GIMP, and
when I was watching Netflix in Google Chrome. I do not crash under
Windows 8.1 (dual-boot).
I have an Nvidia Quadro NVS 160M running the 340.96 drivers from
nvidia-340 (proprietary, tested) and Xubuntu 16.04 LTS 64-bit is my OS.
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
bamfdaemon keeps crashing, crashing x
To manage notifications about this bug go to:
ubuntu-bugs mailing list