This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
EGL_BAD_SURFACE returned when using MapView.onDestroy() with multiple mapviews #9458
Labels
Android
Mapbox Maps SDK for Android
Looks like that when having multiple Map Views with a Custom Layer a race condition might occur that causes an EGL_BAD_SURFACE error.
For example, let's suppose two maps are present, one in the background and another one as a dialog. When the dialog map shows up fine and gets destroyed, "active" count inside native_map_view.cpp will stay 0 or 1, but when a custom layer is added, sometimes it will go over to 3, so when the control is released back, the original NativeMap will never take control again.
cc: @kkaefer @tobrun
The text was updated successfully, but these errors were encountered: