WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
272400
ASSERTION FAILED: Unhandled message WebSWServerConnection_PostMessageToServiceWorker to 0
https://bugs.webkit.org/show_bug.cgi?id=272400
Summary
ASSERTION FAILED: Unhandled message WebSWServerConnection_PostMessageToServic...
Alexey Proskuryakov
Reported
2024-04-09 08:18:27 PDT
Open source iOS simulator build always crashes MobileSafari with unhandled message assertion. ASSERTION FAILED: Unhandled message WebSWServerConnection_PostMessageToServiceWorker to 0 This happens on a fresh simulator without any state, so this is just at the launch page, no website.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-04-09 08:19:07 PDT
<
rdar://problem/126136961
>
Alexey Proskuryakov
Comment 2
2024-04-09 08:20:24 PDT
This is on
277221@main
, after `build-webkit --debug --ios-simulator` and `run-safari --debug --ios-simulator`.
Ryosuke Niwa
Comment 3
2024-04-09 22:32:05 PDT
/Tools/Scripts/run-minibrowser --debug --ios-simulator hits the same issue.
Ryosuke Niwa
Comment 4
2024-04-09 22:34:17 PDT
run-webkit-tests works, however.
Ryosuke Niwa
Comment 5
2024-04-09 22:47:31 PDT
Hm... I can, however, launch MobileMiniBrowser.app from Xcode. As far as I can tell, it's loading the locally built WebKit although I can't attach lldb to a WebContent process launched this way for whatever reason.
Ryosuke Niwa
Comment 6
2024-04-09 23:04:27 PDT
This appears to be caused by setupIOSWebKitEnvironment not setting __XPC_* environmental variables. Applying the following diff seems to solve this issue although trunk WebKit immediately hits a debug assertion trying to load any real web page. It can successfully load about:blank and some basic data URLs however. diff --git a/Tools/Scripts/webkitdirs.pm b/Tools/Scripts/webkitdirs.pm index abff7ad462a6..0042c11f70b8 100755 --- a/Tools/Scripts/webkitdirs.pm +++ b/Tools/Scripts/webkitdirs.pm @@ -2999,6 +2999,8 @@ sub setupIOSWebKitEnvironment($) prependToEnvironmentVariableList("DYLD_FRAMEWORK_PATH", $dyldFrameworkPath); prependToEnvironmentVariableList("DYLD_LIBRARY_PATH", $dyldFrameworkPath); + prependToEnvironmentVariableList("__XPC_DYLD_FRAMEWORK_PATH", $dyldFrameworkPath); + prependToEnvironmentVariableList("__XPC_DYLD_LIBRARY_PATH", $dyldFrameworkPath); prependToEnvironmentVariableList("METAL_DEVICE_WRAPPER_TYPE", "1"); setUpGuardMallocIfNeeded();
Ryosuke Niwa
Comment 7
2024-04-09 23:08:33 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/27068
EWS
Comment 8
2024-04-10 09:47:45 PDT
Committed
277304@main
(c1593e5d86c1): <
https://commits.webkit.org/277304@main
> Reviewed commits have been landed. Closing PR #27068 and removing active labels.
Alexey Proskuryakov
Comment 9
2024-04-10 11:19:25 PDT
***
Bug 272401
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug