<?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>105312</bug_id>
          
          <creation_ts>2012-12-18 08:44:13 -0800</creation_ts>
          <short_desc>[GTK][AC] Assertion failed while destroying GraphicsLayer</short_desc>
          <delta_ts>2012-12-18 18:46:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="ChangSeok Oh">kevin.cs.oh</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gustavo</cc>
    
    <cc>joone</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>793697</commentid>
    <comment_count>0</comment_count>
    <who name="ChangSeok Oh">kevin.cs.oh</who>
    <bug_when>2012-12-18 08:44:13 -0800</bug_when>
    <thetext>How to reproduce
1. Enable Clutter backend AC and build
2. Visit http://www.webkit.org/blog-files/3d-transforms/poster-circle.html
3. And then go to www.google.com

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff553b798 in WebCore::GraphicsLayer::~GraphicsLayer (this=0x189c1a0, 
    __in_chrg=&lt;optimized out&gt;)
    at ../../Source/WebCore/platform/graphics/GraphicsLayer.cpp:112
112	    ASSERT(!m_parent); // willBeDestroyed should have been called already.
(gdb) bt
#0  0x00007ffff553b798 in WebCore::GraphicsLayer::~GraphicsLayer (this=0x189c1a0, 
    __in_chrg=&lt;optimized out&gt;)
    at ../../Source/WebCore/platform/graphics/GraphicsLayer.cpp:112
#1  0x00007ffff51f71dc in WebCore::GraphicsLayerClutter::~GraphicsLayerClutter (
    this=0x189c1a0, __in_chrg=&lt;optimized out&gt;)
    at ../../Source/WebCore/platform/graphics/clutter/GraphicsLayerClutter.cpp:87
#2  0x00007ffff51f721c in WebCore::GraphicsLayerClutter::~GraphicsLayerClutter (
    this=0x189c1a0, __in_chrg=&lt;optimized out&gt;)
    at ../../Source/WebCore/platform/graphics/clutter/GraphicsLayerClutter.cpp:98
#3  0x00007ffff45c8fa5 in WTF::deleteOwnedPtr&lt;WebCore::GraphicsLayer&gt; (
    ptr=0x189c1a0) at ../../Source/WTF/wtf/OwnPtrCommon.h:60
#4  0x00007ffff45c8ffa in WTF::OwnPtr&lt;WebCore::GraphicsLayer&gt;::clear (
    this=0x163a358) at ../../Source/WTF/wtf/OwnPtr.h:119
#5  0x00007ffff45c8f2c in WTF::OwnPtr&lt;WebCore::GraphicsLayer&gt;::operator= (
    this=0x163a358) at ../../Source/WTF/wtf/OwnPtr.h:81
#6  0x00007ffff45c7f30 in WebKit::AcceleratedCompositingContext::setRootCompositingLayer (this=0x163a330, graphicsLayer=0x0)
    at ../../Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextClutter.cpp:101
#7  0x00007ffff45ccd24 in WebKit::ChromeClient::attachRootGraphicsLayer (
    this=0x15d1c80, frame=0x15ff400, rootLayer=0x0)
    at ../../Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp:998
#8  0x00007ffff5084dff in WebCore::RenderLayerCompositor::detachRootLayer (
    this=0x181d9c0) at ../../Source/WebCore/rendering/RenderLayerCompositor.cpp:2489
#9  0x00007ffff50816ec in WebCore::RenderLayerCompositor::willMoveOffscreen (
    this=0x181d9c0) at ../../Source/WebCore/rendering/RenderLayerCompositor.cpp:1466
#10 0x00007ffff512e38d in WebCore::RenderView::willMoveOffscreen (this=0x16208e8)
    at ../../Source/WebCore/rendering/RenderView.cpp:975
#11 0x00007ffff4930224 in WebCore::Document::documentWillBecomeInactive (
    this=0x17bdcc0) at ../../Source/WebCore/dom/Document.cpp:4062
#12 0x00007ffff4929399 in WebCore::Document::detach (this=0x17bdcc0)
    at ../../Source/WebCore/dom/Document.cpp:2101
#13 0x00007ffff492953c in WebCore::Document::prepareForDestruction (this=0x17bdcc0)
    at ../../Source/WebCore/dom/Document.cpp:2150
#14 0x00007ffff4e80348 in WebCore::Frame::setView (this=0x15ff400, view=...)
    at ../../Source/WebCore/page/Frame.cpp:266
#15 0x00007ffff4e8291d in WebCore::Frame::createView (this=0x15ff400, 
    viewportSize=..., backgroundColor=..., transparent=false, fixedLayoutSize=..., 
    fixedVisibleContentRect=..., useFixedLayout=false, 
    horizontalScrollbarMode=WebCore::ScrollbarAuto, horizontalLock=false, 
    verticalScrollbarMode=WebCore::ScrollbarAuto, verticalLock=false)
    at ../../Source/WebCore/page/Frame.cpp:783
#16 0x00007ffff45e7541 in WebKit::FrameLoaderClient::transitionToCommittedForNewPage
    (this=0x15ef3e0)
    at ../../Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1254
#17 0x00007ffff4db7b17 in WebCore::FrameLoader::transitionToCommitted (
    this=0x15ff480, cachedPage=...)
    at ../../Source/WebCore/loader/FrameLoader.cpp:1855
#18 0x00007ffff4db6f68 in WebCore::FrameLoader::commitProvisionalLoad (
    this=0x15ff480) at ../../Source/WebCore/loader/FrameLoader.cpp:1697
#19 0x00007ffff4d9b3fb in WebCore::DocumentLoader::commitIfReady (this=0x2ddc400)
    at ../../Source/WebCore/loader/DocumentLoader.cpp:277
#20 0x00007ffff4d9b558 in WebCore::DocumentLoader::commitLoad (this=0x2ddc400, 
    data=0x2d139a0 &quot;&lt;!doctype html&gt;&lt;html itemscope=\&quot;itemscope\&quot; itemtype=\&quot;http://schema.org/WebPage\&quot;&gt;&lt;head&gt;&lt;meta itemprop=\&quot;image\&quot; content=\&quot;/images/google_favicon_128.png\&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;script&gt;(function(){\nwindow.g&quot;..., length=512)
    at ../../Source/WebCore/loader/DocumentLoader.cpp:310
#21 0x00007ffff4d9bb32 in WebCore::DocumentLoader::receivedData (this=0x2ddc400, 
    data=0x2d139a0 &quot;&lt;!doctype html&gt;&lt;html itemscope=\&quot;itemscope\&quot; itemtype=\&quot;http://schema.org/WebPage\&quot;&gt;&lt;head&gt;&lt;meta itemprop=\&quot;image\&quot; content=\&quot;/images/google_favicon_128.png\&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;script&gt;(function(){\nwindow.g&quot;..., length=512)
    at ../../Source/WebCore/loader/DocumentLoader.cpp:387
#22 0x00007ffff4de8ee1 in WebCore::MainResourceLoader::dataReceived (
    this=0x2d049d0, resource=0x2d02e90, 
    data=0x2d139a0 &quot;&lt;!doctype html&gt;&lt;html itemscope=\&quot;itemscope\&quot; itemtype=\&quot;http://schema.org/WebPage\&quot;&gt;&lt;head&gt;&lt;meta itemprop=\&quot;image\&quot; content=\&quot;/images/google_favicon_128.png\&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;script&gt;(function(){\nwindow.g&quot;..., length=512)
    at ../../Source/WebCore/loader/MainResourceLoader.cpp:487
#23 0x00007ffff4d7a40b in WebCore::CachedRawResource::data (this=0x2d02e90, 
    data=..., allDataReceived=false)
    at ../../Source/WebCore/loader/cache/CachedRawResource.cpp:69
#24 0x00007ffff4dffe9b in WebCore::SubresourceLoader::sendDataToResource (
    this=0x2d03450, 
    data=0x2d0aeb0 &quot;&lt;!doctype html&gt;&lt;html itemscope=\&quot;itemscope\&quot; itemtype=\&quot;http://schema.org/WebPage\&quot;&gt;&lt;head&gt;&lt;meta itemprop=\&quot;image\&quot; content=\&quot;/images/google_favicon_128.png\&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;script&gt;(function(){\nwindow.g&quot;..., length=512)
    at ../../Source/WebCore/loader/SubresourceLoader.cpp:252
