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

Double value cannot be converted to Int because the result would be greater than Int.max (iOS 9.3.5 - Crash after updating from 3.1.0 to 3.5.0) #550

Closed
Pixette opened this issue Jul 14, 2022 · 4 comments · Fixed by #551

Comments

@Pixette
Copy link

Pixette commented Jul 14, 2022

Hello!

Updating mixpanel pod from 3.1.0 to 3.5.0 causes my app to crash very frequently on iOS 9.3.5

Error is following:
image

Issue can always be reproduced on my iOS 9.3.5 device.
I reverted to 3.1.0 to solve the issue.

Thank you in advance for your help

@repomies
Copy link

I have the same crash happen on Apple Watch, which apparently is using 32-bit integers (probably the same as @Pixette's app on an iOS 9 device).

For example, it's trying to use epochInterval value 1658180394, which is multiplied by 1000 and then cast into an Int. The value of Int.max is 2147483647 on this device, so the assignment would be fine without the multiplication (until 19 January 2038, that is!), but with the multiplication it crashes big time.

@repomies
Copy link

Here's the breaking commit from 3.3.0 (reverting to 3.2.6 fixed it for me): 13c7cc9

@jaredmixpanel
Copy link
Contributor

@Pixette @repomies Sorry about that, thanks for the report. This should be fixed in 3.5.1. Feel free to reopen if the issue persists.

@repomies
Copy link

@jaredmixpanel thanks for the very quick fix, seems to work for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants