MapView closes immediately after initialization - renderThreadPrepared=false and Android surface is not valid
Description
After adding the mobilekeys-android-sdk dependency (debugImplementation files('libs/mobilekeys-android-sdk-debug-8.0.7.aar') and releaseImplementation files('libs/mobilekeys-android-sdk-release-8.0.7.aar')), the MapView appears briefly and then disappears. Logs indicate the render thread can't establish a valid Android surface, with many messages showing "renderThreadPrepared=false and Android surface is not valid (isValid=null)" before the surface is destroyed.
Environment
- Mapbox Maps SDK for Android version: 11.9.2
- Android app minSdkVersion: 23
- Android app targetSdkVersion: 34
- Device(s) tested on: Pixel 8 API 34
- Android Studio version: 2024.1.1 Patch 1
Observed behaviour and steps to reproduce
- Firstly, the mapview is working perfectly.
- Added an SDK for Assaabloy for the digital key
- added SDK from the lib folder from local.
debugImplementation files('libs/mobilekeys-android-sdk-debug-8.0.7.aar')
releaseImplementation files('libs/mobilekeys-android-sdk-release-8.0.7.aar')
##Assaabloy SDK for the digital key https://www.assaabloy.com/in/en
Expected behaviour
The map view should work exactly as it did before adding the dependency. MapView should initialise correctly and remain visible, rendering the map as expected.
Actual behaviour
MapView appears briefly and then disappears. Logcat shows numerous renderThread errors with "Android surface is not valid" messages
Relevant logs
2025-04-29 00:12:14.692 14128-14128 Mbgl-FontUtils com.nemacolin I Couldn't map font family for local ideograph, using sans-serif instead
2025-04-29 00:12:14.771 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.855 14128-14128 Mapbox com.nemacolin I [maps-android\MapController]: Add MAPBOX_MAP_OVERLAY_PLUGIN_ID plugin dependency to the classpath take automatically load the plugin implementation.
2025-04-29 00:12:14.855 14128-14128 Mapbox com.nemacolin I [maps-android\MapController]: Add MAPBOX_VIEWPORT_PLUGIN_ID plugin dependency to the classpath take automatically load the plugin implementation.
2025-04-29 00:12:14.934 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.936 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: Renderer resumed, renderThreadPrepared=false, surface.isValid=null
2025-04-29 00:12:14.936 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.980 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.986 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.989 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.991 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.993 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.995 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:14.999 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.002 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.003 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.004 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.005 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.007 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.009 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.013 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.016 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.018 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.020 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.021 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.022 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.024 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.025 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.026 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.028 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.030 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.031 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.032 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.034 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.035 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.036 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.037 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.039 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.040 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.041 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.043 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.044 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.045 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.047 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.048 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.049 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.051 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.052 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.053 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.055 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.056 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.058 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.059 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.063 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.065 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.068 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.070 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.072 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.074 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.075 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.077 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.078 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.079 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.080 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.082 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.084 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.085 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.086 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.088 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.090 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.095 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.098 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.099 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.101 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.104 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.107 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.109 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.111 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.117 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.119 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.121 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.123 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.124 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.126 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.127 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.128 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.130 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.132 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.134 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.135 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.137 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.138 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.140 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.141 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.145 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.147 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.149 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.151 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.153 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.155 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.158 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.159 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.162 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.166 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.168 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.169 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.170 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.172 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.174 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.176 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.197 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.199 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.199 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.250 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.291 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.316 14128-14128 MapsFragme...iewCreated com.nemacolin D MapItem: MapItem(id=52841, title=Falling Rock, latitude=39.801667, longitude=-79.539722, backgroundImage=https://d1h6dnptlo7xad.cloudfront.net/wp-content/uploads/2023/09/31155500/01_FR_homepage-hero-mobile-poster-2.jpg, logo=null, feedCardType=stay, feedCardId=null, priceFrom=452.00, tintColor=#eb801e, poiCategory=Where to Stay, poiCategoryOrder=1)
2025-04-29 00:12:15.317 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.318 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.320 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.321 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.322 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.322 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: renderThreadPrepared=false and Android surface is not valid (isValid=null). Waiting for new one.
2025-04-29 00:12:15.325 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: onSurfaceCreated
2025-04-29 00:12:15.325 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: onSurfaceCreated: waiting Android surface to be processed...
2025-04-29 00:12:15.326 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: Setting up render thread, flags: creatingSurface=true, nativeRenderCreated=false, eglContextMadeCurrent=false, eglContextCreated=false, paused=false
2025-04-29 00:12:15.330 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-EGLConfigChooser]: In emulator: false
2025-04-29 00:12:15.360 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-EglCore]: EGLContext created, client version 3
2025-04-29 00:12:15.365 14128-14431 Mapbox com.nemacolin I [maps-core]: Using OpenGL render backend
2025-04-29 00:12:15.369 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: Native renderer created.
2025-04-29 00:12:15.370 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: onSurfaceCreated: Android surface was processed.
2025-04-29 00:12:15.517 14128-14128 Mapbox com.nemacolin W [maps-android\MbxLogo]: The Mapbox logo wordmark must remain enabled in accordance with our Terms of Service. See https://www.mapbox.com/legal/tos for more details.
2025-04-29 00:12:15.518 14128-14128 Mapbox com.nemacolin W [maps-android\MbxLogo]: The Mapbox logo wordmark must remain enabled in accordance with our Terms of Service. See https://www.mapbox.com/legal/tos for more details.
2025-04-29 00:12:15.745 14128-14312 Mapbox com.nemacolin W [maps-core]: {}[Style]: Required image 'sport' is missing and it will not be rendered. Subscribe to StyleImageMissing event to be aware of the required missing images and add them by calling addStyleImage().
2025-04-29 00:12:15.776 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: Renderer paused
2025-04-29 00:12:15.800 14128-14165 Mapbox com.nemacolin I [events_service]: Queue is empty, nothing to flush
2025-04-29 00:12:15.941 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: onSurfaceDestroyed
2025-04-29 00:12:15.980 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: onSurfaceDestroyed: waiting until EGL will be cleaned up...
2025-04-29 00:12:16.122 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-EglCore]: EGL surface was destroyed.
2025-04-29 00:12:16.122 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: onSurfaceDestroyed: EGL resources were cleaned up.
2025-04-29 00:12:16.134 14128-14431 Mapbox com.nemacolin W [maps-android\Mbgl-RenderThread]: eglSwapBuffer error: 12301. Waiting for new surface
2025-04-29 00:12:16.134 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-EglCore]: EGL surface was already destroyed before.
2025-04-29 00:12:16.138 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: destroy
2025-04-29 00:12:16.138 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: destroy: waiting until all resources will be cleaned up...
2025-04-29 00:12:16.138 14128-14128 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: destroy: all resources were cleaned up.
2025-04-29 00:12:16.140 14128-14128 Mapbox com.nemacolin W [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setViewAnnotationPositionsUpdateListener) should not be stored and used after MapView is destroyed.
2025-04-29 00:12:16.141 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-RenderThread]: Native renderer destroyed.
2025-04-29 00:12:16.141 14128-14431 Mapbox com.nemacolin I [maps-android\Mbgl-EglCore]: EGL surface was already destroyed before.
2025-04-29 00:12:19.017 14128-14312 Mapbox com.nemacolin W [maps-core]: {}[Style]: Updated style is ignored due to runtime changes
How I've tried to solve the issue
- Ensured proper MapView lifecycle management by calling required lifecycle methods
- Verified the layout has proper dimensions and constraints
- Attempted to delay MapView initialisation until the hosting view is ready
Has anyone else faced such issues with any other SDKs? If yes, please share the details. Can anyone help me figure out this issue? Thanks.