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

Crash when selecting file from Recents of files app (com.android.documentsui) #157

Open
DarkAbhi opened this issue Sep 11, 2020 · 0 comments

Comments

@DarkAbhi
Copy link

2020-09-12 04:21:27.037 27444-27444/com.iku.test E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/DCIM/Restored/IMG_20200831_171122.jpg (No such file or directory) 2020-09-12 04:21:27.038 27444-27444/com.test D/AndroidRuntime: Shutting down VM 2020-09-12 04:21:27.040 27444-27444/com.test E/AndroidRuntime: FATAL EXCEPTION: main Process: com.iku.test, PID: 27444 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:163086 flg=0x1 }} to activity {com.test/com.test.ImageActivity}: java.lang.ArithmeticException: divide by zero at android.app.ActivityThread.deliverResults(ActivityThread.java:4401)

When selecting image from files app from recents section app crashes with above error

String filePath = SiliCompressor.with(getApplicationContext()).compress(FileUtils.getPath(this,mImageUri),new File(this.getCacheDir(),"temp"),true);

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