#25 0x00007ffff4dffbeb in WebCore::SubresourceLoader::didReceiveData (
    this=0x2d03450, 
    data=0x2d0aeb0 &quot;&lt;!doctype html&gt;&lt;html itemscope=\&quot;itemscope\&quot; itemtype=\&quot;http://schema.org/WebPage\&quot;&gt;&lt;head&gt;&lt;meta itemprop=\&quot;image\&quot; content=\&quot;/images/google_favicon_128.png\&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;script&gt;(function(){\nwindow.g&quot;..., length=512, 
    encodedDataLength=512, allAtOnce=false)
    at ../../Source/WebCore/loader/SubresourceLoader.cpp:224
#26 0x00007ffff4df57aa in WebCore::ResourceLoader::didReceiveData (this=0x2d03450, 
    data=0x2d0aeb0 &quot;&lt;!doctype html&gt;&lt;html itemscope=\&quot;itemscope\&quot; itemtype=\&quot;http://schema.org/WebPage\&quot;&gt;&lt;head&gt;&lt;meta itemprop=\&quot;image\&quot; content=\&quot;/images/google_favicon_128.png\&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;script&gt;(function(){\nwindow.g&quot;..., length=512, 
    encodedDataLength=512) at ../../Source/WebCore/loader/ResourceLoader.cpp:450
#27 0x00007ffff55c1bca in WebCore::readCallback (asyncResult=0x16c8590, 
    data=0x1a7a8b0)
    at ../../Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:1272
#28 0x00007ffff342b065 in async_ready_callback_wrapper (source_object=0x1821200, 
    res=0x16c8590, user_data=0x1a7a8b0) at ginputstream.c:529
#29 0x00007ffff343fe7d in g_simple_async_result_complete (simple=0x16c8590)
    at gsimpleasyncresult.c:777
#30 0x00007ffff343ffac in complete_in_idle_cb (data=0x16c8590)
    at gsimpleasyncresult.c:789
#31 0x00007ffff2bae263 in g_main_dispatch (context=0x622280) at gmain.c:2784
#32 g_main_context_dispatch (context=0x622280) at gmain.c:3288
#33 0x00007ffff2bae5a8 in g_main_context_iterate (dispatch=1, 
    block=&lt;optimized out&gt;, context=0x622280, self=&lt;optimized out&gt;) at gmain.c:3359
#34 g_main_context_iterate (context=0x622280, block=&lt;optimized out&gt;, dispatch=1, 
    self=&lt;optimized out&gt;) at gmain.c:3296
#35 0x00007ffff2bae9ea in g_main_loop_run (loop=0x16e81e0) at gmain.c:3553
#36 0x00007ffff3b6742d in gtk_main ()
    at /build/buildd/gtk+3.0-3.4.2/./gtk/gtkmain.c:1165
#37 0x0000000000405598 in main (argc=1, argv=0x7fffffffdfb8)
    at ../../Tools/GtkLauncher/main.c:541</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>793735</commentid>
    <comment_count>1</comment_count>
      <attachid>179964</attachid>
    <who name="ChangSeok Oh">kevin.cs.oh</who>
    <bug_when>2012-12-18 09:40:50 -0800</bug_when>
    <thetext>Created attachment 179964
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>794264</commentid>
    <comment_count>2</comment_count>
      <attachid>179964</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-18 18:46:09 -0800</bug_when>
    <thetext>Comment on attachment 179964
Patch

Clearing flags on attachment: 179964

Committed r138103: &lt;http://trac.webkit.org/changeset/138103&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>794265</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-12-18 18:46:12 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>179964</attachid>
            <date>2012-12-18 09:40:50 -0800</date>
            <delta_ts>2012-12-18 18:46:09 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-105312-20121219023807.patch</filename>
            <type>text/plain</type>
            <size>1745</size>
            <attacher name="ChangSeok Oh">kev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