<?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>276312</bug_id>
          
          <creation_ts>2024-07-08 06:04:29 -0700</creation_ts>
          <short_desc>[WPE][GTK] Internal error fired from WebLoaderStrategy.cpp(559) : internallyFailedLoadTimerFired</short_desc>
          <delta_ts>2026-04-10 01:28:35 -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>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=303704</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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Simon Pena">spena</assigned_to>
          <cc>aperez</cc>
    
    <cc>berto</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mcrha</cc>
    
    <cc>paul</cc>
    
    <cc>spena</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2045061</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-07-08 06:04:29 -0700</bug_when>
    <thetext>In 278778@main I added logging to catch where frequent network errors in GTK port are coming from. Turns out 100% of our &quot;internal errors&quot; are coming from internallyFailedLoadTimerFired in WebLoaderStrategy.cpp:

ERROR: WebKit encountered an internal error. This is a WebKit bug.
/buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(559) : internallyFailedLoadTimerFired

Unfortunately I do not have a reliable reproducer, and the website this occurs most frequently on is internal to Red Hat. That&apos;s going to make debugging difficult. But there are three reasons for such an error:

 * Network process crash (not happening in this case)
 * WebLoaderStrategy::scheduleLoadFromNetworkProcess called with no sourceOrigin (*probably* not?)
 * Messages::NetworkConnectionToWebProcess::ScheduleResourceLoad returns an error code (probably this?)

I don&apos;t see how NetworkConnectionToWebProcess::ScheduleResourceLoad could fail, though.

Not sure how to make further progress on this without a good reproducer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100372</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-03-04 13:07:41 -0800</bug_when>
    <thetext>I see this same error message mentioned in bug #286834, but that is supposed to be fixed in 289567@main, and I just hit this today on YouTube using 290567@main which is newer, so there must be multiple bugs that trigger this error message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149164</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-10-07 11:25:22 -0700</bug_when>
    <thetext>*** Bug 300321 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2161818</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2025-11-28 06:32:58 -0800</bug_when>
    <thetext>I can reproduce this problem very easily with WebKitGTK 2.50.2 using Epiphany 48.5 in application mode to open Discord:

  $ /usr/bin/epiphany --application-mode --profile=$HOME/.local/share/org.gnome.Epiphany.WebApp_HASH https://discord.com/channels/...
  ERROR: WebKit encountered an internal error. This is a WebKit bug.
  Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(618) : void WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired()
  ERROR: WebKit encountered an internal error. This is a WebKit bug.
  Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(618) : void WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired()
  ERROR: WebKit encountered an internal error. This is a WebKit bug.
  Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(618) : void WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired()


