<?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>13540</bug_id>
          
          <creation_ts>2007-04-29 02:29:59 -0700</creation_ts>
          <short_desc>REGRESSION: Reproducible ASSERT closing page with streaming jpeg webcam</short_desc>
          <delta_ts>2007-04-29 03:19:39 -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>Page Loading</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>DUPLICATE</resolution>
          <dup_id>13360</dup_id>
          
          <bug_file_loc>http://www.scheveningenlive.nl/beach1.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>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>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11788</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-04-29 02:29:59 -0700</bug_when>
    <thetext>* SUMMARY
Closing a page with a streaming jpeg webcam causes an assertion failure in debug builds of ToT WebKit.

* STEPS TO REPRODUCE
1. Open Safari/WebKit.
2. Load URL:  http://www.scheveningenlive.nl/beach1.html
3. Close window.

* EXPECTED RESULTS
Window should close without assertion failure.

* ACTUAL RESULTS
Assertion failure occurs when closing window.

* REGRESSION
Not tested with shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135) yet.

* NOTES
Reproduced with a local debug build of WebKit r21170 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11789</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-04-29 02:32:11 -0700</bug_when>
    <thetext>This does not occur with shipping Safari, although it&apos;s not a debug build.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11790</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-04-29 03:02:19 -0700</bug_when>
    <thetext>Console output:

[28500] http://www.scheveningenlive.nl/beach1.html line 351: TypeError: Undefined value
(event handler):Can&apos;t find variable: begintimer
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
ASSERTION FAILED: m_loadingResources.contains(identifier)
(/Volumes/Data/WebKit/WebKit/WebView/WebDocumentLoaderMac.mm:93 decreaseLoadCount)
Segmentation fault

Stack trace:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xbbadbeef

Thread 0 Crashed:
0   com.apple.WebKit         	0x003c28a8 WebDocumentLoaderMac::decreaseLoadCount(unsigned long) + 120 (WebDocumentLoaderMac.mm:93)
1   com.apple.WebKit         	0x003c6fac WebFrameLoaderClient::dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long, WebCore::ResourceError const&amp;) + 316
2   com.apple.WebCore        	0x0146b6fc WebCore::FrameLoader::didFailToLoad(WebCore::ResourceLoader*, WebCore::ResourceError const&amp;) + 252 (FrameLoader.cpp:3154)
3   com.apple.WebCore        	0x014845c0 WebCore::ResourceLoader::didCancel(WebCore::ResourceError const&amp;) + 448
4   com.apple.WebCore        	0x014858f4 WebCore::SubresourceLoader::didCancel(WebCore::ResourceError const&amp;) + 268 (SubresourceLoader.cpp:235)
5   com.apple.WebCore        	0x01483f20 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&amp;) + 156
6   com.apple.WebCore        	0x01483fe4 WebCore::ResourceLoader::cancel() + 68
7   com.apple.WebCore        	0x014805e0 WebCore::cancelAll(WTF::HashSet&lt;WTF::RefPtr&lt;WebCore::ResourceLoader&gt;, WTF::PtrHash&lt;WTF::RefPtr&lt;WebCore::ResourceLoader&gt; &gt;, WTF::HashTraits&lt;WTF::RefPtr&lt;WebCore::ResourceLoader&gt; &gt; &gt; const&amp;) + 108 (DocumentLoader.cpp:111)
8   com.apple.WebCore        	0x01480668 WebCore::DocumentLoader::stopLoadingSubresources() + 40 (DocumentLoader.cpp:626)
9   com.apple.WebCore        	0x01480aac WebCore::DocumentLoader::stopLoading() + 532 (DocumentLoader.cpp:290)
10  com.apple.WebCore        	0x01474aa4 WebCore::FrameLoader::stopAllLoaders() + 268 (FrameLoader.cpp:2217)
11  com.apple.WebKit         	0x00343080 -[WebFrame stopLoading] + 92
12  com.apple.WebKit         	0x0038a6f4 -[WebView(WebIBActions) stopLoading:] + 100 (WebView.mm:2513)
13  com.apple.Safari         	0x0004796c 0x1000 + 289132
14  com.apple.Safari         	0x0004776c 0x1000 + 288620
15  com.apple.Safari         	0x000476fc 0x1000 + 288508
16  com.apple.Safari         	0x00047690 0x1000 + 288400
17  com.apple.Safari         	0x0007163c 0x1000 + 460348
18  com.apple.AppKit         	0x9383fc4c -[NSApplication sendAction:to:from:] + 108
19  com.apple.Safari         	0x0002956c 0x1000 + 165228
20  com.apple.AppKit         	0x9389a4b8 -[NSMenu performActionForItemAtIndex:] + 392
21  com.apple.AppKit         	0x9389a23c -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 104
22  com.apple.AppKit         	0x93899ce4 -[NSMenu performKeyEquivalent:] + 272
23  com.apple.AppKit         	0x93899930 -[NSApplication _handleKeyEquivalent:] + 328
24  com.apple.AppKit         	0x937a3408 -[NSApplication sendEvent:] + 2944
25  com.apple.Safari         	0x00021238 0x1000 + 131640
26  com.apple.AppKit         	0x9379ad10 -[NSApplication run] + 508
27  com.apple.AppKit         	0x9388b87c NSApplicationMain + 452
28  com.apple.Safari         	0x0005c77c 0x1000 + 374652
29  com.apple.Safari         	0x0005c624 0x1000 + 374308

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11791</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-04-29 03:16:27 -0700</bug_when>
    <thetext>This is bug 13360.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11792</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-04-29 03:19:39 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; This is bug 13360.

So it is.  Thanks Mitz!



*** This bug has been marked as a duplicate of 13360 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>