<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>237588</bug_id>
          
          <creation_ts>2022-03-08 01:37:52 -0800</creation_ts>
          <short_desc>[GTK][WPE] Crash during the WebPage::close() related to GL resources destruction</short_desc>
          <delta_ts>2022-03-16 03:03:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pablo Saavedra">psaavedra</reporter>
          <assigned_to name="Pablo Saavedra">psaavedra</assigned_to>
          <cc>achristensen</cc>
    
    <cc>cdumez</cc>
    
    <cc>cgarcia</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>darin</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>luiz</cc>
    
    <cc>pnormand</cc>
    
    <cc>ryuan.choi</cc>
    
    <cc>sergio</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zdobersek</cc>
    
    <cc>zeno</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1849160</commentid>
    <comment_count>0</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-03-08 01:37:52 -0800</bug_when>
    <thetext>```
#0  __libc_do_syscall () at libc-do-syscall.S:49
#1  0x748eda56 in __libc_signal_restore_set (set=0x689fe6c0) at ../sysdeps/unix/sysv/linux/internal-signals.h:86
#2  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3  0x748de768 in __GI_abort () at abort.c:79
#4  0x744eb84c in get_dlopen_handle (handle=&lt;optimized out&gt;, exit_on_fail=true, load=true, lib_name=0x745094b0 &quot;libGL.so.1&quot;) at ../libepoxy-1.5.4/src/dispatch_common.c:316
#5  get_dlopen_handle (handle=&lt;optimized out&gt;, lib_name=0x745094b0 &quot;libGL.so.1&quot;, exit_on_fail=&lt;optimized out&gt;, load=&lt;optimized out&gt;) at ../libepoxy-1.5.4/src/dispatch_common.c:293
#6  0x744eb890 in epoxy_load_gl () at ../libepoxy-1.5.4/src/dispatch_common.c:683
#7  0x744ebd8e in epoxy_gl_dlsym (name=0x744f98d8 &lt;entrypoint_strings+10212&gt; &quot;glDeleteTextures&quot;) at ../libepoxy-1.5.4/src/dispatch_common.c:691
#8  epoxy_get_core_proc_address (name=0x744f98d8 &lt;entrypoint_strings+10212&gt; &quot;glDeleteTextures&quot;, core_version=&lt;optimized out&gt;) at ../libepoxy-1.5.4/src/dispatch_common.c:765
#9  0x744c5308 in epoxy_glDeleteTextures_resolver () at src/gl_generated_dispatch.c:81936
#10 epoxy_glDeleteTextures_global_rewrite_ptr (n=1, textures=0x6cd1bb14) at src/gl_generated_dispatch.c:49476
#11 0x75ff8ffa in WebCore::BitmapTextureGL::copyFromExternalTexture(unsigned int) () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#12 0x75ff90ec in WebCore::BitmapTextureGL::copyFromExternalTexture(unsigned int) () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#13 0x7504fe7e in WebCore::CoordinatedBackingStoreTile::~CoordinatedBackingStoreTile() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#14 0x75058a54 in Nicosia::BackingStoreTextureMapperImpl::updateTile(unsigned int, WebCore::SurfaceUpdateInfo const&amp;, WebCore::IntRect const&amp;) () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#15 0x75058a7e in Nicosia::BackingStoreTextureMapperImpl::updateTile(unsigned int, WebCore::SurfaceUpdateInfo const&amp;, WebCore::IntRect const&amp;) () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#16 0x750573ea in Nicosia::CompositionLayer::{unnamed type#1}::CompositionLayer() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#17 0x75057b54 in Nicosia::Scene::State::~State() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#18 0x750571e4 in Nicosia::ContentLayer::~ContentLayer() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#19 0x7505724c in Nicosia::BackingStore::~BackingStore() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#20 0x750579e4 in Nicosia::CompositionLayer::LayerState::~LayerState() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#21 0x750571e4 in Nicosia::ContentLayer::~ContentLayer() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#22 0x7505724c in Nicosia::BackingStore::~BackingStore() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#23 0x750579e4 in Nicosia::CompositionLayer::LayerState::~LayerState() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#24 0x750571e4 in Nicosia::ContentLayer::~ContentLayer() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#25 0x7505724c in Nicosia::BackingStore::~BackingStore() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#26 0x750579e4 in Nicosia::CompositionLayer::LayerState::~LayerState() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#27 0x750571e4 in Nicosia::ContentLayer::~ContentLayer() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#28 0x7505724c in Nicosia::BackingStore::~BackingStore() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#29 0x750579e4 in Nicosia::CompositionLayer::LayerState::~LayerState() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#30 0x750571e4 in Nicosia::ContentLayer::~ContentLayer() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#31 0x7505724c in Nicosia::BackingStore::~BackingStore() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#32 0x75057d36 in Nicosia::SceneIntegration::invalidate() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#33 0x74e4ec12 in WebKit::CoordinatedGraphicsScene::~CoordinatedGraphicsScene() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#34 0x74e52f62 in WTF::Detail::CallableWrapper&lt;WebKit::CompositingRunLoop::performTaskSync(WTF::Function&lt;void ()&gt;&amp;&amp;)::$_5, void&gt;::call() () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#35 0x769194aa in WTF::RunLoop::dispatchAfter(WTF::Seconds, WTF::Function&lt;void ()&gt;&amp;&amp;) () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
#36 0x76954b80 in WTF::Detail::CallableWrapper&lt;WTF::RunLoop::notify(WTF::RunLoop::Event, char const*)::$_2, void, WTF::Observer&lt;void (WTF::RunLoop::Event, WTF::String const&amp;)&gt;&amp;&gt;::call(WTF::Observer&lt;void (WTF::RunLoop::Event, WTF::String const&amp;)&gt;&amp;) () from /webkit/usr/lib/libWPEWebKit-1.0.so.3.16.8
```