Removing the cache directory solves the problem:

  $ rm -rf ~/.cache/org.gnome.Epiphany.WebApp_HASH/
  $ /usr/bin/epiphany --application-mode --profile=$HOME/.local/share/org.gnome.Epiphany.WebApp_HASH https://discord.com/channels/...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2162533</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2025-12-02 06:23:50 -0800</bug_when>
    <thetext>The problem also happens with WebKitGTK 2.50.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166339</commentid>
    <comment_count>5</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2025-12-16 13:24:24 -0800</bug_when>
    <thetext>Also seen on the bots: https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/304475@main%20(17735)/http/tests/webrtc/filtering-ice-candidate-same-origin-frame2-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169632</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-01-06 09:10:19 -0800</bug_when>
    <thetext>(In reply to Nikolas Zimmermann from comment #5)
&gt; Also seen on the bots:
&gt; https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/
&gt; 304475@main%20(17735)/http/tests/webrtc/filtering-ice-candidate-same-origin-
&gt; frame2-crash-log.txt

That log shows a use after free of SoupSession in the (unsandboxed!) network process. I&apos;d say we have much bigger problems there than this loader issue. That&apos;s worth a separate security component bug report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182398</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2026-02-17 09:15:26 -0800</bug_when>
    <thetext>I won&apos;t claim it&apos;s an exact duplicate of https://bugs.webkit.org/show_bug.cgi?id=308051, but could you retest with the fix and see if it has solved these issues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182417</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-02-17 09:59:13 -0800</bug_when>
    <thetext>Not worth testing, because this bug report predates the existence of NetworkMDNSRegisterGLib. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182657</commentid>
    <comment_count>9</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2026-02-18 04:50:09 -0800</bug_when>
    <thetext>webkit2gtk4.1-2.50.4:

&gt; ERROR: WebKit encountered an internal error. This is a WebKit bug.
&gt; /builddir/build/BUILD/webkitgtk-2.50.4-build/webkitgtk-2.50.4/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(618) : void WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired()


I won&apos;t say it&apos;s a bug, at least not &quot;internal error&quot;, because I closed a window which contained a WebKitWebView while it had been loading its content. The app itself had been still running, the window was not the app window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182691</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-02-18 08:17:44 -0800</bug_when>
    <thetext>Ah, that explains a lot.

In that case, probably the solution will be to just not print the error. Of course, we do still want to print the error when the load failure is expected. But load failure because the web view is destroyed is expected and not something we should be printing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182692</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-02-18 08:18:15 -0800</bug_when>
    <thetext>&gt; Of course, we do still want to print the error when the load failure is expected.

I meant: we do still want to print the error when the load failure is unexpected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191657</commentid>
    <comment_count>12</comment_count>
    <who name="Paul van Tilburg">paul</who>
    <bug_when>2026-03-19 02:45:01 -0700</bug_when>
    <thetext>We&apos;ve also been hit by #300321 since Debian updated from 2.48.6 to 2.50.1 and been unable to render Salesforce dashboards properly since.

The original post dismisses a network process crash, but I saw that its PID had been changing. On strace-ing it, I found that it does get SIGKILL-ed by something?

Once the loading/rendering of the dashboard runs into the internal error while loading its resources, it will never render the page again until we nuke the cache.
It feels like the cache gets corrupted somehow?
Even if we &quot;refresh&quot; the page by either destroying the web view and reconstructing it again or loading the original dashboard URL, and that does not help.

Finally, when using the Document Viewer cache model, the dashboard loads and renders properly again, albeit in a much slower fashion.

Is there a way to find out what happens to the network process or cache here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191663</commentid>
    <comment_count>13</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2026-03-19 03:04:54 -0700</bug_when>
    <thetext>FWIW I can no longer reproduce this crash, same computer, same website, similar conditions (well, I&apos;m on WebKitGTK 2.50.4 now, but from what I read other people are having problems with that release). I&apos;m also on a different Debian point release, although I don&apos;t think that fixed anything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191672</commentid>
    <comment_count>14</comment_count>
    <who name="Paul van Tilburg">paul</who>
    <bug_when>2026-03-19 03:25:51 -0700</bug_when>
    <thetext>I should have been more clear about the versions we use:

We can still reproduce it with 2.50.4 (which is the version that Debian 13.4 (Trixie) has), but we haven&apos;t tested 2.50.6 yet as we await its backport.
Interestingly, we cannot reproduce it in Epiphany 48.5 by closing and unclosing the tab (which I assume is similar behaviour to how are application does the refreshing).
For the moment we are stuck with the WebKitGtk version 2.48.5 on Debian 12.13 (Bookworm)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191678</commentid>
    <comment_count>15</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2026-03-19 03:47:00 -0700</bug_when>
    <thetext>&gt;  we haven&apos;t tested 2.50.6 yet as we await its backport.

What a coincidence! :-)

https://people.debian.org/~berto/webkit2gtk-2.50.6-1/

I plan to make the official releases today or tomorrow, but unless I find unexpected surprises during testing, they&apos;re going to be identical to those ones</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191703</commentid>
    <comment_count>16</comment_count>
    <who name="Paul van Tilburg">paul</who>
    <bug_when>2026-03-19 05:11:52 -0700</bug_when>
    <thetext>Thanks for the heads up and your efforts! I tried those out, and it went immediately wrong on the first page &quot;refresh&quot;.

I guess we&apos;ll move ahead and upgrade to Debian Trixie with the cache model set to Document Viewer for now, accept the sluggish page loads and keep looking into why this happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191719</commentid>
    <comment_count>17</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-03-19 07:02:03 -0700</bug_when>
    <thetext>Do you have a URL that can be used to reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191724</commentid>
    <comment_count>18</comment_count>
    <who name="Paul van Tilburg">paul</who>
    <bug_when>2026-03-19 07:34:26 -0700</bug_when>
    <thetext>Unfortunately, I cannot share it, because it is a company&apos;s internal job hiring dashboard :(
And we mainly have issues with these Salesforce dashboards. I had put my hope into the issue also existing for Discord and the Tauri app of #300321.
I will be on the lookout for some public!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191725</commentid>
    <comment_count>19</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2026-03-19 07:47:51 -0700</bug_when>
    <thetext>So it happens in both bookworm and trixie, is that correct?

If you manage to get a stack trace of the error that would be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191726</commentid>
    <comment_count>20</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-03-19 08:03:44 -0700</bug_when>
    <thetext>A stack trace is not possible without a core dump.

OK, reviewing this issue report again, I think you&apos;re hitting this problem as a *side effect* of your network process dying, because it&apos;s expected that this error message should be printed in that case. You mentioned it was receiving SIGKILL, which is very weird. I think you need a separate bug report. (Could it be OOM killer, like systemd-oomd?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2194484</commentid>
    <comment_count>21</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2026-03-27 14:45:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61528</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2198722</commentid>
    <comment_count>22</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-10 01:28:31 -0700</bug_when>
    <thetext>Committed 310907@main (0831c81f23e3): &lt;https://commits.webkit.org/310907@main&gt;

Reviewed commits have been landed. Closing PR #61528 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>