Bug 204940

Summary: STP 96 stops loading pages after a while
Product: WebKit Reporter: Nigel Jones <nigel>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, ap, beidson, bfulgham, cdumez, helmut, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Nigel Jones 2019-12-06 02:35:27 PST
Symptom
 Network connectivity stops completely

I've now experienced this twice.. After using STP 96 for a while (a day or two since reboot this time), I experience a page not loading. nothing unusual there, until one goes to a different browser - for example google chrome, and find that the site/page is fine, and responsive.

In my case I initially saw a failure to load a page from BBC iPlayer ie https://www.bbc.co.uk/iplayer . I then went to my 'gmail' tab to see it report 'not connected. connecting in 1s' . I type into the search bar, and get nothing (no dropdown showing search results, no google search). Going specifically to 'www.apple.com' and I just see the progress bar at perhaps 15% and not moving. I also tried my local router web page - same, and even http://127.0.0.1 

I had been running a video (BBC newsnight) in  PIP mode. It did stop a few times (oddly) and I had to go back to the main frame and do pip again - that was the only oddity.

Using internal display & external 4K.

MBP Pro 2016

Interestingly I don't seem to get an error, just an apparent hang

CPU usage is normal (extremely low)

I have in the order of 20 tabs open. 

Environment
 - Catalina beta 10.15.2 Beta (19C46a)
 - wifi (up to around 600 Mbps)
 - backend router 1 Gbps down / 50 Mbps (up)
 - no additional firewall/AV on mac

I experienced page loading with issues prior to 96 as per https://bugs.webkit.org/show_bug.cgi?id=201822

Unsure what else I can capture. I clicked on 'report an issue' but of course bugreport.apple.com does not load

If I open web inspector I see no activity - I get the usual tabs but the console has nothing in it, nor does timelines or network - even if I try and reload the page. I don't even get a page loading timeout, it just sits there

It's as if the entire  back end/network layer has given up.

In /Logs/DiagnosticLogs I see nothign relating to safari - indeed nothing for the last few hours (as expected)

Twitter, spotify, intellij, chrome, whatsapp, slack etc are all working just fine, so this doesn't seem a systemwide problem, ONLY safari tech preview.

I also tried 'empty caches' - no change
Comment 1 Nigel Jones 2019-12-06 02:37:12 PST
I opened a new page in private mode - it hung too.
Comment 2 Nigel Jones 2019-12-06 02:41:12 PST
A search in console for 'safari' shows this pattern repeating - it may be the cache entries were after I hit clear cache (though it's 10 mins later now) but the network error

unknown error code 1100

May be interesting?

default	10:39:15.501580+0000	deleted		com.apple.SafariTechnologyPreview.CacheDeleteExtension : 0
default	10:39:15.501924+0000	deleted		com.apple.Safari.CacheDeleteExtension : 0
default	10:39:15.502542+0000	deleted	PurgeableSpace result: {
    "CACHE_DELETE_ELAPSED_TIME" = "0.031671062";
    "CACHE_DELETE_ID" = "com.apple.cache_delete";
    "CACHE_DELETE_ITEMIZED_NONPURGEABLE" =     {
        "com.apple.bird.cache-delete" = 299884587;
        "com.apple.logd.cachedelete" = 220202624;
    };
    "CACHE_DELETE_NONPURGEABLE_AMOUNT" = 520087211;
    "CACHE_DELETE_NO_CACHE" = 1;
    "CACHE_DELETE_TOTAL_AVAILABLE" = 93075085727;
    "CACHE_DELETE_TOTAL_FSPURGEABLE" = 68185649152;
    "CACHE_DELETE_URGENCY" = 3;
    "CACHE_DELETE_VOLUME" = "/";
    "com.apple.AssetCache.builtin.CacheDelete" = 122880;
    "com.apple.FileProvider.cache-delete" = 0;
    "com.apple.MOVIE" = 0;
    "com.apple.MUSIC" = 0;
    "com.apple.MailCacheDelete" = 0;
    "com.apple.Music.MusicCacheExtension" = 0;
    "com.apple.PODCAST" = 0;
    "com.apple.ReportMemoryException.CacheDelete" = 0;
    "com.apple.Safari.CacheDeleteExtension" = 0;
    "com.apple.SafariTechnologyPreview.CacheDeleteExtension" = 0;
    "com.apple.TMCacheDelete" = 18442915840;
    "com.apple.TV.T
default	10:39:15.506079+0000	deleted	com.apple.SafariTechnologyPreview.CacheDeleteExtension : 0
default	10:39:15.506918+0000	deleted	com.apple.Safari.CacheDeleteExtension : 0
default	10:39:15.515275+0000	deleted	com.apple.SafariTechnologyPreview.CacheDeleteExtension : 0
default	10:39:15.515599+0000	deleted	com.apple.Safari.CacheDeleteExtension : 0
default	10:39:15.516175+0000	deleted	PurgeableSpace result: {
    "CACHE_DELETE_ELAPSED_TIME" = "0.004875415";
    "CACHE_DELETE_ID" = "com.apple.cache_delete";
    "CACHE_DELETE_ITEMIZED_NONPURGEABLE" =     {
        "com.apple.bird.cache-delete" = 299884587;
        "com.apple.logd.cachedelete" = 220202624;
    };
    "CACHE_DELETE_NONPURGEABLE_AMOUNT" = 520087211;
    "CACHE_DELETE_TOTAL_AVAILABLE" = 93075085727;
    "CACHE_DELETE_TOTAL_FSPURGEABLE" = 68185649152;
    "CACHE_DELETE_URGENCY" = 3;
    "CACHE_DELETE_VOLUME" = "/System/Volumes/Data";
    "com.apple.AssetCache.builtin.CacheDelete" = 122880;
    "com.apple.FileProvider.cache-delete" = 0;
    "com.apple.MOVIE" = 0;
    "com.apple.MUSIC" = 0;
    "com.apple.MailCacheDelete" = 0;
    "com.apple.Music.MusicCacheExtension" = 0;
    "com.apple.PODCAST" = 0;
    "com.apple.ReportMemoryException.CacheDelete" = 0;
    "com.apple.Safari.CacheDeleteExtension" = 0;
    "com.apple.SafariTechnologyPreview.CacheDeleteExtension" = 0;
    "com.apple.TMCacheDelete" = 18442915840;
    "com.apple.TV.TVCacheExtensio
default	10:39:15.563999+0000	deleted		com.apple.SafariTechnologyPreview.CacheDeleteExtension : 0
default	10:39:15.564729+0000	deleted		com.apple.Safari.CacheDeleteExtension : 0
default	10:39:15.565500+0000	deleted	PurgeableSpace result: {
    "CACHE_DELETE_ELAPSED_TIME" = "0.02863251";
    "CACHE_DELETE_ID" = "com.apple.cache_delete";
    "CACHE_DELETE_ITEMIZED_NONPURGEABLE" =     {
        "com.apple.bird.cache-delete" = 299884587;
        "com.apple.logd.cachedelete" = 220202624;
    };
    "CACHE_DELETE_NONPURGEABLE_AMOUNT" = 520087211;
    "CACHE_DELETE_NO_CACHE" = 1;
    "CACHE_DELETE_NO_VOLUME_SIBLINGS" = 1;
    "CACHE_DELETE_TOTAL_AVAILABLE" = 93075085727;
    "CACHE_DELETE_TOTAL_FSPURGEABLE" = 68185649152;
    "CACHE_DELETE_URGENCY" = 3;
    "CACHE_DELETE_VOLUME" = "/";
    "com.apple.AssetCache.builtin.CacheDelete" = 122880;
    "com.apple.FileProvider.cache-delete" = 0;
    "com.apple.MOVIE" = 0;
    "com.apple.MUSIC" = 0;
    "com.apple.MailCacheDelete" = 0;
    "com.apple.Music.MusicCacheExtension" = 0;
    "com.apple.PODCAST" = 0;
    "com.apple.ReportMemoryException.CacheDelete" = 0;
    "com.apple.Safari.CacheDeleteExtension" = 0;
    "com.apple.SafariTechnologyPreview.CacheDeleteExtension" = 0;
    "com.apple.TMCache
default	10:39:15.568996+0000	deleted	com.apple.SafariTechnologyPreview.CacheDeleteExtension : 0
default	10:39:15.569616+0000	deleted	com.apple.Safari.CacheDeleteExtension : 0
default	10:39:15.675525+0000	deleted	com.apple.SafariTechnologyPreview.CacheDeleteExtension : 0
default	10:39:15.676013+0000	deleted	com.apple.Safari.CacheDeleteExtension : 0
default	10:39:15.676991+0000	deleted	PurgeableSpace result: {
    "CACHE_DELETE_ELAPSED_TIME" = "0.050724628";
    "CACHE_DELETE_ID" = "com.apple.cache_delete";
    "CACHE_DELETE_ITEMIZED_NONPURGEABLE" =     {
        "com.apple.bird.cache-delete" = 299884587;
        "com.apple.logd.cachedelete" = 220202624;
    };
    "CACHE_DELETE_NONPURGEABLE_AMOUNT" = 520087211;
    "CACHE_DELETE_NO_VOLUME_SIBLINGS" = 1;
    "CACHE_DELETE_TOTAL_AVAILABLE" = 93075085727;
    "CACHE_DELETE_TOTAL_FSPURGEABLE" = 68185649152;
    "CACHE_DELETE_URGENCY" = 3;
    "CACHE_DELETE_VOLUME" = "/";
    "com.apple.AssetCache.builtin.CacheDelete" = 122880;
    "com.apple.FileProvider.cache-delete" = 0;
    "com.apple.MOVIE" = 0;
    "com.apple.MUSIC" = 0;
    "com.apple.MailCacheDelete" = 0;
    "com.apple.Music.MusicCacheExtension" = 0;
    "com.apple.PODCAST" = 0;
    "com.apple.ReportMemoryException.CacheDelete" = 0;
    "com.apple.Safari.CacheDeleteExtension" = 0;
    "com.apple.SafariTechnologyPreview.CacheDeleteExtension" = 0;
    "com.apple.TMCacheDelete" = 18442915840;
    "com.
default	10:39:15.989686+0000	com.apple.WebKit.WebContent	CDN - initialize client context retry
default	10:39:15.989773+0000	com.apple.WebKit.WebContent	CDN - client setup_remote_port
default	10:39:15.989833+0000	com.apple.WebKit.WebContent	CDN - Bootstrap Port: 1799
default	10:39:15.990175+0000	com.apple.WebKit.WebContent	CDN - setup_remote_port: bootstrap_look_up() => unknown error code (1100)
default	10:39:16.069993+0000	com.apple.WebKit.WebContent	CDN - initialize client context retry
default	10:39:16.070076+0000	com.apple.WebKit.WebContent	CDN - client setup_remote_port
default	10:39:16.070135+0000	com.apple.WebKit.WebContent	CDN - Bootstrap Port: 1799
default	10:39:16.070514+0000	com.apple.WebKit.WebContent	CDN - setup_remote_port: bootstrap_look_up() => unknown error code (1100)
default	10:39:17.072514+0000	com.apple.WebKit.WebContent	Current memory footprint: 19 MB
default	10:39:17.088948+0000	com.apple.WebKit.WebContent	CDN - initialize client context retry
default	10:39:17.089016+0000	com.apple.WebKit.WebContent	CDN - client setup_remote_port
default	10:39:17.089065+0000	com.apple.WebKit.WebContent	CDN - Bootstrap Port: 1799
default	10:39:17.089304+0000	com.apple.WebKit.WebContent	CDN - setup_remote_port: bootstrap_look_up() => unknown error code (1100)
default	10:39:17.219238+0000	com.apple.WebKit.WebContent	Current memory footprint: 19 MB
default	10:39:17.585489+0000	com.apple.WebKit.WebContent	Current memory footprint: 14 MB
default	10:39:18.189248+0000	com.apple.WebKit.WebContent	CDN - initialize client context retry
default	10:39:18.189336+0000	com.apple.WebKit.WebContent	CDN - client setup_remote_port
default	10:39:18.189397+0000	com.apple.WebKit.WebContent	CDN - Bootstrap Port: 1799
default	10:39:18.189765+0000	com.apple.WebKit.WebContent	CDN - setup_remote_port: bootstrap_look_up() => unknown error code (1100)
default	10:39:19.289283+0000	com.apple.WebKit.WebContent	CDN - initialize client context retry
default	10:39:19.289393+0000	com.apple.WebKit.WebContent	CDN - client setup_remote_port
default	10:39:19.289484+0000	com.apple.WebKit.WebContent	CDN - Bootstrap Port: 1799
default	10:39:19.289860+0000	com.apple.WebKit.WebContent	CDN - setup_remote_port: bootstrap_look_up() => unknown error code (1100)
default	10:39:19.291667+0000	com.apple.WebKit.WebContent	CDN - initialize client context retry
default	10:39:19.291743+0000	com.apple.WebKit.WebContent	CDN - client setup_remote_port
default	10:39:19.291802+0000	com.apple.WebKit.WebContent	CDN - Bootstrap Port: 1799
default	10:39:19.292557+0000	com.apple.WebKit.WebContent	CDN - setup_remote_port: bootstrap_look_up() => unknown error code (1100)
default	10:39:19.635272+0000	com.apple.WebKit.WebContent	Current memory footprint: 39 MB
Comment 3 Nigel Jones 2019-12-06 02:45:32 PST
Further console messages

Safari Technology Preview:

error	10:38:19.088850+0000	Safari Technology Preview	RWIServiceLockdownConnection: failed to read bytes from webinspectord, so disconnecting: Undefined error: 0
error	10:38:19.089227+0000	Safari Technology Preview	RWIServiceDeviceConnection: No connection to start
error	10:39:29.372526+0000	Safari Technology Preview	RWIServiceLockdownConnection (Indirect): received notification: AMDNotificationFaceplant
error	10:39:47.487529+0000	com.apple.WebKit.Networking	Task <897E83E0-C7D2-4961-809B-3A08C3D741EE>.<3209> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8ef0ed0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:39:50.992605+0000	CacheDeleteExtension	Bootstrapping; external subsystem UIKit_PKSubsystem refused setup
error	10:40:27.151398+0000	Safari Technology Preview	RWIServiceLockdownConnection: failed to read bytes from webinspectord, so disconnecting: Undefined error: 0
error	10:40:27.152030+0000	Safari Technology Preview	RWIServiceDeviceConnection: No connection to start
error	10:40:42.534024+0000	com.apple.WebKit.Networking	Task <0C4434E6-9384-43D3-8DC4-61FB7D886939>.<3210> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8d665f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:41:37.769985+0000	Safari Technology Preview	RWIServiceLockdownConnection (Indirect): received notification: AMDNotificationFaceplant
error	10:42:12.923399+0000	com.apple.WebKit.Networking	Task <02A29610-2BBE-4814-A904-DF7905549592>.<3212> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8e203e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:42:19.237796+0000	Safari Technology Preview	RWIServiceLockdownConnection: failed to read bytes from webinspectord, so disconnecting: Undefined error: 0
error	10:42:19.238626+0000	Safari Technology Preview	RWIServiceDeviceConnection: No connection to start
error	10:42:46.674135+0000	com.apple.WebKit.Networking	Task <51AF5FE4-40F4-4700-BEAA-8148A39FEA1A>.<3213> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8686960 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:43:01.422496+0000	com.apple.WebKit.Networking	Task <BC66AC1F-FB0E-4213-818E-A192871884EF>.<3214> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8ac16a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:43:29.154937+0000	Safari Technology Preview	RWIServiceLockdownConnection (Indirect): received notification: AMDNotificationFaceplant
error	10:43:29.776354+0000	com.apple.WebKit.Networking	Task <6C39F4F7-714B-4763-80B1-97F0E2F82E8D>.<3215> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8e21cf0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:43:43.738194+0000	com.apple.WebKit.Networking	Task <53007A37-BBF9-4C22-A098-5E609412650C>.<3216> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x7f96f8e21540 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _kCFStreamErrorDomainKey=4}
error	10:43:49.758014+0000	Safari Technology Preview	RWIServiceLockdownConnection: failed to read bytes from webinspectord, so disconnecting: Undefined error: 0
error	10:43:49.758420+0000	Safari Technology Preview	RWIServiceDeviceConnection: No connection to start


And for Webkit:

error	10:38:22.993284+0000	kernel	Sandbox: com.apple.WebKit(9516) deny(1) mach-lookup com.apple.CoreDisplay.Notification
error	10:38:33.695888+0000	kernel	Sandbox: com.apple.WebKit(9516) deny(1) mach-lookup com.apple.CoreDisplay.Notification
error	10:38:42.987098+0000	kernel	Sandbox: com.apple.WebKit(9494) deny(1) mach-lookup com.apple.CoreDisplay.Notification
error	10:38:53.187951+0000	kernel	Sandbox: com.apple.WebKit(9516) deny(1) mach-lookup com.apple.CoreDisplay.Notification
Comment 4 Nigel Jones 2019-12-06 02:46:50 PST
If I can/remember I will leave up in broken state in case the team have any further debug info to request that would be useful, but it's unlikely I'll manage this beyond the day...
Comment 5 Nigel Jones 2019-12-06 12:17:47 PST
I left STP up all day (whilst using regular safari mostly) and can confirm it's still in the same state - no no error/timeout pages came up, the pages I left 'loading' still have a ~15% progress bar.
Comment 6 Radar WebKit Bug Importer 2019-12-06 13:41:19 PST
<rdar://problem/57711586>
Comment 7 Alexey Proskuryakov 2019-12-07 13:50:22 PST
Thank you for the report! The most useful thing to do right after getting an error like this is to collect a sysdiagnose. You can press Cmd+Opt+Ctrl+Shift+Period or run "sudo sysdiagnose" in Terminal.

Once you have it, please file a report with Apple via <https://feedbackassistant.apple.com>, attaching it there. Once you have the number for that report, please post it here to make it easier for us to find.
Comment 8 Nigel Jones 2019-12-08 03:36:35 PST
Thanks - I will do that if it reoccurs. Unfortunately just before that last post (sat eve in uk) I decided to restart STP (which worked fine) and shortly afterwards applied 19C56a.

I'm using STP now but can't capture further info until/if it reoccurs. I'll bear those instructions in mind if it does so thanks.
Comment 9 Helmut Januschka 2020-10-17 12:30:41 PDT
we at www.krone.at expierence the exact same error with same fragments inside the konsole log  - on iOS and MacOS Safari 14+ (even in beta2 of 14.0.1)

i filed a feedback with a full sysdiag

FB8806325
Comment 10 Brent Fulgham 2022-06-23 13:39:51 PDT
(In reply to Helmut Januschka from comment #9)
> we at www.krone.at expierence the exact same error with same fragments
> inside the konsole log  - on iOS and MacOS Safari 14+ (even in beta2 of
> 14.0.1)
> 
> i filed a feedback with a full sysdiag
> 
> FB8806325

I just ran across this bug. It's been a couple of years since an update -- is this still an issue?