Skip to content

Release version of app crashing with out of memory error since upgrading Flutter from v1.0.0 to v1.2.1 #29007

@ghunter99

Description

@ghunter99

Hi

Since upgrading to the latest stable release of Flutter v1.2.1 from v1.0.0
I'm encountering out of memory crashes when my app runs on devices in release mode.

Prior to upgrading Flutter the app ran reliably and has been downloaded >10,000 times in open beta
in the Play Store without reports reports of crashing.

The error I'm getting when I run using:
flutter run --release --verbose
is
[ +674 ms] E/DartVM ( 2112): ../../third_party/dart/runtime/vm/zone.cc: 50: error: Out of memory.

It occurs less frequently on more powerful devices e.g. Samsung Galaxy S9
and more frequently on less powerful devices e.g. Samsung Galaxy J5 Pro

It can occur when using different parts of the app but it is particularly easy to reproduce
went showing screens that display charts using the charts_flutter package

When I downgrade to Flutter v1.0.0 everything if fine.

Has anybody else been reporting this out of memory error?

Thanks,
Gary

Here's my Flutter doctor output:

[✓] Flutter (Channel beta, v1.2.1, on Mac OS X 10.14.2 18C54, locale en-AU)
• Flutter version 1.2.1 at /Users/garyhunter/Documents/Development/flutter
• Framework revision 8661d8a (3 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/garyhunter/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.6.0

[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 33.3.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] Connected device (1 available)
• SM J530Y • 5200803c58ed65eb • android-arm • Android 7.0 (API 24)

• No issues found!

Metadata

Metadata

Labels

c: crashStack traces logged to the consolec: performanceRelates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowcustomer: mulligan (g3)engineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions