RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 408 forks source link

java.util.concurrent.ExecutionException #80

Closed sergey-shpital closed 7 years ago

sergey-shpital commented 7 years ago

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

   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)

--

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

   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)

1. AsyncTask #4

   at android.graphics.Bitmap.nativeCompress(Bitmap.java)
   at android.graphics.Bitmap.compress(Bitmap.java:1039)
   at club.rentmee.v2.AFileSendHttpRequester.generateHttpPostParams(AFileSendHttpRequester.java:60)
   at club.rentmee.v2.AFileSendHttpRequester.generateRequest(AFileSendHttpRequester.java:37)
   at club.rentmee.v2.AFileSendHttpRequester.generateRequest(AFileSendHttpRequester.java:18)
   at club.rentmee.v2.HTTPRequester.doAsyncRequest(HTTPRequester.java:170)
   at club.rentmee.v2.HTTPRequester.access$000(HTTPRequester.java:32)
   at club.rentmee.v2.HTTPRequester$1.doInBackground(HTTPRequester.java:120)
   at club.rentmee.v2.HTTPRequester$1.doInBackground(HTTPRequester.java:115)
   at android.os.AsyncTask$2.call(AsyncTask.java:295)
   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)

2. androidmapsapi-appenvironment-1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2053)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:806)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

3. Thread-983

   at java.lang.Thread.sleep(Thread.java)
   at java.lang.Thread.sleep(Thread.java:1031)
   at java.lang.Thread.sleep(Thread.java:985)
   at club.rentmee.tcp.impl.TCPDevice$2.run(TCPDevice.java:309)
   at java.lang.Thread.run(Thread.java:818)

4. AsyncTask #3

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

5. Thread-985

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at fj.run(:com.google.android.gms.DynamiteModulesB:10)

6. pool-9-thread-2

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

7. androidmapsapi-vts_no_pois_club.rentmee.apps

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)
   at com.google.maps.api.android.lib6.gmm6.store.z.run(:com.google.android.gms.DynamiteModulesB:19)

8. GAC_Executor[0]

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at qe.run(:com.google.android.gms.DynamiteModulesB:6)
   at java.lang.Thread.run(Thread.java:818)

9. GoogleApiHandler

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at android.os.HandlerThread.run(HandlerThread.java:61)

10. androidmapsapi-ula-1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

11. Answers Events Handler1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2053)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:806)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at io.fabric.sdk.android.services.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:75)
   at io.fabric.sdk.android.services.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:30)
   at java.lang.Thread.run(Thread.java:818)

12. Thread-963

   at libcore.io.Posix.recvfromBytes(Posix.java)
   at libcore.io.Posix.recvfrom(Posix.java:189)
   at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
   at libcore.io.IoBridge.recvfrom(IoBridge.java:549)
   at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481)
   at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37)
   at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
   at java.io.InputStreamReader.read(InputStreamReader.java:233)
   at java.io.BufferedReader.fillBuf(BufferedReader.java:145)
   at java.io.BufferedReader.readLine(BufferedReader.java:397)
   at club.rentmee.tcp.impl.TCPDevice.startReadInputMessages(TCPDevice.java:244)
   at club.rentmee.tcp.impl.TCPDevice.access$300(TCPDevice.java:24)
   at club.rentmee.tcp.impl.TCPDevice$1.run(TCPDevice.java:213)
   at java.lang.Thread.run(Thread.java:818)

13. Queue

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.performOperation(DependencyPriorityBlockingQueue.java:197)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.get(DependencyPriorityBlockingQueue.java:236)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:65)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:46)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

14. Queue

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.performOperation(DependencyPriorityBlockingQueue.java:197)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.get(DependencyPriorityBlockingQueue.java:236)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:65)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:46)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

15. androidmapsapi-vts_traf_club.rentmee.apps

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)
   at com.google.maps.api.android.lib6.gmm6.store.z.run(:com.google.android.gms.DynamiteModulesB:19)

