Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IndexOutOfBoundsException at TimeBasedFileNamingAndTriggeringPolicyBase.start #373

Open
3 tasks done
TomHuynh17 opened this issue Sep 8, 2024 · 0 comments
Open
3 tasks done
Assignees

Comments

@TomHuynh17
Copy link

Describe the bug

I got crash from Crashlytics report as follows which happen only on OS 13, Samsung phone model:

Caused by java.lang.IndexOutOfBoundsException: index=-987076581 out of bounds (limit=26614624)
at java.nio.Buffer.checkIndex(Buffer.java:709)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:240)
at android.icu.impl.ICUBinary.compareKeys(ICUBinary.java:375)
at android.icu.impl.ICUBinary$DatPackageReader.binarySearch(ICUBinary.java:137)
at android.icu.impl.ICUBinary$DatPackageReader.getData(ICUBinary.java:99)
at android.icu.impl.ICUBinary$PackageDataFile.getData(ICUBinary.java:277)
at android.icu.impl.ICUBinary.getDataFromFile(ICUBinary.java:524)
at android.icu.impl.ICUBinary.getData(ICUBinary.java:498)
at android.icu.impl.ICUBinary.getData(ICUBinary.java:453)
at android.icu.impl.ICUResourceBundleReader$ReaderCache.createInstance(ICUResourceBundleReader.java:191)
at android.icu.impl.ICUResourceBundleReader$ReaderCache.createInstance(ICUResourceBundleReader.java:180)
at android.icu.impl.SoftCache.getInstance(SoftCache.java:71)
at android.icu.impl.ICUResourceBundleReader.getReader(ICUResourceBundleReader.java:235)
at android.icu.impl.ICUResourceBundle.createBundle(ICUResourceBundle.java:1422)
at android.icu.impl.ICUResourceBundle$4.load(ICUResourceBundle.java:1295)
at android.icu.impl.ICUResourceBundle$1.createInstance(ICUResourceBundle.java:97)
at android.icu.impl.ICUResourceBundle$1.createInstance(ICUResourceBundle.java:94)
at android.icu.impl.SoftCache.getInstance(SoftCache.java:71)
at android.icu.impl.ICUResourceBundle.instantiateBundle(ICUResourceBundle.java:1282)
at android.icu.impl.ICUResourceBundle.getBundleInstance(ICUResourceBundle.java:1255)
at android.icu.impl.ICUResourceBundle.getBundleInstance(ICUResourceBundle.java:1234)
at android.icu.util.UResourceBundle.instantiateBundle(UResourceBundle.java:361)
at android.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:147)
at android.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:226)
at android.icu.impl.TimeZoneNamesImpl.initialize(TimeZoneNamesImpl.java:421)
at android.icu.impl.TimeZoneNamesImpl.(TimeZoneNamesImpl.java:67)
at android.icu.impl.TimeZoneNamesFactoryImpl.getTimeZoneNames(TimeZoneNamesFactoryImpl.java:27)
at android.icu.text.TimeZoneNames$Cache.createInstance(TimeZoneNames.java:496)
at android.icu.text.TimeZoneNames$Cache.createInstance(TimeZoneNames.java:487)
at android.icu.impl.SoftCache.getInstance(SoftCache.java:71)
at android.icu.text.TimeZoneNames.getInstance(TimeZoneNames.java:157)
at android.icu.text.TimeZoneNames.getInstance(TimeZoneNames.java:169)
at java.util.TimeZone.getDisplayName(TimeZone.java:410)
at java.util.Date.toString(Date.java:1067)
at java.lang.String.valueOf(String.java:4092)
at java.lang.StringBuilder.append(StringBuilder.java:179)
at ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.start(TimeBasedFileNamingAndTriggeringPolicyBase.java:184)
at ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP.start(SizeAndTimeBasedFNATP.java:1)
at ch.qos.logback.core.rolling.TimeBasedRollingPolicy.start(TimeBasedRollingPolicy.java:130)

