GNOME Bugzilla – Bug 681676
crash when opening (very long) option menu
Last modified: 2012-10-02 21:33:20 UTC
I had to open the 'Product' menu to reassign a bug report, I was using epiphany and this uses an option menu, filled with a log of entries perhaps it went over some limit in window size, the sure thing is that I got this crash: Program terminated with signal 11, Segmentation fault.
+ Trace 230659
Huh. It couldn't create the mask texture. Next time you get that crash, could you try: p meta_texture_rectangle_check (paint_tex) I'll also see if I can stop creating a mask texture for unshaped, unframed windows again.
meta_texture_rectangle_check(paint_tex) returns FALSE.
Created attachment 220956 [details] [review] window-actor: Don't create a mask texture unnecessarily Mask texture resources may be expensive. Don't create one if we don't need to, like on an unshaped window without a frame. Try this out.
*** Bug 682518 has been marked as a duplicate of this bug. ***
*** Bug 684170 has been marked as a duplicate of this bug. ***
Review of attachment 220956 [details] [review]: This makes sense, fine with RT approval. (Still does not address the fact that the window is lager then GL_MAX_TEXTURE_SIZE but we there isn't much that we can do in that case).
(In reply to comment #2) > meta_texture_rectangle_check(paint_tex) returns FALSE. Same here.
could it be related to the fact that intialy the dropdown shows up as shrinked with arrows then when one reach one bound it expands to its full size. Also the flag passed to this mask_texure cogl_new_from_data is NO_SLICING thus nothing could be done except prevent the dropdown to get this big (and avoid segfault by a check for the return value).
A shell crash fix sounds freeze break worthy. Approval 1 of 2 for the release team. You may have to get the second one on the list.
Created attachment 224898 [details] big gray rectangle It doesn't fix the issue completely, sometimes I get a dark gray rectangle instead of the menu content. (see screenshot).
(In reply to comment #6) > Review of attachment 220956 [details] [review]: > > This makes sense, fine with RT approval. (Still does not address the fact that > the window is lager then GL_MAX_TEXTURE_SIZE but we there isn't much that we > can do in that case). We could just not show the window, and log the failure. Would be hard for application authors to debug, but on the other hand, this is something that toolkits should be handling internally.
This needs to make it in 3.6.1
Attachment 220956 [details] pushed as 7938458 - window-actor: Don't create a mask texture unnecessarily