Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Crash found on Camera2Source.stop #17

Description

@adhithyagnair

I'm getting a inconsistent crash on camera2Source when scanning barcode.
It is quite too common in Honor 9 lite (Android : N )device and I'm also getting on other devices, but it is hard to reproduce.

This is the crash log I have got from firebase

Fatal Exception: java.lang.IllegalStateException
buffer is inaccessible
java.nio.DirectByteBuffer.get (DirectByteBuffer.java:219)
com.xxxx.xxxx.xxxx.camera2.Camera2Source.stop (Unknown Source:34)
com.xxxx.xxxx.xxxx.camera2.Camera2Source.stop (Unknown Source)
com.xxxx.xxxx.xxxx.camera2.Camera2Source$2.onImageAvailable (Unknown Source:15)
android.media.ImageReader$ListenerHandler.handleMessage (ImageReader.java:812)
android.os.Handler.dispatchMessage (Handler.java:108)
android.os.Looper.loop (Looper.java:166)
android.os.HandlerThread.run (HandlerThread.java:65)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions