<?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>54641</bug_id>
          
          <creation_ts>2011-02-17 05:39:59 -0800</creation_ts>
          <short_desc>[Qt] ImageDiff sometimes hangs</short_desc>
          <delta_ts>2011-03-28 06:44:33 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>ariya.hidayat</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>hausmann</cc>
    
    <cc>kling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>352777</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-02-17 05:39:59 -0800</bug_when>
    <thetext>On r78808 it is easily reproducable: (Using platform mac to get many pixel differences)
$ Tools/Scripts/run-webkit-tests --debug --platform mac -p svg/W3C-SVG-1.1-SE/coords-dom-01-f.svg svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg svg/W3C-SVG-1.1-SE/coords-dom-03-f.svg svg/W3C-SVG-1.1-SE/coords-dom-04-f.svg svg/W3C-SVG-1.1-SE/filters-image-03-f.svg svg/W3C-SVG-1.1-SE/paths-dom-02-f.svg

During the 5. test ImageDiff hangs:
Tools/DumpRenderTree/qt/ImageDiff.cpp:138: if (fwrite(data.constData(), 1, data.length(), stdout)) {}

I&apos;m going to debug and fix this bug. It is the first step to run Qt pixel tests. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352940</commentid>
    <comment_count>1</comment_count>
      <attachid>82816</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-02-17 08:47:11 -0800</bug_when>
    <thetext>Created attachment 82816
proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352948</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-02-17 08:57:43 -0800</bug_when>
    <thetext>ImageDiff was written by Ariya and reviewed by Simon: https://bugs.webkit.org/show_bug.cgi?id=27813

ImageDiff is able to compare pairs of images.
actualImage and baselineImage should be cleared after all comparison:
+            actualImage = QImage();
+            baselineImage = QImage();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352949</commentid>
    <comment_count>3</comment_count>
      <attachid>82816</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-02-17 08:59:08 -0800</bug_when>
    <thetext>Comment on attachment 82816
proposed fix

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

&gt; Tools/DumpRenderTree/qt/ImageDiff.cpp:146
&gt; +            actualImage = QImage();
&gt; +            baselineImage = QImage();

This should be below the next } so they get cleared if one of them isNull(), too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352950</commentid>
    <comment_count>4</comment_count>
      <attachid>82816</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-02-17 09:03:36 -0800</bug_when>
    <thetext>Comment on attachment 82816
proposed fix

Superficial review fail, didn&apos;t realize this was an FSM. r=me, motherlover :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352980</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-17 09:40:04 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 82816:

media/invalid-media-url-crash.html bug 51138 (author: inferno@chromium.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352981</commentid>
    <comment_count>6</comment_count>
      <attachid>82816</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-17 09:41:47 -0800</bug_when>
    <thetext>Comment on attachment 82816
proposed fix

Clearing flags on attachment: 82816

Committed r78840: &lt;http://trac.webkit.org/changeset/78840&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352982</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-17 09:41:52 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374460</commentid>
    <comment_count>8</comment_count>
    <who name="Caio Marcelo de Oliveira Filho">cmarcelo</who>
    <bug_when>2011-03-28 06:39:23 -0700</bug_when>
    <thetext>Revision r78840 cherry-picked into qtwebkit-2.1 with commit 3d8aeee68ff7943cc50e4b321b1071195b671d0a &lt;http://gitorious.org/webkit/qtwebkit/commit/3d8aeee68ff7943cc50e4b321b1071195b671d0a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374461</commentid>
    <comment_count>9</comment_count>
    <who name="Caio Marcelo de Oliveira Filho">cmarcelo</who>
    <bug_when>2011-03-28 06:43:54 -0700</bug_when>
    <thetext>Also merged into qtwebkit-2.1.x</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82816</attachid>
            <date>2011-02-17 08:47:11 -0800</date>
            <delta_ts>2011-02-17 09:41:47 -0800</delta_ts>
            <desc>proposed fix</desc>
            <filename>1.patch</filename>
            <type>text/plain</type>
            <size>978</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0R1bXBSZW5kZXJUcmVlL3F0L0ltYWdlRGlmZi5jcHAKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQot
LS0gVG9vbHMvRHVtcFJlbmRlclRyZWUvcXQvSW1hZ2VEaWZmLmNwcAkocmV2aXNpb24gNzg4MzEp
CisrKyBUb29scy9EdW1wUmVuZGVyVHJlZS9xdC9JbWFnZURpZmYuY3BwCSh3b3JraW5nIGNvcHkp
CkBAIC0xNDIsNiArMTQyLDggQEAKIAogICAgICAgICAgICAgICAgIGZmbHVzaChzdGRvdXQpOwog
ICAgICAgICAgICAgfQorICAgICAgICAgICAgYWN0dWFsSW1hZ2UgPSBRSW1hZ2UoKTsKKyAgICAg
ICAgICAgIGJhc2VsaW5lSW1hZ2UgPSBRSW1hZ2UoKTsKICAgICAgICAgfQogICAgIH0KIApJbmRl
eDogVG9vbHMvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFRvb2xzL0NoYW5nZUxvZwkocmV2aXNp
b24gNzg4MzIpCisrKyBUb29scy9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkKQEAgLTEsMyArMSwx
MyBAQAorMjAxMS0wMi0xNyAgQ3NhYmEgT3N6dHJvZ29uw6FjICA8b3NzeUB3ZWJraXQub3JnPgor
CisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFtRdF0gSW1h
Z2VEaWZmIHNvbWV0aW1lcyBoYW5ncworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9NTQ2NDEKKworICAgICAgICAqIER1bXBSZW5kZXJUcmVlL3F0L0ltYWdl
RGlmZi5jcHA6IENsZWFyIGFjdHVhbEltYWdlIGFuZCBiYXNlbGluZUltYWdlIGFmdGVyIGFsbCBj
b21wYXJpc29uLgorICAgICAgICAobWFpbik6CisKIDIwMTEtMDItMTcgIEdhYm9yIFJhcGNzYW55
aSAgPHJnYWJvckB3ZWJraXQub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IENzYWJhIE9zenRy
b2dvbsOhYy4K
</data>

          </attachment>
      

    </bug>

</bugzilla>