-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Switching applications causes black screen, wildly colored snapshot #2071
Conversation
Looks a lot like this one: #2012 |
😉 Also, I should emphasize that this only occurs with the user dot visible. If I do it when the user dot is hidden, the application never gets into this corrupted state. |
|
Yes, this can happen if you do anything that would cause a redraw after the application goes the background. So @incanus, you probably inadvertently had some drift-panning or drift-zooming going on when you activated the app switcher. |
It's quite easy to reproduce - just scroll the map and go to the background mode immediately |
|
I was able to reproduce it via iOS Simulator, working on a fix now. |
Causes view to repaint when returning from pause state, fixing the black screen perceived in some scenarios. Fixes #2071.
55e6fbc
to
fa18f1a
Compare
@1ec5 could you please verify the patch I just merged? It fixed the issue on my iPad Mini as well as iOS simulator (iPhone 6). |
@brunoabinader it looks great |
Looks good, thanks @brunoabinader! |
Causes view to repaint when returning from pause state, fixing the black screen perceived in some scenarios. Fixes mapbox#2071.
Activating the application switcher when the user dot is visible causes the entire map view (other than ornaments and the user dot) to go black. The following screenshots are from the iOS 9 Simulator running as an iPhone 6:
While the application is in the background, the snapshot we throw up on-screen has an artistic flair to it that suggests texture or z-fighting issues. As soon as the entering-foreground animation completes, we take down the snapshot and the black screen returns.
If you enter the application switcher while the user dot is hidden, the snapshot is correct, although the black screen does come back as soon as you switch back to the application:
Notice how some features do appear in the corrupted snapshot, including a school grounds, part of a highway, and some terrain tinting.
The same thing happens on the iOS 8.4 Simulator running as an iPhone 6:
If you merely activate the application switcher but don’t switch away from iosapp, you’re left with a live, shrunken view of the application. In this state, you can sometimes see the colored splotches shifting around as the map redraws.
Unlike #2012, nothing is logged to the console.
/cc @kkaefer @incanus @friedbunny