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

Purple rectangle layer after a background #978

Closed
latargere opened this issue Dec 25, 2021 · 12 comments · Fixed by #1086
Closed

Purple rectangle layer after a background #978

latargere opened this issue Dec 25, 2021 · 12 comments · Fixed by #1086
Labels
bug 🪲 Something is broken!

Comments

@latargere
Copy link

latargere commented Dec 25, 2021

Environment

  • Xcode version: 13.2
  • iOS version: 15.2
  • Devices affected: iPhone 13 pro
  • Maps SDK Version: 10.2

Observed behavior and steps to reproduce

After awhile in the background, when I put back the app in foreground. All layers are represented with purple rectangle.
I got the same behavior in the latest mapbox navigation

Expected behavior

My annotations should be back

287A6EC2-600B-4808-911C-91F48D8D090C

@latargere latargere added the bug 🪲 Something is broken! label Dec 25, 2021
@ZiZasaurus ZiZasaurus self-assigned this Jan 4, 2022
@ZiZasaurus
Copy link
Contributor

@latargere, thank you for reporting this behavior. Is this occurring with symbol layers, point annotations or both? Additionally, do you know how much time it took for the purple rectangles to appear and is this happening on physical devices or on the simulator?

@latargere
Copy link
Author

latargere commented Jan 4, 2022

Thanks for your questions. It was on a real device. I don't have an exact time of background but it's not straight after a background/foreground
On this screen, the main square is the puck defined with images. The little rectangles are something generated by Mapbox and it should be the little street arrow showing the direction of a street.
I've got this issue on mapbox navigation with the course view

@latargere
Copy link
Author

Is there a way I can help you?

@ZiZasaurus
Copy link
Contributor

@latargere, I am unable to reproduce this behavior with our examples. Would you be able to share a sample project that reproduces this behavior?

@latargere
Copy link
Author

I'm struggling trying to provide something since I have not identified how to clearly trigger this bug.
Do you have more info how Mapbox core would switch to this state (purple for add layer, grey for street name) ? With a memory warning? Call on background thread? Buffer size exceeded ?

@ZiZasaurus
Copy link
Contributor

@latargere happy to get these questions answered for you. In the meantime, would you be able to provide us with any related logs?

@latargere
Copy link
Author

latargere commented Jan 11, 2022

I tried to get it with the debugger attached but right now, I couldn't. If it can help after having it (after coming from background), I did a second background/foreground and layers were fixed

@ZiZasaurus
Copy link
Contributor

@latargere do you have a code snippet of how you were originally adding the second background/foreground that caused the purple rectangle?

@latargere
Copy link
Author

Sorry I typed a bit too fast but when I was saying background/foreground I mean putting my app in background and then resuming it, that's what cause this bug, but not all the times....

@ittna
Copy link

ittna commented Jan 18, 2022

I think usually that purple color means that there was some problem in shader code. Not sure if that is the cause here though.

@latargere
Copy link
Author

latargere commented Jan 19, 2022

Not sure neither how to trigger this since I cannot get the debugger in the same time. By setting again the same map style after receiving a "willEnterForegroundNotification", I could make the map work again when this bug occurs but I can still see this weird behaviour for a fraction of second

@ZiZasaurus
Copy link
Contributor

@latargere thank you for reporting. We will look into what may be causing this behavior.

@ZiZasaurus ZiZasaurus removed their assignment Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants