hiddentao / cordova-plugin-filepath

Resolve native file paths from content URLs for Cordova platforms
Apache License 2.0
66 stars 127 forks source link

cordova-plugin-filepath Crash Report #66

Open Gokulakannan1997 opened 3 years ago

Gokulakannan1997 commented 3 years ago

I got the below error in the play store crash report. In any block we can't able to find the solution and root cause of this issue.

Mainly this is occurred for Motorola and Huawei devices.

Android 7,9

Full stack-trace:

java.lang.RuntimeException: at android.app.ActivityThread.deliverResults (ActivityThread.java:5078) at android.app.ActivityThread.handleSendResult (ActivityThread.java:5120) at android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:49) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2199) at android.os.Handler.dispatchMessage (Handler.java:112) at android.os.Looper.loop (Looper.java:216) at android.app.ActivityThread.main (ActivityThread.java:7625) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987) Caused by: java.lang.IllegalArgumentException: at android.database.AbstractCursor.getColumnIndexOrThrow (AbstractCursor.java:340) at android.database.CursorWrapper.getColumnIndexOrThrow (CursorWrapper.java:87) at com.hiddentao.cordova.filepath.FilePath.getDataColumn (FilePath.java:215) at com.hiddentao.cordova.filepath.FilePath.getPath (FilePath.java:410) at com.hiddentao.cordova.filepath.FilePath.resolveNativePath (FilePath.java:103) at com.hiddentao.cordova.filepath.FilePath.onRequestPermissionResult (FilePath.java:138) at org.apache.cordova.CordovaInterfaceImpl.onRequestPermissionResult (CordovaInterfaceImpl.java:221) at org.apache.cordova.CordovaActivity.onRequestPermissionsResult (CordovaActivity.java:509) at android.app.Activity.dispatchRequestPermissionsResult (Activity.java:7951) at android.app.Activity.dispatchActivityResult (Activity.java:7801) at android.app.ActivityThread.deliverResults (ActivityThread.java:5071)

Ionic details: Ionic CLI : 5.4.16 (C:\Users\2304435\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 4.11.2 @angular-devkit/build-angular : 0.801.3 @angular-devkit/schematics : 8.1.3 @angular/cli : 8.1.3 @ionic/angular-toolkit : 2.0.0

Cordova:

Cordova CLI : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : not available Cordova Plugins : not available

Utility:

cordova-res : not installed native-run : not installed

System:

Android SDK Tools : 26.1.1 (E:\Softwares\SDK\IONIC\android-sdk-windows-1.6_r1) NodeJS : v12.16.1 (C:\Program Files\nodejs\node.exe) npm : 6.13.4 OS : Windows 10

tonn1o commented 3 years ago

@Gokulakannan1997 did you manage to reproduce it?