-
Notifications
You must be signed in to change notification settings - Fork 101
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
ArrayIndexOutOfBoundsException ZoneRules.isFixedOffset #149
Comments
Could you please try calling |
Currently I can see the two following timezones in Sentry, for users running into this crash:
I quickly changed my timezone to
|
Are you able to reproduce this in the emulator? If so, could you please provide a reproducing project? I wasn't able to make the app crash in the emulator. Or is a device needed for the crash to occur? Also, can you confirm that the line java.time.ZoneId.of("America/Costa_Rica").rules.isFixedOffset also crashes your app? |
It crashes in the emulator as well as on the device, here is a small reproducer project. Basically I just copied your line of code into here and enabled
Yes, I can confirm that the line of code you posted is enough to produce the above mentioned crash. |
Thanks! I managed to reproduce it on an emulator with the API level 24. With the API level 30, everything is fine. I suppose it's really up to us to work around this to support older versions, as Google seems to have fixed this already in the newer SDKs. |
Well this @looploooop Didn't we have this issue on Android 30 as well? I think here is where the crash is happening: |
Yes, looking at Sentry our users experienced this crash on API level versions 27-30 |
I've already prepared a workaround that should cover all the versions. Regarding reporting this to Google: were you able to reproduce this issue on API level 30? |
Yes, crashes on my Pixel 5 with API level 30 as well as in the Emulator with API level 31. |
This is odd. Running your reproducing project in Android Studio 2021.1.1 on Linux, I get a crash on the |
Weird I just checked again, this crashes in an emulator |
Just confirming that, I start to have this crash starting with |
Hi guys, could please give some estimate for the next release which fixes this? iosSimulatorArm64 is important to us, but we cannot upgrade to 0.3.0 until this issue is fixed - it generates a lot of crashes in Android production. Thanks! |
After updating to
kotlinx-datetime:0.3.0
I am seeing crashes on Android with the following stacktrace:I am not totally sure where to report this, the crash is introduced due to
0.3.0
making calls toZoneRules.isFixedOffset
.Though by looking at the source code of
java.time.zone.ZoneRules
here, I can't see how anArrayIndexOutOfBoundsException
can happen.I have
coreLibraryDesugaring
enabled, usingcom.android.tools:desugar_jdk_libs:1.1.5
The text was updated successfully, but these errors were encountered: