[Desktop-packages] [Bug 1938494] Re: Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view, in XShmCreatePixmap() from _cairo_xlib_shm_surface_create(width=242, height=4

2021-09-15 Thread Daniel van Vugt
** Summary changed:

- Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on 
Applications view
+ 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)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1938494

Title:
  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)

Status in gnome-control-center package in Ubuntu:
  New

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-center
  1:3.36.5-0ubuntu2 installed.  libgdk-pixbuf2.0-0 is version
  2.40.0+dfsg-3ubuntu0.2, libcairo2 is 1.16.0-4ubuntu1, libgtk2.0-0 is
  2.24.32-4ubuntu4 and libgtk-3-0 is 3.24.20-0ubuntu1.

  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-control-center' received an X 
Window System error.
  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-center
  launches in the Applications view (e.g. after the crash described
  above, or by manual selection on the command line).  In any event, a
  Control Center crash for a missing or corrupted pixmap is not robust
  behavior.

  Of note, line #14 in the backtrace (gdk_window_create_similar_surface) shows 
a "height" parameter of 43972, which may be unreasonably large in comparison to 
the width of 242 and possibly contributing to the BadAlloc.  This machine has 
16GB of RAM and no issues running much more demanding applications than the 
Control Center.
   
  --- GDB stack trace follows ---

  Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error 
(xdisplay=0x55ac94f0, 
  error=0x7fffc440) at ../../../../../gdk/x11/gdkmain-x11.c:271
  271 ../../../../../gdk/x11/gdkmain-x11.c: No such file or directory.
  (gdb) bt
  #0  gdk_x_error (xdisplay=0x55ac94f0, error=0x7fffc440)
  at ../../../../../gdk/x11/gdkmain-x11.c:271
  #1  0x76f4728b in _XError () at /lib/x86_64-linux-gnu/libX11.so.6
  #2  0x76f43ff7 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #3  0x76f44095 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #4  0x76f4501d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
  #5  0x76f407f1 in XSync () at /lib/x86_64-linux-gnu/libX11.so.6
  #6  0x76f4088f in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #7  0x75c06116 in XShmCreatePixmap () at 
