KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
334 stars 395 forks source link

ANR triggered by thread waiting for a binder transaction #249

Open okmanideep opened 1 year ago

okmanideep commented 1 year ago
Full Stacktrace

main (native):tid=1 systid=10490 
#00 pc 0xc7b74 libc.so (__ioctl + 4) (BuildId: f24f65acf653c409ca4332aced817a71)
#01 pc 0x825ec libc.so (ioctl + 156) (BuildId: f24f65acf653c409ca4332aced817a71)
#02 pc 0x45ab4 libbinder.so (android::IPCThreadState::talkWithDriver(bool) + 292) (BuildId: 229c3afc1b08b46b6934fdd8463925e6)
#03 pc 0x46c8c libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*) + 60) (BuildId: 229c3afc1b08b46b6934fdd8463925e6)
#04 pc 0x469d8 libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 216) (BuildId: 229c3afc1b08b46b6934fdd8463925e6)
#05 pc 0x3e96c libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 308) (BuildId: 229c3afc1b08b46b6934fdd8463925e6)
#06 pc 0x161490 libandroid_runtime.so (android_os_BinderProxy_transact(_JNIEnv*, _jobject*, int, _jobject*, _jobject*, int) + 392) (BuildId: 85a314aa246817e02b514ef849c2ffb2)
#07 pc 0x461554 libart.so (art_quick_generic_jni_trampoline + 148) (BuildId: 289d75599f6112d5757113220599e90b)
#08 pc 0x204e87c memfd:jit-zygote-cache (android.os.BinderProxy.transact + 2908)
#09 pc 0x27306dc memfd:jit-zygote-cache (android.content.ContentProviderProxy.openTypedAssetFile + 476)
#10 pc 0x2739e80 memfd:jit-zygote-cache (android.content.ContentResolver.openTypedAssetFileDescriptor + 640)
#11 pc 0x2738ac8 memfd:jit-zygote-cache (android.content.ContentResolver.openAssetFileDescriptor + 3000)
#12 pc 0x273967c memfd:jit-zygote-cache (android.content.ContentResolver.openInputStream + 236)
#13 pc 0x20a2b0 libart.so (nterp_helper + 4016) (BuildId: 289d75599f6112d5757113220599e90b)
#14 pc 0x4ad950 base.vdex (n7.a.b + 368)
#15 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#16 pc 0x4ad7aa base.vdex (n7.a.a + 746)
#17 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#18 pc 0x4adf12 base.vdex (n7.b.c + 362)
#19 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#20 pc 0x4ae02a base.vdex (n7.b.e + 94)
#21 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#22 pc 0x4ae13c base.vdex (n7.b.onAttachedToActivity + 48)
#23 pc 0x20b074 libart.so (nterp_helper + 7540) (BuildId: 289d75599f6112d5757113220599e90b)
#24 pc 0x8ccfe6 base.vdex (io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add + 274)
#25 pc 0x457b6c libart.so (art_quick_invoke_stub + 556) (BuildId: 289d75599f6112d5757113220599e90b)
#26 pc 0x580bdc libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) + 1008) (BuildId: 289d75599f6112d5757113220599e90b)
#27 pc 0x212e6c libart.so (void art::interpreter::ExecuteSwitchImplCpp(art::interpreter::SwitchImplContext*) + 4920) (BuildId: 289d75599f6112d5757113220599e90b)
#28 pc 0x463dd8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: 289d75599f6112d5757113220599e90b)
#29 pc 0x8e54bc base.vdex (io.flutter.plugins.GeneratedPluginRegistrant.registerWith)
#30 pc 0x493a00 libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.377005605538229688) + 396) (BuildId: 289d75599f6112d5757113220599e90b)
#31 pc 0x493078 libart.so (artQuickToInterpreterBridge + 1116) (BuildId: 289d75599f6112d5757113220599e90b)
#32 pc 0x461688 libart.so (art_quick_to_interpreter_bridge + 88) (BuildId: 289d75599f6112d5757113220599e90b)
#33 pc 0x209398 libart.so (nterp_helper + 152) (BuildId: 289d75599f6112d5757113220599e90b)
#34 pc 0x26a08e base.vdex (buzz.praja.app.MainActivity.configureFlutterEngine + 10)
#35 pc 0x20b120 libart.so (nterp_helper + 7712) (BuildId: 289d75599f6112d5757113220599e90b)
#36 pc 0x8c33b8 base.vdex (io.flutter.embedding.android.FlutterFragment.configureFlutterEngine + 20)
#37 pc 0x20b074 libart.so (nterp_helper + 7540) (BuildId: 289d75599f6112d5757113220599e90b)
#38 pc 0x8c0588 base.vdex (io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach + 116)
#39 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#40 pc 0x8c348a base.vdex (io.flutter.embedding.android.FlutterFragment.onAttach + 22)
#41 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#42 pc 0x239086 base.vdex (androidx.fragment.app.Fragment.performAttach + 98)
#43 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#44 pc 0x232e32 base.vdex (androidx.fragment.app.u.c + 398)
#45 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#46 pc 0x233788 base.vdex (androidx.fragment.app.u.m + 248)
#47 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#48 pc 0x234998 base.vdex (androidx.fragment.app.v.r + 60)
#49 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#50 pc 0x231904 base.vdex (androidx.fragment.app.n.Q0 + 64)
#51 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#52 pc 0x23054a base.vdex (androidx.fragment.app.n.T + 18)
#53 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#54 pc 0x23023e base.vdex (androidx.fragment.app.n.D + 22)
#55 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#56 pc 0x22c4b0 base.vdex (androidx.fragment.app.i.f + 8)
#57 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#58 pc 0x22b3d4 base.vdex (androidx.fragment.app.e.onCreate + 24)
#59 pc 0x20a254 libart.so (nterp_helper + 3924) (BuildId: 289d75599f6112d5757113220599e90b)
#60 pc 0x8c2c1a base.vdex (io.flutter.embedding.android.FlutterFragmentActivity.onCreate + 18)
#61 pc 0x257de34 memfd:jit-zygote-cache (android.app.Activity.performCreate + 1268)
#62 pc 0x2645870 memfd:jit-zygote-cache (android.app.Instrumentation.callActivityOnCreate + 80)
#63 pc 0x25c315c memfd:jit-zygote-cache (android.app.ActivityThread.performLaunchActivity + 3596)
#64 pc 0x25b2128 memfd:jit-zygote-cache (android.app.ActivityThread.handleLaunchActivity + 824)
#65 pc 0x26dc7c0 memfd:jit-zygote-cache (android.app.servertransaction.LaunchActivityItem.execute + 352)
#66 pc 0x26e13f8 memfd:jit-zygote-cache (android.app.servertransaction.TransactionExecutor.executeCallbacks + 568)
#67 pc 0x26e10d0 memfd:jit-zygote-cache (android.app.servertransaction.TransactionExecutor.execute + 784)
#68 pc 0x259ca98 memfd:jit-zygote-cache (android.app.ActivityThread$H.handleMessage + 1240)
#69 pc 0x2069028 memfd:jit-zygote-cache (android.os.Handler.dispatchMessage + 184)
#70 pc 0x29dc6cc memfd:jit-zygote-cache (android.os.Looper.loopOnce + 1324)
#71 pc 0x20879f0 memfd:jit-zygote-cache (android.os.Looper.loop + 656)
#72 pc 0x209398 libart.so (nterp_helper + 152) (BuildId: 289d75599f6112d5757113220599e90b)
#73 pc 0x1b51c0 framework.jar (android.app.ActivityThread.main + 220)
#74 pc 0x457e00 libart.so (art_quick_invoke_static_stub + 576) (BuildId: 289d75599f6112d5757113220599e90b)
#75 pc 0x48c038 libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long) + 1560) (BuildId: 289d75599f6112d5757113220599e90b)
#76 pc 0x48b9f8 libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*) (.__uniq.165753521025965369065708152063621506277) + 48) (BuildId: 289d75599f6112d5757113220599e90b)
#77 pc 0x461554 libart.so (art_quick_generic_jni_trampoline + 148) (BuildId: 289d75599f6112d5757113220599e90b)
#78 pc 0x2dcd368 memfd:jit-zygote-cache (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 136)
#79 pc 0x20b0d4 libart.so (nterp_helper + 7636) (BuildId: 289d75599f6112d5757113220599e90b)
#80 pc 0x2a8f66 framework.jar (com.android.internal.os.ZygoteInit.main + 714)
#81 pc 0x457e00 libart.so (art_quick_invoke_static_stub + 576) (BuildId: 289d75599f6112d5757113220599e90b)
#82 pc 0x58bbc4 libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list) + 912) (BuildId: 289d75599f6112d5757113220599e90b)
#83 pc 0x609af8 libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list) + 172) (BuildId: 289d75599f6112d5757113220599e90b)
#84 pc 0xafb28 libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...) + 120) (BuildId: 85a314aa246817e02b514ef849c2ffb2)
#85 pc 0xbb214 libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector const&, bool) + 948) (BuildId: 85a314aa246817e02b514ef849c2ffb2)
#86 pc 0x2580 app_process64 (main + 1320) (BuildId: c4e0717e77dbaf6f3710de1f5d169e0e)
#87 pc 0x71538 libc.so (__libc_init + 96) (BuildId: f24f65acf653c409ca4332aced817a71)
       at android.os.BinderProxy.transactNative(Native method)
       at android.os.BinderProxy.transact(BinderProxy.java:641)
       at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:778)
       at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2043)
       at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858)
       at android.content.ContentResolver.openInputStream(ContentResolver.java:1534)
       at com.kasem.receive_sharing_intent.FileDirectory.getDataColumn(FileDirectory.java:184)
       at com.kasem.receive_sharing_intent.FileDirectory.getAbsolutePath(FileDirectory.java:373)
       at com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.getMediaUris(ReceiveSharingIntentPlugin.java:181)
       at com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.handleIntent(ReceiveSharingIntentPlugin.java:47)
       at com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.onAttachedToActivity(ReceiveSharingIntentPlugin.java:24)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(unavailable:137)
       at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(unavailable:695)
       at buzz.praja.app.MainActivity.configureFlutterEngine(unavailable:5)
       at io.flutter.embedding.android.FlutterFragment.configureFlutterEngine(unavailable:10)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(unavailable:58)
       at io.flutter.embedding.android.FlutterFragment.onAttach(unavailable:11)
       at androidx.fragment.app.Fragment.performAttach(unavailable:49)
       at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:199)
       at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:124)
       at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:30)
       at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:32)
       at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:9)
       at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:11)
       at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:4)
       at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:12)
       at io.flutter.embedding.android.FlutterFragmentActivity.onCreate(unavailable:9)
       at android.app.Activity.performCreate(Activity.java:8130)
       at android.app.Activity.performCreate(Activity.java:8110)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1343)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3782)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3975)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2377)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:233)
       at android.os.Looper.loop(Looper.java:344)
       at android.app.ActivityThread.main(ActivityThread.java:8205)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)

Plugin Java Code Stacktrace

       at android.os.BinderProxy.transactNative(Native method)
       at android.os.BinderProxy.transact(BinderProxy.java:641)
       at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:778)
       at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2043)
       at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858)
       at android.content.ContentResolver.openInputStream(ContentResolver.java:1534)
       at com.kasem.receive_sharing_intent.FileDirectory.getDataColumn(FileDirectory.java:184)
       at com.kasem.receive_sharing_intent.FileDirectory.getAbsolutePath(FileDirectory.java:373)
       at com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.getMediaUris(ReceiveSharingIntentPlugin.java:181)
       at com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.handleIntent(ReceiveSharingIntentPlugin.java:47)
       at com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.onAttachedToActivity(ReceiveSharingIntentPlugin.java:24)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(unavailable:137)
       at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(unavailable:695)