Bug 295799
| Summary: | WasmGC app throws cast errors and eventually crashes only on Safari | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mouad Debbar <mouad.debbar> |
| Component: | WebAssembly | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Major | CC: | keith_miller, kevmoo, syg, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | All | ||
| OS: | All | ||
Mouad Debbar
This is a Flutter app compiled to WasmGC: https://bouncing.web.app
The app runs okay on Chrome and Firefox, no errors and no crashes. But on Safari (both iOS and Mac), the app throws a few dozen cast errors:
> RuntimeError: ref.cast failed to cast reference to target heap type
The app eventually crashes on Safari.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/156166198>
Alexey Proskuryakov
*** Bug 300942 has been marked as a duplicate of this bug. ***
Shu-yu Guo
Hi Mouad, thanks for the report. Do you still get this error on macOS Tahoe 26? In internal testing we no longer observe this happening on Tahoe.
Mouad Debbar
I'm still on Sequoia 15.7 but I tried on Safari Technology Preview (Release 230) and I'm not seeing any crash! I looked through release notes and found Release 228 enabled Wasm Memory buffer APIs and Wasm JS String builtins. Do you think those are related?
I also tried on iOS 26 Safari and I'm not seeing the crash there either!
Thank you :)