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

add base iamge and merge image crash (MI 4C Android4.4.4KTU84P) #3

Closed
philos3 opened this issue May 2, 2016 · 3 comments
Closed

add base iamge and merge image crash (MI 4C Android4.4.4KTU84P) #3

philos3 opened this issue May 2, 2016 · 3 comments

Comments

@philos3
Copy link

philos3 commented May 2, 2016

05-02 18:43:52.065 26674-26983/com.cooltechworks.bitmapmerger E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.cooltechworks.bitmapmerger, PID: 26674
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: com.cooltechworks.bitmapmerger.tasks.BitmapDecoderTask$BitmapDecodeException: Did not provide a valid Uri.
at com.cooltechworks.bitmapmerger.tasks.BitmapDecoderTask.decodeSampledBitmapFromDisk(BitmapDecoderTask.java:181)
at com.cooltechworks.bitmapmerger.tasks.BitmapDecoderTask.doInBackground(BitmapDecoderTask.java:126)
at com.cooltechworks.bitmapmerger.tasks.BitmapDecoderTask.doInBackground(BitmapDecoderTask.java:25)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:841) 

@sharish
Copy link
Owner

sharish commented May 2, 2016

Can you post the code you have used which caused this crash. As you can see the source BitmapDecoderTask.java line 181, the URI you have fetched resulted in FileNotFoundException aborting the process. Check whether the image URI reference have a valid file path.

Thanks,
Harish

@philos3
Copy link
Author

philos3 commented May 2, 2016

I just download the zip ,unzip it and run the code without checking
I'm so sorry,I forgot to add the permission android.permission.WRITE_EXTERNAL_STORAGE
now the problem has been solved

@sharish
Copy link
Owner

sharish commented May 2, 2016

Fine then.

@sharish sharish closed this as completed May 2, 2016
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

2 participants