-
Notifications
You must be signed in to change notification settings - Fork 1.3k
{Map}[Style]: Failed to load [mapbox://mapbox.mapbox-streets-v6]: #2012
Comments
I have several users (including myself) reporting the same thing in our app. Something has gone terribly wrong. We are building from source from master. This seems to happen consistently on the first launch following a uninstall/reinstall, but also seems to happen after the app has been running a while. |
This issue has been plaguing us all weekend. Screen capture from iPhone 5s: http://www.filedropper.com/appgoesblack |
Rolling back this commit seems to get rid of the "black screen of death", but does leave a flicker when coming back from background. Seems to be related to |
@desduvauchelle Are you using We've seen this internally as well, starting last week. @brunoabinader's refactoring in #1979 does appear to be the likely cause. |
Could you please check this against patch from #2026 that got in yesterday? |
@friedbunny I just have this in my podfile |
@brunoabinader I am still seeing the issue. Patch #2026 may have reduced the frequency of it showing up especially during app switching. I still see it happen occasionally after a clean app install. |
This is still happening. |
I also can't load a map style using Mapbox iOS SDK.
|
I was able to load them today. Using cocoa pods version
And my pod file
I had to remove use frameworks! even though I'm building for iOS 8, but the project would just not build without removing the line. so the normal Once I did that, the following worked
|
I think I've done everything required, double checked it all, but still I get:
Is there anybody with the sample project as a zip that I can just paste my access token in to check if it is in my setup or server side? (Xcode 7.0.1, Simulator) |
This appears to be multiple issues. For those first starting out, this is likely caused by a cached bad access token. Delete the app from your test device/simulator, make sure your token is correct, and then try again. The case where this can happen with a known-good token on an already-installed app is probably also a caching issue of some sort, but I have not been able to reproduce it. |
The "bad access token" problem here happens because we cache Even if the access token is immediately corrected, subsequent requests are reloaded from the poisoned cache that only cares about the stripped canonical URL (which has an This problem is obscured by how we deal in response statuses ( |
Some of these issues could be caused by the failure to copy and paste the correct API access token. I noticed this through no fault of my own, but if one tries to copy and paste the access token by highlighting it, then they will most likely lose the tail end of the string. The only way to ensure that one copies the correct access token is to use the button on the dashboard, which should be made clearer. It would also be helpful if the MapBox iOS SDK notified developers of an invalid access token. |
While that may be the case for some Adam. That is not what happened to me.
|
Just in case browser weirdness or a tendency to triple-click-select is causing some cases of #2012.
Just in case browser weirdness or a tendency to triple-click-select is causing some cases of mapbox#2012.
Could we include the access token with the cache key to avoid this issue? |
@kkaefer would know for sure, but I think we genericize/canonicalize these URLs for cache efficiency. I don't think changing access tokens within a single app is a common use case, so that may be the way to fix this. |
Fixed by #3479. |
Just installed MapboxGL through cocoapods. I initialize it in my ViewController like the example given:
When I launch the app, I see a black square and a Mapbox logo but no streets, see image below enter image description here:

In the logs I'm getting this:
Any ideas what I did wrong?
The text was updated successfully, but these errors were encountered: