Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view, in XShmCreatePixmap() from _cairo_xlib_shm_surface_create(width=242, height=43972)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-control-center (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
1) Running AMD64 edition of Ubuntu 20.04.2 LTS; it is up-to-date with no pending updates from the main repo.
2) Specifically, have the amd64 build of gnome-control-
3) What I expected to happen: possible to navigate between the "Applications" and other tabs of the Control Center without a crash.
4) What happens (100% reproducibly) instead: if the Control Center starts in any view except Applications, clicking on "Applications" in the selection pane causes an immediate application crash (hard exit) with the text below written to stderr. When the Control Center is restarted, the Applications pane is now loaded, and can be navigated as expected until I click the "<" in the top left of the window (to go back and select another category), whereupon it immediately crashes with the same error message quoted below.
Error message written to stderr in either case above:
Gdk-ERROR **: 22:18:27.542: The program 'gnome-
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 47249 error_code 11 request_code 130 (MIT-SHM) minor_code 5)
From the backtrace below, it looks like this is possibly related to loading the pixmap for one of my application icons; I happen to have several applications with broken/missing icons (all Steam games), but don't have any problems viewing or starting those games from the Launcher, nor navigating to their settings when gnome-control-
Of note, line #14 in the backtrace (gdk_window_
--- GDB stack trace follows ---
Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error (xdisplay=
error=
271 ../../.
(gdb) bt
#0 gdk_x_error (xdisplay=
at ../../.
#1 0x00007ffff6f4728b in _XError () at /lib/x86_
#2 0x00007ffff6f43ff7 in () at /lib/x86_
#3 0x00007ffff6f44095 in () at /lib/x86_
#4 0x00007ffff6f4501d in _XReply () at /lib/x86_
#5 0x00007ffff6f407f1 in XSync () at /lib/x86_
#6 0x00007ffff6f4088f in () at /lib/x86_
#7 0x00007ffff5c06116 in XShmCreatePixmap () at /lib/x86_
#8 0x00007ffff725fddd in _cairo_
(format=
at ../../.
#9 0x00007ffff7260a08 in _cairo_
(other=
#10 0x00007ffff7260aa1 in _cairo_
(other=
at ../../.
#11 0x00007ffff7233f6b in INT_cairo_
(height=43972, width=242, format=
at ../../.
#12 INT_cairo_
(other=
at ../../.
#13 0x00007ffff7234157 in cairo_surface_
(other=
#14 0x00007ffff73bfb99 in gdk_window_
(window=
#15 0x00007ffff7760cbc in gtk_stack_render
(gadget=
#16 0x00007ffff75f1601 in gtk_css_
(gadget=
#17 0x00007ffff75f649c in gtk_css_gadget_draw (gadget=
at ../../.
#18 0x00007ffff77605e9 in gtk_stack_draw (widget=<optimized out>, cr=<optimized out>)
at ../../.
#19 0x00007ffff780bd04 in gtk_widget_
(clip_
at ../../.
#20 gtk_widget_
(widget=
#21 0x00007ffff75ec28b in gtk_container_
(container=
#22 0x00007ffff75ec35d in gtk_container_draw (widget=
at ../../.
--Type <RET> for more, q to quit, c to continue without paging--
#23 0x00007ffff7712391 in _gtk_pixel_
(view_
#24 _gtk_pixel_
(cache=
#25 0x00007ffff77fc979 in gtk_viewport_render
(gadget=
#26 0x00007ffff75f1601 in gtk_css_
(gadget=
#27 0x00007ffff75f649c in gtk_css_gadget_draw
(gadget=
at ../../.
#28 0x00007ffff77fd6b1 in gtk_viewport_draw (widget=<optimized out>, cr=0x555557549d70)
at ../../.
#29 0x00007ffff780bd04 in gtk_widget_
(clip_
at ../../.
#30 gtk_widget_
(widget=
#31 0x00007ffff75ec28b in gtk_container_
(container=
#32 0x00007ffff75ec35d in gtk_container_draw (widget=
at ../../.
#33 0x00007ffff77407cd in gtk_scrolled_
(gadget=
at ../../.
#34 0x00007ffff75f1601 in gtk_css_
(gadget=
#35 0x00007ffff75f649c in gtk_css_gadget_draw (gadget=
at ../../.
#36 0x00007ffff773eaa5 in gtk_scrolled_
(widget=
#37 0x00007ffff780bd04 in gtk_widget_
(clip_
at ../../.
#38 gtk_widget_
(widget=
#39 0x00007ffff75ec28b in gtk_container_
(container=
#40 0x00007ffff75ec35d in gtk_container_draw
(widget=
--Type <RET> for more, q to quit, c to continue without paging--
at ../../.
#41 0x00007ffff759cfd8 in gtk_box_
(gadget=
#42 0x00007ffff75f1601 in gtk_css_
(gadget=
#43 0x00007ffff75f649c in gtk_css_gadget_draw (gadget=
at ../../.
#44 0x00007ffff759f8f5 in gtk_box_draw (widget=<optimized out>, cr=<optimized out>)
at ../../.
#45 0x00007ffff780bd04 in gtk_widget_
(clip_
at ../../.
#46 gtk_widget_
(widget=
#47 0x00007ffff75ec28b in gtk_container_
(container=
#48 0x00007ffff75ec35d in gtk_container_draw
(widget=
at ../../.
#49 0x00007ffff759cfd8 in gtk_box_
(gadget=
#50 0x00007ffff75f1601 in gtk_css_
(gadget=
#51 0x00007ffff75f649c in gtk_css_gadget_draw (gadget=
at ../../.
#52 0x00007ffff759f8f5 in gtk_box_draw (widget=<optimized out>, cr=<optimized out>)
at ../../.
#53 0x00007ffff780bd04 in gtk_widget_
(clip_
at ../../.
#54 gtk_widget_
(widget=
#55 0x00007ffff75ec28b in gtk_container_
(container=
#56 0x00007ffff75ec35d in gtk_container_draw (widget=
at ../../.
#57 0x00007ffff781a7c5 in gtk_window_draw (widget=
at ../../.
#58 0x00007ffff780bd04 in gtk_widget_
(clip_
at ../../.
#59 gtk_widget_
(widget=
at ../../.
--Type <RET> for more, q to quit, c to continue without paging--
#60 0x00007ffff7815050 in gtk_widget_render
(widget=
at ../../.
#61 0x00007ffff76be3b4 in gtk_main_do_event (event=
at ../../.
#62 gtk_main_do_event (event=<optimized out>) at ../../.
#63 0x00007ffff73a6f79 in _gdk_event_emit (event=
at ../../.
#64 0x00007ffff73b82e1 in _gdk_window_
(window=
at ../../.
#65 0x00007ffff73b94b5 in gdk_window_
at ../../.
#66 0x00007ffff73b9674 in gdk_window_
(recurse_
at ../../.
#67 gdk_window_
(window=
at ../../.
#68 0x00007ffff7d5da56 in () at /lib/x86_
#69 0x00007ffff7d7cb48 in g_signal_
at /lib/x86_
#70 0x00007ffff7d7d0f3 in g_signal_emit () at /lib/x86_
#71 0x00007ffff73b03b3 in _gdk_frame_
at ../../.
#72 0x00007ffff73b0cf3 in gdk_frame_
at ../../.
#73 0x00007ffff739af4d in gdk_threads_
at ../../.
#74 0x00007ffff7c72be8 in () at /lib/x86_
#75 0x00007ffff7c7204e in g_main_
at /lib/x86_
#76 0x00007ffff7c72400 in () at /lib/x86_
#77 0x00007ffff7c724a3 in g_main_
at /lib/x86_
#78 0x00007ffff7e8bfe5 in g_application_run () at /lib/x86_
#79 0x00005555555bc8a9 in main (argc=<optimized out>, argv=<optimized out>)
at ../shell/main.c:70
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-control-
ProcVersionSign
Uname: Linux 5.11.0-7614-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Jul 29 22:38:40 2021
InstallationDate: Installed on 2020-09-23 (309 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: gnome-control-
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on - Applications view + Applications view, in XShmCreatePixmap() from + _cairo_xlib_shm_surface_create(width=242, height=43972) |
Looks like it's trying to create a window that's 242x43972 pixels so unsurprising that might fail.