/lib/x86_64-linux-gnu/libXext.so.6
  #8  0x7725fddd in _cairo_xlib_shm_surface_create
  (format=PIXMAN_a8r8g8b8, width=width@entry=242, 
height=height@entry=43972, will_sync=will_sync@entry=0, create_pixmap=4096, 
other=, other=)
  at ../../../../src/cairo-xlib-surface-shm.c:843
  #9  0x77260a08 in _cairo_xlib_surface_create_shm
  (other=other@entry=0x564558b0, format=, 
width=width@entry=242, height=height@entry=43972) at 
../../../../src/cairo-xlib-surface-shm.c:1156
  #10 0x77260aa1 in _cairo_xlib_surface_create_similar_shm
  (other=0x564558b0, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-xlib-surface-shm.c:1181
  #11 0x77233f6b in INT_cairo_surface_create_similar_image
  (height=43972, width=242, format=CAIRO_FORMAT_ARGB32, other=)
  at ../../../../src/cairo-surface.c:595
  #12 INT_cairo_surface_create_similar_image
  (other=, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-surface.c:576
  #13 0x77234157 in cairo_su

[Desktop-packages] [Bug 1938494] Re: Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view

2021-09-15 Thread Sebastien Bacher
> I'm not sure what you mean by "which software is creating the
issue"--- the crashing process is gnome-control-center;

Right, but it seems it's failing to compute valid requests for one of
the items in the 'applications' list, knowing which one would perhaps
make it possible to get a testcase for others, it's always easier to fix
an issue when you can trigger it locally and poke at what is wrong

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1938494

Title:
  Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on
  Applications view

Status in gnome-control-center package in Ubuntu:
  New

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-center
  1:3.36.5-0ubuntu2 installed.  libgdk-pixbuf2.0-0 is version
  2.40.0+dfsg-3ubuntu0.2, libcairo2 is 1.16.0-4ubuntu1, libgtk2.0-0 is
  2.24.32-4ubuntu4 and libgtk-3-0 is 3.24.20-0ubuntu1.

  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-control-center' received an X 
Window System error.
  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-center
  launches in the Applications view (e.g. after the crash described
  above, or by manual selection on the command line).  In any event, a
  Control Center crash for a missing or corrupted pixmap is not robust
  behavior.

  Of note, line #14 in the backtrace (gdk_window_create_similar_surface) shows 
a "height" parameter of 43972, which may be unreasonably large in comparison to 
the width of 242 and possibly contributing to the BadAlloc.  This machine has 
16GB of RAM and no issues running much more demanding applications than the 
Control Center.
   
  --- GDB stack trace follows ---

  Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error 
(xdisplay=0x55ac94f0, 
  error=0x7fffc440) at ../../../../../gdk/x11/gdkmain-x11.c:271
  271 ../../../../../gdk/x11/gdkmain-x11.c: No such file or directory.
  (gdb) bt
  #0  gdk_x_error (xdisplay=0x55ac94f0, error=0x7fffc440)
  at ../../../../../gdk/x11/gdkmain-x11.c:271
  #1  0x76f4728b in _XError () at /lib/x86_64-linux-gnu/libX11.so.6
  #2  0x76f43ff7 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #3  0x76f44095 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #4  0x76f4501d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
  #5  0x76f407f1 in XSync () at /lib/x86_64-linux-gnu/libX11.so.6
  #6  0x76f4088f in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #7  0x75c06116 in XShmCreatePixmap () at 
/lib/x86_64-linux-gnu/libXext.so.6
  #8  0x7725fddd in _cairo_xlib_shm_surface_create
  (format=PIXMAN_a8r8g8b8, width=width@entry=242, 
height=height@entry=43972, will_sync=will_sync@entry=0, create_pixmap=4096, 
other=, other=)
  at ../../../../src/cairo-xlib-surface-shm.c:843
  #9  0x77260a08 in _cairo_xlib_surface_create_shm
  (other=other@entry=0x564558b0, format=, 
width=width@entry=242, height=height@entry=43972) at 
../../../../src/cairo-xlib-surface-shm.c:1156
  #10 0x77260aa1 in _cairo_xlib_surface_create_similar_shm
  (other=0x564558b0, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-xlib-surface-shm.c:1181
  #11 0x77233f6b in INT_cairo_surface_create_similar_image
  (height=43972, width=242, format=CAIRO_FORMAT_ARGB32, other=)
  at ../../../../src/cairo-surface.c:595
  #12 INT_cairo_surface_create_similar_image
  (other=, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-surface.c:576
  #

[Desktop-packages] [Bug 1938494] Re: Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view

2021-09-15 Thread Brent Spillner
s/pixbuf/window/, looking at the backtrace--- been so long I forgot the
details.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1938494

Title:
  Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on
  Applications view

Status in gnome-control-center package in Ubuntu:
  New

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-center
  1:3.36.5-0ubuntu2 installed.  libgdk-pixbuf2.0-0 is version
  2.40.0+dfsg-3ubuntu0.2, libcairo2 is 1.16.0-4ubuntu1, libgtk2.0-0 is
  2.24.32-4ubuntu4 and libgtk-3-0 is 3.24.20-0ubuntu1.

  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-control-center' received an X 
Window System error.
  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-center
  launches in the Applications view (e.g. after the crash described
  above, or by manual selection on the command line).  In any event, a
  Control Center crash for a missing or corrupted pixmap is not robust
  behavior.

  Of note, line #14 in the backtrace (gdk_window_create_similar_surface) shows 
a "height" parameter of 43972, which may be unreasonably large in comparison to 
the width of 242 and possibly contributing to the BadAlloc.  This machine has 
16GB of RAM and no issues running much more demanding applications than the 
Control Center.
   
  --- GDB stack trace follows ---

  Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error 
(xdisplay=0x55ac94f0, 
  error=0x7fffc440) at ../../../../../gdk/x11/gdkmain-x11.c:271
  271 ../../../../../gdk/x11/gdkmain-x11.c: No such file or directory.
  (gdb) bt
  #0  gdk_x_error (xdisplay=0x55ac94f0, error=0x7fffc440)
  at ../../../../../gdk/x11/gdkmain-x11.c:271
  #1  0x76f4728b in _XError () at /lib/x86_64-linux-gnu/libX11.so.6
  #2  0x76f43ff7 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #3  0x76f44095 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #4  0x76f4501d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
  #5  0x76f407f1 in XSync () at /lib/x86_64-linux-gnu/libX11.so.6
  #6  0x76f4088f in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #7  0x75c06116 in XShmCreatePixmap () at 
/lib/x86_64-linux-gnu/libXext.so.6
  #8  0x7725fddd in _cairo_xlib_shm_surface_create
  (format=PIXMAN_a8r8g8b8, width=width@entry=242, 
height=height@entry=43972, will_sync=will_sync@entry=0, create_pixmap=4096, 
other=, other=)
  at ../../../../src/cairo-xlib-surface-shm.c:843
  #9  0x77260a08 in _cairo_xlib_surface_create_shm
  (other=other@entry=0x564558b0, format=, 
width=width@entry=242, height=height@entry=43972) at 
../../../../src/cairo-xlib-surface-shm.c:1156
  #10 0x77260aa1 in _cairo_xlib_surface_create_similar_shm
  (other=0x564558b0, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-xlib-surface-shm.c:1181
  #11 0x77233f6b in INT_cairo_surface_create_similar_image
  (height=43972, width=242, format=CAIRO_FORMAT_ARGB32, other=)
  at ../../../../src/cairo-surface.c:595
  #12 INT_cairo_surface_create_similar_image
  (other=, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-surface.c:576
  #13 0x77234157 in cairo_surface_create_similar
  (other=other@entry=0x564558b0, 
content=content@entry=CAIRO_CONTENT_COLOR_ALPHA, width=width@entry=242, 
height=height@entry=43972) at ../../../../src/cairo-surface.c:518
  #14 0x773bfb99 in gdk_window_create_similar_surface
  (window=0x56e

[Desktop-packages] [Bug 1938494] Re: Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view

2021-09-15 Thread Brent Spillner
I'm not sure what you mean by "which software is creating the issue"---
the crashing process is gnome-control-center; everything else on the
system is stable.

I agree that it's not completely surprising that a request for a
242x43972 pixbuf might fail; it is surprising to me that the Control
Center would request a 242x43972 pixbuf in the first place (screen
hardware resolution and virtual desktop are both 1920x1080), and it's
disappointing that the application doesn't deal more gracefully with a
failed pixbuf allocation for whatever reason.

i.e. I suspect that there are two separate bugs here, the failure to
check the return value from gdk_pixbuf_new() (or related helper
function), and the computation of the required pixbuf size in the first
place.  The request is probably for the application icon ribbon, but a
height of 43972 would be enough to stack 458 96-pixel icons--- surely
not all of those need to be in the display surface at one time.

I will open an upstream ticket; started here because I used the Ubuntu
crash reporter and it looked like it might be a library incompatibility
issue.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1938494

Title:
  Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on
  Applications view

Status in gnome-control-center package in Ubuntu:
  New

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-center
  1:3.36.5-0ubuntu2 installed.  libgdk-pixbuf2.0-0 is version
  2.40.0+dfsg-3ubuntu0.2, libcairo2 is 1.16.0-4ubuntu1, libgtk2.0-0 is
  2.24.32-4ubuntu4 and libgtk-3-0 is 3.24.20-0ubuntu1.

  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-control-center' received an X 
Window System error.
  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-center
  launches in the Applications view (e.g. after the crash described
  above, or by manual selection on the command line).  In any event, a
  Control Center crash for a missing or corrupted pixmap is not robust
  behavior.

  Of note, line #14 in the backtrace (gdk_window_create_similar_surface) shows 
a "height" parameter of 43972, which may be unreasonably large in comparison to 
the width of 242 and possibly contributing to the BadAlloc.  This machine has 
16GB of RAM and no issues running much more demanding applications than the 
Control Center.
   
  --- GDB stack trace follows ---

  Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error 
(xdisplay=0x55ac94f0, 
  error=0x7fffc440) at ../../../../../gdk/x11/gdkmain-x11.c:271
  271 ../../../../../gdk/x11/gdkmain-x11.c: No such file or directory.
  (gdb) bt
  #0  gdk_x_error (xdisplay=0x55ac94f0, error=0x7fffc440)
  at ../../../../../gdk/x11/gdkmain-x11.c:271
  #1  0x76f4728b in _XError () at /lib/x86_64-linux-gnu/libX11.so.6
  #2  0x76f43ff7 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #3  0x76f44095 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #4  0x76f4501d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
  #5  0x76f407f1 in XSync () at /lib/x86_64-linux-gnu/libX11.so.6
  #6  0x76f4088f in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #7  0x75c06116 in XShmCreatePixmap () at 
/lib/x86_64-linux-gnu/libXext.so.6
  #8  0x7725fddd in _cairo_xlib_shm_surface_create
  (format=PIXMAN_a8r8g8b8, width=width@entry=242, 
height=height@entry=43972, will_sync=will_sync@entry=0, create_pixmap=4096, 
other=, other=)
  at ../../../../src/cairo-xlib-surface-shm.c:843
  #9  0x77260a08 in _cairo_xlib_surface_

[Desktop-packages] [Bug 1938494] Re: Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view

2021-09-15 Thread Sebastien Bacher
Thank you for the report but it would be easier to debug knowing which
software is creating the issue. Could also maybe report it directly
upstream on https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues
?

** Changed in: gnome-control-center (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1938494

Title:
  Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on
  Applications view

Status in gnome-control-center package in Ubuntu:
  New

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-center
  1:3.36.5-0ubuntu2 installed.  libgdk-pixbuf2.0-0 is version
  2.40.0+dfsg-3ubuntu0.2, libcairo2 is 1.16.0-4ubuntu1, libgtk2.0-0 is
  2.24.32-4ubuntu4 and libgtk-3-0 is 3.24.20-0ubuntu1.

  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-control-center' received an X 
Window System error.
  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-center
  launches in the Applications view (e.g. after the crash described
  above, or by manual selection on the command line).  In any event, a
  Control Center crash for a missing or corrupted pixmap is not robust
  behavior.

  Of note, line #14 in the backtrace (gdk_window_create_similar_surface) shows 
a "height" parameter of 43972, which may be unreasonably large in comparison to 
the width of 242 and possibly contributing to the BadAlloc.  This machine has 
16GB of RAM and no issues running much more demanding applications than the 
Control Center.
   
  --- GDB stack trace follows ---

  Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error 
(xdisplay=0x55ac94f0, 
  error=0x7fffc440) at ../../../../../gdk/x11/gdkmain-x11.c:271
  271 ../../../../../gdk/x11/gdkmain-x11.c: No such file or directory.
  (gdb) bt
  #0  gdk_x_error (xdisplay=0x55ac94f0, error=0x7fffc440)
  at ../../../../../gdk/x11/gdkmain-x11.c:271
  #1  0x76f4728b in _XError () at /lib/x86_64-linux-gnu/libX11.so.6
  #2  0x76f43ff7 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #3  0x76f44095 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #4  0x76f4501d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
  #5  0x76f407f1 in XSync () at /lib/x86_64-linux-gnu/libX11.so.6
  #6  0x76f4088f in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #7  0x75c06116 in XShmCreatePixmap () at 
/lib/x86_64-linux-gnu/libXext.so.6
  #8  0x7725fddd in _cairo_xlib_shm_surface_create
  (format=PIXMAN_a8r8g8b8, width=width@entry=242, 
height=height@entry=43972, will_sync=will_sync@entry=0, create_pixmap=4096, 
other=, other=)
  at ../../../../src/cairo-xlib-surface-shm.c:843
  #9  0x77260a08 in _cairo_xlib_surface_create_shm
  (other=other@entry=0x564558b0, format=, 
width=width@entry=242, height=height@entry=43972) at 
../../../../src/cairo-xlib-surface-shm.c:1156
  #10 0x77260aa1 in _cairo_xlib_surface_create_similar_shm
  (other=0x564558b0, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-xlib-surface-shm.c:1181
  #11 0x77233f6b in INT_cairo_surface_create_similar_image
  (height=43972, width=242, format=CAIRO_FORMAT_ARGB32, other=)
  at ../../../../src/cairo-surface.c:595
  #12 INT_cairo_surface_create_similar_image
  (other=, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-surface.c:576
  #13 0x77234157 in cairo_surface_create_similar
  (other=other@entry=0x564558b0, 
content=conte

[Desktop-packages] [Bug 1938494] Re: Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on Applications view

2021-08-02 Thread Daniel van Vugt
Looks like it's trying to create a window that's 242x43972 pixels so
unsurprising that might fail.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1938494

Title:
  Control Center crashes with SIGTRAP (from X11 MIT-SHM BadAlloc) on
  Applications view

Status in gnome-control-center package in Ubuntu:
  New

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-center
  1:3.36.5-0ubuntu2 installed.  libgdk-pixbuf2.0-0 is version
  2.40.0+dfsg-3ubuntu0.2, libcairo2 is 1.16.0-4ubuntu1, libgtk2.0-0 is
  2.24.32-4ubuntu4 and libgtk-3-0 is 3.24.20-0ubuntu1.

  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-control-center' received an X 
Window System error.
  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-center
  launches in the Applications view (e.g. after the crash described
  above, or by manual selection on the command line).  In any event, a
  Control Center crash for a missing or corrupted pixmap is not robust
  behavior.

  Of note, line #14 in the backtrace (gdk_window_create_similar_surface) shows 
a "height" parameter of 43972, which may be unreasonably large in comparison to 
the width of 242 and possibly contributing to the BadAlloc.  This machine has 
16GB of RAM and no issues running much more demanding applications than the 
Control Center.
   
  --- GDB stack trace follows ---

  Thread 1 "gnome-control-c" hit Breakpoint 1, gdk_x_error 
(xdisplay=0x55ac94f0, 
  error=0x7fffc440) at ../../../../../gdk/x11/gdkmain-x11.c:271
  271 ../../../../../gdk/x11/gdkmain-x11.c: No such file or directory.
  (gdb) bt
  #0  gdk_x_error (xdisplay=0x55ac94f0, error=0x7fffc440)
  at ../../../../../gdk/x11/gdkmain-x11.c:271
  #1  0x76f4728b in _XError () at /lib/x86_64-linux-gnu/libX11.so.6
  #2  0x76f43ff7 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #3  0x76f44095 in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #4  0x76f4501d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6
  #5  0x76f407f1 in XSync () at /lib/x86_64-linux-gnu/libX11.so.6
  #6  0x76f4088f in  () at /lib/x86_64-linux-gnu/libX11.so.6
  #7  0x75c06116 in XShmCreatePixmap () at 
/lib/x86_64-linux-gnu/libXext.so.6
  #8  0x7725fddd in _cairo_xlib_shm_surface_create
  (format=PIXMAN_a8r8g8b8, width=width@entry=242, 
height=height@entry=43972, will_sync=will_sync@entry=0, create_pixmap=4096, 
other=, other=)
  at ../../../../src/cairo-xlib-surface-shm.c:843
  #9  0x77260a08 in _cairo_xlib_surface_create_shm
  (other=other@entry=0x564558b0, format=, 
width=width@entry=242, height=height@entry=43972) at 
../../../../src/cairo-xlib-surface-shm.c:1156
  #10 0x77260aa1 in _cairo_xlib_surface_create_similar_shm
  (other=0x564558b0, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-xlib-surface-shm.c:1181
  #11 0x77233f6b in INT_cairo_surface_create_similar_image
  (height=43972, width=242, format=CAIRO_FORMAT_ARGB32, other=)
  at ../../../../src/cairo-surface.c:595
  #12 INT_cairo_surface_create_similar_image
  (other=, format=CAIRO_FORMAT_ARGB32, width=242, 
height=43972)
  at ../../../../src/cairo-surface.c:576
  #13 0x77234157 in cairo_surface_create_similar
  (other=other@entry=0x564558b0, 
content=content@entry=CAIRO_CONTENT_COLOR_ALPHA, width=width@entry=242, 
height=height@entry=43972) at ../../../../src/cairo-surface.c:518
  #14 0x773bfb99 in gdk_window_create_similar_surface