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

[Android] Maplibre crashes when run on AAOS emulator #3252

Open
LuisFALopes opened this issue Feb 24, 2025 · 0 comments
Open

[Android] Maplibre crashes when run on AAOS emulator #3252

LuisFALopes opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@LuisFALopes
Copy link

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

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

No branches or pull requests

1 participant