-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Couldn't destroy session handle: The context is not bound #47
Comments
Please use github gists to upload your log. |
https://gist.github.com/KuleRucket/d19b76cd655e796d5057f9489c355227 old link + file removed from Dropbox |
In addition, I also get "Error: Couldn't destroy session handle: Unable to cleanup NvFBC" when clients disconnect. It could be related. Here's and info log for this part: |
I have done some further debugging and I see that each time a new session handle is created I get a new session handle identifier. I'm not sure it this is normal or it is related to the fact that nvFBCDestroyHandle() always fails. The resource leak is less severe that I thought. I seem to be able to keep starting/stopping sunshine indefinitely. The need for a reboot is caused by some other problem (possibly my GPU dropping the HDMI output after the screen has been off for a while). So in short the error messages are still there but it does not seem to actually break anything. I will set up a timer to restart my sunshine service once a day to clear any possible resource leaks and hopefully that will be fine as a workaround. |
Solved problems with CUDA errors after sleep with the following, so no longer need reboots: Still have "Couldn't destroy session handle" errors during start up but they seem pretty harmless. |
Thanks for sharing your solution! |
I was struggling with a similar error (Ubuntu 22.10 host, Nvidia 1050 Ti) and just fixed it, so I wanted to also share my solution for anyone that comes along hereafter. After suspend, Sunshine logs would say the following:
And my client would say "connection terminated." I enabled persistence mode with Basically, you create a new I had to enable the new |
Since then I have also needed to follow the Arch wiki and created /etc/modprobe.d/nvidia-power-management.conf and enabled the nvidia services. I have found in later nvidia drivers I had to enable both nvidia-suspend.service and nvidia-resume.service to be the display to sleep/wake properly. This is contrary to the Arch wiki which says nvidia-resume.service is not needed. |
Describe the bug
There is some kind of resource leak because each time cuda->freeStream() is called by the application the following error is raised:
Error: Couldn't destroy session handle: The context is not bound (see attached verbose log).
After this, the application works but after a few connect/disconnects, sunshine stops working and the host machine must be rebooted to clear the problem.
To Reproduce
Start sunshine
View log
Expected behavior
Error should not appear in log. resources should be reset read for the next stream to be initialised.
Screenshots
n/a
Host
The text was updated successfully, but these errors were encountered: