Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image_picker with google_maps_flutter] Emulator Crash after getImage - Failed to setup Skia Gr context. #63663

Closed
maerlynflagg opened this issue Aug 13, 2020 · 46 comments · Fixed by flutter/engine#21258
Assignees
Labels
c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. found in release: 1.20 Found to occur in 1.20 found in release: 1.21 Found to occur in 1.21 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: image_picker The Image Picker plugin. p: local_auth Plugin for local authentification p: maps Google Maps plugin P0 Critical issues such as a build break or regression package flutter/packages repository. See also p: labels. platform-android Android applications specifically waiting for PR to land (fixed) A fix is in flight

Comments

@maerlynflagg
Copy link

Usage

PickedFile imageFile = await _imagePicker.getImage(source: ImageSource.camera, maxHeight: 1024, maxWidth: 1024, imageQuality: 100);

Expected results:

i can work completely with emulator like before.

Actual results:

very short time after i confirmed the taken photo, the app crashes. between confirm and crash i see black screen.

the crash thrown with image_picker: ^0.6.3+1 and image_picker: ^0.6.7+4.

it crashes because a null pointer. possible reason is the Skia Gr context. i tested Pixel 2 , Pixel 3 and Nexus 5X with API 29 as emulator.

for some weeks, i haven't any issue to take photo. i think it was before Flutter 1.20.1.

Crash Log
E/Surface (18727): getSlotFromBufferLocked: unknown buffer: 0x200
D/EGL_emulation(18727): eglMakeCurrent: 0xe67075c0: ver 2 0 (tinfo 0xde70fb80)
E/flutter (18727): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(71)] Failed to setup Skia Gr context.
D/EGL_emulation(18727): eglMakeCurrent: 0xc6b05fa0: ver 1 0 (tinfo 0xba419150)
D/EGL_emulation(18727): eglMakeCurrent: 0xde71a0c0: ver 2 0 (tinfo 0xbfe04970)
F/libc    (18727): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 18770 (1.raster), pid 18727 (myAppPackageName)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2020-08-12 13:22:04+0000
pid: 18727, tid: 18770, name: 1.raster  >>> myAppPackageName <<<
uid: 10134
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
    eax 00000000  ebx c5cc1c78  ecx fffffff9  edx 00000000
    edi c4286978  esi 00000004
    ebp c42866f8  esp c42866f8  eip c5618b85
backtrace:
      #00 pc 0138cb85  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #01 pc 0138b55d  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #02 pc 0142dd20  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #03 pc 015ff502  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #04 pc 015ff3d9  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #05 pc 015ff8c3  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #06 pc 015ff6af  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #07 pc 011c6518  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #08 pc 011c7104  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #09 pc 011c7eca  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #10 pc 01175e8b  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #11 pc 011c6a22  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #12 pc 011c6792  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
      #13 pc 011d47b1  /data/app/myAppPackageName-SupAUHBNoMiZ77FdjBL-dw==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
Lost connection to device.
@maerlynflagg
Copy link
Author

Same with Android API 28.

@maerlynflagg
Copy link
Author

on my tested real devices (Huawai P30 Pro and Google Pixel 3) is all fine.

@Abhishek01039
Copy link
Contributor

Abhishek01039 commented Aug 13, 2020

Hi @maerlynflagg ,
Please provide flutter doctor -v and complete logs.
Thanks.

@TahaTesser
Copy link
Member

Hi @maerlynflagg
Can you please provide your flutter doctor -v your flutter run --verbose while crash on emulator and a complete reproducible minimal code sample
Thank you

@TahaTesser TahaTesser added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Aug 13, 2020
@maerlynflagg
Copy link
Author

Here my flutter doctor output:

