intel: HDMI input switching causes GL crash with threading enabled
I have a TV connected to a HTPC with HDMI. The HTPC is an x86_64 Intel graphics PC. When I'm not using it the TV is turned off, but the HTPC stays on.
With drirc option:
<option name="mesa_glthread" value="true" />
I am seeing Mesa crash my HTPC app (Kodi) when my TV turns on.
- Xorg server
- modesetting driver
- Mesa 19.1.7
- Kodi 18.4
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fe5a051d0fa in xcb_wait_for_special_event () from /lib64/libxcb.so.1
[Current thread is 1 (Thread 0x7fe59c450080 (LWP 1086))]
...
Thread 1 (Thread 0x7fe59c450080 (LWP 1086)):
#0 0x00007fe5a051d0fa in xcb_wait_for_special_event () from /lib64/libxcb.so.1
#1 0x00007fe599c0f360 in loader_dri3_wait_for_msc () from /lib64/libEGL_mesa.so.0
#2 0x00007fe599c04132 in dri3_get_sync_values () from /lib64/libEGL_mesa.so.0
#3 0x00007fe599bf5cfa in eglGetSyncValuesCHROMIUM () from /lib64/libEGL_mesa.so.0
#4 0x0000559ca55416c2 in CGLContextEGL::SwapBuffers() ()
#5 0x0000559ca554da3d in CWinSystemX11GLContext::PresentRenderImpl(bool) ()
...
Setting mesa_glthread to false stops the crash.