lubritto / pdf_viewer_plugin

A Flutter plugin for IOS and Android providing a simple way to display PDFs.
MIT License
57 stars 58 forks source link

Android Studio hot overload PdfViewer crashes #9

Open cong5 opened 4 years ago

cong5 commented 4 years ago

Android Studio hot overload PdfViewer crashes, what is the problem? Thank you

I/CrashReport-Native( 1799): Successfully handled this native crash in Java profile.
D/CrashReport-Native( 1799): Finished waiting 440 ms.
I/CrashReport-Native( 1799): Clear eupInfo object.
I/CrashReport-Native( 1799): Try to unlock file: /data/user/0/example.persimmon.test001/app_bugly/../files/native_record_lock
I/CrashReport-Native( 1799): Successfully unlock file: /data/user/0/example.persimmon.test001/app_bugly/../files/native_record_lock
D/CrashReport-Native( 1799): Restored signal handlers.
D/CrashReport-Native( 1799): Unregister signal handlers.
D/CrashReport-Native( 1799): Re-sending signal 'SIGABRT' to thread: 1799
F/libc    ( 1799): Fatal signal 6 (SIGABRT), code 0 in tid 1799 (.persimmon.test001)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Rock/odin/odin:7.1.1/NMF26F/1560387925:user/dev-keys'
Revision: '0'
ABI: 'arm64'
pid: 1799, tid: 1799, name: .persimmon.test001  >>> example.persimmon.test001 <<<
signal 6 (SIGABRT), code 0 (SI_USER), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env). 
'
    x0   0000000000000000  x1   0000000000000707  x2   0000000000000006  x3   0000000000000008
    x4   00000000000000bb  x5   0000000000000080  x6   0000007f97c71000  x7   0000000000000000
    x8   0000000000000083  x9   ffffffffffffffdf  x10  0000000000000000  x11  0000000000000001
    x12  ffffffffffffffff  x13  0000000000000000  x14  0000000000000000  x15  00275cbf76f52d2e
    x16  0000007f972dfee0  x17  0000007f97289788  x18  00000000710e8b68  x19  0000007f97d25b40
    x20  0000000000000006  x21  0000007f97d25a98  x22  000000000000000b  x23  0000007f5c875a98
    x24  000000000000002e  x25  0000000000000000  x26  0000007fd9e179d8  x27  000000000000002e
    x28  0000000000000001  x29  0000007fd9e176d0  x30  0000007f97286c18
    sp   0000007fd9e176b0  pc   0000007f97289790  pstate 0000000060000000
backtrace:
    #00 pc 000000000006b790  /system/lib64/libc.so (tgkill+8)
    #01 pc 0000000000068c14  /system/lib64/libc.so (pthread_kill+64)
    #02 pc 0000000000024180  /system/lib64/libc.so (raise+24)
    #03 pc 000000000001cbec  /system/lib64/libc.so (abort+52)
    #04 pc 00000000011d4c3c  /data/app/example.persimmon.test001-1/lib/arm64/libflutter.so (offset 0x11c0000)
    #05 pc 00000000011c6f9c  /data/app/example.persimmon.test001-1/lib/arm64/libflutter.so (offset 0x11c0000)
    #06 pc 00000000011c549c  /data/app/example.persimmon.test001-1/lib/arm64/libflutter.so (offset 0x11c0000)
    #07 pc 000000000120d9ac  /data/app/example.persimmon.test001-1/lib/arm64/libflutter.so (offset 0x11c0000)
    #08 pc 00000000011d55a8  /data/app/example.persimmon.test001-1/lib/arm64/libflutter.so (offset 0x11c0000)
    #09 pc 00000000011da7c8  /data/app/example.persimmon.test001-1/lib/arm64/libflutter.so (offset 0x11c0000)
    #10 pc 0000000000018428  /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+852)
    #11 pc 0000000000018024  /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+60)
    #12 pc 00000000000f4fa8  /system/lib64/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+48)
    #13 pc 00000000020f1e00  /system/framework/arm64/boot-framework.oat (offset 0x180c000) (android.os.MessageQueue.nativePollOnce+140)
    #14 pc 00000000020f3a20  /system/framework/arm64/boot-framework.oat (offset 0x180c000) (android.os.MessageQueue.next+236)
    #15 pc 00000000020ed58c  /system/framework/arm64/boot-framework.oat (offset 0x180c000) (android.os.Looper.loop+520)
    #16 pc 00000000018d1b44  /system/framework/arm64/boot-framework.oat (offset 0x180c000) (android.app.ActivityThread.main+528)
    #17 pc 00000000000d2d68  /system/lib64/libart.so (art_quick_invoke_static_stub+600)
    #18 pc 00000000000df7b0  /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+252)
    #19 pc 000000000042a940  /system/lib64/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+108)
    #20 pc 000000000042c4b0  /system/lib64/libart.so (_ZN3art12InvokeMethodERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectS4_S4_m+1188)
    #21 pc 00000000003a4a68  /system/lib64/libart.so (_ZN3artL13Method_invokeEP7_JNIEnvP8_jobjectS3_S3_+56)
    #22 pc 000000000061c098  /system/framework/arm64/boot.oat (offset 0x54f000) (java.lang.reflect.Method.invoke+180)
    #23 pc 00000000027f18e0  /system/framework/arm64/boot-framework.oat (offset 0x180c000) (com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run+124)
    #24 pc 00000000027f2d30  /system/framework/arm64/boot-framework.oat (offset 0x180c000) (com.android.internal.os.ZygoteInit.main+1580)
    #25 pc 00000000000d2d68  /system/lib64/libart.so (art_quick_invoke_static_stub+600)
    #26 pc 00000000000df7b0  /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+252)
    #27 pc 000000000042a940  /system/lib64/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+108)
    #28 pc 000000000042a598  /system/lib64/libart.so (_ZN3art17InvokeWithVarArgsERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDSt9__va_list+380)
    #29 pc 0000000000345dec  /system/lib64/libart.so (_ZN3art3JNI21CallStaticVoidMethodVEP7_JNIEnvP7_jclassP10_jmethodIDSt9__va_list+604)
    #30 pc 00000000000a2984  /system/lib64/libandroid_runtime.so
    #31 pc 00000000000a4f34  /system/lib64/libandroid_runtime.so (_ZN7android14AndroidRuntime5startEPKcRKNS_6VectorINS_7String8EEEb+672)
    #32 pc 0000000000002260  /system/bin/app_process64
    #33 pc 000000000001a7d8  /system/lib64/libc.so (__libc_init+88)
    #34 pc 0000000000001ccc  /system/bin/app_process64
Lost connection to device.
leonardopaim commented 4 years ago

Any news on this?

lubritto commented 4 years ago

This is a bug when use the native plugin with a platform view, I am trying to solve this!