Closed sergey-shpital closed 7 years ago
This error also exists on OnePlus OnePlus3T (OnePlus3T), 6144MB RAM, Android 7.1
It is hard to tell what is going wrong exactly since Camera API gives us little to no information about the crash, but I would assume that Camera was not able to allocate enough memory for your image. Possibly because you are using another Bitmap
at the same time (I spotted an AsyncTask
in one of your threads).
Things to try:
largeHeap
flag in your AndroidManifest
. That is advisable for apps which are working with images.despite all the effort, quite a frequent mistake :(
OnePlus OnePlus3T (OnePlus3T), 6144MB RAM, Android 7.1
java.lang.RuntimeException: at io.fotoapparat.result.PendingResult.getResultUnsafe (PendingResult.java:129) at io.fotoapparat.result.PendingResult.access$100 (PendingResult.java:20) at io.fotoapparat.result.PendingResult$2.run (PendingResult.java:98) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607) at java.lang.Thread.run (Thread.java:761) Caused by: java.util.concurrent.ExecutionException: at java.util.concurrent.FutureTask.report (FutureTask.java:94) at java.util.concurrent.FutureTask.get (FutureTask.java:164) at io.fotoapparat.result.PendingResult.getResultUnsafe (PendingResult.java:127)
I'll try to update to 1.3.0
Platform: android
OS Version: 6.0.1
Device: MI 5
RAM Free: 16.7%
Disk Free: 43.7%
0. Crashed: pool-9-thread-1: 0 0 0x0000000000000000
--
Fatal Exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: takePicture failed at io.fotoapparat.result.PendingResult.getResultUnsafe(PendingResult.java:129) at io.fotoapparat.result.PendingResult.access$100(PendingResult.java:20) at io.fotoapparat.result.PendingResult$2.run(PendingResult.java:98) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: takePicture failed at java.util.concurrent.FutureTask.report(FutureTask.java:94) at java.util.concurrent.FutureTask.get(FutureTask.java:164) at io.fotoapparat.result.PendingResult.getResultUnsafe(PendingResult.java:127) at io.fotoapparat.result.PendingResult.access$100(PendingResult.java:20) at io.fotoapparat.result.PendingResult$2.run(PendingResult.java:98) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by java.util.concurrent.ExecutionException: java.lang.RuntimeException: takePicture failed at java.util.concurrent.FutureTask.report(FutureTask.java:94) at java.util.concurrent.FutureTask.get(FutureTask.java:164) at io.fotoapparat.result.PendingResult$1.call(PendingResult.java:56) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by java.lang.RuntimeException: takePicture failed at android.hardware.Camera.native_takePicture(Camera.java) at android.hardware.Camera.takePicture(Camera.java:1710) at io.fotoapparat.hardware.v1.Camera1.takePicture(Camera1.java:258) at io.fotoapparat.routine.picture.TakePictureTask$1.call(TakePictureTask.java:24) at io.fotoapparat.routine.picture.TakePictureTask$1.call(TakePictureTask.java:19) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)
0. Crashed: pool-9-thread-1: 0 0 0x0000000000000000
1. AsyncTask #4
2. androidmapsapi-appenvironment-1
3. Thread-983
4. AsyncTask #3
5. Thread-985
6. pool-9-thread-2
7. androidmapsapi-vts_no_pois_club.rentmee.apps
8. GAC_Executor[0]
9. GoogleApiHandler
10. androidmapsapi-ula-1
11. Answers Events Handler1
12. Thread-963
13. Queue
14. Queue
15. androidmapsapi-vts_traf_club.rentmee.apps
16. FinalizerDaemon
17. AsyncTask #1
18. androidmapsapi-vts_inaka_club.rentmee.apps
19. Thread-986
20. pool-4-thread-1
21. Thread-984
22. Thread-988
23. Crashlytics Exception Handler1
24. GLThread 1005
25. androidmapsapi-vts_club.rentmee.apps
26. androidmapsapi-vts_labl_club.rentmee.apps
27. FinalizerWatchdogDaemon
28. androidmapsapi-ulcs-1
29. OkHttp ConnectionPool
30. HeapTaskDaemon
31. Timer-0
32. androidmapsapi-its
33. androidmapsapi-its_ter
34. Queue
35. androidmapsapi-scpm-1
36. Queue
37. pool-6-thread-1
38. java.lang.ProcessManager
39. Queue
40. Thread-987
41. Timer-2
42. main
43. pool-9-thread-1
44. AsyncTask #5
45. androidmapsapi-ibs
46. RenderDrive
47. AsyncTask #2
48. GAC_Executor[1]
49. ReferenceQueueDaemon
50. GAC_Executor[0]
51. Okio Watchdog