Open nijs9 opened 3 weeks ago
What device are you testing with? (MapLibre 11.x.x+ requires OpenGL ES 3.0. Whether it is supported or not depends on the device used.)
@westnordost Galaxy A23 5G SM-A263B/DSN Android 14. In Android emulator Pixel 8 API 35 crash is also happening.
To test whether this is an OpenGL-specific issue, can you reproduce this with org.maplibre.gl:android-sdk:11.3.0-vulkan-pre0
? To check whether this only occurs on Android 14, can you check if it is reproducible on a device with an older Android?
@westnordost I can confirm that the issue does not occur with org.maplibre.gl:android-sdk:11.3.0-vulkan-pre0. With this version, it works on the device, and in the emulator (on Android 13 and 14).
Edit: I'm wrong. Crash is also happening with this version, in this case I can pan a little bit before the crash is happening.
Edit: I changed to another vector tile provider, and now crash is not happening with 11.5.0. Is it possible the vector style is causing the crash?
So, I understand it also occurs for the Vulkan rendering backend and it occurs for different Android versions.
Is it possible the vector style is causing the crash?
To find a way to reproduce this issue for MapLibre developers (I am not one, I am just doing a bit of triage issue here), it would be helpful to know the map tile provider and the location at which this is happening (I.e. at what location is the camera looking at at the point of crash). It certainly shouldn't cause a crash, i.e. MapLibre should be robust against possibly invalid vector tile data, but there could be a bug.
So, I understand it also occurs for the Vulkan rendering backend and it occurs for different Android versions.
Yes indeed. I also notice, by the way, that in Vulkan, all styles from the providers (one of them being StadiaMaps Alidade Smooth Dark) crash, while in 11.5.0 the StadiaMaps style renders correctly and does not crash, but the others do. In 11.1.0, none of the styles crash.
I will inform the person who created the vector style in question and ask if they can provide more information.
I think it is better to report this as a new issue. That one should be pretty straightforward to reproduce and there's currently a push to make the Vulkan renderer stable ASAP.
Could you try the newest version?
Describe the bug In Android SDK 11.5.0, the app crashes consistently after a few seconds. I am only using a simple map view, without any extra layers or features. This does not happen in version 11.1.0. The map opens, and after a few seconds, the app crashes completely with this stack trace:
_tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000030 Cause: null pointer dereference x0 0000000000000000 x1 b400007b928f7648 x2 b400007b928f7648 x3 0000000000001403 x4 0000000000000000 x5 0000007a8be98fbc x6 0000000000000000 x7 0000000000000000 x8 0000000000000001 x9 0000000000000000 x10 0000000000000001 x11 0000000000000000 x12 0000000000000000 x13 000000000000000d x14 0000000000000000 x15 0000000000000ab5 x16 0000000000000001 x17 0000007d6bb2778c x18 00000078f441a000 x19 b400007c2294ff40 x20 0000000000001403 x21 000000000000006c x22 0000000000000004 x23 0000000000000000 x24 0000000000000000 x25 000000000000006c x26 0000000000000048 x27 00000078f502f000 x28 0000000000000000 x29 00000078f502deb0 lr 0000007a8be99188 sp 00000078f502de90 pc 0000007a8be99190 pst 0000000080001000 backtrace:
00 pc 0000000000032190 /vendor/lib64/libGLESv2_enc.so (GL2Encoder::s_glDrawElements(void, unsigned int, int, unsigned int, void const)+468) (BuildId: a27664df0c89ccdb6da110c4b80f92f7)
To Reproduce Steps to reproduce the behavior:
Platform information (please complete the following information):