The crash happens because the layerFlush() triggered immediately after of the WebPage::close() updates the Nicosia layers  but it has not its corresponding renderLayerTree() as a part of the callbacks workflow. That situation leaves the layers of the CoordinatedGraphicsScene inconsistent respect the changes initiated in the layers by the layerFlush().

We have 2 options here: 1) the layers from the CoordinatedGraphicsScene will not be update until the renderLayerTree or 2) we will call a renderLayerTree() (or something like that) before the purgeGLResources()

What we need from renderLayerTree() is the commitSceneState() the state changes from the m_attributes


Good workflow:

```
2:04 (                thread 1886934752) -- WebPage::WebPage()
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe647a0).backingStore (&amp;0x6fe649c8)= m_nicosia.backingStore;
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe5a7a0).backingStore (&amp;0x6fe5a9c8)= m_nicosia.backingStore;
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe5a020).backingStore (&amp;0x6fe5a248)= m_nicosia.backingStore;
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe64020).backingStore (&amp;0x6fe64248)= m_nicosia.backingStore;
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.backingStore (&amp;0x6fe60a20) = Nicosia::BackingStore::create(Nicosia::BackingStoreTextureMapperImpl::createFactory());
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe58020).backingStore (&amp;0x6fe58248)= m_nicosia.backingStore;
2:05 (     layerFlush thread 1886934752) -- LayerTreeHost::forceRepaint()
2:05 (     layerFlush thread 1886934752) -- CompositingCoordinator::flushPendingLayerChanges() -- BEGIN
2:05 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6feba7a0).backingStore (&amp;0x6feba9c8)= m_nicosia.backingStore;
2:05 (                thread 1886934752) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe649f8 staging.backingStore: &amp;(nil)
2:05 (                thread 1886934752) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe64278 staging.backingStore: &amp;(nil)
2:05 (                thread 1886934752) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6feba9f8 staging.backingStore: &amp;(nil)
2:05 (                thread 1886934752) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe5a278 staging.backingStore: &amp;(nil)
2:05 (                thread 1886934752) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe5a9f8 staging.backingStore: &amp;(nil)
2:05 (                thread 1886934752) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe58278 staging.backingStore: &amp;(nil)
2:05 (     layerFlush thread 1886934752) -- LayerTreeHost::commitSceneState(const CoordinatedGraphicsState&amp; state(&amp;0x6fe8a314))
2:05 (     layerFlush thread 1886934752) -- CompositingCoordinator::flushPendingLayerChanges() -- END
2:05 (renderLayerTree thread 1886934752) --                         ThreadedCompositor::forceRepaint() -- BEGIN
2:05 (renderLayerTree thread 1886934752) --                         ThreadedCompositor::forceRepaint() -- END
2:05 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;applyStateChanges(states)
2:05 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- BEGIN()
2:05 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- END()
2:05 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;paintToCurrentGLContext(...)
2:05 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::paintToCurrentGLContext() -- updateSceneState()
2:05 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- BEGIN -- this: 0x6fe5c000
2:05 ( A              thread 1754264208) -- AcceleratedSurfaceLibWPE::initialize() -- frame complete callback -- surface.m_client.frameComplete()
2:05 (!!!  layerFlush thread 1754264208) --                         LayerTreeHost::frameComplete() -- m_compositor-&gt;frameComplete()
2:06 (                thread 1886934752) -- WebPage::close()
2:06 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;applyStateChanges(states)
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- BEGIN()
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::commitSceneState() -- m_nicosia(&amp;0x6fe5c008).scene = state(&amp;0x6fe72a80).scene
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- END()
2:06 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;paintToCurrentGLContext(...)
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::paintToCurrentGLContext() -- updateSceneState()
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- BEGIN -- this: 0x6fe5c000
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- m_nicosia(&amp;0x6fe5c008).state.layers.size() = 0 )
2:06 (renderLayerTree thread 1877327884) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- m_nicosia.state(&amp;0x6fe77440) = state(&amp;0x688ff290) this: 0x6fe5c000 state(Nicosia::Scene::State): &amp; 0x6fe77440
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- m_nicosia.state.layers.size() = 8 )
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6feba780)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6febac50) = m_state.staging (&amp; 0x6feba9f8)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe64780)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe64c50) = m_state.staging (&amp; 0x6fe649f8)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe59780)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe59c50) = m_state.staging (&amp; 0x6fe599f8)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe59000)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe594d0) = m_state.staging (&amp; 0x6fe59278)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe58000)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe584d0) = m_state.staging (&amp; 0x6fe58278)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; 0x6fe60a20) = m_state.staging.backingStore (&amp; 0x6fe60a20)
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe5a000)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe5a4d0) = m_state.staging (&amp; 0x6fe5a278)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe5a780)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe5ac50) = m_state.staging (&amp; 0x6fe5a9f8)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe64000)-&gt;commitState()
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe644d0) = m_state.staging (&amp; 0x6fe64278)
2:06 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- updateBackingStore() -- compositionState.backingStore (&amp;0x6fe4f060) = CoordinatedBackingStore::create()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::purgeBackingStores() -- m_nicosia(&amp;0x6ccde7d0).backingStore = nullptr (&amp;0x6fe60a20)
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:06 (     layerFlush thread 1886934752) -- LayerTreeHost::~LayerTreeHost -- m_coordinator-&gt;invalidate()
2:06 (     layerFlush thread 1886934752) -- CompositingCoordinator::invalidate() BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:06 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:06 (     layerFlush thread 1886934752) -- CompositingCoordinator::purgeBackingStores() -- BEGIN
2:06 (     layerFlush thread 1886934752) -- CompositingCoordinator::purgeBackingStores() -- registeredLayer-&gt;purgeBackingStores()
2:06 (     layerFlush thread 1886934752) -- CompositingCoordinator::purgeBackingStores() -- registeredLayer-&gt;purgeBackingStores()
2:06 (     layerFlush thread 1886934752) -- CompositingCoordinator::purgeBackingStores() -- END
2:06 (     layerFlush thread 1886934752) -- CompositingCoordinator::invalidate() END
2:06 (     layerFlush thread 1886934752) -- LayerTreeHost::~LayerTreeHost -- m_compositor-&gt;invalidate()
2:06 (renderLayerTree thread 1886934752) --                         ThreadedCompositor::invalidate() BEGIN
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- END -- m_nicosia.state.layers.size() = 8 )
2:06 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::invalidate() -- purgeGLResources()
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() -- PROPOSAL (not being called now) updateSceneState()
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() this: 0x6fe5c000 -- BEGIN
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() m_nicosia.scene is not null
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() m_nicosia.scene-&gt;accessState() -&gt; callback
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe58000))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe584d0
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer() -- if (committed.backingStore) -&gt; compositionState(&amp;0x6fef4574).backingStore = nullptr (&amp;0x6fe4f060 )
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe64780))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe64c50
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe59780))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe59c50
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe59000))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe594d0
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6feba780))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6febac50
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe5a000))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe5a4d0
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe5a780))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe5ac50
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe64000))?
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe644d0
2:06 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() END
2:06 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::invalidate() -- m_context = nullptr
2:06 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::invalidate() -- m_client.didDestroyGLContext()
2:06 (!!!  layerFlush thread 1754264208) --                         LayerTreeHost::didDestroyGLContext()
2:07 (renderLayerTree thread 1886934752) --                         ThreadedCompositor::invalidate() END
2:07 (     layerFlush thread 1886934752) -- LayerTreeHost::~LayerTreeHost -- delete m_coordinator
2:07 (     layerFlush thread 1886934752) -- CompositingCoordinator::~CompositingCoordinator()
2:07 (     layerFlush thread 1886934752) -- CompositingCoordinator::~CompositingCoordinator() -- registeredLayer-&gt;invalidateCoordinator()
2:07 (     layerFlush thread 1886934752) -- CompositingCoordinator::~CompositingCoordinator() -- registeredLayer-&gt;invalidateCoordinator()
2:07 (renderLayerTree thread 1886934752) --                 ThreadedCompositor::~ThreadedCompositor()
2:07 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:07 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:07 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:07 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
2:07 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
2:07 (     layerFlush thread 1886934752) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
2:07 (                thread 1886934752) -- WebPage::~WebPage()
```


Problem:

```
0:40 (                thread 1887123168) -- WebPage::WebPage()
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe647a0).backingStore (&amp;0x6fe649c8)= m_nicosia.backingStore;
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe5a7a0).backingStore (&amp;0x6fe5a9c8)= m_nicosia.backingStore;
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe5a020).backingStore (&amp;0x6fe5a248)= m_nicosia.backingStore;
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe64020).backingStore (&amp;0x6fe64248)= m_nicosia.backingStore;
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.backingStore (&amp;0x6fe60a20) = Nicosia::BackingStore::create(Nicosia::BackingStoreTextureMapperImpl::createFactory());
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe58020).backingStore (&amp;0x6fe58248)= m_nicosia.backingStore;
0:40 (     layerFlush thread 1887123168) -- LayerTreeHost::forceRepaint()
0:40 (     layerFlush thread 1887123168) -- CompositingCoordinator::flushPendingLayerChanges() -- BEGIN
0:40 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6feba7a0).backingStore (&amp;0x6feba9c8)= m_nicosia.backingStore;
0:40 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe649f8 staging.backingStore: &amp;(nil)
0:40 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe64278 staging.backingStore: &amp;(nil)
0:40 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6feba9f8 staging.backingStore: &amp;(nil)
0:40 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe5a278 staging.backingStore: &amp;(nil)
0:40 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe5a9f8 staging.backingStore: &amp;(nil)
0:40 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe58278 staging.backingStore: &amp;(nil)
0:40 (     layerFlush thread 1887123168) -- LayerTreeHost::commitSceneState(const CoordinatedGraphicsState&amp; state(&amp;0x6fe8a314))
0:40 (     layerFlush thread 1887123168) -- CompositingCoordinator::flushPendingLayerChanges() -- END
0:40 (renderLayerTree thread 1887123168) --                         ThreadedCompositor::forceRepaint() -- BEGIN
0:40 (renderLayerTree thread 1887123168) --                         ThreadedCompositor::forceRepaint() -- END
0:40 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;applyStateChanges(states)
0:40 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- BEGIN()
0:40 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- END()
0:40 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;paintToCurrentGLContext(...)
0:40 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::paintToCurrentGLContext() -- updateSceneState()
0:40 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- BEGIN -- this: 0x6fe5c000
0:40 ( A              thread 1754264208) -- AcceleratedSurfaceLibWPE::initialize() -- frame complete callback -- surface.m_client.frameComplete()
0:40 (!!!  layerFlush thread 1754264208) --                         LayerTreeHost::frameComplete() -- m_compositor-&gt;frameComplete()
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::purgeBackingStores() -- m_nicosia(&amp;0x6ccde7d0).backingStore = nullptr (&amp;0x6fe60a20)
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:41 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;applyStateChanges(states)
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- BEGIN()
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::commitSceneState() -- m_nicosia(&amp;0x6fe5c008).scene = state(&amp;0x6feb43c0).scene
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::applyStateChanges() -- END()
0:42 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::renderLayerTree() -- m_scene-&gt;paintToCurrentGLContext(...)
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene::paintToCurrentGLContext() -- updateSceneState()
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- BEGIN -- this: 0x6fe5c000
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- m_nicosia(&amp;0x6fe5c008).state.layers.size() = 0 )
0:42 (renderLayerTree thread 1877327884) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- m_nicosia.state(&amp;0x6fe77440) = state(&amp;0x688ff290) this: 0x6fe5c000 state(Nicosia::Scene::State): &amp; 0x6fe77440
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- m_nicosia.state.layers.size() = 8 )
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6feba780)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6febac50) = m_state.staging (&amp; 0x6feba9f8)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe64780)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe64c50) = m_state.staging (&amp; 0x6fe649f8)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe59780)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe59c50) = m_state.staging (&amp; 0x6fe599f8)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe59000)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe594d0) = m_state.staging (&amp; 0x6fe59278)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe58000)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe584d0) = m_state.staging (&amp; 0x6fe58278)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; 0x6fe60a20) = m_state.staging.backingStore (&amp; 0x6fe60a20)
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe5a000)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe5a4d0) = m_state.staging (&amp; 0x6fe5a278)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe5a780)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe5ac50) = m_state.staging (&amp; 0x6fe5a9f8)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- compositionLayer(&amp;0x6fe64000)-&gt;commitState()
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed (&amp; 0x6fe644d0) = m_state.staging (&amp; 0x6fe64278)
0:42 (                thread 1754264208) --                         NicosiaPlatformLayer -- commitState() -- m_state.committed.backingStore (&amp; (nil)) = m_state.staging.backingStore (&amp; (nil))
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- updateBackingStore() -- compositionState.backingStore (&amp;0x6fe4e060) = CoordinatedBackingStore::create()

0:42 (     layerFlush thread 1887123168) -- -------- LayerTreeHost::layerFlushTimerFired() -------- BEGIN -------- &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; !!! This layerFlushTimerFired() affects to the state of the layers  and it has not a renderLayerTree() what consolidates those changes in the renderLayerTree thread.

0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::flushPendingLayerChanges() -- BEGIN
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::updateSceneState() -- END -- m_nicosia.state.layers.size() = 8 )
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe3e020).backingStore (&amp;0x6fe3e248)= m_nicosia.backingStore;
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe3d020).backingStore (&amp;0x6fe3d248)= m_nicosia.backingStore;
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe3e7a0).backingStore (&amp;0x6fe3e9c8)= m_nicosia.backingStore;
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe587a0).backingStore (&amp;0x6fe589c8)= m_nicosia.backingStore;
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.backingStore (&amp;0x650db570) = Nicosia::BackingStore::create(Nicosia::BackingStoreTextureMapperImpl::createFactory());
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x6fe3d7a0).backingStore (&amp;0x6fe3d9c8)= m_nicosia.backingStore;
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.backingStore (&amp;0x650db580) = Nicosia::BackingStore::create(Nicosia::BackingStoreTextureMapperImpl::createFactory());
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() -- m_nicosia.layer-&gt;updateState() -- callback -- state(&amp;0x656757a0).backingStore (&amp;0x656759c8)= m_nicosia.backingStore;
0:42 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe3e278 staging.backingStore: &amp;(nil)
0:42 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe3d278 staging.backingStore: &amp;(nil)
0:42 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe3d9f8 staging.backingStore: &amp;(nil)
0:42 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe589f8 staging.backingStore: &amp;(nil)
0:42 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x6fe3e9f8 staging.backingStore: &amp;(nil)
0:42 (                thread 1887123168) --                         NicosiaPlatformLayer.h flushState() -- staging.backingStore = pending.backingStore -- staging: &amp;0x656759f8 staging.backingStore: &amp;(nil)
0:42 (     layerFlush thread 1887123168) -- LayerTreeHost::commitSceneState(const CoordinatedGraphicsState&amp; state(&amp;0x6fe8a314))
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::flushPendingLayerChanges() -- END
0:42 (     layerFlush thread 1887123168) -- -------- LayerTreeHost::layerFlushTimerFired() -------- END --------
0:42 (                thread 1887123168) -- WebPage::close()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::purgeBackingStores() -- m_nicosia(&amp;0x6ccdf0d0).backingStore = nullptr (&amp;0x650db570)
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::purgeBackingStores() -- m_nicosia(&amp;0x6ccbd7d0).backingStore = nullptr (&amp;0x650db580)
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- LayerTreeHost::~LayerTreeHost -- m_coordinator-&gt;invalidate()
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::invalidate() BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- willBeDestroyed()
0:42 (     layerFlush thread 1887123168) -- CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() -- END
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::purgeBackingStores() -- BEGIN
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::purgeBackingStores() -- registeredLayer-&gt;purgeBackingStores()
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::purgeBackingStores() -- registeredLayer-&gt;purgeBackingStores()
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::purgeBackingStores() -- END
0:42 (     layerFlush thread 1887123168) -- CompositingCoordinator::invalidate() END
0:42 (     layerFlush thread 1887123168) -- LayerTreeHost::~LayerTreeHost -- m_compositor-&gt;invalidate()
0:42 (renderLayerTree thread 1887123168) --                         ThreadedCompositor::invalidate() BEGIN
0:42 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::invalidate() -- purgeGLResources()
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() -- PROPOSAL (not being called now) updateSceneState()
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() this: 0x6fe5c000 -- BEGIN
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() m_nicosia.scene is not null
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() m_nicosia.scene-&gt;accessState() -&gt; callback
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe3d780))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe3dc50
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x65675780))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x65675c50
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe3e000))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe3e4d0
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe58780))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe58c50
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe59780))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe59c50
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe59000))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe594d0
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe3e780))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe3ec50
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6feba780))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6febac50
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer(CompositionLayer layer(&amp;0x6fe3d000))?
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- removeLayer()? layer.accessCommitted -- callback -- committed: &amp;0x6fe3d4d0
0:42 (renderLayerTree thread 1754264208) --                 CoordinatedGraphicsScene.cpp -- CoordinatedGraphicsScene::purgeGLResources() END
0:42 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::invalidate() -- m_context = nullptr
0:42 (renderLayerTree thread 1754264208) --                 ThreadedCompositor::invalidate() -- m_client.didDestroyGLContext()
0:42 (!!!  layerFlush thread 1754264208) --                         LayerTreeHost::didDestroyGLContext()
0:43 (renderLayerTree thread 1887123168) --                         ThreadedCompositor::invalidate() END
0:43 (     layerFlush thread 1887123168) -- LayerTreeHost::~LayerTreeHost -- delete m_coordinator
0:43 (     layerFlush thread 1887123168) -- CompositingCoordinator::~CompositingCoordinator()
0:43 (     layerFlush thread 1887123168) -- CompositingCoordinator::~CompositingCoordinator() -- registeredLayer-&gt;invalidateCoordinator()
0:43 (     layerFlush thread 1887123168) -- CompositingCoordinator::~CompositingCoordinator() -- registeredLayer-&gt;invalidateCoordinator()
CRASH!!!
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849162</commentid>
    <comment_count>1</comment_count>
      <attachid>454084</attachid>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-03-08 01:39:52 -0800</bug_when>
    <thetext>Created attachment 454084
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849163</commentid>
    <comment_count>2</comment_count>
      <attachid>454085</attachid>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2022-03-08 01:41:51 -0800</bug_when>
    <thetext>Created attachment 454085
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851701</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-03-16 03:02:17 -0700</bug_when>
    <thetext>Committed r291335 (248474@main): &lt;https://commits.webkit.org/248474@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454085.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851702</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-16 03:03:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/90360450&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>454084</attachid>
            <date>2022-03-08 01:39:52 -0800</date>
            <delta_ts>2022-03-08 01:41:05 -0800</delta_ts>
            <desc>patch</desc>
            <filename>bug-237588-20220308103950.patch</filename>
            <type>text/plain</type>
            <size>4251</size>
            <attacher name="Pablo Saavedra">psaavedra</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkwOTgzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGMxMjgxN2VjNjhlYzliYTQ2
NmE1MGNhNTU1ZGQzNjMxNDFmYmEwOGQuLjQ0MzYzNmMwODM2NTliMTE5MWE3OTMzOWQ5NTYzZTVh
ZmQ1ODFjZjIgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMjItMDMtMDggIFBhYmxvIFNh
YXZlZHJhICA8cHNhYXZlZHJhQGlnYWxpYS5jb20+CisKKyAgICAgICAgW0dUS11bV1BFXSBDcmFz
aCBkdXJpbmcgdGhlIFdlYlBhZ2U6OmNsb3NlKCkgcmVsYXRlZCB0byBHTCByZXNvdXJjZXMgZGVz
dHJ1Y3Rpb24KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTIzNzU4OAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
ICogU2hhcmVkL0Nvb3JkaW5hdGVkR3JhcGhpY3MvQ29vcmRpbmF0ZWRHcmFwaGljc1NjZW5lLmg6
CisgICAgICAgICogU2hhcmVkL0Nvb3JkaW5hdGVkR3JhcGhpY3MvdGhyZWFkZWRjb21wb3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W5kZXggYzEyNzk2NGEwYmRhNTIwNzkyMWE4MTRl
ZTczNmNlZjVhZGFlYTY0MC4uNjJjODVmYzUyNjA1YzI2Njg5OTNmMTY2MWY2ZDI4YjRlYTlkODlm
NiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdC9TaGFyZWQvQ29vcmRpbmF0ZWRHcmFwaGljcy90
aHJlYWRlZGNvbXBvc2l0b3IvVGhyZWFkZWRDb21wb3NpdG9yLmgKKysrIGIvU291cmNlL1dlYktp
dC9TaGFyZWQvQ29vcmRpbmF0ZWRHcmFwaGljcy90aHJlYWRlZGNvbXBvc2l0b3IvVGhyZWFkZWRD
b21wb3NpdG9yLmgKQEAgLTY3LDYgKzY3LDcgQEAgcHVibGljOgogCiAgICAgdm9pZCB1cGRhdGVT
Y2VuZVN0YXRlKGNvbnN0IFdlYkNvcmU6OkNvb3JkaW5hdGVkR3JhcGhpY3NTdGF0ZSYpOwogICAg
IHZvaWQgdXBkYXRlU2NlbmUoKTsKKyAgICB2b2lkIHVwZGF0ZVNjZW5lV2l0aG91dFJlbmRlcmlu
ZygpOwogCiAgICAgdm9pZCBpbnZhbGlkYXRlKCk7CiAK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>454085</attachid>
            <date>2022-03-08 01:41:51 -0800</date>
            <delta_ts>2022-03-16 03:02:20 -0700</delta_ts>
            <desc>patch</desc>
            <filename>bug-237588-20220308104149.patch</filename>
            <type>text/plain</type>
            <size>4251</size>
            <attacher name="Pablo Saavedra">psaavedra</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkwOTgzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGMxMjgxN2VjNjhlYzliYTQ2
NmE1MGNhNTU1ZGQzNjMxNDFmYmEwOGQuLjQ0MzYzNmMwODM2NTliM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