Repository: flutter
Issue: Flutter crashes in debug builds (but not release) on the Hisense C11 Chromebook
Labels: c: crash,platform-android,framework,engine,dependency: dart,platform-chromebook,P2,team-android,triaged-android

I purchased a cheap Hisense Chromebook to test out how Unreal Engine performs on it (and the results are quite surprising!)

Anyways, running a release mode app on the Chromebook runs fine, very smooth, great performance, etc.

Running a debug mode app is... actually quite entertaining. Seems to be a VM bug.

<details><summary>Fun error snippet</summary>

```
E/flutter (19652): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (19652): 'package:flutter/src/foundation/binding.dart': Failed assertion: line 79 pos 12: '!_debugInitialized': is not true.
E/flutter (19652): #0      _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:37:39)
E/flutter (19652): #1      _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:33:5)
E/flutter (19652): #2      BindingBase.initInstances (package:flutter/src/foundation/binding.dart)
E/flutter (19652): #3      _WidgetsFlutterBinding&BindingBase&GestureBinding.initInstances (package:flutter/src/gestures/binding.dart:26:11)
E/flutter (19652): #4      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding.initInstances (package:flutter/src/services/binding.dart:26:11)
E/flutter (19652): #5      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.initInstances (package:flutter/src/scheduler/binding.dart:196:11)
E/flutter (19652): #6      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding.initInstances (package:flutter/src/painting/binding.dart:22:11)
E/flutter (19652): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.initInstances (package:flutter/src/rendering/binding.dart:31:11)
E/flutter (19652): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.initInstances (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #9      new BindingBase (package:flutter/src/foundation/binding.dart:53:5)
E/flutter (19652): #10     new _WidgetsFlutterBinding&BindingBase&GestureBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #11     new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #12     new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #13     new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #14     new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #15     new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #16     new WidgetsFlutterBinding (package:flutter/src/widgets/binding.dart)
E/flutter (19652): #17     WidgetsFlutterBinding.ensureInitialized (package:flutter/src/widgets/binding.dart:911:11)
E/flutter (19652): #18     runApp (package:flutter/src/widgets/binding.dart:703:25)
E/flutter (19652): #19     main (file:///C:/Users/ds841/Realism/naga/lib/main.dart:11:3)
E/flutter (19652): #20     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:279:19)
E/flutter (19652): #21     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)
I/flutter (19652): ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (19652): The following NoSuchMethodError was thrown during a scheduler callback:
I/flutter (19652): The getter '_v4storage' was called on null.
I/flutter (19652): Receiver: null
I/flutter (19652): Tried calling: _v4storage
I/flutter (19652): 
I/flutter (19652): When the exception was thrown, this was the stack:
I/flutter (19652): #0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:46:5)
I/flutter (19652): #1      new Vector4 (file:///C:/Users/ds841/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.0.6/lib/src/vector_math_64/vector4.dart)
I/flutter (19652): #2      TransformLayer.find (package:flutter/src/rendering/layer.dart:787:32)
I/flutter (19652): #3      RenderView._updateSystemChrome (package:flutter/src/rendering/view.dart:215:58)
I/flutter (19652): #4      RenderView.compositeFrame (package:flutter/src/rendering/view.dart:198:9)
I/flutter (19652): #5      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:273:16)
I/flutter (19652): #6      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:627:13)
I/flutter (19652): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter (19652): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (19652): #9      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (19652): #10     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter (19652): #11     _invoke (dart:ui/hooks.dart:125:13)
I/flutter (19652): #12     _drawFrame (dart:ui/hooks.dart:114:3)
I/flutter (19652): ════════════════════════════════════════════════════════════════════════════════════════════════════
```
</details>

Other ones are just crashes in JIT'd code (the stack traces are _very_ short), or aborts in unrelated pieces of code like this one:

[tombstone_00.txt](https://github.com/flutter/flutter/files/2206784/tombstone_00.txt)

This one seems to be a crash in the JIT:

[tombstone_04.txt](https://github.com/flutter/flutter/files/2206796/tombstone_04.txt)

ChromeOS isn't writing the tombstones for some of the crashes, which is kinda disappointing.

<details><summary>/proc/cpuinfo</summary>

```
processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc0d
CPU revision    : 1

processor       : 1
model name      : ARMv7 Processor rev 1 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc0d
CPU revision    : 1

processor       : 2
model name      : ARMv7 Processor rev 1 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc0d
CPU revision    : 1

processor       : 3
model name      : ARMv7 Processor rev 1 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc0d
CPU revision    : 1

Hardware        : Rockchip (Device Tree)
Revision        : 0000
Serial          : 0000000000000000
```
</details>

Flutter Doctor:
```
[√] Connected devices (1 available)
    • Rockchip RK3288 Chromebook • <omitted>:5555 • android-arm • Android 7.1.1 (API 25)
```