text:
Android emulator crashes when opening the camera (CameraPreview widget)

Steps to Reproduce
Unfortunately I didn't manage to create a simple repo to reproduce.
But here is the error the output of Dart: Capture Logs.
I think the problem is around W/Gralloc3(12768): allocator 3.x is not supported.

dart: capture logs
Dart Code extension: 3.8.1
Flutter extension: 3.8.1 (not activated)
VS Code: 1.43.0
Platform: mac
Workspace type: Flutter
Multi-root?: false
Dart SDK:
    Loc: /Users/bobby/flutter/bin/cache/dart-sdk
    Ver: 2.8.0-edge.fc3af737c75931908521e9c36358a151408d6084
Flutter SDK:
    Loc: /Users/bobby/flutter
    Ver: 1.14.6
HTTP_PROXY: undefined
NO_PROXY: undefined

[6:22:57 PM] [Analyzer] [Info] ==> {"id":"7895","method":"analysis.getHover","params":{"file":"/Users/bobby/github/flutter/myapp/lib/mobile/services/syncService.dart","offset":772},"clientRequestTime":1583922177439}
[6:22:57 PM] [Analyzer] [Info] <== {"id":"7895","result":{"hovers":[{"offset":768,"length":6,"elementDescription":"Client client","elementKind":"local variable","isDeprecated":false,"staticType":"Client"}]}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Navigation","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922179790,"extensionData":{"route":{"description":"_ModalBottomSheetRoute<dynamic>","settings":{"name":null,"isInitialRoute":false}}}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922179964,"extensionData":{"number":496,"startTime":28180847669,"elapsed":56853,"build":41036,"raster":14843}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922179966,"extensionData":{"number":497,"startTime":28180901501,"elapsed":41979,"build":18033,"raster":21771}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922179966,"extensionData":{"number":498,"startTime":28180919424,"elapsed":43726,"build":9883,"raster":19495}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922179966,"extensionData":{"number":499,"startTime":28180955315,"elapsed":31303,"build":10462,"raster":20348}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922179966,"extensionData":{"number":500,"startTime":28180973258,"elapsed":34491,"build":9911,"raster":20841}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922180090,"extensionData":{"number":501,"startTime":28180991018,"elapsed":42474,"build":14431,"raster":25446}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922180091,"extensionData":{"number":502,"startTime":28181007807,"elapsed":45593,"build":10903,"raster":19491}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922180091,"extensionData":{"number":503,"startTime":28181042462,"elapsed":39456,"build":14704,"raster":23981}}}}
[6:23:00 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Frame","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922180091,"extensionData":{"number":504,"startTime":28181077360,"elapsed":31405,"build":11218,"raster":19611}}}}
[6:23:01 PM] [Observatory] [Info] [Dev Mobile] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Extension","event":{"type":"Event","kind":"Extension","extensionKind":"Flutter.Navigation","isolate":{"type":"@Isolate","id":"isolates\/676839589156607","name":"main","number":"676839589156607"},"timestamp":1583922181038,"extensionData":{"route":{"description":"MaterialPageRoute<dynamic>(null)","settings":{"name":null,"isInitialRoute":false}}}}}}
[6:23:01 PM] [FlutterRun] [Info] [Dev Mobile] <== I/CameraManagerGlobal(12768): Connecting to camera service
[6:23:01 PM] [FlutterRun] [Info] [Dev Mobile] <== W/Gralloc3(12768): allocator 3.x is not supported
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== E/OpenGLRenderer(12768): [SurfaceTexture-0-12768-0] attachToContext: invalid current EGLDisplay
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== E/flutter (12768): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== E/flutter (12768): 	at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:294)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== E/flutter (12768):
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== F/flutter (12768): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(123)] Check failed: CheckException(env).
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== F/libc    (12768): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 12813 (Thread-2), pid 12768 (de)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.191030.002/5978551:userdebug/dev-keys'
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== Revision: '0'
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== ABI: 'x86'
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== Timestamp: 2020-03-11 18:23:01+0800
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== pid: 12768, tid: 12813, name: Thread-2  >>> net.myapp <<<
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== uid: 10134
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(123)] Check failed: CheckException(env).
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== '
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==     eax 00000000  ebx 000031e0  ecx 0000320d  edx 00000006
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==     edi e8b0433e  esi be602d20
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==     ebp eafd0ad0  esp be602cc8  eip eafd0ad9
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <== backtrace:
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #00 pc 00000ad9  [vdso] (__kernel_vsyscall+9)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #01 pc 00092328  /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #02 pc 000ad651  /apex/com.android.runtime/lib/bionic/libc.so (abort+193) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #03 pc 01179463  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #04 pc 01166ac0  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #05 pc 0115e1ab  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #06 pc 0115dfa3  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #07 pc 01170ccd  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #08 pc 0116d6aa  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #09 pc 011710c5  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #10 pc 0116d6aa  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #11 pc 0116fa59  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #12 pc 0116d6aa  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #13 pc 011710c5  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #14 pc 0116d6aa  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #15 pc 0116d659  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #16 pc 01173638  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #17 pc 01172b5f  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #18 pc 01172b2a  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #19 pc 01171e76  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #20 pc 01172025  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #21 pc 0116e837  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #22 pc 0116d5e1  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #23 pc 01170f47  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #24 pc 0116d5e1  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #25 pc 01170f47  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #26 pc 0116d5e1  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #27 pc 0116d56f  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #28 pc 0116dfa7  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #29 pc 0116ac55  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #30 pc 011bfc2c  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #31 pc 011c04af  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #32 pc 011c0ee0  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #33 pc 01172b5f  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #34 pc 011bff6f  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #35 pc 011bfd63  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #36 pc 011cbb56  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #37 pc 01177b69  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #38 pc 0117a1b9  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #39 pc 0117a0fe  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #40 pc 011807b0  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #41 pc 011807de  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #42 pc 00018487  /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39) (BuildId: 288ba3aff5b46dbd7e74be954af88b83)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #43 pc 00019414  /system/lib/libutils.so (android::Looper::pollInner(int)+1044) (BuildId: 288ba3aff5b46dbd7e74be954af88b83)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #44 pc 00018f4e  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+62) (BuildId: 288ba3aff5b46dbd7e74be954af88b83)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #45 pc 00013780  /system/lib/libandroid.so (ALooper_pollOnce+96) (BuildId: 2b4362d3e0db6d6e8fbea7ad8414fbae)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #46 pc 011806ed  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #47 pc 0117a0ac  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #48 pc 01179c0c  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #49 pc 0117ddc1  /data/app/net.myapp-NJRxP6Z7toeVm4T_c8f21Q==/lib/x86/libflutter.so (BuildId: d95e01b027161029)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #50 pc 0011a8e5  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+53) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
[6:23:02 PM] [FlutterRun] [Info] [Dev Mobile] <==       #51 pc 000af6a7  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] Observatory connection closed: 1006 ()
[6:23:03 PM] [FlutterRun] [Info] [Dev Mobile] <== Lost connection to device.
[6:23:03 PM] [FlutterRun] [Info] [Dev Mobile] <== [{"event":"app.stop","params":{"appId":"3792fed0-da87-4c6c-a292-d7bd9de5936c"}}]
[6:23:03 PM] [FlutterRun] [Info] [Dev Mobile] Process terminated! null, SIGTERM
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] Process exited (sigterm)
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] Disconnect requested!
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] TERM: Requested to terminate with SIGINT...
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] TERM: Did not need to terminate processes
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] TERM: Removing all stored data...
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] TERM: Waiting for process to finish...
[6:23:03 PM] [Observatory] [Info] [Dev Mobile] TERM: Disconnecting...
[6:23:03 PM] [General] [Info] Debugger:SessionDuration timing: 121681ms (Flutter)

android/app/build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
    compileSdkVersion 28

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        applicationId "net.myapp"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    signingConfigs {
        release {
             if (System.getenv()["CI"]) { // CI=true is exported by Codemagic
                storeFile file(System.getenv()["FCI_BUILD_DIR"] + "/keystore.jks")
                storePassword System.getenv()["FCI_KEYSTORE_PASSWORD"]
                keyAlias System.getenv()["FCI_KEY_ALIAS"]
                keyPassword System.getenv()["FCI_KEY_PASSWORD"]
            } else {
                keyAlias keystoreProperties['keyAlias']
                keyPassword keystoreProperties['keyPassword']
                storeFile file(keystoreProperties['storeFile'])
                storePassword keystoreProperties['storePassword']
            }
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}

flutter analyze
Analyzing MyApp...

  info • 'document' is deprecated and shouldn't be used. The "document" option has been deprecated, use "documentNode" instead •
          lib/web/screens/template/fields/fields.form.dart:25:29 • deprecated_member_use

1 issue found. (ran in 2.5s)

flutter doctor -v
[✓] Flutter (Channel beta, v1.14.6, on Mac OS X 10.15.3 19D76, locale en-GB)
    • Flutter version 1.14.6 at /Users/bobby/flutter
    • Framework revision fabeb2a16f (6 weeks ago), 2020-01-28 07:56:51 -0800
    • Engine revision c4229bfbba
    • Dart version 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)

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

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

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

[!] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.43.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.1

[✓] Connected device (3 available)
    • Android SDK built for x86 • emulator-5554 • android-x86    • Android 10 (API 29) (emulator)
    • Chrome                    • chrome        • web-javascript • Google Chrome 80.0.3987.132
    • Web Server                • web-server    • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

Hi @Gujie
To better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

@TahaTesser I've finally managed to create a simple repo to reproduce the issue: https://github.com/Gujie/camera_crash

Hi @Gujie
I've tried to reproduce the issue you are describing with this code

screenshot

logs
 nevercode@Nevercodes-Air  ~/beta_project  flutter_beta run --verbose                                                                                 1 ↵  668  13:18:11
[ +138 ms] Warning! The 'flutter' tool you are currently running is from a different Flutter repository than the one last used by this package. The repository from which the
'flutter' tool
                    is currently executing will be used instead.
                      running Flutter tool: /Users/nevercode/development/flutter_beta
                      previous reference  : /Users/nevercode/development/flutter
                    This can happen when you have multiple copies of flutter installed. Please check your system path to verify that you are running the expected version (run
'flutter --version' to
                    see which flutter is on your path).

[ +106 ms] executing: [/Users/nevercode/development/flutter_beta/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +92 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] fabeb2a16f1d008ab8230f450c49141d35669798
[        ] executing: [/Users/nevercode/development/flutter_beta/] git describe --match v*.*.* --first-parent --long --tags
[  +55 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v1.14.6-0-gfabeb2a16
[  +48 ms] executing: [/Users/nevercode/development/flutter_beta/] git rev-parse --abbrev-ref --symbolic @{u}
[  +26 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/beta
[        ] executing: [/Users/nevercode/development/flutter_beta/] git ls-remote --get-url origin
[  +26 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +209 ms] executing: [/Users/nevercode/development/flutter_beta/] git rev-parse --abbrev-ref HEAD
[  +30 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[  +41 ms] executing: sw_vers -productName
[  +40 ms] Exit code 0 from: sw_vers -productName
[        ] Mac OS X
[        ] executing: sw_vers -productVersion
[  +31 ms] Exit code 0 from: sw_vers -productVersion
[        ] 10.15.3
[   +1 ms] executing: sw_vers -buildVersion
[  +31 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 19D76
[ +130 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +28 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +132 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb devices -l
[  +24 ms] Exit code 0 from: /Users/nevercode/Library/Android/sdk/platform-tools/adb devices -l
[        ] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:6
[  +74 ms] executing: /Users/nevercode/development/flutter_beta/bin/cache/artifacts/libimobiledevice/idevice_id -h
[ +238 ms] executing: /usr/bin/xcode-select --print-path
[  +14 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[   +2 ms] /Applications/Xcode.app/Contents/Developer
[   +4 ms] executing: /usr/bin/xcodebuild -version
[+1632 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[        ] Xcode 11.3.1
           Build version 11C504
[  +11 ms] /usr/bin/xcrun simctl list --json devices
[ +188 ms] /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +275 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +10 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +237 ms] Found plugin camera at /Users/nevercode/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+4/
[ +221 ms] Found plugin camera at /Users/nevercode/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+4/
[ +336 ms] Generating /Users/nevercode/beta_project/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +247 ms] ro.hardware = ranchu
[ +159 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +65 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[  +78 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +187 ms] Exit code 0 from: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           03-16 13:18:48.019 I/zygote  ( 1710): Explicit concurrent copying GC freed 1659(97KB) AllocSpace objects, 0(0B) LOS objects, 72% free, 2353KB/8497KB, paused 14us total
           28.229ms
[  +17 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb version
[   +2 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time -T 03-16 13:18:48.019
[  +57 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as /Users/nevercode/Library/Android/sdk/platform-tools/adb
[   +6 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb start-server
[ +115 ms] Building APK
[ +111 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[   +6 ms] Using gradle from /Users/nevercode/beta_project/android/gradlew.
[   +1 ms] /Users/nevercode/beta_project/android/gradlew mode: 33261 rwxr-xr-x.
[  +94 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +27 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Cont
ents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","WorkingDirecto
ry":"$APP_PACKAGE\/Contents\/bin","MainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudio3.6","idea.executable":"studio","idea.platform.prefix":"A
ndroidStudio","idea.home.path":"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An application in Android Studio requests access to the user's Desktop
folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-192.7142.36.36.6200805","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in
Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBund
lePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"3.6","NSMicrophoneUsageDescription":"An application in Android
Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android
Studio requests access to the user's location
information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifie
r":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsag
eDescription":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests
access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network
volume.","CFBundleGetInfoString":"Android Studio 3.6, build AI-192.7142.36.36.6200805. Copyright JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An
application in Android Studio requests access to files on a removable volume."}
[  +43 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ +377 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[        ] openjdk version "1.8.0_212-release"
           OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
           OpenJDK 64-Bit Server VM (build 25.212-b4-5784211, mixed mode)
[   +4 ms] executing: [/Users/nevercode/beta_project/android/] /Users/nevercode/beta_project/android/gradlew -Pverbose=true -Ptarget=/Users/nevercode/beta_project/lib/main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[+12423 ms] > Task :app:compileFlutterBuildDebug
[        ] [ +104 ms] executing: [/Users/nevercode/development/flutter_beta/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [ +158 ms] Warning! The 'flutter' tool you are currently running is from a different Flutter repository than the one last used by this package. The repository from
which the 'flutter' tool is currently executing will be used instead.
[   +1 ms]              running Flutter tool: /Users/nevercode/development/flutter_beta
[        ]              previous reference  : /Users/nevercode/development/flutter
[        ]            This can happen when you have multiple copies of flutter installed. Please check your system path to verify that you are running the expected version (run
'flutter --version' to see which flutter is on your path).
[ +170 ms] [ +202 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +1 ms] fabeb2a16f1d008ab8230f450c49141d35669798
[        ] [        ] executing: [/Users/nevercode/development/flutter_beta/] git describe --match v*.*.* --first-parent --long --tags
[  +99 ms] [ +101 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v1.14.6-0-gfabeb2a16
[ +102 ms] [  +18 ms] executing: [/Users/nevercode/development/flutter_beta/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/beta
[        ] [        ] executing: [/Users/nevercode/development/flutter_beta/] git ls-remote --get-url origin
[        ] [  +24 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[ +298 ms] [ +318 ms] executing: [/Users/nevercode/development/flutter_beta/] git rev-parse --abbrev-ref HEAD
[  +97 ms] [  +25 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] beta
[ +100 ms] [ +136 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [  +14 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +22 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +94 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [  +35 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +498 ms] [ +503 ms] Initializing file store
[        ] [  +33 ms] Done initializing file store
[+7899 ms] [+7877 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[        ] [  +41 ms] /Users/nevercode/development/flutter_beta/bin/cache/dart-sdk/bin/dart
/Users/nevercode/development/flutter_beta/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/nevercode/development/flutter_beta/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true
-Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --no-link-platform --packages /Users/nevercode/beta_project/.packages --output-dill
/Users/nevercode/beta_project/.dart_tool/flutter_build/c687a0f7c1a1dbef3117f37bd48c3fa4/app.dill --depfile
/Users/nevercode/beta_project/.dart_tool/flutter_build/c687a0f7c1a1dbef3117f37bd48c3fa4/kernel_snapshot.d package:beta_project/main.dart
[+29905 ms] [+29902 ms] kernel_snapshot: Complete
[+1598 ms] [+1570 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged, InvalidatedReason.outputMissing}
[ +596 ms] [ +541 ms] debug_android_application: Complete
[        ] [  +47 ms] Persisting file store
[        ] [  +22 ms] Done persisting file store
[        ] [  +16 ms] build succeeded.
[  +99 ms] [  +61 ms] "flutter assemble" took 40,897ms.
[ +300 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :camera:preBuild UP-TO-DATE
[        ] > Task :camera:preDebugBuild UP-TO-DATE
[        ] > Task :camera:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[  +99 ms] > Task :camera:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[  +97 ms] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :camera:mergeDebugShaders UP-TO-DATE
[        ] > Task :camera:compileDebugShaders UP-TO-DATE
[        ] > Task :camera:generateDebugAssets UP-TO-DATE
[        ] > Task :camera:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[+1096 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :camera:generateDebugResValues UP-TO-DATE
[        ] > Task :camera:compileDebugRenderscript NO-SOURCE
[        ] > Task :camera:generateDebugResources UP-TO-DATE
[        ] > Task :camera:packageDebugResources UP-TO-DATE
[+2398 ms] > Task :app:createDebugCompatibleScreenManifests
[        ] > Task :camera:checkDebugManifest UP-TO-DATE
[        ] > Task :camera:processDebugManifest UP-TO-DATE
[ +295 ms] > Task :app:processDebugManifest
[ +102 ms] > Task :app:mergeDebugResources
[   +1 ms] > Task :camera:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :camera:generateDebugBuildConfig
[  +96 ms] > Task :camera:javaPreCompileDebug
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :camera:processDebugJavaRes NO-SOURCE
[ +399 ms] > Task :camera:generateDebugRFile
[+1301 ms] > Task :app:processDebugResources
[+7700 ms] > Task :camera:compileDebugJavaWithJavac
[        ] Note: /Users/nevercode/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+4/android/src/main/java/io/flutter/plugins/camera/CameraPlugin.java uses or
overrides a deprecated API.
[   +1 ms] Note: Recompile with -Xlint:deprecation for details.
[ +299 ms] > Task :camera:bundleLibResDebug
[  +97 ms] > Task :camera:bundleLibCompileDebug
[+8498 ms] > Task :app:compileDebugKotlin
[ +100 ms] > Task :app:javaPreCompileDebug
[+2300 ms] > Task :app:compileDebugJavaWithJavac
[        ] > Task :app:compileDebugSources
[+3001 ms] > Task :app:mergeDebugJavaResource
[+9697 ms] > Task :app:checkDebugDuplicateClasses
[ +100 ms] > Task :app:desugarDebugFileDependencies
[        ] > Task :camera:bundleLibRuntimeDebug
[        ] > Task :camera:createFullJarDebug
[+1199 ms] > Task :app:mergeLibDexDebug
[+2001 ms] > Task :app:transformClassesWithDexBuilderForDebug
[  +99 ms] > Task :app:mergeProjectDexDebug
[ +101 ms] > Task :app:validateSigningDebug
[        ] > Task :app:signingConfigWriterDebug
[  +98 ms] > Task :app:mergeDebugJniLibFolders
[        ] > Task :camera:mergeDebugJniLibFolders
[ +105 ms] > Task :camera:mergeDebugNativeLibs
[        ] > Task :camera:stripDebugDebugSymbols
[        ] > Task :camera:transformNativeLibsWithIntermediateJniLibsForDebug
[+1891 ms] > Task :camera:extractDebugAnnotations
[        ] > Task :camera:mergeDebugGeneratedProguardFiles
[        ] > Task :camera:mergeDebugConsumerProguardFiles
[ +198 ms] > Task :camera:prepareLintJarForPublish
[        ] > Task :camera:mergeDebugJavaResource
[ +100 ms] > Task :camera:transformClassesAndResourcesWithSyncLibJarsForDebug
[        ] > Task :camera:transformNativeLibsWithSyncJniLibsForDebug
[ +100 ms] > Task :camera:bundleDebugAar
[        ] > Task :camera:compileDebugSources
[        ] > Task :camera:assembleDebug
[+4797 ms] > Task :app:mergeDebugNativeLibs
[ +404 ms] Unable to strip library '/Users/nevercode/beta_project/build/app/intermediates/merged_native_libs/debug/out/lib/x86_64/libflutter.so' due to missing strip tool for ABI
'X86_64'. Packaging it as is.
[+1297 ms] > Task :app:stripDebugDebugSymbols
[        ] Compatible side by side NDK version was not found.
[        ] Unable to strip library '/Users/nevercode/beta_project/build/app/intermediates/merged_native_libs/debug/out/lib/x86/libflutter.so' due to missing strip tool for ABI
'X86'. Packaging it as is.
[+2498 ms] > Task :app:mergeExtDexDebug
[+13201 ms] > Task :app:packageDebug
[        ] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 1m 59s
[        ] 59 actionable tasks: 44 executed, 15 up-to-date
[ +448 ms] Running Gradle task 'assembleDebug'... (completed in 121.1s, longer than expected)
[  +96 ms] calculateSha: LocalDirectory: '/Users/nevercode/beta_project/build/app/outputs/apk'/app.apk
[ +156 ms] calculateSha: reading file took 155us
[+4157 ms] calculateSha: computing sha took 4156us
[  +23 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk.
[  +51 ms] executing: /Users/nevercode/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/nevercode/beta_project/build/app/outputs/apk/app.apk AndroidManifest.xml
[  +78 ms] Exit code 0 from: /Users/nevercode/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/nevercode/beta_project/build/app/outputs/apk/app.apk
AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.beta_project" (Raw: "com.example.beta_project")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")
               E: application (line=24)
                 A: android:label(0x01010001)="beta_project" (Raw: "beta_project")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=30)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.beta_project.MainActivity" (Raw: "com.example.beta_project.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=44)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=54)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=58)
                     E: action (line=59)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=61)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=68)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +13 ms] Stopping app 'app.apk' on Android SDK built for x86.
[   +2 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.beta_project
[+1410 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.beta_project
[ +346 ms] Installing APK.
[   +3 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb version
[  +12 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as /Users/nevercode/Library/Android/sdk/platform-tools/adb
[   +1 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb start-server
[  +16 ms] Installing build/app/outputs/apk/app.apk...
[   +1 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 install -t -r /Users/nevercode/beta_project/build/app/outputs/apk/app.apk
[+106869 ms] Performing Streamed Install
                      Success
[  +13 ms] Installing build/app/outputs/apk/app.apk... (completed in 106.9s)
[  +14 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell echo -n 1ebdb4a621cbe3ea2e85e08b7a6197d916420c3b >
/data/local/tmp/sky.com.example.beta_project.sha1
[ +175 ms] Android SDK built for x86 startApp
[  +15 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.beta_project/com.example.beta_project.MainActivity
[+1277 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.beta_project/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+8371 ms] Observatory URL on device: http://127.0.0.1:42229/tww9J1MqC3w=/
[   +6 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:42229
[  +49 ms] 61464
[        ] Forwarded host port 61464 to device port 42229 for Observatory
[  +55 ms] Connecting to service protocol: http://127.0.0.1:61464/tww9J1MqC3w=/
[ +413 ms] Successfully connected to service protocol: http://127.0.0.1:61464/tww9J1MqC3w=/
[   +8 ms] Sending to VM service: getVM({})
[  +23 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz, operatingSystem: android, targetCPU: ia32, version:
2.8.0-dev.5.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on "android_ia32", _profilerMode: V...
[  +24 ms] Sending to VM service: _flutter.listViews({})
[   +5 ms] Result: {type: FlutterViewList, views: []}
[  +58 ms] Sending to VM service: getVM({})
[   +4 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz, operatingSystem: android, targetCPU: ia32, version:
2.8.0-dev.5.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on "android_ia32", _profilerMode: V...
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +6 ms] Result: {type: FlutterViewList, views: []}
[  +53 ms] Sending to VM service: getVM({})
[   +7 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz, operatingSystem: android, targetCPU: ia32, version:
2.8.0-dev.5.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on "android_ia32", _profilerMode: V...
[   +8 ms] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: []}
[  +51 ms] Sending to VM service: getVM({})
[  +13 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz, operatingSystem: android, targetCPU: ia32, version:
2.8.0-dev.5.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on "android_ia32", _profilerMode: V...
[   +7 ms] Sending to VM service: getIsolate({isolateId: isolates/4466790058821295})
[   +3 ms] Sending to VM service: _flutter.listViews({})
[  +29 ms] Result: {type: FlutterViewList, views: []}
[   +7 ms] Result: {type: Isolate, id: isolates/4466790058821295, name: main, number: 4466790058821295, _originNumber: 4466790058821295, startTime: 1584357773569, _heaps: {new:
{type: HeapSpace, name: new, vmName: Scavenger, collections: 1, avgCollectionPeriodMillis...
[  +47 ms] Sending to VM service: getVM({})
[   +7 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz, operatingSystem: android, targetCPU: ia32, version:
2.8.0-dev.5.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on "android_ia32", _profilerMode: V...
[   +1 ms] Sending to VM service: _flutter.listViews({})
[  +13 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe8132210, isolate: {type: @Isolate, fixedId: true, id: isolates/4466790058821295, name:
main.dart$main-4466790058821295, number: 4466790058821295}}]}
[  +15 ms] DevFS: Creating new filesystem on the device (null)
[   +2 ms] Sending to VM service: _createDevFS({fsName: beta_project})
[  +54 ms] Result: {type: FileSystem, name: beta_project, uri: file:///data/user/0/com.example.beta_project/code_cache/beta_projectWOGXFD/beta_project/}
[        ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.beta_project/code_cache/beta_projectWOGXFD/beta_project/)
[   +3 ms] Updating assets
[ +284 ms] Syncing files to device Android SDK built for x86...
[   +3 ms] Scanning asset files
[   +4 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[  +82 ms] /Users/nevercode/development/flutter_beta/bin/cache/dart-sdk/bin/dart
/Users/nevercode/development/flutter_beta/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/nevercode/development/flutter_beta/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true
--output-dill /var/folders/c3/l5jpznsj5k37yrj47l__xpw40000gn/T/flutter_tool.nBcONk/app.dill --packages /Users/nevercode/beta_project/.packages -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[   +5 ms] W/le.beta_projec( 5541): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (greylist, reflection, allowed)
[        ] W/le.beta_projec( 5541): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (greylist, reflection, allowed)
[  +72 ms] W/le.beta_projec( 5541): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (greylist, reflection,
allowed)
[        ] W/le.beta_projec( 5541): Accessing hidden method Landroid/util/LongArray;->get(I)J (greylist, reflection, allowed)
[        ] D/HostConnection( 5541): HostConnection::get() New Host Connection established 0xd4f3e2d0, tid 5564
[        ] D/HostConnection( 5541): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem
ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings
ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3
GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
[   +1 ms] D/eglCodecCommon( 5541): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 5541): eglCreateContext: 0xd4f1a120: maj 3 min 0 rcv 3
[  +14 ms] <- compile package:beta_project/main.dart
[   +8 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a120: ver 3 0 (tinfo 0xd4f0f080)
[        ] D/HostConnection( 5541): HostConnection::get() New Host Connection established 0xd4f3e640, tid 5588
[        ] D/HostConnection( 5541): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem
ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings
ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3
GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
[   +1 ms] D/eglCodecCommon( 5541): setVertexArrayObject: set vao to 0 (0) 0 0
[ +253 ms] D/EGL_emulation( 5541): eglCreateContext: 0xd4f1a540: maj 3 min 0 rcv 3
[ +197 ms] W/Gralloc3( 5541): mapper 3.x is not supported
[  +30 ms] D/HostConnection( 5541): createUnique: call
[        ] D/HostConnection( 5541): createUnique: call
[   +2 ms] D/HostConnection( 5541): HostConnection::get() New Host Connection established 0xd4f3e690, tid 5588
[ +154 ms] D/HostConnection( 5541): HostConnection::get() New Host Connection established 0xd19d1da0, tid 5564
[  +50 ms] D/HostConnection( 5541): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem
ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings
ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3
GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
[   +1 ms] D/eglCodecCommon( 5541): allocate: Ask for block of size 0x1000
[        ] D/eglCodecCommon( 5541): allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000
[   +3 ms] D/HostConnection( 5541): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem
ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings
ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3
GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
[ +130 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a540: ver 3 0 (tinfo 0xd4f0f790)
[ +267 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a120: ver 3 0 (tinfo 0xd4f0f080)
[  +19 ms] D/eglCodecCommon( 5541): setVertexArrayObject: set vao to 0 (0) 1 0
[+3241 ms] I/Choreographer( 5541): Skipped 271 frames!  The application may be doing too much work on its main thread.
[ +615 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a540: ver 3 0 (tinfo 0xd4f0f790)
[        ] D/eglCodecCommon( 5541): setVertexArrayObject: set vao to 0 (0) 1 0
[+4042 ms] I/CameraManagerGlobal( 5541): Connecting to camera service
[+26979 ms] Updating files
[ +530 ms] DevFS: Sync finished
[   +3 ms] Syncing files to device Android SDK built for x86... (completed in 36,719ms, longer than expected)
[        ] Synced 0.8MB.
[   +3 ms] Sending to VM service: _flutter.listViews({})
[  +10 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe8132210, isolate: {type: @Isolate, fixedId: true, id: isolates/4466790058821295, name:
main.dart$main-4466790058821295, number: 4466790058821295}}]}
[   +2 ms] <- accept
[        ] Connected to _flutterView/0xe8132210.
[   +6 ms] Flutter run key commands.
[   +3 ms] r Hot reload. 🔥🔥🔥
[   +2 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[   +1 ms] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:61464/tww9J1MqC3w=/
[+12693 ms] I/le.beta_projec( 5541): Background young concurrent copying GC freed 35300(1430KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 1150KB/2676KB, paused 38us total
103.831ms
[+15176 ms] W/le.beta_projec( 5541): JNI critical lock held for 19.770ms on Thread[12,tid=5558,Runnable,Thread*=0xd4f29400,peer=0x12cc0ea0,"Binder:5541_2"]
[+1143 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a540: ver 3 0 (tinfo 0xd4f0f790)
[  +42 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a120: ver 3 0 (tinfo 0xd4f0f080)
[ +224 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a120: ver 3 0 (tinfo 0xd4f0f080)
[  +36 ms] D/eglCodecCommon( 5541): setVertexArrayObject: set vao to 0 (0) 0 0
[        ] D/EGL_emulation( 5541): eglCreateContext: 0xd4f1a600: maj 3 min 0 rcv 3
[  +17 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a600: ver 3 0 (tinfo 0xd4f0f790)
[ +116 ms] D/EGL_emulation( 5541): eglMakeCurrent: 0xd4f1a600: ver 3 0 (tinfo 0xd4f0f790)
[   +1 ms] D/eglCodecCommon( 5541): setVertexArrayObject: set vao to 0 (0) 0 0
[+25374 ms] I/Choreographer( 5541): Skipped 1305 frames!  The application may be doing too much work on its main thread.

does this code represent the issue you are describing?
Thank you

Hi @iapicca,
No. For me the emulator detects cameras and it can build a CameraController. The app crashes when it calls CameraPreview(controller) in camera.dart in the linked repo.
It's a hard crash, meaning the app and the debugger quit.
I'm using the Nexus 5X API 28 x86.
Are you not able to reproduce with the repo I linked? https://github.com/Gujie/camera_crash

Hi @Gujie
I purposely used a stripped down code
to avoid introducing unnecessary variables;
it runs successfully on Android sdk 29 (physical and virtual) and iOS
using flutter in channel  beta.
Could you please provide your full flutter run --verbose please
Thank you

I found the issue :) It's the same as #25608
It's because I was using --enable-software-rendering when debugging.
Thank you so much for your help!

authors: Gujie TahaTesser iapicca


text:
platformOverride/isWidgetCreationTracked service extensions do not respond on web until terminating

When running on web, these service extensions appear as loaded, but if I call them they seem to not respond (until I terminate the app, then they fail).
[2:44:25 PM] [Observatory] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Isolate","event":{"type":"Event","kind":"ServiceExtensionAdded","timestamp":1590673465972,"isolate":{"type":"@Isolate","id":"1","number":"1","name":"main()"},"extensionRPC":"ext.flutter.platformOverride"}}}
[2:44:25 PM] [FlutterRun] ==> [{"id":"1","method":"app.callServiceExtension","params":{"appId":"905776b5-b381-41cd-9f12-b90cf284382a","methodName":"ext.flutter.platformOverride"}}]

// No response to calling ext.flutter.platformOverride...

// Until we terminate, and then it returns with "Service connection disposed"
[2:45:20 PM] [Observatory] Termination requested!
[2:45:20 PM] [FlutterRun] ==> [{"id":"5","method":"app.stop","params":{"appId":"905776b5-b381-41cd-9f12-b90cf284382a"}}]
[2:45:20 PM] [Observatory] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Service","event":{"type":"Event","kind":"ServiceUnregistered","timestamp":1590673520454,"service":"hotRestart","method":"hotRestart"}}}
[2:45:20 PM] [FlutterRun] <== [{"id":"1","error":"ext.flutter.platformOverride: (-32000) Service connection disposed","trace":""}]

@jonahwilliams not sure if this is a Flutter or web issue. In VS Code we assume we can call these (because we see the load), and then end up showing errors in the debug console to the users during shutdown.

I'm not sure to be honest, all of these should be registered the same in bindings during startup. FYI @goderbauer

/cc @jacob314 not sure if this is expected to work on the Web.

This should work on the web. It looks like calling service extensions over the flutter daemon protocol is what is going wrong on flutter web. We use service extensions with flutter web directly over the vm service directly when you run devtools with a flutter web app. If the inspector is working alright with flutter web then the problem is with the daemon.

I tried to do a bit more poking on latest master today, but I seem unable to repro - it's responding fine:
<== [{"id":"2","result":{"value":"macOS","type":"","method":"ext.flutter.platformOverride"}}]

I'll close this and if I see it again, I'll reopen and try to do some more digging.

I can repro this again, and it's not web-specific. However in web the error was easier to identify. For running on iOS simulator, I see this:
[12:17:30 PM] [Observatory] [Info] [Flutter App] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Isolate","event":{"type":"Event","kind":"ServiceExtensionAdded","isolate":{"type":"@Isolate","id":"isolates\/1303174082786363","name":"main","number":"1303174082786363"},"timestamp":1591615050839,"extensionRPC":"ext.flutter.platformOverride"}}}
[12:17:30 PM] [FlutterRun] [Info] [Flutter App] ==> [{"id":"2","method":"app.callServiceExtension","params":{"appId":"89e41692-3b44-48fc-aea2-bf61f1e6dbec","methodName":"ext.flutter.platformOverride"}}]

With no responses until shutdown, and then the requests from the VS Code debug adapter all get cancelled by VS Code because they hadn't responded before the debug session went away.
[12:17:39 PM] [General] [Error] Canceled
Canceled: Canceled
    at Object.t.canceled (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46:952)
    at t.RawDebugSession.handleErrorResponse (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3060:792)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3060:679

Oh, this is due to breakpoints.

Start the app with a breakpoint set
Hit breakpoint
Click Stop Debugging

The error occurs. If instead you click Resume, the responses all come through immediately.
I'm not sure if this is working as intended though - should the app being paused prevent these from running? If so, we can (re-)close this.

This is by design in package:flutter but it isn't ideal for the case of service extensions like this that could really respond earlier.

Removing web because it is not web-related only.

It is still happening (at least for web). I'm wondering if this is because when the isolate is paused, the code that needs to execute isn't able to run (but maybe this is different for non-web?). Here's a log from a test today that shows around 8 seconds waiting for the first response - which coincidentally came after resuming. After a reload, we call it again and it doesn't respond in time for the test to complete.
It seems like it's either very slow, or it might not be responding while the app is paused (which might make sense if it needs to talk to the browser).
[10:34:57 AM] [VmService] [Info] [Dart & Flutter] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Isolate","event":{"type":"Event","kind":"ServiceExtensionAdded","timestamp":1600853697228,"isolate":{"type":"@Isolate","id":"1","number":"1","name":"main()"},"extensionRPC":"ext.flutter.platformOverride"}}}
[10:34:57 AM] [FlutterRun] [Info] [Dart & Flutter] ==> [{"id":"1","method":"app.callServiceExtension","params":{"appId":"65572491-e8df-45ed-a4c7-11abffb6b08b","methodName":"ext.flutter.platformOverride"}}]
// SNIP
[10:35:05 AM] [FlutterRun] [Info] [Dart & Flutter] <== [{"id":"1","result":{"value":"macOS","type":"","method":"ext.flutter.platformOverride"}}]
// SNIP
[10:35:07 AM] [FlutterRun] [Info] [Dart & Flutter] ==> [{"id":"6","method":"app.restart","params":{"appId":"65572491-e8df-45ed-a4c7-11abffb6b08b","fullRestart":false,"pause":true}}]
// SNIP
[10:35:07 AM] [FlutterRun] [Info] [Dart & Flutter] <== Restarted application in 94ms.
// SNIP
[10:35:07 AM] [VmService] [Info] [Dart & Flutter] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Isolate","event":{"type":"Event","kind":"ServiceExtensionAdded","timestamp":1600853707862,"isolate":{"type":"@Isolate","id":"1534","number":"1534","name":"main()"},"extensionRPC":"ext.flutter.platformOverride"}}}
[10:35:07 AM] [FlutterRun] [Info] [Dart & Flutter] ==> [{"id":"8","method":"app.callServiceExtension","params":{"appId":"65572491-e8df-45ed-a4c7-11abffb6b08b","methodName":"ext.flutter.platformOverride"}}]
// SNIP
[10:35:15 AM] [FlutterRun] [Info] [Dart & Flutter] ==> [{"id":"12","method":"app.stop","params":{"appId":"65572491-e8df-45ed-a4c7-11abffb6b08b"}}]
[10:35:15 AM] [FlutterRun] [Info] [Dart & Flutter] <== [{"id":"8","error":"ext.flutter.platformOverride: (-32000) Service connection disposed","trace":""}]

Can you please share any reproducible code (if any)? I'm not quite sure how to reproduce this, would be great to have a repro code so that anyone can check from time to time if the issue is still valid.
I going to add the web label back since you confirmed.

There's no specific code that triggers it, this is happening during initialisation of the debugger. To repro, you can:

Create a new Flutter project
Add a breakpoint in the build method
Run the Dart: Capture Logs command, tick only "Flutter Run" and click OK
Run the project on the Chrome device and wait for it to hit the breakpoint
Leave it on the breakpoint for 30 seconds and then click Continue
Click Cancel on the logging notification to get the log

In the log if you search for platformOverride you'll see a long delay between the request (calling app.callServiceExtension with platformOverride) and the response (which is likely the only other line containing platformOverride).
If instead you terminate instead of resuming from the breakpoint, you'll see a "Service connection disposed" response.
I don't think this is a significant issue (when I raised it I thought it was just outright broken, though that seems not to be the case) though I'm also not sure whether this is accidental (and may cause other problems) or a known/accepted limitation of running on the web.

source: gharchive/issue

authors: DanTup jacob314 jonahwilliams pedromassangocode yjbanov

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
[pigeon] let FlutterApis be invoked with null callbacks

I had IDL with
@FlutterApi()
abstract class FlutterBookApi {
  void displayBookDetails(Book book);
}

it created Java code
public interface Reply<T> {
  void reply(T reply);
}
public void displayBookDetails(Book argInput, Reply<Void> callback) {
  BasicMessageChannel<Object> channel =
      new BasicMessageChannel<Object>(binaryMessenger, "dev.flutter.pigeon.FlutterBookApi.displayBookDetails", new StandardMessageCodec());
  HashMap inputMap = argInput.toMap();
  channel.send(inputMap, new BasicMessageChannel.Reply<Object>() {
    public void reply(Object channelReply) {
      callback.reply(null);
    }
  });
}

but if I don't care about the result, I can't pass null to callback since it doesn't null check and can crash.
cc @gaaclarke

Bonus points if instead of null, you add overload method that just omits the callback.

@gaaclarke I don't think this ticket is relevant to the https://github.com/flutter/packages/pull/222
This ticket is for the native APIs (such as Java APIs)

Sorry, keeping the languages straight has been a problem for me.  Thanks for the heads up.  I'll update the title.

authors: gaaclarke matejdro xster


text:
How to add to the following list

_documentList.document = streamSnapshot.data.documents.toList();
Im fetching the documents from the firestore. How do i add a new element to the above list ?
I tried adding, however i'm getting the following error
Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'DocumentSnapshot' of 'element'

The Github issue tracker is for bugs and features requests for the Flutter SDK. Help and support questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community .