<?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>171161</bug_id>
          
          <creation_ts>2017-04-22 02:52:03 -0700</creation_ts>
          <short_desc>[GTK] Crash of WebProcess with on-demand AC</short_desc>
          <delta_ts>2017-08-31 00:34:54 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=171205</see_also>
          <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="ManDay">manday</reporter>
          <assigned_to name="Miguel Gomez">magomez</assigned_to>
          <cc>alicem</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>magomez</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1300177</commentid>
    <comment_count>0</comment_count>
    <who name="ManDay">manday</who>
    <bug_when>2017-04-22 02:52:03 -0700</bug_when>
    <thetext>With 2.16.1 there are frequent issues on Wayland with a lot of pages that rendered correctly before. I can only give an example here and hope that someone can reproduce this.

Weston + MiniBrowser 2.16.1 + MESA git 17.0-branchpoint-2613-g957ccbe + No X11 libraries (WKGTK+ Source w/ minor patches to the wayland backend and ANGLE to prevent inclusion of X11 header files)

There is a distinct problem where the page becomes (GTKish window color) gray and is unresponsive. Moving the mouse cursor across MiniBrowser causes the gray to flicker back-and-forth to the supposed content, which however remains unresponsive. The UI otherwise is still responsive (navigating back to the previous page or refreshing has an effect, for example). Unfortunally, I can not reliably quote a page which reproduces this issue (for example the current Google &quot;doodle&quot; has this problem but will be gone soon).

A page, which refuses to render though is for instance 

https://www.epson.de/products/see-through-mobile-viewer/moverio-bt-300

though it appears to be a different kind of behaviour.

If I find any pages where one can reliably reproduce the first bug, I&apos;ll report them here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1300188</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-04-22 06:34:35 -0700</bug_when>
    <thetext>We recently started getting complaints that YouTube does not render anything. I wonder if it is this same issue.

