sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

public Breadcrumb() causes ArrayIndexOutOfBoundsException

Open nienienienie opened this issue 3 years ago • 7 comments

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Version

5.7.3

Steps to Reproduce

  1. Android SDK 31
  2. call constructor Breadcrumb()
  3. I'm getting exception on production
java.lang.ArrayIndexOutOfBoundsException: length=0; index=1
    at java.util.Locale.getDefault(Locale.java:928)
    at java.util.Calendar.getInstance(Calendar.java:1639)

https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-31/blob/2c56b25f619575bea12f9c5520ed2259620084ac/java/util/Calendar.java#L1639

https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-31/blob/2c56b25f619575bea12f9c5520ed2259620084ac/java/util/Locale.java#L928

Expected Result

No exception

Actual Result

Exception

nienienienie avatar Sep 08 '22 09:09 nienienienie

Routing to @getsentry/open-source for triage. ⏲️

getsentry-release avatar Sep 08 '22 23:09 getsentry-release

Routing to @getsentry/team-mobile for triage. ⏲️

getsentry-release avatar Sep 08 '22 23:09 getsentry-release

Hello @nienienienie I'm unable to reproduce the issue. Is this happening only on certain devices?

adinauer avatar Sep 09 '22 07:09 adinauer

Yes, it's happened only once, but it did happen on production app installed from Play Store for device Android 11 / SM-A127F.

nienienienie avatar Sep 14 '22 09:09 nienienienie

Hmm has the device been rooted? You can check on the event what the value of os.rooted says. Maybe someone's been messing with their device?

adinauer avatar Sep 15 '22 12:09 adinauer

no, os.rooted is false

nienienienie avatar Sep 16 '22 08:09 nienienienie

Hmm then I have no good explanation to give you at the moment - sorry.

adinauer avatar Sep 16 '22 10:09 adinauer

Closing this as we don't know how to reproduce. If you can provide any more info, feel free to reopen so we can take another look.

adinauer avatar Sep 23 '22 10:09 adinauer