- 
                Notifications
    You must be signed in to change notification settings 
- Fork 29.4k
Description
Steps to reproduce
Hello, our app is hitting a crash (using Flutter SDK 3.22.2, dart sdk 3.4.3):
_rootRun at third_party/dart/sdk/lib/async/zone.dart:1390:1
_invoke at lib/ui/hooks.dart:314:10
_drawFrame at lib/ui/hooks.dart:283:31
PlatformDispatcher._drawFrame at lib/ui/platform_dispatcher.dart:419:5
_drawFrame at lib/ui/hooks.dart:281:1
SchedulerBinding._handleDrawFrame at /my/path/sdks/flutter/packages/flutter/lib/src/scheduler/binding.dart:1153:3
SchedulerBinding._handleDrawFrame at /my/path/sdks/flutter/packages/flutter/lib/src/scheduler/binding.dart:1171:5
ChildLayoutHelper.layoutChild at /my/path/sdks/flutter/packages/flutter/lib/src/rendering/layout_helper.dart:51:3
ChildLayoutHelper.layoutChild at /my/path/sdks/flutter/packages/flutter/lib/src/rendering/layout_helper.dart:52:11
RenderFlex._computeSizes at /my/path/sdks/flutter/packages/flutter/lib/src/rendering/flex.dart:847:45
RenderSliverPadding.performLayout at /my/path/sdks/flutter/packages/flutter/lib/src/rendering/sliver_padding.dart:327:11
RenderSliverEdgeInsetsPadding.performLayout at /my/path/sdks/flutter/packages/flutter/lib/src/rendering/sliver_padding.dart:121:12
We tried upgrading to Flutter SDK 3.32, and the problem still exists. This only happens on 32-bit devices. Our Flutter codebase has been growing. We use the intl package (https://pub.dev/packages/intl) to generate AppLocalizationDelegate and messages, and we add the generated AppLocalizationDelegate to MaterialApp.localizationsDelegates. I found that after removing some of the localization delegates, the app works normally again.
Anyone has ideas on how to troubleshoot this? I’d really appreciate any guidance. I’m not sure whether this issue is related to Flutter or the Dart VM, so I’m posting it here first.
Test on Redmi 9A
Expected results
App should not crash on 32-bit devices
Actual results
App crash on 32-bit devices
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 15.5 24F74 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.22.2 on channel stable at /Users/my/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (1 year, 2 months ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
    • Android SDK at /Users/my/Library/Android/sdk
    • Platform android-36, build-tools 36.0.0
    • Java binary at: /Users/my/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment JBR-17.0.14+1-1367.22-nomod (build 17.0.14+1-b1367.22)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2025.1)
    • 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.101.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.114.0
[✓] Connected device (4 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 138.0.7204.101
[✓] Network resources
    • All expected network resources are available.