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

[Lyft] Vulkan Texture Mode clears map when returning from background #3241

Open
ekamp opened this issue Feb 20, 2025 · 2 comments
Open

[Lyft] Vulkan Texture Mode clears map when returning from background #3241

ekamp opened this issue Feb 20, 2025 · 2 comments
Assignees

Comments

@ekamp
Copy link

ekamp commented Feb 20, 2025

MapLibre Android Version

11.8.1

Android SDK Version

Android 12

Device

Samsung Galaxy S20

What happened?

Initial style load worked properly and map is rendered as expected. When the MapView along with container is placed in the background / paused and later resumed, the map itself fails to load. I was not able to find any tile load issues or networking problems and can consistently repro the issue. The Style load logic is not triggered again, so this is not an issue with a consecutive load, however I do see the following error message when resuming the MapView :

vk::Queue::presentKHR: ErrorSurfaceLostKHR - Mbgl-MapRenderer

When disabling texture mode within the MapLibreMapOptions this issue no longer occurs. Our team would like to continue to use texturemode for the perf and rendering benefits for mobile.

Steps to reproduce

  1. Load any map style
  2. Place map or Activity in the background / pause MapView
  3. Return to MapView / container to resume focus
  4. Empty map is displayed
EmptyMap.mp4

Renderer

Vulkan

Relevant log output

vk::Queue::presentKHR: ErrorSurfaceLostKHR - Mbgl-MapRenderer

Additional context

No response

@louwers
Copy link
Collaborator

louwers commented Feb 21, 2025

cc @sjg-wdw @adrian-cojocaru

@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Feb 21, 2025

Definitely worth trying to duplicate @adrian-cojocaru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants