GNOME Bugzilla – Bug 756983
Defend against failure of cairo_pattern_get_surface()
Last modified: 2015-10-22 19:16:33 UTC
There are quite a few crashes in retrace.fedoraproject.org that are a result of of cairo_pattern_get_surface() failing, then a subsequent call to cairo_image_surface_get_width() crashing because no surface was returned to the out parameter. Knowing what causes these is hard - my best guess is widgets getting allocated at ridiculous sizes - but avoiding the crash makes sense in any case. See https://bugzilla.redhat.com/show_bug.cgi?id=1206754
Created attachment 313884 [details] [review] Defend against failure of cairo_pattern_get_surface()
Review of attachment 313884 [details] [review]: OK
Pushed to master and gnome-3-18 Attachment 313884 [details] pushed as 6d22670 - Defend against failure of cairo_pattern_get_surface()