-
-
Notifications
You must be signed in to change notification settings - Fork 848
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] - [MGLMapView willResignActive:] #1068
Comments
Thanks for reporting. Did you try the solution mentioned in the upstream ticket? |
I can't reproduced it yet so no, I haven't tried it |
We are also experiencing this crash at the moment. It happens regularly when the app is in the background and alive (we are tracking movement so keeping the app alive). So far it has only happened when the app is in the background. At the moment we can't reproduce it/trigger it. I don't know if it will help, but I have added a screenshot from once when the crash happened while running from Xcode. |
@jaltin thanks, what was the Mapbox IOS version?! Can you try with 6.3.0?! There was some changes in that are in mapbox and according to this: mapbox/mapbox-gl-native-ios#485 (comment) it's fixed. |
@mfazekas how can I try with this version ? |
@mfazekas After adding I tried Any idea ? |
@tinmar33 sorry I've just published 6.3.0 can you try
|
@mfazekas I have an error while downloading the package
|
You'll need to set up |
All good 👌 Thanks. |
@mfazekas Thanks for your help! We are trying this right now and we will get back to you once we see if it works or not. A related question: To use $ReactNativeMapboxGLIOSVersion has forced us to update to the 8.1.0.rc9 (we were on 8.0.0 before). Do you have any "feel" of how stable this version is? Is it close to a full release or still other known bugs? |
@jaltin, version |
@ferdicus, thanks for your reply. We are currently using 8.0.0 in prod, and I was asking because I wanted to get a feel if it will be reasonable to consider to use the rc9 release in our app in production to get around this bug. I was hoping that you guys would have a "feel" of the feasibility of this. |
Status update after our testing So we have now tested this over the last 3 days running on 6 different devices (iPad and iPhone, iOS 12, 13 & 14) with the app running continuously in the background. None of the devices has crashed so setting the version of $ReactNativeMapboxGLIOSVersion to 6.3.0 seems to work for us so far. |
good news 👍🏿 I'll close this ticket - feel free to open another one (or we can reopen this one) when this issue reoccurs |
I'm glad to hear it, thanks for the feedback @jaltin :) |
@jaltin would you mind providing the community with some more details on how you got this working? We have added |
@luskin I don't really know what could be going wrong for you. Did you set up .netrc on your machine too (https://docs.mapbox.com/ios/maps/guides/install/)? |
@jaltin Turned out to be the lockfile which was restricting it. If anybody else is having problems upgrading to |
So far I can confirm that updating Mapbox to 6.2.1 did the trick. I have never experienced the crash myself but the crash has disapear from Crashlytics after updating to 6.2.1. I use following script to add mapbox downloading crendentials to .netrc. #!/usr/bin/env bash
# Add Mapbox password to .netrc in order to download iOS SDK
echo -e "machine $NETRC_MAPBOX_MACHINE\nlogin $NETRC_MAPBOX_LOGIN\npassword $NETRC_MAPBOX_PASSWORD" > ~/.netrc So far I only updated to 6.2.1 as another bug in pod do not produce properly aligned archives for version 6.3.0 |
Describe the bug
Some users of our app are getting this crash error since iOS 14:
I don't have reproduce it yet but I saw a lot of threads about it like: mapbox/mapbox-gl-native-ios#485
The text was updated successfully, but these errors were encountered: