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

ThreadNotStartedException: random crashes when take photo #36

Open
fireb86 opened this issue Sep 6, 2019 · 0 comments
Open

ThreadNotStartedException: random crashes when take photo #36

fireb86 opened this issue Sep 6, 2019 · 0 comments

Comments

@fireb86
Copy link

fireb86 commented Sep 6, 2019

Sometimes the library crashes when i take a photo on Samsung Galaxy TAB S7 (Nougat):

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1390)
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1500)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1390) 
     Caused by: co.infinum.goldeneye.ThreadNotStartedException: Trying to fetch [backgroundHandler] but background Thread is not started.
        at co.infinum.goldeneye.utils.AsyncUtils.getBackgroundHandler(AsyncUtils.kt:19)
        at co.infinum.goldeneye.extensions.AnyKt.async(Any.kt:24)
        at co.infinum.goldeneye.recorders.PictureRecorder$takePicture$cameraPictureCallback$1.onPictureTaken(PictureRecorder.kt:61)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1115)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6780)
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1500) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1390) 
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

1 participant