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

App crashs when select multiple files using window.OurCodeWorld.Filebrowser.filePicker.multi() #13

Open
minhadd opened this issue Jun 21, 2022 · 0 comments

Comments

@minhadd
Copy link

minhadd commented Jun 21, 2022

Hi Team,

I am using your filebrowser plugin to select files on platform Cordova Android 10.1.2
The plugin works on single file selection as expected. But my app crashs when I select multi files using window.OurCodeWorld.Filebrowser.filePicker.multi()

Here is my error logcat:

2022-06-21 10:16:40.728 11975-11975/io.ionic.starter D/PluginManager: postMessage: spinner
2022-06-21 10:16:46.065 11975-12067/io.ionic.starter D/PluginManager: getPlugin - put: Filebrowser
2022-06-21 10:16:46.065 11975-11975/io.ionic.starter I/chromium: [INFO:CONSOLE(56)] "1. test", source: http://localhost/js/controllers.js (56)
2022-06-21 10:16:46.090 11975-11975/io.ionic.starter D/CordovaActivity: Paused the activity.
2022-06-21 10:16:46.065 11975-12067/io.ionic.starter D/PluginManager: getPlugin - put: Filebrowser
2022-06-21 10:16:46.065 11975-12067/io.ionic.starter D/PluginManager: getPlugin - put: Filebrowser
2022-06-21 10:16:46.065 11975-11975/io.ionic.starter I/chromium: [INFO:CONSOLE(56)] "1. test", source: http://localhost/js/controllers.js (56)
2022-06-21 10:16:46.065 11975-11975/io.ionic.starter I/chromium: [INFO:CONSOLE(56)] "1. test", source: http://localhost/js/controllers.js (56)
2022-06-21 10:16:46.090 11975-11975/io.ionic.starter D/CordovaActivity: Paused the activity.
2022-06-21 10:16:47.240 11975-11975/io.ionic.starter I/Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.
2022-06-21 10:16:47.534 11975-12000/io.ionic.starter I/OpenGLRenderer: Davey! duration=905ms; Flags=1, IntendedVsync=8730554388837, Vsync=8731171055479, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=8731185924000, AnimationStart=8731185954000, PerformTraversalsStart=8731188854100, DrawStart=8731427424700, SyncQueued=8731451447700, SyncStart=8731471005000, IssueDrawCommandsStart=8731471179900, SwapBuffers=8731475442700, FrameCompleted=8731479144600, DequeueBufferDuration=609900, QueueBufferDuration=1833400, GpuCompleted=0,
2022-06-21 10:16:48.633 11975-12000/io.ionic.starter I/OpenGLRenderer: Davey! duration=1038ms; Flags=0, IntendedVsync=8731537770591, Vsync=8731671103919, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=8731679838700, AnimationStart=8731679950600, PerformTraversalsStart=8731680029400, DrawStart=8732483685900, SyncQueued=8732539559900, SyncStart=8732540720500, IssueDrawCommandsStart=8732540930600, SwapBuffers=8732573684900, FrameCompleted=8732577808400, DequeueBufferDuration=785400, QueueBufferDuration=1233000, GpuCompleted=0,
2022-06-21 10:16:47.240 11975-11975/io.ionic.starter I/Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.
2022-06-21 10:16:47.240 11975-11975/io.ionic.starter I/Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.
2022-06-21 10:16:58.148 11975-11975/io.ionic.starter D/AndroidRuntime: Shutting down VM
2022-06-21 10:16:58.172 11975-11975/io.ionic.starter E/AndroidRuntime: FATAL EXCEPTION: main
at android.net.Uri.checkFileUriExposed(Uri.java:2391)
2022-06-21 10:16:47.534 11975-12000/io.ionic.starter I/OpenGLRenderer: Davey! duration=905ms; Flags=1, IntendedVsync=8730554388837, Vsync=8731171055479, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=8731185924000, AnimationStart=8731185954000, PerformTraversalsStart=8731188854100, DrawStart=8731427424700, SyncQueued=8731451447700, SyncStart=8731471005000, IssueDrawCommandsStart=8731471179900, SwapBuffers=8731475442700, FrameCompleted=8731479144600, DequeueBufferDuration=609900, QueueBufferDuration=1833400, GpuCompleted=0,
at com.nononsenseapps.filepicker.AbstractFilePickerActivity.onFilesPicked(AbstractFilePickerActivity.java:165)
2022-06-21 10:16:47.534 11975-12000/io.ionic.starter I/OpenGLRenderer: Davey! duration=905ms; Flags=1, IntendedVsync=8730554388837, Vsync=8731171055479, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=8731185924000, AnimationStart=8731185954000, PerformTraversalsStart=8731188854100, DrawStart=8731427424700, SyncQueued=8731451447700, SyncStart=8731471005000, IssueDrawCommandsStart=8731471179900, SwapBuffers=8731475442700, FrameCompleted=8731479144600, DequeueBufferDuration=609900, QueueBufferDuration=1833400, GpuCompleted=0,
at com.nononsenseapps.filepicker.AbstractFilePickerFragment.onClickOk(AbstractFilePickerFragment.java:309)
2022-06-21 10:16:48.633 11975-12000/io.ionic.starter I/OpenGLRenderer: Davey! duration=1038ms; Flags=0, IntendedVsync=8731537770591, Vsync=8731671103919, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=8731679838700, AnimationStart=8731679950600, PerformTraversalsStart=8731680029400, DrawStart=8732483685900, SyncQueued=8732539559900, SyncStart=8732540720500, IssueDrawCommandsStart=8732540930600, SwapBuffers=8732573684900, FrameCompleted=8732577808400, DequeueBufferDuration=785400, QueueBufferDuration=1233000, GpuCompleted=0,
at com.nononsenseapps.filepicker.AbstractFilePickerFragment$2.onClick(AbstractFilePickerFragment.java:196)
2022-06-21 10:16:48.659 11975-11975/io.ionic.starter D/CordovaActivity: Stopped the activity.
at android.view.View.performClick(View.java:7448)
at android.view.View$PerformClick.run(View.java:28305)
2022-06-21 10:16:48.633 11975-12000/io.ionic.starter I/OpenGLRenderer: Davey! duration=1038ms; Flags=0, IntendedVsync=8731537770591, Vsync=8731671103919, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=8731679838700, AnimationStart=8731679950600, PerformTraversalsStart=8731680029400, DrawStart=8732483685900, SyncQueued=8732539559900, SyncStart=8732540720500, IssueDrawCommandsStart=8732540930600, SwapBuffers=8732573684900, FrameCompleted=8732577808400, DequeueBufferDuration=785400, QueueBufferDuration=1233000, GpuCompleted=0,
2022-06-21 10:16:48.659 11975-11975/io.ionic.starter D/CordovaActivity: Stopped the activity.
2022-06-21 10:16:58.148 11975-11975/io.ionic.starter D/AndroidRuntime: Shutting down VM
2022-06-21 10:16:58.172 11975-11975/io.ionic.starter E/AndroidRuntime: FATAL EXCEPTION: main
2022-06-21 10:16:58.148 11975-11975/io.ionic.starter D/AndroidRuntime: Shutting down VM
android.os.FileUriExposedException: file:///storage/emulated/0/Download/Screenshot_4.png exposed beyond app through ClipData.Item.getUri()
2022-06-21 10:16:58.262 11975-11975/io.ionic.starter I/Process: Sending signal. PID: 11975 SIG: 9
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:964)
2022-06-21 10:16:58.172 11975-11975/io.ionic.starter E/AndroidRuntime: FATAL EXCEPTION: main
2022-06-21 10:16:58.262 11975-11975/io.ionic.starter I/Process: Sending signal. PID: 11975 SIG: 9
2022-06-21 10:16:58.262 11975-11975/io.ionic.starter I/Process: Sending signal. PID: 11975 SIG: 9

Could you please take a look?

Thanks,
Minh

@minhadd minhadd changed the title App crashs when slect multiple files using window.OurCodeWorld.Filebrowser.filePicker.multi() App crashs when select multiple files using window.OurCodeWorld.Filebrowser.filePicker.multi() Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant