-
-
Notifications
You must be signed in to change notification settings - Fork 846
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
(iOS) App crashes in background EXC_BAD_ACCESS KERN_INVALID_ADDRESS #1103
Comments
Did you try using a newer iOS SDK version? |
I have tried rc4 = iOS 5.9.0 which does not crash and rc9 = iOS 5.8.0 which does crash. I have not tried any other iOS SDK. |
I am seeing the same thing with rc9: crashlog. |
I am seeing the same thing with rc9 |
Please try with newer iOS SDKs and report back. Please check this ticket as a guide on how to increase iOS version |
Added
I have the access token set inside Any ideas? |
I'm facing the same problem when adding $ReactNativeMapboxGLIOSVersion = '~> 6.2.1' `[!] Error installing @react-native-mapbox-gl-mapbox-static % Total % Received % Xferd Average Speed Time Time Time Current |
not sure, still looks like a credential setup issue Maybe you have to cache bust pods or something? I'm no iOS guy, sorry |
Also getting this issue... same versions of RN and RN-Mapbox-Gl/Maps. Edit: Just saw that |
Okay, might be a false alarm, I didn't have an |
@rkrueger11 |
@SalihZinaty, https://docs.mapbox.com/ios/maps/overview/#configure-credentials |
i got now |
@ferdicus Thank you, it works! Please do you know how to use it in continuous integration tool like Github Actions? |
now it works for me, i had to add new TOKEN and give the DOWNLOADS:READ feature to the token |
Works for me as well. Plus making sure that the .netrc file is in the home directory on your Mac. I had it in my project folder which was wrong. |
hey guys, would be nice if one of you, now that you successfully managed to upgrade, would add a little paragraph about it to the iOS installation guide 👍🏿 |
Closing as resolved - use newer iOS sdk |
Following ticket https://github.com/react-native-mapbox-gl/maps/issues/1103 to explain how to use a custom version of the Mapbox Maps SDK for iOS.
* Update install.md Following ticket https://github.com/react-native-mapbox-gl/maps/issues/1103 to explain how to use a custom version of the Mapbox Maps SDK for iOS. * Update install.md * Removed section for deprecated version
* Update install.md Following ticket https://github.com/react-native-mapbox-gl/maps/issues/1103 to explain how to use a custom version of the Mapbox Maps SDK for iOS. * Update install.md * Removed section for deprecated version
Describe the bug
My application displays a lot of images on the map using
<MapboxGL.Images />
and<MapboxGL.SymbolLayer />
. When the application is running in the background and iOS tries to reduce the memory usage, the app crashes with the following stack:This started occuring when I upgraded to the 8.1.0.rc9 version, it does not happen on the 8.1.0-rc.4 version. The difference is that rc9 uses mapbox iOS SDK 5.8.0 and rc4 uses iOS SDK 5.9.0.
To Reproduce
Since this occurs when iOS tries to reduce memory usage by the application I am not sure what the easiest way to reproduce this is, other than displaying a bunch of images, starting another application and try to trigger iOS to reduce memory.
Expected behavior
The application should have its memory reduced without crashing.
Versions (please complete the following information):
Additional context
The issue seems to be known and resolved in 5.9.0 with this PR: mapbox/mapbox-gl-native#16391 which is the reason why it doesnt crash in rc4 which uses that iOS SDK version. Having future versions of this SDK use iOS SDK >= 5.9.0 should fix this if my understanding of the issue is correct.
The text was updated successfully, but these errors were encountered: