FS#51898 - [nvidia] 375.20-1: OpenGL app hangs indefinitely when swapping window

Attached to Project: Arch Linux
Opened by TesX (tesfabpel) - Sunday, 20 November 2016, 12:47 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 16 December 2016, 11:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description:
After this update games and other OpenGL apps aren't starting anymore, they hang at startup and do nothing (even a very simple SDL2 + OpenGL test C app I wrote myself which just changes clear color)...
KWin works though, but when I go in the Compositor settings in the control panel the window hangs...
This seems to happen particularly when there are two OpenGL apps open at the same time... (for example, if I try to start two blender instances, the second hangs indefinitely)

It even prevents the logout / shutdown window of plasma to appear!

I've tried debugging with gdb my little test app and I found that it hangs here:
Program received signal SIGINT, Interrupt.
0x00007ffff243e35c in ?? () from /usr/lib/libnvidia-glcore.so.375.20
(gdb) bt
#0 0x00007ffff243e35c in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#1 0x00007ffff243ed0f in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#2 0x00007ffff242f9e1 in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#3 0x00007ffff243d1be in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#4 0x00007ffff230b84c in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#5 0x00007ffff24034ab in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#6 0x00007ffff23e30fe in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#7 0x00007ffff23e320a in ?? () from /usr/lib/libnvidia-glcore.so.375.20
#8 0x00007ffff336dd96 in ?? () from /usr/lib/libGLX_nvidia.so.0
#9 0x0000000000400cc9 in main (argc=1, argv=0x7fffffffe038) at /home/tesx/dev/opengl-test01/main.c:73

main.c:73 SDL_GL_SwapWindow(window);


Additional info:
nvidia: 375.20-1
kwin: 5.8.3-1

My test C app:
https://gist.github.com/tesfabpel/cd186c7c34c91059a329481446771e50


Steps to reproduce:
Open two OpenGL apps (for example, even two instances of blender, or glxgears + blender)
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 16 December 2016, 11:49 GMT
Reason for closing:  Fixed
Comment by TesX (tesfabpel) - Monday, 21 November 2016, 11:50 GMT
I tried with Budgie and Cinnamon, and there everything seems to work correctly...
I suspect then it's something KDE-related...
The package kwin was updated on november 1st (5.8.2-1 -> 5.8.3-1), but when I updated nvidia there were also the new version of the KDE Frameworks 5 packages (5.28.0-1)
Comment by Darek (blablo) - Monday, 21 November 2016, 13:35 GMT Comment by TesX (tesfabpel) - Monday, 21 November 2016, 18:20 GMT
Thanks Darek, it is exactly my issue...
Should this issue be closed then?
Comment by f (bakgwailo) - Tuesday, 22 November 2016, 20:10 GMT
Just wanted to say, yup, have the same issue on my gtx970.

When I get home I will try to downgrade - I believe it is just going back to even the last beta (375.10), and then probably need to roll the kernel back, too.
Comment by Darek (blablo) - Thursday, 24 November 2016, 08:42 GMT Comment by Xaver (x-f) - Saturday, 26 November 2016, 23:50 GMT
375.20 should be removed from repo. It breaks systems, destroys locking screen in KDE (no overlay, can see my desktop, but no input possible - need to usw. CLI to remove the lock). 375.10 works OpenGL.

List of packages, if somebody wants to downgrade (/var/cache/pacman/pkg/ or from arch archive):
extra/opencl-nvidia
extra/libxnvctrl
extra/nvidia
extra/nvidia-libgl
extra/nvidia-settings
extra/nvidia-utils
multilib/lib32-nvidia-libgl
multilib/lib32-nvidia-utils
multilib/lib32-opencl-nvidia
Comment by f (bakgwailo) - Sunday, 27 November 2016, 08:26 GMT
Agreed - Nvidia is recommending users to downgrade to the 375.10 version until a fix can be made (per the discussion link above). If manually downgrading you also need to go back to kernel 4.8.8-2 (unless you have dkms setup).
Comment by TesX (tesfabpel) - Sunday, 27 November 2016, 11:11 GMT
I downgraded the packages to 375.10 and while this bug seems fixed, Steam doesn't want to start (the steam process just starts and then does nothing)...

EDIT: Sorry my bad, now it works...
Comment by Alexander Minges (athemis) - Sunday, 27 November 2016, 19:55 GMT
Meanwhile even the download link to 375.20 has been removed from the Nvidia website.
Comment by Craig (Hazey) - Monday, 05 December 2016, 23:28 GMT
Yea would hope can remove/roll all these back from the Arch repos as essentially 375.20 has been deleted as a release
Comment by f (bakgwailo) - Friday, 09 December 2016, 05:01 GMT
So, I agree that Arch should roll back to 375.10 (as per Nvidia on the thread on devtalk), I would like to point out that the 375.20 is still very much live on Nvidia's website, and as far as I know it was never removed - there isn't even a warning on it.
Comment by Darek (blablo) - Wednesday, 14 December 2016, 14:13 GMT Comment by TesX (tesfabpel) - Thursday, 15 December 2016, 19:38 GMT
With the new driver update (375.26), this bug seems to be fixed (GTX 970), at least for me...
Comment by Darek (blablo) - Friday, 16 December 2016, 11:34 GMT

Loading...