[Webkit-unassigned] [Bug 39628] New: Rapid image reloading causes application failure or crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 24 17:17:07 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39628

           Summary: Rapid image reloading causes application failure or
                    crash
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Images
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: patrick at mental.com


Using the latest Windows nightly (WebKit-r60066) and the following basic DHTML page, I observe either a crash or an application failure after anywhere from 100-700 reloads (progressions):

<html> 
    <head> 
        <title>Test</title> 
        <script type="text/javascript"> 

        var num_progressions = 0;
        const max_progressions = 100000;

        function on_doc_load()
        {
            var el = document.getElementById("m_holder").addEventListener("load",on_image_received);
            on_image_received();
        }

        function on_image_received( i_event )
        {
            num_progressions++;
            document.getElementById("display").innerHTML = num_progressions;
            if (num_progressions < max_progressions)
                document.getElementById("m_holder").src = "test.jpg?time=" + (new Date().getTime()) + "&rand=" + (Math.round(Math.random()*10000)/10000)
        }
        </script> 
    </head> 

    <body onload="on_doc_load()" style="margin:0; padding:0; display:block;"> 
        <div id="div_holder"> 
            <div id="div_render"> 
                <img width="100%" height="100%" id="m_holder"/> <br /> 
            </div> 
            <div id="display" style="position:absolute; right:15px; bottom:15px; color:#777777; display:block;"></div> 
        </div> 
    </body> 
</html>

Tested using HTTP only.  The page essentially just reloads the same "test.jpg" image over and over.

Note that you need to supply your own "test.jpg" in the same directory as this file and generally larger files cause the bug behavior to show up sooner (in my tests).  I used the one here:

http://farm4.static.flickr.com/3415/3245411639_f4a01b96b7_o.jpg
(Credit: http://www.flickr.com/photos/gcmenezes/3245411639/sizes/l/ )

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list