(In reply to ManDay from comment #0)
&gt; A page, which refuses to render though is for instance 
&gt; 
&gt; https://www.epson.de/products/see-through-mobile-viewer/moverio-bt-300
&gt; 
&gt; though it appears to be a different kind of behaviour.

Yes, I can reproduce this. It&apos;s totally white. I doubt rendering is the only problem here, though, because it also took astoundingly-long to load.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1300189</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-04-22 06:34:58 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #1)
&gt; We recently started getting complaints that YouTube does not render
&gt; anything. I wonder if it is this same issue.

(Note: I can&apos;t reproduce on YouTube.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304011</commentid>
    <comment_count>3</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2017-05-03 05:52:32 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #2)
&gt; (In reply to Michael Catanzaro from comment #1)
&gt; &gt; We recently started getting complaints that YouTube does not render
&gt; &gt; anything. I wonder if it is this same issue.
&gt; 
&gt; (Note: I can&apos;t reproduce on YouTube.)

I can only reproduce it on the new YouTube design that can be enabled on youtube.com/testtube

But it happens both with webkitgtk 2.16.1 and 2.14.1, so it&apos;s probably a different issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304012</commentid>
    <comment_count>4</comment_count>
    <who name="ManDay">manday</who>
    <bug_when>2017-05-03 06:25:00 -0700</bug_when>
    <thetext>I can occasionally reproduce the &quot;apparent freez w/ GTK gray&quot; on this page

https://itch.io/games/html5

though not through some reliable steps, in weston. Takes a bit of scrolling around and hovering over the elements. Behaviour is the same: MiniBrowser (apparently) freezes, resizing the window turns it all grey and sometimes, moving the mouse into certain areas causes it to flicker to the content and back to gray.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304014</commentid>
    <comment_count>5</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2017-05-03 06:52:40 -0700</bug_when>
    <thetext>(In reply to exalm7659 from comment #3)
&gt; I can only reproduce it on the new YouTube design that can be enabled on
&gt; youtube.com/testtube
&gt; 
&gt; But it happens both with webkitgtk 2.16.1 and 2.14.1, so it&apos;s probably a
&gt; different issue.

Addition: And on X11 as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304066</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-05-03 09:48:11 -0700</bug_when>
    <thetext>(In reply to exalm7659 from comment #3) 
&gt; I can only reproduce it on the new YouTube design that can be enabled on
&gt; youtube.com/testtube
&gt; 
&gt; But it happens both with webkitgtk 2.16.1 and 2.14.1, so it&apos;s probably a
&gt; different issue.

Yes, bug #171603</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308465</commentid>
    <comment_count>7</comment_count>
    <who name="ManDay">manday</who>
    <bug_when>2017-05-14 02:29:37 -0700</bug_when>
    <thetext>I&apos;ve found that the precise issue with a gray, unresponsive Webview happens quite reliably on Google Drive/Docs. That is, after I log in to &quot;Google Drive&quot; and choose &quot;New &gt; Google Docs &gt; Empty document&quot; one of the two windows fairly quickly goes gray. Maybe someone could give it a try on these pages and see whether or not it is stable for them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1332617</commentid>
    <comment_count>8</comment_count>
    <who name="ManDay">manday</who>
    <bug_when>2017-07-27 02:45:10 -0700</bug_when>
    <thetext>With the recent unstalbe release 2.17.5 things got worse, but also easily reproducible now for me.

In weston, I start MiniBrowser, navigate to http://www.zeit.de and drag the window larger towards the right by the right border. The new area is black and doesn&apos;t render properly (I suspect that&apos;s one example of a multitude of various symptoms seen in different WMs and on different webpages).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1336942</commentid>
    <comment_count>9</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-08-09 07:01:48 -0700</bug_when>
    <thetext>I&apos;ve been testing a bit with current ToT and http://www.zeit.de, both with Wayland and Xorg, and both with AC enabled and disabled.

I see that using Xorg, resizing the window is way more expensive than using Wayland. The window takes a while to be redrawn and so does the page, and the resize is sluggish. Using Wayland, both the window resize and the page redraw is smooth and fluent. This is the same both with and without AC, despite without AC everything is a bit smoother.

I also found that with AC enabled, both in Xorg and Wayland, resizing the window several times can lead to a crash in the WebProcess. I&apos;ll try to find what&apos;s happening there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337348</commentid>
    <comment_count>10</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-08-10 01:26:54 -0700</bug_when>
    <thetext>&gt; I also found that with AC enabled, both in Xorg and Wayland, resizing the
&gt; window several times can lead to a crash in the WebProcess. I&apos;ll try to find
&gt; what&apos;s happening there.

It seems that the crash was related to https://bugs.webkit.org/show_bug.cgi?id=173866. I&apos;ve tested with the patch proposed for that bug and I&apos;m not able to reproduce the crash anymore.

Regarding the rendering issues, I&apos;m not able to reproduce them, besides the sluggish window resizing with Xorg.

Can we retest this once 2.18 is released and see whether the problem is still there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337853</commentid>
    <comment_count>11</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-08-11 02:09:20 -0700</bug_when>
    <thetext>I&apos;ve been playing with a test page ManDay sent me and I can easily reproduce a crash in the web process with it.
I&apos;ve looked a bit into it and I found that it&apos;s related to entering AC mode on demand. When loading the page, AC mode gets enabled. If the window is made bigger, the browser will exit AC mode, and if the window is made smaller again the browser will try to enter AC mode again and crash. I&apos;ll keep investigating.

The crash can be avoided by using WEBKIT_DISABLE_COMPOSITING_MODE=1 or WEBKIT_FORCE_COMPOSITING_MODE=1, as both vars disable on demand AC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337854</commentid>
    <comment_count>12</comment_count>
    <who name="ManDay">manday</who>
    <bug_when>2017-08-11 02:25:32 -0700</bug_when>
    <thetext>I tried WEBKIT_DISABLE_COMPOSITING_MODE=1 and the issue is gone for me. It appears we are talking about the same thing now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1339103</commentid>
    <comment_count>13</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-08-16 00:51:52 -0700</bug_when>
    <thetext>*** Bug 174480 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1339117</commentid>
    <comment_count>14</comment_count>
      <attachid>318246</attachid>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-08-16 02:39:48 -0700</bug_when>
    <thetext>Created attachment 318246
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1339125</commentid>
    <comment_count>15</comment_count>
      <attachid>318246</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2017-08-16 03:17:57 -0700</bug_when>
    <thetext>Comment on attachment 318246
Patch

Good catch!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1339138</commentid>
    <comment_count>16</comment_count>
      <attachid>318246</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-16 04:26:42 -0700</bug_when>
    <thetext>Comment on attachment 318246
Patch

Clearing flags on attachment: 318246

Committed r220793: &lt;http://trac.webkit.org/changeset/220793&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1339139</commentid>
    <comment_count>17</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-16 04:26:44 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343883</commentid>
    <comment_count>18</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2017-08-31 00:34:54 -0700</bug_when>
    <thetext>*** Bug 169184 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>318246</attachid>
            <date>2017-08-16 02:39:48 -0700</date>
            <delta_ts>2017-08-16 04:26:42 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-171161-20170816113947.patch</filename>
            <type>text/plain</type>
            <size>1705</size>
            <attacher name="Miguel Gomez">magomez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjIwNzg2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGJkMzYxNjQyZTQzOGZjNTJh
ZGM0YjljZTQ4YzI0MTg4YWRiMTM5ZjMuLjQxODYzOWM4ZmNhNDk0ZGYzNjAxMjI3ZGI0MzAyZGRm
OThhNTA3NjQgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTctMDgtMTYgIE1pZ3VlbCBH
b21leiAgPG1hZ29tZXpAaWdhbGlhLmNvbT4KKworICAgICAgICBbR1RLXSBDcmFzaCB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