Skip to content
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

CompileError: WebAssembly.compileStreaming(): Requested length 14592 for array.new_fixed too large, maximum is 10000 @+692248 #55872

Closed
dhruvpatidar359 opened this issue May 30, 2024 · 1 comment
Labels
area-dart2wasm Issues for the dart2wasm compiler.

Comments

@dhruvpatidar359
Copy link

I compiled my flutter web app , into wasm and tried to run it locally but it gives the error :
CompileError: WebAssembly.compileStreaming(): Requested length 14592 for array.new_fixed too large, maximum is 10000 @+692248

Please help , i am attaching the github repo and the screen shots .

Debug run :
image

Wasm build run
image

Github Link : https://github.com/dhruvpatidar359/insightX

This tracker is for issues related to:

  • Dart native and web compilers

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.4.1 (stable) (Tue May 21 15:46:25 2024 +0000) on "windows_x64"
  • on windows / "Windows 10 Home Single Language" 10.0 (Build 19045)
  • locale is en-IN

Project info

  • sdk constraint: '>=3.4.1 <4.0.0'
  • dependencies: cupertino_icons, flutter, gap, google_fonts, material_design_icons_flutter, pixel_snap, random_avatar
  • dev_dependencies: flutter_lints, flutter_test

Process info

Memory CPU Elapsed time Command line
29 MB -- dart.exe
119 MB -- dart.exe
78 MB -- dart.exe
4 MB -- dart.exe
34 MB -- dart.exe
95 MB -- dart.exe
  • Whether you are using Chrome, Safari, Firefox, Edge (if applicable) : Using Chrome

Flutter doctor :

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.19045.4291], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.2.5)
[√] Android Studio (version 2022.3)
[√] IntelliJ IDEA Community Edition (version 2021.3)
[√] VS Code (version 1.89.1)
[√] Connected device (3 available)
[√] Network resources

• No issues found!

@mkustermann
Copy link
Member

This was fixed long time ago (april) in c7834b6 but it seems the stable branch was cut before that. I filed a cherry-pick request (see #55873) so it may be included in the next bugfix release on stable channel.

copybara-service bot pushed a commit that referenced this issue May 30, 2024
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 <[email protected]>
Commit-Queue: Martin Kustermann <[email protected]>
Reviewed-by: Ömer Ağacan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart2wasm Issues for the dart2wasm compiler.
Projects
None yet
Development

No branches or pull requests

2 participants