You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maplibre should correctly detect if it is running on an AAOS emulator.
It looks like the inEmulator method of EGLConfigChooser is returning false.
The conditions that exist to check whether it is an emulator or not, fail in the case of an emulator for AAOS.
Steps to reproduce
Steps:
1). Run the AAOS app containing maplibre in AAOS emulator.
2). Crashes:
`
EGLConfigChooser nl....eister.maplibrecar.automotive I In emulator: false
eglChooseConfig(NULL) returned error 12288
eglChooseConfig() returned no configs.
eglChooseConfig() returned error 12288
No matching configurations after filtering
No config chosen
FATAL EXCEPTION: TextureViewRenderer
Process: nl.flitsmeister.maplibrecar.automotive, PID: 5272
java.lang.IllegalArgumentException
at com.google.android.gles_jni.EGLImpl._eglCreateContext(Native Method)
at com.google.android.gles_jni.EGLImpl.eglCreateContext(EGLImpl.java:63)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread$EGLHolder.prepare(GLTextureViewRenderThread.java:248)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread.run(GLTextureViewRenderThread.java:128)
`
Renderer
OpenGL (choose this if you are unsure)
Relevant log output
Additional context
EGLConfigChooser nl....eister.maplibrecar.automotive I In emulator: false
2025-02-24 17:52:06.630 5272-5368 HostConnection nl....eister.maplibrecar.automotive D HostConnection::get() New Host Connection established 0x7c2ac55cc210, tid 5368
2025-02-24 17:52:06.648 5272-5368 HostConnection nl....eister.maplibrecar.automotive D HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E eglChooseConfig(NULL) returned error 12288
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E eglChooseConfig() returned no configs.
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E eglChooseConfig() returned error 12288
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E No matching configurations after filtering
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E No config chosen
2025-02-24 17:52:06.654 5272-5368 AndroidRuntime nl....eister.maplibrecar.automotive E FATAL EXCEPTION: TextureViewRenderer (Ask Gemini)
Process: nl.flitsmeister.maplibrecar.automotive, PID: 5272
java.lang.IllegalArgumentException
at com.google.android.gles_jni.EGLImpl._eglCreateContext(Native Method)
at com.google.android.gles_jni.EGLImpl.eglCreateContext(EGLImpl.java:63)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread$EGLHolder.prepare(GLTextureViewRenderThread.java:248)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread.run(GLTextureViewRenderThread.java:128)
2025-02-24 17:52:06.671 5272-5272 TetheringManager nl....eister.maplibrecar.automotive I registerTetheringEventCallback:nl.flitsmeister.maplibrecar.automotive
The text was updated successfully, but these errors were encountered:
MapLibre Android Version
11.7.1
Android SDK Version
Android 11
Device
Simulator
What happened?
Maplibre should correctly detect if it is running on an AAOS emulator.
It looks like the inEmulator method of EGLConfigChooser is returning false.
The conditions that exist to check whether it is an emulator or not, fail in the case of an emulator for AAOS.
Steps to reproduce
Steps:
1). Run the AAOS app containing maplibre in AAOS emulator.
2). Crashes:
`
EGLConfigChooser nl....eister.maplibrecar.automotive I In emulator: false
eglChooseConfig(NULL) returned error 12288
eglChooseConfig() returned no configs.
eglChooseConfig() returned error 12288
No matching configurations after filtering
No config chosen
FATAL EXCEPTION: TextureViewRenderer
Process: nl.flitsmeister.maplibrecar.automotive, PID: 5272
java.lang.IllegalArgumentException
at com.google.android.gles_jni.EGLImpl._eglCreateContext(Native Method)
at com.google.android.gles_jni.EGLImpl.eglCreateContext(EGLImpl.java:63)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread$EGLHolder.prepare(GLTextureViewRenderThread.java:248)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread.run(GLTextureViewRenderThread.java:128)
`
Renderer
OpenGL (choose this if you are unsure)
Relevant log output
Additional context
EGLConfigChooser nl....eister.maplibrecar.automotive I In emulator: false
2025-02-24 17:52:06.630 5272-5368 HostConnection nl....eister.maplibrecar.automotive D HostConnection::get() New Host Connection established 0x7c2ac55cc210, tid 5368
2025-02-24 17:52:06.648 5272-5368 HostConnection nl....eister.maplibrecar.automotive D HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E eglChooseConfig(NULL) returned error 12288
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E eglChooseConfig() returned no configs.
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E eglChooseConfig() returned error 12288
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E No matching configurations after filtering
2025-02-24 17:52:06.648 5272-5368 Mbgl-EGLConfigChooser nl....eister.maplibrecar.automotive E No config chosen
2025-02-24 17:52:06.654 5272-5368 AndroidRuntime nl....eister.maplibrecar.automotive E FATAL EXCEPTION: TextureViewRenderer (Ask Gemini)
Process: nl.flitsmeister.maplibrecar.automotive, PID: 5272
java.lang.IllegalArgumentException
at com.google.android.gles_jni.EGLImpl._eglCreateContext(Native Method)
at com.google.android.gles_jni.EGLImpl.eglCreateContext(EGLImpl.java:63)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread$EGLHolder.prepare(GLTextureViewRenderThread.java:248)
at org.maplibre.android.maps.renderer.textureview.GLTextureViewRenderThread.run(GLTextureViewRenderThread.java:128)
2025-02-24 17:52:06.671 5272-5272 TetheringManager nl....eister.maplibrecar.automotive I registerTetheringEventCallback:nl.flitsmeister.maplibrecar.automotive
The text was updated successfully, but these errors were encountered: