"GPU has fallen off the bus" after terminating bumblbee session. [GeForce 840M]

Hello.

I’m using fedora 22 and (Bumblebee) version 3.2.1 to run game ‘Borderlands 2’. When i exit from the game something bad happens with GPU and i can’t run any programs with primusrun. In dmesg i can see:

[47981.759435] NVRM: GPU at 0000:0a:00.0 has fallen off the bus.
[47981.759533] NVRM: A GPU crash dump has been created. If possible, please run
               NVRM: nvidia-bug-report.sh as root to collect this data before
               NVRM: the NVIDIA kernel module is unloaded.
[47981.764112] NVRM: RmInitAdapter failed! (0x25:0x40:1359)
[47981.764126] NVRM: rm_init_adapter failed for device bearing minor number 0
[47981.764152] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5

How to reproduce issue:

  1. Install Borderlands from steam (yes, i know this looks stupid but none other program can trigger this issue)
  2. run game with ‘primusrun Borderlands2’
  3. Exit from game

P.S. I would like to attach nvidia-bug-report.log.gz but i can’t find button to do it. So here is the link https://www.dropbox.com/s/vpfylnhobaxh4pu/nvidia-bug-report.log.gz?dl=0