After upgrade to 5.6.0f3 Unity crashes when I stop playing a scene (hitting play button when it is pressed). In Editor.log following error is present: [xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. Unity: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed. /home/builduser/buildslave/unity/build/Editor/Platform/Linux/UsbDevices.cpp:UsbDevicesQuery /home/builduser/buildslave/unity/build/Editor/Platform/Linux/UndoPlatformDependent.cpp:SetUndoMenuNamePlatformDependent /home/builduser/buildslave/unity/build/Editor/Platform/Linux/UndoPlatformDependent.cpp:SetUndoMenuNamePlatformDependent Stacktrace: at (wrapper managed-to-native) UnityEditor.ContainerWindow.DisplayAllViews () <IL 0x00018, 0x000ed> at (wrapper managed-to-native) UnityEditor.ContainerWindow.DisplayAllViews () <IL 0x00018, 0x000ed> at UnityEditor.WindowLayout.Unmaximize (UnityEditor.EditorWindow) [0x001d1] in /home/builduser/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:329 at UnityEditor.WindowLayout.ShowAppropriateViewOnEnterExitPlaymode (bool) [0x00080] in /home/builduser/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:168 at UnityEditor.EditorApplicationLayout.SetStopmodeLayout () [0x00002] in /home/builduser/buildslave/unity/build/Editor/Mono/GUI/EditorApplicationLayout.cs:39 at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0001b, 0x000f5> Native stacktrace: /opt/Unity/Editor/Data/MonoEmbedRuntime/libmono.so(+0x91be1) [0x7ff667b6abe1] /lib/x86_64-linux-gnu/libpthread.so.0(+0x1138f) [0x7ff67d30f38f] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7ff674c82428] /lib/x86_64-linux-gnu/libc.so.6(abort+0x169) [0x7ff674c84029] /lib/x86_64-linux-gnu/libc.so.6(+0x2dbd6) [0x7ff674c7abd6] /lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0x41) [0x7ff674c7ac81] /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3d198) [0x7ff67db71198] /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3d24a) [0x7ff67db7124a] /usr/lib/x86_64-linux-gnu/libX11.so.6(_XEventsQueued+0x5c) [0x7ff67db7155c] /usr/lib/x86_64-linux-gnu/libX11.so.6(_XGetRequest+0x54) [0x7ff67db74384] /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x4049e) [0x7ff67db7449e] /usr/lib/x86_64-linux-gnu/libX11.so.6(_XError+0x130) [0x7ff67db73c60] /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1(+0x1d401) [0x7ff67de8b401] /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1(+0x19513) [0x7ff67de87513] ./Unity() [0x1966b1f] ./Unity() [0x254280c] ./Unity() [0x2542abb] ./Unity() [0x2572a38] ./Unity() [0x2572a81] ./Unity() [0x1952e19] ./Unity() [0x1955b9a] [0x4150080c] [0x41c673b2] [0x4113f997] [0x41c661d0] [0x40b59915] /opt/Unity/Editor/Data/MonoEmbedRuntime/libmono.so(+0x38b5d) [0x7ff667b11b5d] /opt/Unity/Editor/Data/MonoEmbedRuntime/libmono.so(mono_runtime_invoke+0x67) [0x7ff667c0d610] ./Unity() [0xda3f9b] ./Unity() [0xda49fb] ./Unity() [0xda4ad3] ./Unity() [0x1682ad4] ./Unity() [0x1684ac7] ./Unity() [0x1689cee] ./Unity() [0x1960a2c] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4aab2) [0x7ff67e71dab2] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x159) [0x7ff67e71d049] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3ef) [0x7ff67e71d3ef] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0xc1) [0x7ff67e71d711] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xb6) [0x7ff67f7ce6a6] ./Unity() [0x4c0bde] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xef) [0x7ff674c6d82f] ./Unity() [0x4db418] Has someone encountered the issue?
I have the same issue. Unity doesn't crash every time I exit play mode, but maybe about 1 out of 4 times. I'm not sure what the fix is. Maybe downgrade to an older version of Unity? I might try doing that.
Any progress? I saw the bug was reported more than year ago and Unity team or Mesa creators do nothing with this. So, can anyone know how to fix this? Mesa bug https://bugs.freedesktop.org/show_bug.cgi?id=99781
If it is Mesa bug, can't Unity Team create a workaround this bug? And I would like to thank to Unity Team if they would fix it earlier my main engine wasn't be Godot Engine.