<?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>162266</bug_id>
          
          <creation_ts>2016-09-20 05:39:55 -0700</creation_ts>
          <short_desc>[Win] Null pointer crash under WebCore::CACFLayerTreeHost::create().</short_desc>
          <delta_ts>2016-09-21 13:59:26 -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>WebCore Misc.</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1231597</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-20 05:39:55 -0700</bug_when>
    <thetext>Stack from crash dump:

WebKit!WebCore::CACFLayerTreeHost::initialize+0x6
WebKit!WebCore::CACFLayerTreeHost::create+0x6e
WebKit!WebCore::CACFLayerTreeHost::acceleratedCompositingAvailable+0xfb
WebKit!WebPreferences::acceleratedCompositingEnabled+0x2a
WebKit!WebView::notifyPreferencesChanged+0xddd
WebKit!WebView::onNotify+0xb5
WebKit!WebNotificationCenter::postNotificationInternal+0x10f
WebKit!WebNotificationCenter::postNotificationName+0x3f
WebKit!WebPreferences::postPreferencesChangesNotification+0x31
WebKit!WebView::initWithFrame+0x763</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231598</commentid>
    <comment_count>1</comment_count>
      <attachid>289341</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-20 05:43:25 -0700</bug_when>
    <thetext>Created attachment 289341
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231599</commentid>
    <comment_count>2</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-20 05:44:19 -0700</bug_when>
    <thetext>rdar://problem/28345073</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231607</commentid>
    <comment_count>3</comment_count>
      <attachid>289341</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-09-20 06:54:39 -0700</bug_when>
    <thetext>Comment on attachment 289341
Patch

R=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231631</commentid>
    <comment_count>4</comment_count>
      <attachid>289341</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-09-20 08:28:13 -0700</bug_when>
    <thetext>Comment on attachment 289341
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=289341&amp;action=review

&gt; Source/WebCore/ChangeLog:4
&gt; +        [Win] Null pointer crash under WebCore::CACFLayerTreeHost::create().
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=162266

The radar number should be here too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231680</commentid>
    <comment_count>5</comment_count>
      <attachid>289341</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-09-20 09:12:42 -0700</bug_when>
    <thetext>Comment on attachment 289341
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=289341&amp;action=review

&gt; Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp:121
&gt; +        return nullptr;

Thinking about this more, I wonder if we should add a WTFLog here to document that we couldn&apos;t get a valid CACFLayerTreeHost. This is unusual, and would be a key clue in diagnosing weird behavior if we could see it in console output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1232174</commentid>
    <comment_count>6</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-21 13:57:30 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Comment on attachment 289341 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=289341&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp:121
&gt; &gt; +        return nullptr;
&gt; 
&gt; Thinking about this more, I wonder if we should add a WTFLog here to
&gt; document that we couldn&apos;t get a valid CACFLayerTreeHost. This is unusual,
&gt; and would be a key clue in diagnosing weird behavior if we could see it in
&gt; console output.

Thanks for reviewing! I will add the radar number and log statement before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1232175</commentid>
    <comment_count>7</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-21 13:59:26 -0700</bug_when>
    <thetext>Committed r206234: &lt;https://trac.webkit.org/changeset/206234&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>289341</attachid>
            <date>2016-09-20 05:43:25 -0700</date>
            <delta_ts>2016-09-20 06:54:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-162266-20160920054351.patch</filename>
            <type>text/plain</type>
            <size>1272</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT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lL1dlYkNvcmUvcGxh
dGZvcm0vZ3JhcGhpY3MvY2Evd2luL0NBQ0ZMYXllclRyZWVIb3N0LmNwcAkod29ya2luZyBjb3B5
KQpAQCAtMTE3LDYgKzExNyw4IEBAIFBhc3NSZWZQdHI8Q0FDRkxheWVyVHJlZUhvc3Q+IENBQ0ZM
YXllclQKICAgICBpZiAoIWFjY2VsZXJhdGVkQ29tcG9zaXRpbmdBdmFpbGFibGUoKSkKICAgICAg
ICAgcmV0dXJuIG51bGxwdHI7CiAgICAgUmVmUHRyPENBQ0ZMYXllclRyZWVIb3N0PiBob3N0ID0g
V0tDQUNGVmlld0xheWVyVHJlZUhvc3Q6OmNyZWF0ZSgpOworICAgIGlmICghaG9zdCkKKyAgICAg
ICAgcmV0dXJuIG51bGxwdHI7CiAgICAgaG9zdC0+aW5pdGlhbGl6ZSgpOwogICAgIHJldHVybiBo
b3N0LnJlbGVhc2UoKTsKIH0K
</data>
<flag name="review"
          id="312572"
          type_id="1"
          status="+"
          setter="bfulgham"
    />
          </attachment>
      

    </bug>

</bugzilla>