<?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>133516</bug_id>
          
          <creation_ts>2014-06-04 10:03:26 -0700</creation_ts>
          <short_desc>[GTK] TestWebKitAPI/Tests/WebKit2Gtk/TestPrinting time outs when some of the GTK Print backends are not built.</short_desc>
          <delta_ts>2017-03-11 11:01:41 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>gustavo</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1013331</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-06-04 10:03:26 -0700</bug_when>
    <thetext>On the 32-bits GTK Release bot, the API test TestWebKitAPI/WebKit2Gtk/TestPrinting times out

Log: http://build.webkit.org/builders/GTK%20Linux%2032-bit%20Release/builds/44458/steps/API%20tests/logs/stdio

Possible cause: unknown.

I don&apos;t have at hand a 32-bit machine now to test it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032556</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-09-01 18:20:06 -0700</bug_when>
    <thetext>I&apos;ve debugging this issue. The failure is not 32-bit specific.

The issue happens (on any architecture) when GTK+ was built without enabling the CUPS backend (gtk-3.6) or the cloudprint backend (gtk-3.12).

The 32-bit build bot is building GTK+ like this:

        GTK+ 3.6.0
        ===========

        GDK backends:         x11
        X11 extensions:       XKB Xinerama XI2.2 XRANDR XFIXES Composite DAMAGE
        Print backends:       file lpr
        [...] http://build.webkit.org/builders/GTK%20Linux%2032-bit%20Release/builds/46618/steps/jhbuild/logs/stdio


The 64-bit build bot is however building the CUPS backend:

        GTK+ 3.6.0
        ===========

        GDK backends:         x11
        X11 extensions:       XKB Xinerama XI2.2 XRANDR XFIXES Composite DAMAGE
        Print backends:       file lpr cups
        [...] http://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Tests%29/builds/2471/steps/jhbuild/logs/stdio


The test timeouts on the first case (cups is not built).

I tried to build manually gtk+ with &quot;--disable-cups&quot; and I can reproduce the issue. I can also reproduce it by temporally moving the cups module file (WebKitBuild/Dependencies/Root/lib64/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so) to a temporally directory, so GTK+ can&apos;t load it.

In the test, the timeout seems to be in the callback to printFinishedCallback: is not triggered.

I tried with gtk-3.12 and the same thing happens, but instead of happening with the cups backend, now happens with the cloudprint one.

I&apos;m not sure about what is happening, but at first sight it seems a bug in GTK+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032607</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-09-02 06:05:17 -0700</bug_when>
    <thetext>This fixed the test on my tries:

$ apt-get install libcups2-dev cups-daemon
$ Tools/jhbuild/jhbuild-wrapper --gtk buildone --force gtk+


For some reason (at least on Debian), cups-daemon is required, otherwise the test still time outs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032612</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-09-02 07:56:46 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; This fixed the test on my tries:
&gt; 
&gt; $ apt-get install libcups2-dev cups-daemon

kov installed this on the 32-bit buildbot. Now the test passes. The bot is green :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032618</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-09-02 08:16:09 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; This fixed the test on my tries:
&gt; &gt; 
&gt; &gt; $ apt-get install libcups2-dev cups-daemon
&gt; 
&gt; kov installed this on the 32-bit buildbot. Now the test passes. The bot is green :)

It also fixed it on the ARM buildbot.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>