-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Android native crash when using multiple layers #9786
Comments
Thank you for the report, will try reproducing this with information given above.
Since #8363 we have integrated our C++ build as part of the gradle build. This means that the C++ step is an intermediate step of building the gradle output (in our case an aar file). |
I'm a bit confused as to which
No sure I got it right, so here's the crash dump retrieved from the logs, just in case:
Is there a documentation on how to debug the native code along with the Android app? I'd like to see if I can gather more information this way. I enabled native debugging through Android Studio but can't get the "symbolicated" call stack nor the java call that could have caused the crash. Edit: bonus question, is there any advantage in removing a layer from the |
Alright, upon further investigation on my side it seems to be caused by me calling I searched for similar reported issues and it seems like this operation is not supported within a thread, but you guys are aware of the delays |
thank you for reporting that back, you are correct that these methods should be executed from the main thread. For this we have |
Platform: Android
Mapbox SDK version: 5.1.2
I have this recurring native crash that seems to be related to me adding several layers, each containing roughly between 20 and 50 linestrings. The number of layers can go up to a hundred or so, but the crash sometimes happens when loading the very first few ones (more are added as the user moves on the map).
I'm not sure whether this is something I'm doing wrong or if it might be an issue from the library. The crash happens randomly on a wide variety of devices, and can occur pretty fast even on high-end ones. There's nothing too exotic in what I do, the layers just have some categorical color stops.
Here's the stack trace:
Note: for some reason running
make android-lib-arm-v8
ormake apackage
doesn't generate thelibmapbox-gl.so
file inMapboxAndroidSDK/src/main/jniLibs/
so I used one in the intermediates.Let me know if you need any other kind of information.
The text was updated successfully, but these errors were encountered: