364.12 - GTX 580 - weston-simple-egl resizing crashes weston

Hi,

I’m using the new driver together with the weston patchset that was posted. I applied it to the current HEAD weston which is commit c6459c49 and use it together with the latest version commit of wayland 0715ee5 and wayland-protocols 82bb922.

When I launch “weston --use-egldevice” from TTY and start the mentioned test client and hold down the super key and use the right mouse button to resize the window it crashes. The resizing of the spinning triangle also produces lots of artifacts in its window.

The gdb backtrace isn’t looking very helpful. I can reproduces this any time.

Regards

Hi,

Thanks for testing this out. I think this is yet another manifestation of a known issue we are actively working on.

Just to make sure and have as much information as possible, is weston crashing as well? Or only the client app?

Could you paste the GDB backtrace either way? It may help us to know what component the crash comes from.

Thanks.

(gdb) bt
#0  0x00007f2a8378ad12 in ?? () from /usr/lib/libnvidia-eglcore.so.364.12
#1  0x00007f2a83787a06 in ?? () from /usr/lib/libnvidia-eglcore.so.364.12
#2  0x00007f2a83787d98 in ?? () from /usr/lib/libnvidia-eglcore.so.364.12
#3  0x00007f2a8432841e in ?? () from /usr/lib/libGLESv2_nvidia.so.2
#4  0x00007f2a85088143 in ?? () from /usr/lib/libEGL_nvidia.so.0
#5  0x00007f2a85088882 in ?? () from /usr/lib/libEGL_nvidia.so.0
#6  0x00007f2a850888f3 in ?? () from /usr/lib/libEGL_nvidia.so.0
#7  0x00007f2a8500bbe3 in ?? () from /usr/lib/libEGL_nvidia.so.0
#8  0x00007f2a8495603c in NvWaylandEglSwapBuffers () from /usr/lib/libnvidia-egl-wayland.so.364.12
#9  0x00007f2a8500bc40 in ?? () from /usr/lib/libEGL_nvidia.so.0
#10 0x00000000004028a6 in ?? ()
#11 0x00007f2a85e0f710 in __libc_start_main () from /usr/lib/libc.so.6
#12 0x0000000000402fc9 in ?? ()

This is from weston-simple-egl which SIGSEGVs. It doesn’t crash immediately when I start resizing maybe after 3-5 seconds. According to coredumpctl first weston-simple-egl terminates with SIGSEGV and then weston terminates with SIGTRAP. I could recompile weston with debug symbols to get the function of frame 10, but the offending call is probably somewhere between #0 and #9 which are in the driver.

(gdb) bt
#0  0x00007f1f97ad32a8 in raise () from /usr/lib/libc.so.6
#1  <signal handler called>
#2  0x00007f1f9329ab95 in ?? () from /usr/lib/libEGL_nvidia.so.0
#3  0x00007f1f933188d0 in ?? () from /usr/lib/libEGL_nvidia.so.0
#4  0x00007f1f9331c21a in ?? () from /usr/lib/libEGL_nvidia.so.0
#5  0x00007f1f933293be in ?? () from /usr/lib/libEGL_nvidia.so.0
#6  0x00007f1f97681424 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007f1f97b87cbd in clone () from /usr/lib/libc.so.6

This is the backtrace from weston, which SIGTRAPs.

The backtraces actually help.

Thanks!!

Hi,

I tried the latest driver and the problem is indeed fixed. The resizing makes the weston-simple-egl window flicker a lot, tough. With the Nouveau driver the resizing process is seamless. Other Wayland client windows resize just fine. It’s just this demo client that flickers.

Regards

Hi,

Sorry for the slow response.

I’m glad to hear the crash is resolved with latest driver. We are aware of the flickering issue and working on that. It is most likely an issue in the weston patches. I’ll give an update when it gets fixed.

Thanks.