Skip to content

Crash on RawImageData #777

Description

@DevHugo

Hello,

We got a crash with the stacktrace :

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: src.length=983040 srcPos=982380 dst.length=746496 dstPos=648864 length=864
at java.lang.System.arraycopy(System.java:524)
at com.journeyapps.barcodescanner.RawImageData.cropAndScale(RawImageData.java:43)
at com.journeyapps.barcodescanner.SourceData.createSource(SourceData.java:125)
at com.journeyapps.barcodescanner.DecoderThread.createSource(DecoderThread.java:135)
at com.journeyapps.barcodescanner.DecoderThread.decode(DecoderThread.java:143)
at com.journeyapps.barcodescanner.DecoderThread.access$000(DecoderThread.java:22)
at com.journeyapps.barcodescanner.DecoderThread$1.handleMessage(DecoderThread.java:38)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)

Thank in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions