<?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>85476</bug_id>
          
          <creation_ts>2012-05-03 05:00:57 -0700</creation_ts>
          <short_desc>[Gtk] ImageDiff crashes when it can&apos;t open a display</short_desc>
          <delta_ts>2012-05-03 06:15:24 -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>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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Zan Dobersek">zan</assigned_to>
          <cc>mrobinson</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>615167</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-05-03 05:00:57 -0700</bug_when>
    <thetext>This happens regularly on the GTK 64-bit Debug builder. Here&apos;s stderr output:

(ImageDiff:14017): Gdk-WARNING **: cannot open display</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615168</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-05-03 05:03:40 -0700</bug_when>
    <thetext>The problem originates from the gdk_init function call[1]. It turns out GdkPixbufLoader doesn&apos;t actually require gdk_init() to be called, meaning this should be replaced by only calling g_type_init() and the crashes should go away.

[1] http://trac.webkit.org/browser/trunk/Tools/DumpRenderTree/gtk/ImageDiff.cpp#L181</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615180</commentid>
    <comment_count>2</comment_count>
      <attachid>139986</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-05-03 05:22:51 -0700</bug_when>
    <thetext>Created attachment 139986
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615219</commentid>
    <comment_count>3</comment_count>
      <attachid>139986</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-05-03 06:15:09 -0700</bug_when>
    <thetext>Comment on attachment 139986
Patch

Clearing flags on attachment: 139986

Committed r115967: &lt;http://trac.webkit.org/changeset/115967&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>615220</commentid>
    <comment_count>4</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-05-03 06:15:24 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139986</attachid>
            <date>2012-05-03 05:22:51 -0700</date>
            <delta_ts>2012-05-03 06:15:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-85476-20120503142249.patch</filename>
            <type>text/plain</type>
            <size>1427</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDExNTk2MikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE4IEBACisyMDEyLTA1LTAzICBaYW4gRG9iZXJzZWsgIDx6YW5kb2JlcnNla0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5NjIpCisrKyBUb29scy9EdW1wUmVuZGVyVHJlZS9ndGsvSW1hZ2VEaWZmLmNwcAko
d29ya2luZyBjb3B5KQpAQCAtMTc4LDcgKzE3OCw3IEBAIHZvaWQgcHJpbnRJbWFnZURpZmZlcmVu
Y2VzKEdka1BpeGJ1ZiogYmEKIAogaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqIGFyZ3ZbXSkKIHsK
LSAgICBnZGtfaW5pdCgmYXJnYywgJmFyZ3YpOworICAgIGdfdHlwZV9pbml0KCk7CiAKICAgICBH
RXJyb3IqIGVycm9yID0gMDsKICAgICBHT3B0aW9uQ29udGV4dCogY29udGV4dCA9IGdfb3B0aW9u
X2NvbnRleHRfbmV3KCItIGNvbXBhcmUgdHdvIGltYWdlIGZpbGVzLCBwcmludGluZyB0aGVpciBw
ZXJjZW50YWdlIGRpZmZlcmVuY2UgYW5kIHRoZSBkaWZmZXJlbmNlIGltYWdlIHRvIHN0ZG91dCIp
Owo=
</data>

          </attachment>
      

    </bug>

</bugzilla>