FATAL EXCEPTION: main
Process: com.serenegiant.thermalcamviewer.gore.gore, PID: 29700
io.reactivex.exceptions.OnErrorNotImplementedException: divide by zero
at io.reactivex.internal.observers.EmptyCompletableObserver.onError(EmptyCompletableObserver.java:51)
at io.reactivex.internal.operators.completable.CompletableObserveOn$ObserveOnCompletableObserver.run(CompletableObserveOn.java:88)
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:109)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:255)
at android.os.Looper.loop(Looper.java:364)
at android.app.ActivityThread.main(ActivityThread.java:8979)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1053)
Caused by: java.lang.ArithmeticException: divide by zero
at com.falatic.encoder.BitmapToVideoEncoder.computePresentationTime(BitmapToVideoEncoder.java:416)
at com.falatic.encoder.BitmapToVideoEncoder.encode(BitmapToVideoEncoder.java:234)
at com.falatic.encoder.BitmapToVideoEncoder.lambda$startEncoding$0$BitmapToVideoEncoder(BitmapToVideoEncoder.java:145)
at com.falatic.encoder.-$$Lambda$BitmapToVideoEncoder$3crOgHBHdbXrNMQiVU9_DnIwNYE.run(Unknown Source:2)
at io.reactivex.internal.operators.completable.CompletableFromAction.subscribeActual(CompletableFromAction.java:34)
at io.reactivex.Completable.subscribe(Completable.java:1794)
at io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run(CompletableSubscribeOn.java:64)
at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:463)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Hi - the v4.1 app resolves the first issue (https://github.com/ilie321/thermal-cam-android-for-purethermal-1/issues/2). However, when I tap the 'Camera' icon to save a photo of the image the app crashes.
Full logcat output: