<?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>13009</bug_id>
          
          <creation_ts>2007-03-07 23:17:49 -0800</creation_ts>
          <short_desc>REGRESSION (r20042): Console spews &quot;CGContextGetType: invalid context&quot; non-stop on web site</short_desc>
          <delta_ts>2007-03-08 19:15:53 -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>Layout and Rendering</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://tf1.lci.fr/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, NeedsReduction, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bruceq</cc>
    
    <cc>darin</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19876</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-07 23:17:49 -0800</bug_when>
    <thetext>Summary:

The following message spews non-stop to the console when the URL (http://tf1.lci.fr/) is loaded:

CGContextGetType: invalid context

This is a fairly recent regression (within the last 24 hours).

Steps to reproduce:

1. Open WebKit debug build.
2. Access URL:  http://tf1.lci.fr/
3. Wait for page to load.

Expected results:

No &quot;CGContextGetType: invalid context&quot; messages should be printed to the console.

Actual results:

The &quot;CGContextGetType: invalid context&quot; messages are printed to the console non-stop until the page is closed.

Regression:

This wasn&apos;t happening with debug builds less than 24 hours ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19877</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-07 23:20:22 -0800</bug_when>
    <thetext>Note that the URL is from Bug 12980.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19880</commentid>
    <comment_count>2</comment_count>
    <who name="Stephanie Lewis">slewis</who>
    <bug_when>2007-03-07 23:38:41 -0800</bug_when>
    <thetext>&lt;rdar://problem/5048788&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19881</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-07 23:51:09 -0800</bug_when>
    <thetext>Of course, I can&apos;t reproduce it now.  Probably a particular ad was being displayed.

If anyone sees this again, please save a webarchive of the page.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19884</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-08 00:05:17 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Of course, I can&apos;t reproduce it now.  Probably a particular ad was being
&gt; displayed.

I was missing a step in the steps to reproduce:

1. Open WebKit debug build.
2. Access URL:  http://tf1.lci.fr/
3. Wait for page to load.
4. Hide Safari.

As soon as Safari is hidden, the message starts spewing to the console and never stops until the browser window is closed.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19885</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-08 00:19:30 -0800</bug_when>
    <thetext>This is a regression from r20042 which was the fix for Bug 12515.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19889</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-08 00:59:12 -0800</bug_when>
    <thetext>I&apos;m also seeing these console messages sporadically (on this URL, for example: http://www.flickr.com/search/?q=cute+kittens&amp;s=int):

Not a JPEG file: starts with 0x7b 0x35
Not a JPEG file: starts with 0x7b 0x35
Not a JPEG file: starts with 0x7b 0xbd
Not a JPEG file: starts with 0x7b 0x35
Not a JPEG file: starts with 0x7b 0xcb
Not a JPEG file: starts with 0x7b 0x35
Not a JPEG file: starts with 0x7b 0x35
Not a JPEG file: starts with 0x7b 0x35
Not a JPEG file: starts with 0x7b 0x35

I&apos;m not sure if this is caused by r20042 or not, though.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19892</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-08 01:33:18 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; I&apos;m also seeing these console messages sporadically (on this URL, for example:
&gt; http://www.flickr.com/search/?q=cute+kittens&amp;s=int):
&gt; 
&gt; Not a JPEG file: starts with 0x7b 0x35
&gt; [...]
&gt; 
&gt; I&apos;m not sure if this is caused by r20042 or not, though.

This appears to have been a different issue.  Please ignore it.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19893</commentid>
    <comment_count>8</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-08 01:35:04 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; This appears to have been a different issue.  Please ignore it.

And is fixed as of r20057.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19930</commentid>
    <comment_count>9</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-03-08 14:03:14 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; 
&gt; As soon as Safari is hidden, the message starts spewing to the console and
&gt; never stops until the browser window is closed.
&gt; 

The website http://weplayanything.com spews this before anything is even rendered, without having to hide Safari.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19937</commentid>
    <comment_count>10</comment_count>
      <attachid>13549</attachid>
    <who name="Bruce Q. Hammond">bruceq</who>
    <bug_when>2007-03-08 14:45:56 -0800</bug_when>
    <thetext>Created attachment 13549
Checks for null ptr before calling WKCGContextIsBitmapContext.

A fairly trivial (low-risk) fix for this issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19938</commentid>
    <comment_count>11</comment_count>
      <attachid>13549</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-03-08 14:47:08 -0800</bug_when>
    <thetext>Comment on attachment 13549
Checks for null ptr before calling WKCGContextIsBitmapContext.

r=me

Do you know why there&apos;s a null context?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19833</commentid>
    <comment_count>12</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-03-08 19:15:53 -0800</bug_when>
    <thetext>Landed in r20077.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13549</attachid>
            <date>2007-03-08 14:45:56 -0800</date>
            <delta_ts>2007-03-08 14:47:08 -0800</delta_ts>
            <desc>Checks for null ptr before calling WKCGContextIsBitmapContext.</desc>
            <filename>CGContextGetType_console_spew_patch.txt</filename>
            <type>text/plain</type>
            <size>2015</size>
            <attacher name="Bruce Q. Hammond">bruceq</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L0NoYW5nZUxvZwko
cmV2aXNpb24gMjAwNjcpCisrKyBXZWJLaXQvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0x
LDMgKzEsMTQgQEAKKzIwMDctMDMtMDggIEJydWNlIFE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vbnRleHRJc0JpdG1hcENvbnRleHQoY3VycmVudENvbnRl
eHQpKSB7CiAgICAgICAgICAgICAgICAgR1dvcmxkUHRyIGN1ckdXb3JsZDsKICAgICAgICAgICAg
ICAgICBHZXRHV29ybGQoJmN1ckdXb3JsZCwgTlVMTCk7CiAgICAgICAgICAgICAgICAgRGlzcG9z
ZUdXb3JsZChjdXJHV29ybGQpOwo=
</data>
<flag name="review"
          id="5369"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>