[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.18363.959], locale de-DE)
    • Flutter version 1.20.1 at C:\myPath\flutter
    • Framework revision 2ae34518b8 (8 days ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

 
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\myPath\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = C:\Users\myPath\Local\Android\Sdk
    • ANDROID_SDK_ROOT = C:\Users\myPath\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code, 64-bit edition (version 1.47.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.13.2

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 13, 2020
@maerlynflagg
Copy link
Author

maerlynflagg commented Aug 13, 2020

currently i can't give you a example.

Log

W/de.ntag.lmng(25915): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Landroid/util/LongArray;->get(I)J (greylist, reflection, allowed)
D/HostConnection(25915): HostConnection::get() New Host Connection established 0xde73f410, tid 25951
D/HostConnection(25915): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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 ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
W/OpenGLRenderer(25915): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/eglCodecCommon(25915): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation(25915): eglCreateContext: 0xde71a2a0: maj 2 min 0 rcv 2
D/EGL_emulation(25915): eglMakeCurrent: 0xde71a2a0: ver 2 0 (tinfo 0xde70fc00)
W/Gralloc3(25915): mapper 3.x is not supported
D/HostConnection(25915): createUnique: call
D/HostConnection(25915): HostConnection::get() New Host Connection established 0xde740220, tid 25956
D/HostConnection(25915): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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 ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
D/eglCodecCommon(25915): allocate: Ask for block of size 0x1000
D/eglCodecCommon(25915): allocate: Ask for block of size 0x1000
D/eglCodecCommon(25915): allocate: ioctl allocate returned offset 0x3ff801000 size 0x2000
D/eglCodecCommon(25915): allocate: ioctl allocate returned offset 0x3ff807000 size 0x2000
D/HostConnection(25915): HostConnection::get() New Host Connection established 0xde7402c0, tid 25956
D/HostConnection(25915): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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 ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
D/EGL_emulation(25915): eglMakeCurrent: 0xf197f040: ver 2 0 (tinfo 0xde70f870)
I/de.ntag.lmng(25915): Background young concurrent copying GC freed 2532(257KB) AllocSpace objects, 2(40KB) LOS objects, 11% free, 1786KB/2022KB, paused 651us total 269.159ms
D/EGL_emulation(25915): eglMakeCurrent: 0xde71a2a0: ver 2 0 (tinfo 0xde70fc00)
D/eglCodecCommon(25915): setVertexArrayObject: set vao to 0 (0) 1 0
I/de.ntag.lmng(25915): NativeAlloc concurrent copying GC freed 349(134KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 1699KB/3399KB, paused 270us total 131.475ms
I/OpenGLRenderer(25915): Davey! duration=2273ms; Flags=1, IntendedVsync=58869867418409, Vsync=58869900751741, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=58869906039000, AnimationStart=58869906108000, PerformTraversalsStart=58869906147300, DrawStart=58871990053800, SyncQueued=58871991424000, SyncStart=58871998254500, IssueDrawCommandsStart=58871998649900, SwapBuffers=58872024330700, FrameCompleted=58872147294000, DequeueBufferDuration=30047000, QueueBufferDuration=1482000,
I/Choreographer(25915): Skipped 134 frames! The application may be doing too much work on its main thread.
Connecting to VM Service at ws://127.0.0.1:60350/YDniuz7-v9c=/ws
D/EGL_emulation(25915): eglMakeCurrent: 0xf197f040: ver 2 0 (tinfo 0xde70f870)
D/eglCodecCommon(25915): setVertexArrayObject: set vao to 0 (0) 1 0
I/org.libsodium.jni.NaCl(25915): librarypath=/system/lib:/system/product/lib
W/IInputConnectionWrapper(25915): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(25915): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(25915): getTextAfterCursor on inactive InputConnection
I/de.ntag.lmng(25915): ThreadFlipBegin blocked for 7.483ms
I/de.ntag.lmng(25915): IncrementDisableThreadFlip blocked for 6.985ms
I/de.ntag.lmng(25915): Background young concurrent copying GC freed 25796(1388KB) AllocSpace objects, 2(32KB) LOS objects, 42% free, 2038KB/3554KB, paused 5.148ms total 20.739ms
I/de.ntag.lmng(25915): Background young concurrent copying GC freed 30005(1323KB) AllocSpace objects, 0(0B) LOS objects, 37% free, 2230KB/3554KB, paused 375us total 119.429ms
I/flutter (25915): {MessagesProvider} {loadMessages} {load messages started [time=]} {LogLevel.INFO} {13 August 2020 02:54:09 PM}
D/permissions_handler(25915): No permissions found in manifest for: 1
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command AddAdviceFull} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command DeleteAdvice} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command DeleteExplicitAdvice} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command UpdateReport} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command ChangeAdvice} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command ChangeForum} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {AdviceListProvider} {loadAdvices} {no ids for command ChangePhoto} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
�[38;5;248mI/flutter (25915): {HelperManager} {checkPermissions} {cannot check permissions} {Instance of 'NtagException'} {LogLevel.WARNING} {13 August 2020 02:54:16 PM} {#0 HelperManager.checkPermissions�[39;49m
I/flutter (25915):
�[38;5;248mI/flutter (25915): #1 _AdvicesPageState.initState..�[39;49m
I/flutter (25915):
I/flutter (25915): #2 _AdvicesPageState.initState.. (package:lmng/pages/advices/advices_page.dart)
�[38;5;248mI/flutter (25915): #3 ApiProvider.createPasswordDialog�[39;49m
�[38;5;248mI/flutter (25915): #4 _AdvicesPageState.initState.�[39;49m
I/flutter (25915):
I/flutter (25915): #5 _AdvicesPageState.initState. (package:lmng/pages/advices/advices_page.dart)
�[38;5;244mI/flutter (25915): #6 new Future.delayed. (dart:async/future.dart:325:39)�[39;49m
�[38;5;244mI/flutter (25915): #7 _rootRun (dart:async/zone.dart:1182:47)�[39;49m
I/flutter (25915): #8 _CustomZone.run (dart:asy
I/flutter (25915): {ApiProvider} {sendToken} {send token started} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {ApiProvider} {sendToken} {send token device id getted [id=4f7595a52f3ec685]} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {ApiProvider} {sendToken} {send token started} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
I/flutter (25915): {ApiProvider} {sendToken} {send token device id getted [id=4f7595a52f3ec685]} {LogLevel.INFO} {13 August 2020 02:54:16 PM}
W/Gralloc3(25915): allocator 3.x is not supported
I/zzbz (25915): Making Creator dynamically
W/de.ntag.lmng(25915): Unsupported class loader
I/DynamiteModule(25915): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:202614000
I/DynamiteModule(25915): Selected remote version of com.google.android.gms.maps_dynamite, version >= 202614000
V/DynamiteModule(25915): Dynamite loader version >= 2, using loadModule2NoCrashUtils
I/Google Maps Android API(25915): Google Play services client version: 12451000
I/Google Maps Android API(25915): Google Play services package version: 202614040
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->peekLong(JZ)J (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->pokeLong(JJZ)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->pokeInt(JIZ)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->peekInt(JZ)I (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->pokeByte(JB)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->pokeByteArray(J[BII)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Llibcore/io/Memory;->peekByteArray(J[BII)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, reflection, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
I/chatty (25915): uid=10134(de.ntag.lmng) identical 2 lines
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
D/NetworkSecurityConfig(25915): No Network Security Config specified, using platform default
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
D/HostConnection(25915): HostConnection::get() New Host Connection established 0xb1f20770, tid 26093
D/EGL_emulation(25915): eglMakeCurrent: 0xde71a2a0: ver 2 0 (tinfo 0xde70fc00)
D/HostConnection(25915): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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 ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
D/eglCodecCommon(25915): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation(25915): eglCreateContext: 0xc0d9c320: maj 1 min 0 rcv 1
D/EGL_emulation(25915): eglMakeCurrent: 0xc0d9c320: ver 1 0 (tinfo 0xa5b30090)
W/de.ntag.lmng(25915): Accessing hidden field Ljava/nio/Buffer;->position:I (greylist, JNI, allowed)
W/de.ntag.lmng(25915): Accessing hidden field Ljava/nio/Buffer;->limit:I (greylist, JNI, allowed)
W/de.ntag.lmng(25915): Accessing hidden field Ljava/nio/Buffer;->_elementSizeShift:I (greylist, JNI, allowed)
W/de.ntag.lmng(25915): Verification of com.google.maps.api.android.lib6.gmm6.vector.gl.drawable.y[] com.google.maps.api.android.lib6.gmm6.vector.gl.drawable.t.a() took 169.484ms
D/HostConnection(25915): HostConnection::get() New Host Connection established 0xde73f000, tid 25936
D/HostConnection(25915): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 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 ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
I/de.ntag.lmng(25915): Background young concurrent copying GC freed 1274(118KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 3668KB/3668KB, paused 5.217ms total 257.972ms
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
I/de.ntag.lmng(25915): Background concurrent copying GC freed 4642(308KB) AllocSpace objects, 3(152KB) LOS objects, 49% free, 3352KB/6704KB, paused 10.840ms total 84.805ms
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/DynamiteModule(25915): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule(25915): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:5
I/DynamiteModule(25915): Selected remote version of com.google.android.gms.googlecertificates, version >= 5
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/chatty (25915): uid=10134(de.ntag.lmng) GoogleApiHandle identical 6 lines
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/chatty (25915): uid=10134(de.ntag.lmng) GoogleApiHandle identical 32 lines
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/chatty (25915): uid=10134(de.ntag.lmng) GoogleApiHandle identical 2 lines
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/chatty (25915): uid=10134(de.ntag.lmng) GoogleApiHandle identical 18 lines
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/flutter (25915): {_AdviceDetailsState} {_onOpen} {open advice [id=bb8b1256-3441-4f5c-914c-6255e46b5663]} {LogLevel.INFO} {13 August 2020 02:54:55 PM}
I/flutter (25915): {SheetProvider} {loadReport} {load new report data [id=bb8b1256-3441-4f5c-914c-6255e46b5663]} {LogLevel.INFO} {13 August 2020 02:55:02 PM}
I/flutter (25915): {SheetProvider} {loadReport} {load new report data [id=bb8b1256-3441-4f5c-914c-6255e46b5663]} {LogLevel.INFO} {13 August 2020 02:55:03 PM}
I/flutter (25915): {_AdviceDetailsState} {_onSelectPage} {edit advice selected index 1[id=bb8b1256-3441-4f5c-914c-6255e46b5663]} {LogLevel.INFO} {13 August 2020 02:55:03 PM}
I/flutter (25915): {PhotosProvider} {loadPhotos} {load new photo data [id=bb8b1256-3441-4f5c-914c-6255e46b5663]} {LogLevel.INFO} {13 August 2020 02:55:03 PM}
I/de.ntag.lmng(25915): Background young concurrent copying GC freed 22443(1058KB) AllocSpace objects, 13(1352KB) LOS objects, 36% free, 4226KB/6704KB, paused 5.552ms total 34.104ms
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/de.ntag.lmng(25915): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
E/Surface (25915): getSlotFromBufferLocked: unknown buffer: 0x200
D/EGL_emulation(25915): eglMakeCurrent: 0xf197f040: ver 2 0 (tinfo 0xde70f870)
E/flutter (25915): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(71)] Failed to setup Skia Gr context.
D/EGL_emulation(25915): eglMakeCurrent: 0xc0d9c320: ver 1 0 (tinfo 0xa5b30090)
D/EGL_emulation(25915): eglMakeCurrent: 0xde71a2a0: ver 2 0 (tinfo 0xde70fc00)
F/libc (25915): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 25956 (1.raster), pid 25915 (de.ntag.lmng)


Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2020-08-13 14:55:47+0000
pid: 25915, tid: 25956, name: 1.raster >>> de.ntag.lmng <<<
uid: 10134
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
eax 00000000 ebx c64d1c78 ecx fffffff9 edx 00000000
edi c47ea978 esi 00000004
ebp c47ea6f8 esp c47ea6f8 eip c5e28b85
backtrace:
#00 pc 0138cb8 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#1 pc 0138b55d /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#2 pc 0142dd20 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#3 pc 015ff502 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#4 pc 015ff3d9 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#5 pc 015ff8c3 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#6 pc 015ff6af /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#7 pc 011c6518 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#8 pc 011c7104 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#9 pc 011c7eca /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#10 pc 01175e8b /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#11 pc 011c6a22 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#12 pc 011c6792 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
#13 pc 011d47b1 /data/app/de.ntag.lmng-POJ62fPTc6QqqJSVhi8ziA==/lib/x86/libflutter.so (BuildId: 7c10268101450e4033959b201ce27d4c3845c232)
Lost connection to device.
Exited (sigterm)

@TahaTesser
Copy link
Member

Hi @maerlynflagg
Tried to reproduce the issue on latest Channel stable, 1.20.2 using API 29 Nexus 5X emulator based code line from description

main.dart
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  File _image;
  final picker = ImagePicker();

  Future getImage() async {
    final pickedFile = await picker.getImage(
        source: ImageSource.camera,
        maxHeight: 1024,
        maxWidth: 1024,
        imageQuality: 100);

    setState(() {
      _image = File(pickedFile.path);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Image Picker Example'),
      ),
      body: Center(
        child: _image == null ? Text('No image selected.') : Image.file(_image),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: getImage,
        tooltip: 'Pick Image',
        child: Icon(Icons.add_a_photo),
      ),
    );
  }
}
logs
[ +102 ms] executing: [C:\Code\flutter_stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +44 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] bbfbf1770cca2da7c82e887e4e4af910034800b6
[        ] executing: [C:\Code\flutter_stable/] git tag --contains HEAD
[ +173 ms] Exit code 0 from: git tag --contains HEAD
[        ] 1.20.2
[   +7 ms] executing: [C:\Code\flutter_stable/] git rev-parse --abbrev-ref --symbolic @{u}
[  +27 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Code\flutter_stable/] git ls-remote --get-url origin
[  +24 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +56 ms] executing: [C:\Code\flutter_stable/] git rev-parse --abbrev-ref HEAD
[  +27 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +40 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.
[   +3 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.
[  +20 ms] executing: C:\Code\sdk\platform-tools\adb.exe devices -l
[  +31 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86
           transport_id:1
[   +8 ms] C:\Code\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[  +36 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] 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.
[   +1 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.
[  +91 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.8\
[   +6 ms] Found plugin image_picker at
C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.6.7+4\
[  +62 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.8\
[   +4 ms] Found plugin image_picker at
C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.6.7+4\
[  +51 ms] Generating
C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistran
t.java
[  +26 ms] ro.hardware = ranchu
[  +24 ms] Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider
enabling
           software rendering with "--enable-software-rendering".
[  +27 ms] Starting incremental build...
[   +2 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +4 ms] complete
[   +4 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
[   +4 ms] C:\Code\flutter_stable\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Code\flutter_stable\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Code\flutter_stable\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\Taha\AppData\Local\Temp\flutter_tools.e34ee9c3\flutter_tool.f1233937\app.dill --packages .packages
-Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoi
d-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
--initialize-from-dill build\cache.dill.track.dill
[  +10 ms] executing: C:\Code\sdk\build-tools\30.0.1\aapt dump xmltree
C:\Users\Taha\AndroidStudioProjects\stable_flutter\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +12 ms] Exit code 0 from: C:\Code\sdk\build-tools\30.0.1\aapt dump xmltree
C:\Users\Taha\AndroidStudioProjects\stable_flutter\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[        ] 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.stable_flutter" (Raw: "com.example.stable_flutter")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 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.READ_EXTERNAL_STORAGE" (Raw:
                 "android.permission.READ_EXTERNAL_STORAGE")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw:
                 "android.permission.WRITE_EXTERNAL_STORAGE")
               E: application (line=24)
                 A: android:label(0x01010001)="stable_flutter" (Raw: "stable_flutter")
                 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.stable_flutter.MainActivity" (Raw:
                   "com.example.stable_flutter.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
                 E: provider (line=72)
                   A: android:name(0x01010003)="io.flutter.plugins.imagepicker.ImagePickerFileProvider" (Raw:
                   "io.flutter.plugins.imagepicker.ImagePickerFileProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.stable_flutter.flutter.image_provider" (Raw:
                   "com.example.stable_flutter.flutter.image_provider")
                   A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
                   E: meta-data (line=77)
                     A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw:
                     "android.support.FILE_PROVIDER_PATHS")
                     A: android:resource(0x01010025)=@0x7f0c0000
[   +9 ms] executing: C:\Code\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[  +30 ms] Exit code 0 from: C:\Code\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           08-14 14:48:00.590 E/GnssHAL_GnssInterface( 1793): gnssSvStatusCb: b: input svInfo.flags is 8
[   +1 ms] executing: C:\Code\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[  +30 ms] Exit code 0 from: C:\Code\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           08-14 14:48:00.590 E/GnssHAL_GnssInterface( 1793): gnssSvStatusCb: b: input svInfo.flags is 8
[  +12 ms] <- compile package:stable_flutter/main.dart
[  +11 ms] executing: C:\Code\sdk\platform-tools\adb.exe version
[  +34 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as C:\Code\sdk\platform-tools\adb.exe
[   +3 ms] executing: C:\Code\sdk\platform-tools\adb.exe start-server
[  +20 ms] Building APK
[  +16 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[   +3 ms] Using gradle from C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\gradlew.bat.
[   +1 ms] C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\gradlew.bat mode: 33279 rwxrwxrwx.
[   +7 ms] executing: C:\Code\android-studio\jre\bin\java -version
[  +84 ms] Exit code 0 from: C:\Code\android-studio\jre\bin\java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +3 ms] executing: [C:\Users\Taha\AndroidStudioProjects\stable_flutter\android/]
C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86
-Ptarget=C:\Users\Taha\AndroidStudioProjects\stable_flutter\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1662 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:preBuild UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:preDebugBuild UP-TO-DATE
[        ] > Task :image_picker:preBuild UP-TO-DATE
[        ] > Task :image_picker:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugRenderscript NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugAidl NO-SOURCE
[        ] > Task :image_picker:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :image_picker:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +78 ms] > Task :app:cleanMergeDebugAssets
[   +1 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugShaders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugShaders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugAssets UP-TO-DATE
[        ] > Task :image_picker:mergeDebugShaders UP-TO-DATE
[        ] > Task :image_picker:compileDebugShaders UP-TO-DATE
[        ] > Task :image_picker:generateDebugAssets UP-TO-DATE
[        ] > Task :image_picker:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +285 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugResValues UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugRenderscript NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugResources UP-TO-DATE
[ +106 ms] > Task :flutter_plugin_android_lifecycle:packageDebugResources UP-TO-DATE
[        ] > Task :image_picker:generateDebugResValues UP-TO-DATE
[        ] > Task :image_picker:compileDebugRenderscript NO-SOURCE
[        ] > Task :image_picker:generateDebugResources UP-TO-DATE
[        ] > Task :image_picker:packageDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:checkDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugManifest UP-TO-DATE
[        ] > Task :image_picker:checkDebugManifest UP-TO-DATE
[        ] > Task :image_picker:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugRFile UP-TO-DATE
[        ] > Task :image_picker:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :image_picker:generateDebugRFile UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :image_picker:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:javaPreCompileDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :image_picker:javaPreCompileDebug UP-TO-DATE
[  +79 ms] > Task :image_picker:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :image_picker:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibResDebug UP-TO-DATE
[        ] > Task :image_picker:processDebugJavaRes NO-SOURCE
[        ] > Task :image_picker:bundleLibResDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:createFullJarDebug UP-TO-DATE
[        ] > Task :image_picker:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :image_picker:createFullJarDebug UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[  +98 ms] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :image_picker:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :image_picker:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :image_picker:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :image_picker:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] Compatible side by side NDK version was not found.
[        ] > Task :app:packageDebug UP-TO-DATE
[  +83 ms] > Task :app:assembleDebug
[   +1 ms] > Task :flutter_plugin_android_lifecycle:extractDebugAnnotations UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugSources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:assembleDebug UP-TO-DATE
[        ] > Task :image_picker:extractDebugAnnotations UP-TO-DATE
[        ] > Task :image_picker:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :image_picker:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :image_picker:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :image_picker:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :image_picker:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task
flutter doctor -v
[✓] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.19041.388], locale en-US)
    • Flutter version 1.20.2 at C:\Code\flutter_stable
    • Framework revision bbfbf1770c (18 hours ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Code\android-studio
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.47.3)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 14, 2020
@maerlynflagg
Copy link
Author

i tried a new flutter project (the counter example) with only the image picker plugin. on increase the counter , i take the photo and it works without crash after getImage.

currently i try to find óut more informations.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 14, 2020
@Abhishek01039
Copy link
Contributor

Abhishek01039 commented Aug 14, 2020

so I guess now you can close the issue
Thank you

@maerlynflagg
Copy link
Author

i'm not sure. yes, in the simple starter app flutter create the getImage worked in emulator, but in a bigger flutter app, which have no displayed error, it crashed at the same line.

side note:

on beginning of my app, all worked fine. i concentrated to other pages to complete.
i know definitely that for one month the pickImage function works fine. last monday i noticed randomly that pickImage not longer works and it crashes.

so i hoped, the new picker version fixed something, but the update and the new function getImage hasn't any effect.

now i compared the simple app with my existing app. i changed

gradle-wrapper.properties
build.gradle

.

so since last month changed the flutter version to 1.20.1. it looks like a unknown thing, which causes the issue on pickImage / getImage for bigger flutter apps.

i hope, only emulator crashes and not real devices.

@maerlynflagg
Copy link
Author

maerlynflagg commented Aug 15, 2020

so now i downgrade to flutter 1.17.5 and the emulator worked fine. no crash on getImage.

also i think it is a problem between Flutter 1.20.1 / 1.20.2 and imager_picker on bigger flutter apps.

@maerlynflagg
Copy link
Author

after upgrading back to flutter version 1.20.2 it crashes on getImage.

So whats the special thing between flutter 1.17.5 and 1.20.1/1.20.2 ? is there something, which i'm not noticed to migrate, that all is working?

@ligoriofc
Copy link

ligoriofc commented Aug 16, 2020

Hi, i'm having the same problem: app crashs after getImage() on AVD (emulator), on any flutter version after 1.17.5 (stable). I also tried on Master Channel but the problem persists.

I can't reproduce anymore because I downgrade flutter to 1.17.5 (stable), but I noticed something wierd:

This problem only does't happen at the "begining" of the app. I will try to explain that:

My aplication has a signin page at the begining, where user can pick an image from gallery to use as profile avatar. At this point the ImagePicker.getImage() works perfectly, no crashs.

But, when the user login, he goes to a "main page" where there are some interactive resources like google maps API. After that the user can navigate (navigator pushnamed) to "My profile" screen, where he can change his personal info and also change his avatar picture. But, at this point when it runs getImage() the app crashs.

I don't know why but maybe it is related to others plugins or imports, or maybe to the more complexity logic existing at this aplication point.

To let things more clear, these are the "3rd-party" imports at signin page:

import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:connectivity/connectivity.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:flutter/material.dart';
import 'package:flutter_masked_text/flutter_masked_text.dart';
import 'package:http/http.dart' as http;
import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart';
import 'package:provider/provider.dart';

Also, these are the imports on "main page" and "my profile page":

"MAIN PAGE"
import 'dart:io';
import 'package:connectivity/connectivity.dart';
import 'package:curved_navigation_bar/curved_navigation_bar.dart';
import 'package:flutter/material.dart';
import 'package:goinapp/widgets/google_maps_widget.dart'; HAS THE GOOGLE MAPS PLUGIN INSIDE
import 'package:provider/provider.dart';

"MY PROFILE PAGE" => acessed by Navigator.of(context).pushNamed
import 'dart:async';
import 'dart:io';
import 'dart:typed_data';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:http/http.dart';
import 'package:image/image.dart' as img;
import 'package:flutter/material.dart';
import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart';
import 'package:path_provider/path_provider.dart';
import 'package:provider/provider.dart';

Any ideas?

@TahaTesser
Copy link
Member

Hi @maerlynflagg
Could you please provide code repository which reproduced on latest stable on emulator?
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 17, 2020
@maerlynflagg
Copy link
Author

today i tested some things.

i comment out some things and comment in. now, i have a point, where i got no crash.

i will explain:

i have order details page. on this page is a map. from der i can enter edit mode page without map and from there a page to take some photos and give the photos tags.

i tried some things, so i tried to remove the map from view and replaced with a simple Container(). after this change, i haven't any crash on the take photo page. it works fine.
then i replaced the Container() back to map. getImage worked once, then every time it crashed pn every emulator restart.

so flutter 1.20.2, image_picker and google_maps_flutter is a constellation, which crashes the emulator, maybe real devices. which flutter 1.75 there is no problem on this constellation.

i'm using google maps:

google_maps_flutter: ^0.5.29+1

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 17, 2020
@maerlynflagg
Copy link
Author

if i using this in visual studio code:

"args": ["--enable-software-rendering", "-d", "all"]

it crashed on opening the details page with the map.

@maerlynflagg
Copy link
Author

Hi @maerlynflagg
Could you please provide code repository which reproduced on latest stable on emulator?
Thank you

it is not a private app, so i can't.

@maerlynflagg
Copy link
Author

upgrade to google_maps_flutter: ^0.5.30 doesn't help.

i see, flutter.dev is the developer and publisher of both plugins google_maps_flutter and image_picker. so i hope, you can better find the conflict.

@TahaTesser
Copy link
Member

TahaTesser commented Aug 18, 2020

Hi @maerlynflagg
Please try to isolate the image_picker code and provide minimal complete reproducible code sample repository with just focus on image_picker, to better address the issue
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2020
@maerlynflagg
Copy link
Author

I have a sample for you.

in the pubspec.yaml add following:

  image_picker: ^0.6.7+4
  google_maps_flutter: ^0.5.30

Don't forget for Google Maps the API Keys in AndroidManifest.xml and AppDelegate.swift.

replace YOURAPIKEY with your key.

Android Manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.myTestApp">
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="myTestApp"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
        <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="YOURAPIKEY"/> 
    </application>
        <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.FLASHLIGHT" />
</manifest>
App Delegate
import UIKit
import Flutter
import GoogleMaps

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GMSServices.provideAPIKey(YOURAPIKEY)
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}

now replace your main.dart.

main.dart
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:image_picker/image_picker.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
        // This makes the visual density adapt to the platform that you run
        // the app on. For desktop platforms, the controls will be smaller and
        // closer together (more dense) than on mobile platforms.
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final ImagePicker _imagePicker = ImagePicker();
  int _counter = 0;

  /// Google Maps
  Completer<GoogleMapController> _controller = Completer();

  Future<void> _incrementCounter() async {
    PickedFile imageFile = await _imagePicker.getImage(source: ImageSource.camera, maxHeight: 1024, maxWidth: 1024, imageQuality: 100);
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
            Container(
              height: 300,
              child: GoogleMap(
                mapType: MapType.normal,
                initialCameraPosition: CameraPosition(
                  target: LatLng(
                    52.520008,
                    13.404954,
                  ),
                  zoom: 15,
                ),
                onMapCreated: (GoogleMapController controller) {
                  _controller.complete(controller);
                },
              ),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          await _incrementCounter();
        },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

now you can run the app in android emulator. for example Google Pixel 2 API 29. it crashes after getImage.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2020
@rodrigorafaeldamaceno
Copy link

I reproduced the image picker exemple and the app sometimes (50%) crashes on getImage, and in big apps the percentage of chrased is 100%, its happen only in android devices, iOs is ok.
I run in Moto G7 Play with android 10.

Link to Repository

flutter doctor -v
`[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-BR)
• Flutter version 1.20.3 at /Users/rodrigo/Documents/development/flutter
• Framework revision 216dee6 (13 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/rodrigo/Library/Android/sdk
• Platform android-29, build-tools 29.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_242-release-1644-b3-6222593)
• All Android licenses accepted.

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

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (1 available)
• iPhone (mobile) • 4c17eb992c760d84bcd6bf035c63045978815dd5 • ios • iOS 13.7

• No issues found!`

@jason-simmons
Copy link
Member

I tried running the maps/image_picker example app from #63663 (comment) but was unable to reproduce this on the devices i tried (Moto G4, Nexus 5X, Pixel 3) or on various emulator environments.

The emulators I used were hosted on Mac and Linux, but i noticed that the flutter doctor reports are from Windows hosts. Is the crash only happening on emulators running on Windows?

I also tried symbolizing the x86 stack trace from #63663 (comment) but was unable to get usable symbols from there.

@SG2010
Copy link

SG2010 commented Sep 15, 2020

For me it only failed in Emulator with Windows 10. My app didn't crash in real phone.

@jason-simmons
Copy link
Member

I was able to reproduce this on an Android emulator running on Windows.

When the app returns after capturing the image, the call to platform_view->CreateRenderingSurface() in PlatformView::NotifyCreated is unable to create a Skia GrContext. The resulting surface is invalid (Surface::IsValid() returns false)

Something later tries to use the invalid surface, resulting in the crash.

@maerlynflagg
Copy link
Author

I tried running the maps/image_picker example app from #63663 (comment) but was unable to reproduce this on the devices i tried (Moto G4, Nexus 5X, Pixel 3) or on various emulator environments.

The emulators I used were hosted on Mac and Linux, but i noticed that the flutter doctor reports are from Windows hosts. Is the crash only happening on emulators running on Windows?

I also tried symbolizing the x86 stack trace from #63663 (comment) but was unable to get usable symbols from there.

yes, like i said in the origin post, it is a emulator crash. on real device it currently looks all okay. but there is another thread with issue of image_picker on device #63217 .

this crash is since Flutter 1.20.x. the crash is only if a map is rendered. if the map is not rendered, all is fine.
if you have a page with map open or in navigation stack a page with map, so it crashes , if you use image_picker plugin or local_auth plugin.

@maerlynflagg
Copy link
Author

you can find a solution for some Skia Gr context issues, if you google:

--enable-software-rendering

but in this case, this is not a solution, because if this flag enabled and you open the view in your app, which included the map, it crashes directly the emulator.

so, currently it isn't fun to develope an app, if you use one or all combinations of plugins above with Flutter 1.20.x.

@jason-simmons
Copy link
Member

In the Android emulator, the call to GrContext::MakeGL in the GPUSurfaceGL constructor may fail because glGetString(GL_VERSION) is returning the wrong result.

When the Flutter app initially launches on the emulator it sees a GLES 3.1 version string. But after starting the camera activity and returning to the main Flutter activity, glGetString(GL_VERSION) returns a GLES 1.1 version string.

Skia's GrGLMakeAssembledGLESInterface uses the GLES version string to determine which GLES APIs to query. GrGLMakeAssembledGLESInterface will reject a version before GLES 2.0. So the attempt to create a GrContext fails, resulting in an invalid GPUSurfaceGL instance. The rasterizer later tries to use the invalid Surface, resulting in a crash.

glGetString(GL_VERSION) is claiming to be GLES version 1.1 due to a bug in the Android emulator OpenGL ES translator library. The version string is a global that is only updated when you call eglMakeCurrent on an EGLContext for the first time after the context is created.

So in a call sequence like this:

contextA = createContext(GLES2)
contextB = createContext(GLES1)
eglMakeCurrent(contextA)
eglMakeCurrent(contextB)
eglMakeCurrent(contextA)

the second eglMakeCurrent(contextA) will not update the version string, and glGetString(GL_VERSION) will return a value representing contextB.

This issue started happening as a side effect of a refactoring of the Android EGL context/surface lifecycle (flutter/engine@fafccf8)

Before that, the Flutter engine would destroy its EGLContext when the camera activity started and create a new EGLContext when Flutter was back on screen. Calling eglMakeCurrent on the newly created EGLContext would work around this bug.
But now, Flutter is reusing the same EGLContext it had before starting the camera activity. So calling eglMakeCurrent on the old EGLContext will not update the version string, and Skia's version check fails.

I'll look for a way to work around this when the engine is running on an Android emulator.

@maerlynflagg
Copy link
Author

In the Android emulator, the call to GrContext::MakeGL in the GPUSurfaceGL constructor may fail because glGetString(GL_VERSION) is returning the wrong result.

When the Flutter app initially launches on the emulator it sees a GLES 3.1 version string. But after starting the camera activity and returning to the main Flutter activity, glGetString(GL_VERSION) returns a GLES 1.1 version string.

Skia's GrGLMakeAssembledGLESInterface uses the GLES version string to determine which GLES APIs to query. GrGLMakeAssembledGLESInterface will reject a version before GLES 2.0. So the attempt to create a GrContext fails, resulting in an invalid GPUSurfaceGL instance. The rasterizer later tries to use the invalid Surface, resulting in a crash.

glGetString(GL_VERSION) is claiming to be GLES version 1.1 due to a bug in the Android emulator OpenGL ES translator library. The version string is a global that is only updated when you call eglMakeCurrent on an EGLContext for the first time after the context is created.

So in a call sequence like this:

contextA = createContext(GLES2)
contextB = createContext(GLES1)
eglMakeCurrent(contextA)
eglMakeCurrent(contextB)
eglMakeCurrent(contextA)

the second eglMakeCurrent(contextA) will not update the version string, and glGetString(GL_VERSION) will return a value representing contextB.

This issue started happening as a side effect of a refactoring of the Android EGL context/surface lifecycle (flutter/engine@fafccf8)

Before that, the Flutter engine would destroy its EGLContext when the camera activity started and create a new EGLContext when Flutter was back on screen. Calling eglMakeCurrent on the newly created EGLContext would work around this bug.
But now, Flutter is reusing the same EGLContext it had before starting the camera activity. So calling eglMakeCurrent on the old EGLContext will not update the version string, and Skia's version check fails.

I'll look for a way to work around this when the engine is running on an Android emulator.

so if i combine your answer with the origin issue, so the version check fails only, if you using google maps. without google maps, camera and local auth working fine in Android emulator.

hope it will be fixed for better working.

jason-simmons added a commit to jason-simmons/flutter_engine that referenced this issue Sep 17, 2020
…GL version strings

Some versions of the Android emulator EGL implementation will only
update the GL_VERSION string when the process calls eglMakeCurrent
on an EGLContext for the first time.  If you select a GLES2 context,
then a GLES1 context, and then the original GLES2 context, the version
string will not be updated by the second eglMakeCurrent(GLES2) call.

So if a GLES1 context was previously current, then when the engine makes
its GLES2 context current Skia will continue to see the GLES1 version
string and will fail to build a GrGLInterface.

This workaround checks for the emulator GL renderer and creates a new
context to force a version string update before making the
GrGLInterface.

See internal bug b/168748787

Fixes flutter/flutter#63663
jason-simmons added a commit to jason-simmons/flutter_engine that referenced this issue Sep 17, 2020
If PlatformView::CreateRenderingSurface produces a surface that is not
fully initialized, then the invalid surface will cause crashes when it
is eventually used by the rasterizer.

See flutter/flutter#63663
@sandip-parmarsv
Copy link

Same with Android API 28.

Please can give me guidance how to solve this issue as i am new in flutter and i want use google map and image picker through camera in my app.

@maerlynflagg
Copy link
Author

maerlynflagg commented Oct 7, 2020

i upgraded to Flutter 1.22.0 today. so there is no crash in Windows Emulator Android, because now i get a PlatformException. Camera is not aviable. looks like a workaround by Flutter.

EDIT

Okay looks like a bug, cause on my real device Google Pixel 3 i got the PlatformException "No cameras available for taking pictures." too.

EDIT 2

i upgraded again today, cleaned today again, build again and delete and installed app again on emulator. now the PlatformException is solved.

But for the Skia Gr context issue on Windows Android Emulator i haven't a good workaround. some workarounds i tested wasn't good in the release build test.

@aidooyaw1992
Copy link

this issue is still persisiting

@TahaTesser
Copy link
Member

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@maerlynflagg
Copy link
Author

currently i haven't a crash like i described in the first posts.

using:

flutter 1.22.5
local_auth: ^0.6.3+4
google_maps_flutter: ^1.0.6
image_picker: ^0.6.7+17

@rafaelsimonassi
Copy link

Hello,

I am facing the same issue.
I am using:

flutter 1.22.5
google_maps_flutter: ^1.0.10
image_picker: ^0.6.7+21

I am not using local_auth.

Can you please help me?

@ligoriofc
Copy link

Hi, i'm having the same problem, but by now I downgraded to flutter 1.17.

I'm still waiting for some solution...

@TahaTesser
Copy link
Member

TahaTesser commented Jan 19, 2021

@rafaelsimonassi @ligoriofc
Please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.

@github-actions
Copy link

github-actions bot commented Aug 6, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
@flutter-triage-bot flutter-triage-bot bot added P0 Critical issues such as a build break or regression and removed P2 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. found in release: 1.20 Found to occur in 1.20 found in release: 1.21 Found to occur in 1.21 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: image_picker The Image Picker plugin. p: local_auth Plugin for local authentification p: maps Google Maps plugin P0 Critical issues such as a build break or regression package flutter/packages repository. See also p: labels. platform-android Android applications specifically waiting for PR to land (fixed) A fix is in flight
Projects
None yet
14 participants