react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 440 forks source link

Android App crashing #690

Closed VladimirBludov closed 11 months ago

VladimirBludov commented 11 months ago

Bug report

👋 Hi!

Getting this crash in Google Play Console.

com.reactnativedocumentpicker.RNDocumentPickerModule$ProcessDataTask.getMetadata

Type: java.lang.RuntimeException

Log: Exception java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done (AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:381) at java.util.concurrent.FutureTask.setException (FutureTask.java:250) at java.util.concurrent.FutureTask.run (FutureTask.java:269) at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:305) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644) at java.lang.Thread.run (Thread.java:1012) Caused by java.lang.SecurityException: at android.os.Parcel.createExceptionOrNull (Parcel.java:3011) at android.os.Parcel.createException (Parcel.java:2995) at android.os.Parcel.readException (Parcel.java:2978) at android.os.Parcel.readException (Parcel.java:2920) at android.app.IActivityManager$Stub$Proxy.getContentProvider (IActivityManager.java:5224) at android.app.ActivityThread.acquireProvider (ActivityThread.java:7033) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider (ContextImpl.java:3420) at android.content.ContentResolver.acquireUnstableProvider (ContentResolver.java:2526) at android.content.ContentResolver.query (ContentResolver.java:1203) at android.content.ContentResolver.query (ContentResolver.java:1151) at com.reactnativedocumentpicker.RNDocumentPickerModule$ProcessDataTask.getMetadata (RNDocumentPickerModule.java:269) at com.reactnativedocumentpicker.RNDocumentPickerModule$ProcessDataTask.doInBackgroundGuarded (RNDocumentPickerModule.java:250) at com.reactnativedocumentpicker.RNDocumentPickerModule$ProcessDataTask.doInBackgroundGuarded (RNDocumentPickerModule.java:232) at com.facebook.react.bridge.GuardedResultAsyncTask.doInBackground (GuardedResultAsyncTask.java:32) at com.facebook.react.bridge.GuardedResultAsyncTask.doInBackground (GuardedResultAsyncTask.java:16) at android.os.AsyncTask$3.call (AsyncTask.java:394) at java.util.concurrent.FutureTask.run (FutureTask.java:264) Caused by android.os.RemoteException: Remote stack trace: at com.android.server.am.ContentProviderHelper.checkAssociationAndPermissionLocked (ContentProviderHelper.java:631) at com.android.server.am.ContentProviderHelper.getContentProviderImpl (ContentProviderHelper.java:256) at com.android.server.am.ContentProviderHelper.getContentProvider (ContentProviderHelper.java:136) at com.android.server.am.ActivityManagerService.getContentProvider (ActivityManagerService.java:6476) at android.app.IActivityManager$Stub.onTransact (IActivityManager.java:2395)

library version: 9.0.1

Android versions: 12 and 13

github-actions[bot] commented 11 months ago

:wave: @VladimirBludov, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue. The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it!