Skip to content

Exception when running default app on Samsung Galaxy Note 5 #6280

@raju-bitter

Description

@raju-bitter

Error message

Seeing a strange behavior for the Galaxy Note 5 only when running the hello world application created by running flutter create. After a reboot of the phone, I can launch the application as expected. But trying to run the same application again for the 2nd time, the app gets stuck at the Flutter Debug Loader screen, with the message: "This is a hot-reload-enabled debug-mode Flutter application...".

The behavior is tied to the hot reload feature, when I disable it by using flutter run --no-hot, everything is working fine on the Galaxy Note 5.

Exception / error message shown: I've seen this exception a couple of times, but that doesn't seem to be the main problem, since the app get's stuck with different error messages as well.

 0 ms • I/flutter : ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
   0 ms • I/flutter : The following ArgumentError was thrown during performLayout():
   0 ms • I/flutter : Invalid argument(s): 0.0

On an Nvidia Shield tablet or Lumigon T3 Android phone everything is working fine. These are the engine and framework revisions:

  • Framework revision 6777766 (57 minutes ago), 2016-10-11 15:51:35
  • Engine revision e8d046e

When running the app as a release using flutter run --release, it launches as expected.

Steps to Reproduce

On a Galaxy Note 5 (Android 6.0.1, build MMB29K.N920SKSU2BPH3), run the following steps:

  1. Reboot the phone
  2. Create a new default app using flutter create helloworld.
  3. Run the app by executing flutter run lib/main.dart or flutter run: Application should run as expected
  4. Stop the app and run again: Application launches with black screen, or with the "Flutter Debug Loader" screen (This is a hot-reload-enabled debug-mode Flutter application...").
  5. Now run the app with hot reload disabled: flutter run --no-hot, and the app will load again.

Logs

flutter run -v output:
Running app after a reboot of device for the first time (everything working fine)
https://gist.github.com/raju-bitter/080e446a570c512133936bbc35e245b0

Running app for second time, now it doesn't launch, stuck at loader screen
https://gist.github.com/raju-bitter/5e978edbf03145715039d7ae2ec193b2

flutter analyze output:

Analyzing lib/main.dart...
No analyzer warnings! (ran in 5.7s)

Flutter Doctor

[✓] Flutter (on Linux, channel master)
    • Flutter at /home/raju/dev/flutter
    • Framework revision 6777766d2d (57 minutes ago), 2016-10-11 15:51:35
    • Engine revision e8d046e9e2
    • Tools Dart version 1.20.0-dev.10.2

[✓] Android toolchain - develop for Android devices (Android SDK 24.0.3)
    • Android SDK at /home/raju/Android/Sdk
    • Platform android-24, build-tools 24.0.3
    • Java(TM) SE Runtime Environment (build 1.8.0_101-b13)

[✓] Atom - a lightweight development environment for Flutter
    • flutter plugin version 0.2.6
    • dartlang plugin version 0.6.40

[-] IntelliJ WebStorm (version 2016.2)
    • Dart plugin not installed; this adds Dart specific functionality.
    • Flutter plugin not installed; this adds Flutter specific functionality.
    • For information about managing plugins, see
      https://www.jetbrains.com/help/idea/2016.2/managing-plugins.html

[✓] Connected devices
    • SM N920S • 05157df5d93b793d • android-arm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions