After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704425 - crashes on start on wayland
crashes on start on wayland
Status: RESOLVED DUPLICATE of bug 704554
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-07-17 21:18 UTC by Thomas Andersen
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Andersen 2013-07-17 21:18:37 UTC
(filing this on boxes. Maybe it should be gtk instead)

When testing boxes under wayland/weston it crashes right after start. I get the error:
gdkwindow-wayland.c: mmap'ping temporary file failed: Invalid argument

It happens as a mmap-backed shm_pool is created. The requested size for it happens to be 0 and creating a mmap of size 0 is what causes this error.

The calls that lead to this happen in this order:
gdk_window_create_similar_surface
gdk_window_ref_impl_surface
gdk_wayland_window_ref_cairo_surface
gdk_wayland_window_ensure_cairo_surface
gdk_wayland_create_cairo_surface
_create_shm_pool
mmap (where it fails)

The problem is that the GdkWindow that gdk_window_create_similar_surface
is called on has 0 width and 0 height. The window size determines how much is mmap'ed for the shm_pool and this is of course 0.

I wonder if it is a bug to call this on a GdkWindow of size 0? or if the wayland backend of gtk should be fixed to handle it.

In case it helps with further debugging: The call to gdk_window_create_similar_surface requested a surface with width/height of 811/45.
Comment 1 Thibaud Hulin 2013-07-23 12:13:15 UTC
Same as https://bugzilla.gnome.org/show_bug.cgi?id=704554
Comment 2 Zeeshan Ali 2013-07-23 15:00:39 UTC
As per comment#1

*** This bug has been marked as a duplicate of bug 704554 ***
Comment 3 Rob Bradford 2013-07-23 15:06:38 UTC
What window are you passing into gdk_window_create_similar_surface? that has dimensions 0x0?
Comment 4 Rob Bradford 2013-07-23 15:53:12 UTC
Okay so the problem is that the root window is being passed into gdk_window_create_similar_surface that then ends up trying to create a cairo surface and wayland buffer for the root window. Something that doesn't make sense.