GNOME Bugzilla – Bug 722266
window-actor: Guard against %NULL frame mask
Last modified: 2016-01-26 18:29:29 UTC
See patch. Some people have run into this on RHEL7 (https://bugzilla.redhat.com/show_bug.cgi?id=1051458).
Created attachment 266363 [details] [review] window-actor: Guard against %NULL frame mask Creating a new cogl texture may fail, in which case the intent to free it will crash. While something is clearly wrong (insanely large window, oom, ...), crashing the WM is harsh and we should try to avoid it if at all possible, so carry on.
Review of attachment 266363 [details] [review]: It means that the users will see incorrect window contents. I'm going to accept this, but only if we have a g_warning about it. Is there any place we can have diagnostics about why creating the texture failed?
OK, Jon could reproduce that crash turns out that it is caused by (very) large windows that are over the texture size limit (because we cannot use sliced textures for the mask_texture as stated by the comment in the code). So this patch has the side effect of having white corners for windows that shouldn't exit often in practice so we should go with it for now.
Attachment 266363 [details] pushed as eb01163 - window-actor: Guard against %NULL frame mask
*** Bug 701599 has been marked as a duplicate of this bug. ***
*** Bug 688532 has been marked as a duplicate of this bug. ***
*** Bug 615635 has been marked as a duplicate of this bug. ***