-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart2wasm fails with WebAssembly.compileStreaming: Requested length for array.new_fixed too large #55396
Comments
These issues may be related?! |
This is actually easy to reproduce :D Steps to reproduce:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Flutter web app</title>
<script src="flutter.js"></script>
</head>
<body>
<script>
{{flutter_build_config}}
_flutter.loader.load();
</script>
</body>
</html>
|
Hmm fuck, I can no longer reproduce it with the example app but still with our actual application ... |
cc @osa1 |
@IchordeDionysos Could you provide the .wasm? I don't need the source code, just the Wasm should be enough to find where this |
@osa1 here you go, couldn't upload to GitHub ...: |
@IchordeDionysos I don't have access to the file. |
@osa1 ahh sorry should now work |
@IchordeDionysos Thanks, I can access the file now but it doesn't have any symbols.. Would it be possible for you to build with (I don't know why Flutter doesn't allow |
@osa1 this command I've uploaded a new file version in the file/link above |
Thanks. It looks like the large arrays are for sdk/pkg/dart2wasm/lib/constants.dart Lines 435 to 454 in b574dab
I'll implement this. |
Currently `array.new_fixed` has the upper size limit of 10,000. Larger arrays need to be initialized with `array.new` or `array.new_default`. We handle this correctly in constant list and strings, but we didn't handle it in `WasmArray.literal` consturctor. This CL fixes it. Fixes dart-lang#55396.
Currently `array.new_fixed` has the upper size limit of 10,000. Larger arrays need to be initialized with `array.new` or `array.new_default`. We handle this correctly in constant list and strings, but we didn't handle it in `WasmArray.literal` consturctor. This CL fixes it. Fixes dart-lang#55396.
Currently `array.new_fixed` has the upper size limit of 10,000. Larger arrays need to be initialized with `array.new` or `array.new_default`. We handle this correctly in constant list and strings, but we didn't handle it in `WasmArray.literal` consturctor. This CL fixes it. Bug: #55396 Bug: #55872 Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/361780 Cherry-pick-request: #55873 Change-Id: I97c8dc104cb4231ba0508d9cd87690cf1bbe95a9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368644 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Ömer Ağacan <omersa@google.com>
When compiling our real application and them trying to load the WASM file
main.dart.wasm
it fails withflutter doctor -v
dart info
Tested on Chrome 123.0.6312.107
I'd like to submit a reproducible example, though the issue comes up when building our whole Flutter Web App (with some adjustments like removing packages depending on ffi, adjusting some
yield*
usages).Don't really know where to start building a reproducible example ...
If there is anything that I can do to get to the bottom of this let me know 😌
The text was updated successfully, but these errors were encountered: