The application crashes when I try to use a take photo option and try to take the picture.
Project Information
- Repository: https://github.com/laurent22/joplin
- Project Name: Joplin
- My Github Account: https://github.com/friendsmobile
- Download the application: https://github.com/laurent22/joplin/releases
- My Issue Submitted: https://github.com/laurent22/joplin/issues/1750
Expected behavior
When I use the take option and try to take more photos, the application should not crash.
When I take a picture, this picture should be automatically displayed on the profile
Actual behavior
The application crashes when I try to use a take photo option and try to take the picture.
How to reproduce
Download the application
open the application
click on PLUS button and create new to do file
click on 3 verticals dots at top right
click on Attach option
select the Take photo option and try to take any pictures with the help of your back camera from a mobile
Note the Error
Browser/App version: v1.0.161
Operating system: 6.0
Recording Of The Bug
Logcat
E/AndroidRuntime( 828): FATAL EXCEPTION: AsyncTask #4
E/AndroidRuntime( 828): Process: net.cozic.joplin, PID: 828
E/AndroidRuntime( 828): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 828): at android.os.AsyncTask$3.done(AsyncTask.java:304)
E/AndroidRuntime( 828): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
E/AndroidRuntime( 828): at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
E/AndroidRuntime( 828): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
E/AndroidRuntime( 828): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/AndroidRuntime( 828): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/AndroidRuntime( 828): at java.lang.Thread.run(Thread.java:818)
E/AndroidRuntime( 828): Caused by: java.lang.OutOfMemoryError: Failed to allocate a 51121164 byte allocation with 12737262 free bytes and 12MB until OOM
E/AndroidRuntime( 828): at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
E/AndroidRuntime( 828): at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
E/AndroidRuntime( 828): at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:719)
E/AndroidRuntime( 828): at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:742)
E/AndroidRuntime( 828): at org.reactnative.camera.tasks.ResolveTakenPictureAsyncTask.doInBackground(ResolveTakenPictureAsyncTask.java:92)
E/AndroidRuntime( 828): at org.reactnative.camera.tasks.ResolveTakenPictureAsyncTask.doInBackground(ResolveTakenPictureAsyncTask.java:26)
E/AndroidRuntime( 828): at android.os.AsyncTask$2.call(AsyncTask.java:292)
E/AndroidRuntime( 828): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/AndroidRuntime( 828): ... 3 more
Hello, @friendsmobile. Thank you for your contribution. This looks like a version specif bug as the application works nicely on version 7.0. It crashed instantly when I tried using version 6.0. Thank you for reporting the issue and I look forward to your next report.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @knowledges! Keep up the good work!
Congratulations @friendsmobile! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Hi @friendsmobile!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Hey, @friendsmobile!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!