RESOLVED FIXED 98099
[Gtk] crash when accelerated composition is turned off
https://bugs.webkit.org/show_bug.cgi?id=98099
Summary [Gtk] crash when accelerated composition is turned off
arno.
Reported 2012-10-01 17:12:16 PDT
Hi, when a accelerated composition is turned off on a page (for example, because no element require compositing anymore), WebKitGTK often crashes in #0 0xb68f063f in WebKit::AcceleratedCompositingContext::flushPendingLayerChanges() () from /home/arno/webkit/WebKit.upstream/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0 #1 0xb68f06f5 in WebKit::AcceleratedCompositingContext::flushAndRenderLayers() () from /home/arno/webkit/WebKit.upstream/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0 #2 0xb68f07e0 in WebKit::AcceleratedCompositingContext::layerFlushTimerFired() () from /home/arno/webkit/WebKit.upstream/WebKitBuild/Release/.libs/libwebkitgtk-3.0.so.0 #3 0xb68f0801 in WebKit::AcceleratedCompositingContext::layerFlushTimerFiredCallback(WebKit::AcceleratedCompositingContext*) () flushPendingLayerChanges is reached while m_rootLayer has been cleared, and this results in a crash. This happens because frame->view()->updateLayoutAndStyleIfNeededRecursive() is called in flushAndRenderLayers, and this may result in root compositing layer being set to null.
Attachments
Patch (1.95 KB, patch)
2012-10-01 17:19 PDT, arno.
no flags
Patch (1.73 KB, patch)
2012-10-01 17:33 PDT, arno.
no flags
arno.
Comment 1 2012-10-01 17:19:32 PDT
Created attachment 166579 [details] Patch patch proposal: check if compositing is enabled after call to updateLayoutAndStyleIfNeededRecursive
Martin Robinson
Comment 2 2012-10-01 17:24:11 PDT
Comment on attachment 166579 [details] Patch Nice fix. It probably makes sense to keep the check in both places, no?
arno.
Comment 3 2012-10-01 17:33:11 PDT
Created attachment 166581 [details] Patch updated patch
Martin Robinson
Comment 4 2012-10-01 17:34:52 PDT
Comment on attachment 166581 [details] Patch Thanks!
WebKit Review Bot
Comment 5 2012-10-01 18:13:53 PDT
Comment on attachment 166581 [details] Patch Clearing flags on attachment: 166581 Committed r130108: <http://trac.webkit.org/changeset/130108>
WebKit Review Bot
Comment 6 2012-10-01 18:13:56 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.