Reproduction

20%

Logs

I got crash from Crashlytics report as follows which happen only on OS 13, Samsung phone model:

Caused by java.lang.IndexOutOfBoundsException: index=-987076581 out of bounds (limit=26614624)
at java.nio.Buffer.checkIndex(Buffer.java:709)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:240)
at android.icu.impl.ICUBinary.compareKeys(ICUBinary.java:375)
at android.icu.impl.ICUBinary$DatPackageReader.binarySearch(ICUBinary.java:137)
at android.icu.impl.ICUBinary$DatPackageReader.getData(ICUBinary.java:99)
at android.icu.impl.ICUBinary$PackageDataFile.getData(ICUBinary.java:277)
at android.icu.impl.ICUBinary.getDataFromFile(ICUBinary.java:524)
at android.icu.impl.ICUBinary.getData(ICUBinary.java:498)
at android.icu.impl.ICUBinary.getData(ICUBinary.java:453)
at android.icu.impl.ICUResourceBundleReader$ReaderCache.createInstance(ICUResourceBundleReader.java:191)
at android.icu.impl.ICUResourceBundleReader$ReaderCache.createInstance(ICUResourceBundleReader.java:180)
at android.icu.impl.SoftCache.getInstance(SoftCache.java:71)
at android.icu.impl.ICUResourceBundleReader.getReader(ICUResourceBundleReader.java:235)
at android.icu.impl.ICUResourceBundle.createBundle(ICUResourceBundle.java:1422)
at android.icu.impl.ICUResourceBundle$4.load(ICUResourceBundle.java:1295)
at android.icu.impl.ICUResourceBundle$1.createInstance(ICUResourceBundle.java:97)
at android.icu.impl.ICUResourceBundle$1.createInstance(ICUResourceBundle.java:94)
at android.icu.impl.SoftCache.getInstance(SoftCache.java:71)
at android.icu.impl.ICUResourceBundle.instantiateBundle(ICUResourceBundle.java:1282)
at android.icu.impl.ICUResourceBundle.getBundleInstance(ICUResourceBundle.java:1255)
at android.icu.impl.ICUResourceBundle.getBundleInstance(ICUResourceBundle.java:1234)
at android.icu.util.UResourceBundle.instantiateBundle(UResourceBundle.java:361)
at android.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:147)
at android.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:226)
at android.icu.impl.TimeZoneNamesImpl.initialize(TimeZoneNamesImpl.java:421)
at android.icu.impl.TimeZoneNamesImpl.(TimeZoneNamesImpl.java:67)
at android.icu.impl.TimeZoneNamesFactoryImpl.getTimeZoneNames(TimeZoneNamesFactoryImpl.java:27)
at android.icu.text.TimeZoneNames$Cache.createInstance(TimeZoneNames.java:496)
at android.icu.text.TimeZoneNames$Cache.createInstance(TimeZoneNames.java:487)
at android.icu.impl.SoftCache.getInstance(SoftCache.java:71)
at android.icu.text.TimeZoneNames.getInstance(TimeZoneNames.java:157)
at android.icu.text.TimeZoneNames.getInstance(TimeZoneNames.java:169)
at java.util.TimeZone.getDisplayName(TimeZone.java:410)
at java.util.Date.toString(Date.java:1067)
at java.lang.String.valueOf(String.java:4092)
at java.lang.StringBuilder.append(StringBuilder.java:179)
at ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase.start(TimeBasedFileNamingAndTriggeringPolicyBase.java:184)
at ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP.start(SizeAndTimeBasedFNATP.java:1)
at ch.qos.logback.core.rolling.TimeBasedRollingPolicy.start(TimeBasedRollingPolicy.java:130)

logback-android version

3.0.0

OS Version

13

What logback configuration are you using? (logback.xml or Java/Kotlin code)

Java/Kotlin

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants