GNOME Bugzilla – Bug 704425
crashes on start on wayland
Last modified: 2016-03-31 13:22:07 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.
Same as https://bugzilla.gnome.org/show_bug.cgi?id=704554
As per comment#1 *** This bug has been marked as a duplicate of bug 704554 ***
What window are you passing into gdk_window_create_similar_surface? that has dimensions 0x0?
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.