GNOME Bugzilla – Bug 763458
wayland: crash when switching to/from fullscreen rapidly
Last modified: 2016-03-10 13:10:31 UTC
Description Switching rapidly between fullscreen/unfullscren leads to a crash in mutter. How reproducible: 100% Steps to reproduce: 1. Open google-chrome 2. Keep F11 pressed Actual result mutter crashes in cogl_texture_get_height() from meta_shaped_texture_get_image() because the given texture is NULL Expected result No crash. Additional data:
+ Trace 236051
Created attachment 323616 [details] [review] Proposed patch
Created attachment 323617 [details] [review] Proposed patch (Updated)
Review of attachment 323617 [details] [review]: ::: src/compositor/meta-shaped-texture.c @@ +863,3 @@ clip->height); + if (mask_texture == NULL) + return surface; The only way I see for this to return NULL (except OOM which I assume is not the reason) is if the clip passed is invalid (either zero size or being partly outside of the texture). If that is the reason it fails, I think we should avoid passing those values, because the checks are just (by the looks of it) g_return_val_if_fail() which are macros that may be disabled.
I believe the patch in bug 762639 is more appropriate *** This bug has been marked as a duplicate of bug 762639 ***