gnome-shell crashed with X error 161 (major 152, minor 23) in free_glx_pixmap()

Bug #2049368 reported by Ciro Santilli 六四事件 法轮功
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
New
Undecided
Unassigned

Bug Description

Casual browsing, and then boom "Oh no! Something has gone wrong" screen. Ubuntu 23.10, Lenovo ThinkPad P14s gen4 amd, AMDGPU open source drivers, also I switched to X Server from the default Wayland because of Wayland bugs.

A stack trace frame I got manually, but I didn't persist much:

```
─── Stack ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(138 results) [2033/2675]
[12] from 0x00007f62b1f63adb in __glXSendError+155 at ../src/GLX/libglx.c:805
arg dpy = 0x562471d040d0, errorCode = <optimized out>, resourceID = 0, minorCode = <optimized out>, coreX11error = 0
[13] from 0x00007f62b5f0962f
(no arguments)
[14] from 0x00007f62b5f09d29
(no arguments)
[15] from 0x00007f62b5f0734e
(no arguments)
[16] from 0x00007f62b5ee347b
(no arguments)
[+]
─── Source ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
789 if (dpyInfo == NULL || !dpyInfo->glxSupported) {
790 return;
791 }
792
793 LockDisplay(dpy);
794
795 error.type = X_Error;
796 error.errorCode = errorCode;
797 error.sequenceNumber = dpy->request;
798 error.resourceID = resourceID;
799 error.minorCode = minorCode;
800 error.majorCode = dpyInfo->glxMajorOpcode;
801 if (!coreX11error) {
802 error.errorCode += dpyInfo->glxFirstError;
803 }
804
805 _XError(dpy, &error);
806
807 UnlockDisplay(dpy);
808 }
809
810 static void NotifyXError(Display *dpy, unsigned char errorCode,
811 XID resourceID, unsigned char minorCode, Bool coreX11error,
812 __GLXvendorInfo *vendor)
813 {
814 if (vendor != NULL && vendor->glxvc->notifyError != NULL) {
815 Bool ret = vendor->glxvc->notifyError(dpy, errorCode, resourceID,
816 minorCode, coreX11error);
817 if (!ret) {
818 return;
819 }
820 }
821 __glXSendError(dpy, errorCode, resourceID, minorCode, coreX11error);
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>>> p error
$1 = {
  type = 0 '\000',
  errorCode = 161 '\241',
  sequenceNumber = 36705,
  resourceID = 0,
  minorCode = 23,
  majorCode = 152 '\230',
  pad1 = 182 '\266',
  pad3 = 32610,
  pad4 = 0,
  pad5 = 0,
  pad6 = 3056388541,
  pad7 = 32610
}
```

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: gnome-shell 45.1-0ubuntu1
ProcVersionSignature: Ubuntu 6.5.0-14.14-generic 6.5.3
Uname: Linux 6.5.0-14-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 15 09:43:27 2024
DisplayManager: gdm3
InstallationDate: Installed on 2023-11-25 (51 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
RelatedPackageVersions: mutter-common 45.2-0ubuntu2~really45.0
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ciro Santilli 六四事件 法轮功 (cirosantilli) wrote :
Revision history for this message
Ciro Santilli 六四事件 法轮功 (cirosantilli) wrote :
Download full text (5.5 KiB)

And backtrace:

#0 __pthread_kill_implementation (no_tid=0, signo=5, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=5, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=5) at ./nptl/pthread_kill.c:89
#3 0x00007f62b5842866 in __GI_raise (sig=5) at ../sysdeps/posix/raise.c:26
#4 0x0000562470b03bda in ??? ()
#5 0x00007f62b5842910 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#6 0x00007f62b62e5867 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007f62b62e5b52 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007f62b62e69e2 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007f62b62e6ca3 in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f62b68ab59e in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-mtk-13.so.0
#11 0x00007f62b5704a5b in _XError (dpy=dpy@entry=0x562471d040d0, rep=rep@entry=0x7ffdc2b64ef0) at ../../src/XlibInt.c:1503
#12 0x00007f62b1f63adb in __glXSendError (dpy=0x562471d040d0, errorCode=<optimized out>, resourceID=0, minorCode=<optimized out>, coreX11error=0) at ../src/GLX/libglx.c:805
#13 0x00007f62b5f0962f in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#14 0x00007f62b5f09d29 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#15 0x00007f62b5f0734e in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#16 0x00007f62b5ee347b in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#17 0x00007f62b5ee29d5 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#18 0x00007f62b5ee3460 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#19 0x00007f62b5ee29d5 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#20 0x00007f62b5ee3460 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#21 0x00007f62b62d99a0 in g_list_foreach () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f62b62d9f9f in g_list_free_full () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f62b5ee9c0a in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#24 0x00007f62b5ed00e2 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#25 0x00007f62b5ed0723 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#26 0x00007f62b5ee99eb in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#27 0x00007f62b5ec9ea4 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#28 0x00007f62b5f012c2 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#29 0x00007f62b5f01716 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#30 0x00007f62b5f01942 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#31 0x00007f62b5f02113 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#32 0x00007f62b5f02cb3 in ??? () at /usr/lib/x86_64-linux-gnu/mutter-13/libmutter-cogl-13.so.0
#33 0x00007f62b5f05c96 in cogl_onscreen_swap_buffers_with_damage () at ...

Read more...

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: gnome-shell crashed with X error 161 (major 152, minor 23)

Thanks for the bug report. If you are able to reproduce the crash then please add MUTTER_SYNC=1 to /etc/environment, reboot and then find out the new stack trace.

summary: - gnome-shell crash while chaing Chromium browser tab
+ gnome-shell crashed with X error 161 (major 152, minor 23)
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Ciro Santilli 六四事件 法轮功 (cirosantilli) wrote :

I don't know how to reproduce and it doesn't happen often, but I've added MUTTER_SYNC=1 and will update when/if it happens.

Revision history for this message
Ciro Santilli 六四事件 法轮功 (cirosantilli) wrote :
Download full text (11.1 KiB)

Also I managed to install mutter debug symbols now, a better stack trace showing that the error may come from free_glx_pixmap:

#0 __pthread_kill_implementation (no_tid=0, signo=5, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=5, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=5) at ./nptl/pthread_kill.c:89
#3 0x00007f62b5842866 in __GI_raise (sig=5) at ../sysdeps/posix/raise.c:26
#4 0x0000562470b03bda in ??? ()
#5 0x00007f62b5842910 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#6 0x00007f62b62e5867 in g_log_structured_array () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007f62b62e5b52 in g_log_default_handler () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007f62b62e69e2 in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007f62b62e6ca3 in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f62b68ab59e in display_error_event (error=0x7ffdc2b64df0, xdisplay=0x562471d040d0) at ../mtk/mtk/mtk-x11-errors.c:116
#11 mtk_x_error (xdisplay=0x562471d040d0, error=0x7ffdc2b64df0) at ../mtk/mtk/mtk-x11-errors.c:139
#12 0x00007f62b5704a5b in _XError (dpy=dpy@entry=0x562471d040d0, rep=rep@entry=0x7ffdc2b64ef0) at ../../src/XlibInt.c:1503
#13 0x00007f62b1f63adb in __glXSendError (dpy=0x562471d040d0, errorCode=<optimized out>, resourceID=0, minorCode=<optimized out>, coreX11error=0) at ../src/GLX/libglx.c:805
#14 0x00007f62b5f0962f in free_glx_pixmap (glx_tex_pixmap=0x562474714500, context=<optimized out>) at ../cogl/cogl/winsys/cogl-winsys-glx.c:1203
#15 0x00007f62b5f09d29 in _cogl_winsys_texture_pixmap_x11_free (tex_pixmap=0x390) at ../cogl/cogl/winsys/cogl-winsys-glx.c:1224
#16 0x00007f62b5f0734e in _cogl_texture_pixmap_x11_free (tex_pixmap=0x56247509abf0) at ../cogl/cogl/winsys/cogl-texture-pixmap-x11.c:1067
#17 _cogl_object_texture_pixmap_x11_indirect_free (obj=0x56247509abf0) at ../cogl/cogl/winsys/cogl-texture-pixmap-x11.c:71
#18 0x00007f62b5ee347b in _cogl_pipeline_layer_free (layer=0x562475744090) at ../cogl/cogl/cogl-pipeline-layer.c:706
#19 _cogl_object_pipeline_layer_indirect_free (obj=0x562475744090) at ../cogl/cogl/cogl-pipeline-layer.c:57
#20 0x00007f62b5ee29d5 in _cogl_pipeline_node_unparent_real (node=0x562475765340) at ../cogl/cogl/cogl-node.c:92
#21 0x00007f62b5ee3460 in _cogl_pipeline_layer_unparent (layer=0x562475765340) at ../cogl/cogl/cogl-pipeline-layer.c:443
#22 _cogl_pipeline_layer_free (layer=0x562475765340) at ../cogl/cogl/cogl-pipeline-layer.c:702
#23 _cogl_object_pipeline_layer_indirect_free (obj=0x562475765340) at ../cogl/cogl/cogl-pipeline-layer.c:57
#24 0x00007f62b5ee29d5 in _cogl_pipeline_node_unparent_real (node=0x562471bef190) at ../cogl/cogl/cogl-node.c:92
#25 0x00007f62b5ee3460 in _cogl_pipeline_layer_unparent (layer=0x562471bef190) at ../cogl/cogl/cogl-pipeline-layer.c:443
#26 _cogl_pipeline_layer_free (layer=0x562471bef190) at ../cogl/cogl/cogl-pipeline-layer.c:702
#27 _cogl_object_pipeline_layer_indirect_free (obj=0x562471bef190) at ../cogl/cogl/cogl-pipeline-layer.c:57
#28 0x00007f62b62d99a0 in g_list_foreach () at /lib/x86_64-linux-gnu/libglib...

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. The only crash similar to that I can find is https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5651

Using Wayland instead of Xorg will avoid it.

summary: - gnome-shell crashed with X error 161 (major 152, minor 23)
+ gnome-shell crashed with X error 161 (major 152, minor 23) in
+ free_glx_pixmap()
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.