GNOME Bugzilla – Bug 762755
Epiphany, Eye of GNOME crash when run in gdkwindow-wayland.c buffer_release_callback()
Last modified: 2016-02-29 18:08:27 UTC
Created attachment 322492 [details] backtrace - opened a new tab, crash. Epiphany crashes often when run in a wayland session. This is with epiphany 3.19.10 webkit2gtk3 2.11.90 cairo 1.15.2 gtk3 3.19.10 gnome-shell 3.19.10 mutter 3.19.10 clutter 1.25.6 -- Program received signal SIGSEGV, Segmentation fault. INT_cairo_region_is_empty (region=0x0) at cairo-region.c:816 816 cairo-region.c: Ingen slik fil eller filkatalog. (No such file or file catalog). See attachment for full bt
FWIW, it works for me in jhbuild (I tested with recently-updated dependencies about a week ago).
I received a similar crash report for eog: bug 762584 However, I am also unable to reproduce it in a F23 Wayland session and I can't get a Rawhide image to boot.
*** Bug 762584 has been marked as a duplicate of this bug. ***
Ray, any ideas...?
well the obvious fix is to add a null check for the region, but that just trades a crash for a warning, since the line is: g_warn_if_fail (!cairo_region_is_empty (impl->staged_updates_region)); The g_warn_if_fail is wrong, since that code path can run any time something calls begin_paint and then doesn't paint anything. I think I know a better tactic to take and I'll attach a draft patch to that effect, but I can't actually test it since epiphany won't start at all for me. it's trying to use X11 specific code: Gdk-WARNING **: gdkwindow-x11.c:5550 drawable is not a native X11 window Gdk-WARNING **: gdkwindow-x11.c:5550 drawable is not a native X11 window GLib-GObject-WARNING **: invalid cast from 'GdkWaylandVisual' to 'GdkX11Visual' Gdk-WARNING **: gdkwindow-x11.c:5550 drawable is not a native X11 window Segmentation fault (core dumped)
Created attachment 322555 [details] [review] wayland: deal with staging buffer getting allocated prematurely The staging buffer gets called any time begin_paint is called on the window. That can happen with an empty paint region, so we should cope with that situation.
Review of attachment 322555 [details] [review]: s/gets called/gets allocated/
oh updating webkit fixed that warnings and crash
Rebuilding gkt3 with Ray's patch gives me non-crashing epiphany and eog under wayland again. So +1 from me
Matthias was hitting this with poedit. He reproduced the crash, tested the patch, and told me to push. Attachment 322555 [details] pushed as 316fe1d - wayland: deal with staging buffer getting allocated prematurely