-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-dart2wasmIssues for the dart2wasm compiler.Issues for the dart2wasm compiler.
Description
When compiling our real application and them trying to load the WASM file main.dart.wasm
it fails with
Uncaught (in promise) CompileError: WebAssembly.compileStreaming(): Requested length 10890 for array.new_fixed too large, maximum is 10000 @+4396589
flutter doctor -v
[✓] Flutter (Channel main, 3.22.0-5.0.pre.54, on macOS 14.3 23D56 darwin-arm64, locale en-DE)
• Flutter version 3.22.0-5.0.pre.54 on channel main at /Users/dennis/develop/bin/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 98d23f709f (15 hours ago), 2024-04-06 14:51:23 -0700
• Engine revision 605b3f35fa
• Dart version 3.5.0 (build 3.5.0-18.0.dev)
• DevTools version 2.34.1
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/dennis/Library/Android/sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Users/dennis/Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.1)
• IntelliJ at /Users/dennis/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 76.3.4
• Dart plugin version 232.9559.10
[✓] VS Code (version 1.85.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.3 23D56 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.3 23D56 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.107
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
#### General info
- Dart 3.5.0-18.0.dev (dev) (Wed Apr 3 13:07:15 2024 -0700) on "macos_arm64"
- on macos / Version 14.3 (Build 23D56)
- locale is en-DE
#### Process info
| Memory | CPU | Elapsed time | Command line |
| -----: | ---: | -----------: | ------------------------------------------------------------------------------------------ |
| 27 MB | 0.0% | 10:03 | dart language-server --client-id=IntelliJ-IDEA --client-version=IU-232.9559.62 --protocol=analyzer |
| 45 MB | 0.0% | 05:20 | dart language-server --client-id=IntelliJ-IDEA --client-version=IU-232.9559.62 --protocol=analyzer |
| 35 MB | 0.0% | 17:08 | flutter_tools.snapshot daemon |
| 39 MB | 0.0% | 05:21 | flutter_tools.snapshot daemon |
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 😌
HenningKuehl
Metadata
Metadata
Assignees
Labels
area-dart2wasmIssues for the dart2wasm compiler.Issues for the dart2wasm compiler.