16. FinalizerDaemon

   at java.lang.Object.wait(Object.java)
   at java.lang.Object.wait(Object.java:423)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:101)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:72)
   at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)
   at java.lang.Thread.run(Thread.java:818)

17. AsyncTask #1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

18. androidmapsapi-vts_inaka_club.rentmee.apps

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)
   at com.google.maps.api.android.lib6.gmm6.store.z.run(:com.google.android.gms.DynamiteModulesB:19)

19. Thread-986

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at fj.run(:com.google.android.gms.DynamiteModulesB:10)

20. pool-4-thread-1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

21. Thread-984

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at fd.run(:com.google.android.gms.DynamiteModulesB:10)

22. Thread-988

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at fj.run(:com.google.android.gms.DynamiteModulesB:10)

23. Crashlytics Exception Handler1

   at dalvik.system.VMStack.getThreadStackTrace(VMStack.java)
   at java.lang.Thread.getStackTrace(Thread.java:580)
   at java.lang.Thread.getAllStackTraces(Thread.java:522)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.writeSessionEvent(CrashlyticsUncaughtExceptionHandler.java:1077)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.writeFatal(CrashlyticsUncaughtExceptionHandler.java:811)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.handleUncaughtException(CrashlyticsUncaughtExceptionHandler.java:280)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.access$100(CrashlyticsUncaughtExceptionHandler.java:55)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler$5.call(CrashlyticsUncaughtExceptionHandler.java:256)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler$5.call(CrashlyticsUncaughtExceptionHandler.java:253)
   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 io.fabric.sdk.android.services.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:75)
   at io.fabric.sdk.android.services.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:30)
   at java.lang.Thread.run(Thread.java:818)

24. GLThread 1005

   at java.lang.Object.wait(Object.java)
   at com.google.maps.api.android.lib6.gmm6.vector.ba.f(:com.google.android.gms.DynamiteModulesB:188)
   at com.google.maps.api.android.lib6.gmm6.vector.ba.run(:com.google.android.gms.DynamiteModulesB:11)

25. androidmapsapi-vts_club.rentmee.apps

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)
   at com.google.maps.api.android.lib6.gmm6.store.z.run(:com.google.android.gms.DynamiteModulesB:19)

26. androidmapsapi-vts_labl_club.rentmee.apps

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)
   at com.google.maps.api.android.lib6.gmm6.store.z.run(:com.google.android.gms.DynamiteModulesB:19)

27. FinalizerWatchdogDaemon

   at java.lang.Thread.sleep(Thread.java)
   at java.lang.Thread.sleep(Thread.java:1031)
   at java.lang.Thread.sleep(Thread.java:985)
   at java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:273)
   at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:284)
   at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:232)
   at java.lang.Thread.run(Thread.java:818)

28. androidmapsapi-ulcs-1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

29. OkHttp ConnectionPool

   at java.lang.Object.wait(Object.java)
   at com.android.okhttp.ConnectionPool.performCleanup(ConnectionPool.java:307)
   at com.android.okhttp.ConnectionPool.runCleanupUntilPoolIsEmpty(ConnectionPool.java:244)
   at com.android.okhttp.ConnectionPool.access$000(ConnectionPool.java:54)
   at com.android.okhttp.ConnectionPool$1.run(ConnectionPool.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)

30. HeapTaskDaemon

   at dalvik.system.VMRuntime.runHeapTasks(VMRuntime.java)
   at java.lang.Daemons$HeapTaskDaemon.run(Daemons.java:355)
   at java.lang.Thread.run(Thread.java:818)

31. Timer-0

   at java.lang.Object.wait(Object.java)
   at java.lang.Object.wait(Object.java:423)
   at java.util.Timer$TimerImpl.run(Timer.java:238)

32. androidmapsapi-its

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)

33. androidmapsapi-its_ter

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.d.run(:com.google.android.gms.DynamiteModulesB:131)

34. Queue

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.performOperation(DependencyPriorityBlockingQueue.java:197)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.get(DependencyPriorityBlockingQueue.java:236)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:65)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:46)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

35. androidmapsapi-scpm-1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2053)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:806)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

36. Queue

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.performOperation(DependencyPriorityBlockingQueue.java:197)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.get(DependencyPriorityBlockingQueue.java:236)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:65)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:46)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

37. pool-6-thread-1

   at android.hardware.Camera.native_release(Camera.java)
   at android.hardware.Camera.release(Camera.java:626)
   at io.fotoapparat.hardware.v1.Camera1.close(Camera1.java:127)
   at io.fotoapparat.routine.StopCameraRoutine.run(StopCameraRoutine.java:19)
   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)

38. java.lang.ProcessManager

   at java.lang.Object.wait(Object.java)
   at java.lang.ProcessManager.waitForMoreChildren(ProcessManager.java:140)
   at java.lang.ProcessManager.watchChildren(ProcessManager.java:105)
   at java.lang.ProcessManager.access$000(ProcessManager.java:40)
   at java.lang.ProcessManager$1.run(ProcessManager.java:58)

39. Queue

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.performOperation(DependencyPriorityBlockingQueue.java:197)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.get(DependencyPriorityBlockingQueue.java:236)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:65)
   at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(DependencyPriorityBlockingQueue.java:46)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

40. Thread-987

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
   at fj.run(:com.google.android.gms.DynamiteModulesB:10)

41. Timer-2

   at java.lang.Object.wait(Object.java)
   at java.lang.Object.wait(Object.java:423)
   at java.util.Timer$TimerImpl.run(Timer.java:238)

42. main

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at android.app.ActivityThread.main(ActivityThread.java:5458)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

43. pool-9-thread-1

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:421)
   at java.util.concurrent.FutureTask.get(FutureTask.java:163)
   at com.crashlytics.android.core.CrashlyticsExecutorServiceWrapper.executeSyncLoggingException(CrashlyticsExecutorServiceWrapper.java:47)
   at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:253)
   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)

44. AsyncTask #5

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

45. androidmapsapi-ibs

   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:323)
   at android.os.Looper.loop(Looper.java:135)
   at com.google.maps.api.android.lib6.gmm6.store.n.run(:com.google.android.gms.DynamiteModulesB:44)

46. RenderDrive

   at java.lang.Thread.sleep(Thread.java)
   at java.lang.Thread.sleep(Thread.java:1031)
   at java.lang.Thread.sleep(Thread.java:985)
   at com.google.maps.api.android.lib6.gmm6.vector.o.run(:com.google.android.gms.DynamiteModulesB:13)

47. AsyncTask #2

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)

48. GAC_Executor[1]

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at qe.run(:com.google.android.gms.DynamiteModulesB:6)
   at java.lang.Thread.run(Thread.java:818)

49. ReferenceQueueDaemon

   at java.lang.Object.wait(Object.java)
   at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:147)
   at java.lang.Thread.run(Thread.java:818)

50. GAC_Executor[0]

   at java.lang.Object.wait(Object.java)
   at java.lang.Thread.parkFor$(Thread.java:1220)
   at sun.misc.Unsafe.park(Unsafe.java:299)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at com.google.android.gms.internal.zzrn.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:818)

51. Okio Watchdog

   at java.lang.Object.wait(Object.java)
   at com.android.okhttp.okio.AsyncTimeout.awaitTimeout(AsyncTimeout.java:311)
   at com.android.okhttp.okio.AsyncTimeout.access$000(AsyncTimeout.java:40)
   at com.android.okhttp.okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:286)
sergey-shpital commented 7 years ago

This error also exists on OnePlus OnePlus3T (OnePlus3T), 6144MB RAM, Android 7.1

dmitry-zaitsev commented 7 years ago

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:

sergey-shpital commented 7 years ago

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