Does frb work with safari? #1611
Replies: 6 comments 12 replies
-
Hi, could you please show more errors? As a first guess without more error logs, I guess Safari may not support some Rust WASM features that Rust code needs. flutter_rust_bridge itself does not require anything (since it merely generates some normal code), but Rust (on Web) may require some. |
Beta Was this translation helpful? Give feedback.
-
These are the only logs. [Debug] Installing/Activating first service worker. (flutter.js, line 172) i tested some other rust examples and they worked. here is one example: |
Beta Was this translation helpful? Give feedback.
-
I did not run with obfuscation, unless it's the default mode. below are the logs when a run it in debug mode, but now, i believe the errors are because safari is looking for the devtools, so it might be unreleated to the wasm issue.
|
Beta Was this translation helpful? Give feedback.
-
could it be related to "init" being async? |
Beta Was this translation helpful? Give feedback.
-
how can i disable frb features and which ones would you suggest to disable? and, I'm not sure how to get non-obfuscated stacktrace. are you sure they are obfuscated and not just failing on some code that does not have symbols? |
Beta Was this translation helpful? Give feedback.
-
i added some logging and it appears that crossOriginIsolated is false which causes an exception to be thrown just before loading the WASM module. according to the comment (below), it appears that frb requires that buffers can be shared between workers. Any suggestion on what is needed to make frb work without shared buffers between workers?
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to run flutter_via_create from frb_examples in safari and I getting the below error:
[Error]
ae_ (main.dart.js:6353)
ae0 (main.dart.js:6437)
$0 (main.dart.js:30611)
ajl (main.dart.js:5802)
ajx (main.dart.js:5804)
$1 (main.dart.js:30044)
is safari support with frb?
Beta Was this translation helpful? Give feedback.
All reactions