Skip to content

[BUG] java.lang.ArrayIndexOutOfBoundsException #758

@zhanzengyu

Description

@zhanzengyu

Describe the bug
Thread Name: 'DecoderThread'
Back traces starts.
java.lang.ArrayIndexOutOfBoundsException: src.length=1166400 srcPos=1166400 dst.length=1167480 dstPos=713880 length=1080
at java.lang.System.arraycopy(System.java:528)
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:113)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:302)
at android.os.HandlerThread.run(HandlerThread.java:67)
Back traces ends.

Flutter information
qr_code_scanner: ^1.0.1

Device (please complete the following information):

  • Device: ALI-AN00

  • OS: 14

  • Device: VER-AN10

  • OS: 14

  • Device: MEIZU 21

  • OS: 14

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions