Skip to content

WASM build crashes on window resize #174122

@a-h-mzd

Description

@a-h-mzd

Steps to reproduce

  1. Create a simple app and build it for release
  2. Serve it in any way you want. (Preferably use dart pub global run dhttpd) (important to first build and then serve as normal runs work as expected)
  3. Resize the screen and check the browser console

Expected results

The app should work and not crash.

Actual results

UI crashes and fails to generate new frames.

Code sample

Code sample
flutter create

Screenshots or Video

Screenshots / Video demonstration

-

Logs

Logs
Uncaught RangeError: Maximum call stack size exceeded
    at main.dart.wasm:0x2c0432
    at main.dart.wasm:0x2c04e1
    at main.dart.wasm:0x2c04af
    at main.dart.wasm:0x2c0432
    at main.dart.wasm:0x2c04e1
    at main.dart.wasm:0x2c04af
    at main.dart.wasm:0x2c0432
    at main.dart.wasm:0x2c04e1
    at main.dart.wasm:0x2c56c0
    at main.dart.wasm:0x2c0432

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.35.1, on macOS 15.5 24F74 darwin-arm64, locale en-DE) [384ms]
    • Flutter version 3.35.1 on channel stable at \*
    • Upstream repository ssh://git@github.com/flutter/flutter.git
    • Framework revision 20f8274939 (6 days ago), 2025-08-14 10:53:09 -0700
    • Engine revision 1e9a811bf8
    • Dart version 3.9.0
    • DevTools version 2.48.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,947ms]
    • Android SDK at \*
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_SDK_ROOT = \*
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [1,091ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [11ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2025.1) [10ms]
    • Android Studio at /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 21.0.6+-13391695-b895.109)

[✓] VS Code (version 1.103.1) [9ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.116.0

[✓] Network resources [270ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions