Skip to content

f.java java.lang.ArrayIndexOutOfBoundsException #402

Closed
@huhx0015

Description

@huhx0015

After updating the Instabug-Android SDK to 10.9.0, we've been seeing a rather significant number of ArrayIndexOutOfBoundsException crashes originating from com.instabug.library.tracking from our Crashlytics reports.

The following are logs of the crashes that we've observed:

**com.instabug.library.tracking.f.f**

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: src.length=100 srcPos=1 dst.length=100 dstPos=0 length=100
       at java.lang.System.arraycopy(System.java)
       at java.util.ArrayList.remove(ArrayList.java:510)
       at com.instabug.library.tracking.f.f(f.java:2)
       at com.instabug.library.tracking.f$b.run(f.java:18)
       at com.instabug.library.util.threading.PoolProvider$b.run(PoolProvider.java:3)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at com.instabug.library.util.threading.b$a.run(b.java:8)
       at java.lang.Thread.run(Thread.java:923)
**com.instabug.library.tracking.f$b.run**

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=100; index=100
       at java.util.ArrayList.add(ArrayList.java:468)
       at com.instabug.library.tracking.f$b.run(f.java:19)
       at com.instabug.library.util.threading.PoolProvider$b.run(PoolProvider.java:3)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at com.instabug.library.util.threading.b$a.run(b.java:8)
       at java.lang.Thread.run(Thread.java:919)

Steps to Reproduce the Problem

  • We are unable to determine how to reproduce this crash.

SDK Version

Android Version

  • Android 8.0.0
  • Android 9
  • Android 10
  • Android 11
  • Android 12

Device Model

  • OnePlus 6T
  • Galaxy S20+ 5G
  • Pixel 2 XL
  • Pixel 3
  • Galaxy S10
  • Pixel 4
  • OnePlus 7 Pro
  • Honor 7X
  • Pixel 4a
  • moto e
  • Pixel 4 XL
  • Galaxy J6
  • Galaxy S9
  • Galaxy Note20 Ultra 5G
  • Galaxy J5
  • Galaxy A71 5G
  • Galaxy S9+
  • Galaxy S8
  • HD1903
  • P20 lite

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