Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] Crash when testing custom layer example #10152

Closed
Guardiola31337 opened this issue Oct 6, 2017 · 1 comment · Fixed by #10253
Closed

[android] Crash when testing custom layer example #10152

Guardiola31337 opened this issue Oct 6, 2017 · 1 comment · Fixed by #10253
Labels
Android Mapbox Maps SDK for Android crash

Comments

@Guardiola31337
Copy link
Contributor

Platform: Android 5.0 Moto X (2nd gen)
Mapbox SDK version: release-agua branch

Steps to trigger behavior

  1. Custom Layer
  2. Update layer (invalidate) a couple of times
  3. App crashes

Logcat

--------- beginning of crash
10-06 20:34:40.909 28668-28880/com.mapbox.mapboxsdk.testapp A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x15 in tid 28880 (GLThread 7823)
10-06 20:34:40.992 28668-28954/com.mapbox.mapboxsdk.testapp V/HTTPRequest: [HTTP] Request was successful (code = 200).
10-06 20:34:41.011 17936-17936/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-06 20:34:41.011 17936-17936/? I/DEBUG: Build fingerprint: 'motorola/victara_reteu/victara:5.0/LXE22.46-19/18:user/release-keys'
10-06 20:34:41.011 17936-17936/? I/DEBUG: Revision: 'p2bf'
10-06 20:34:41.011 17936-17936/? I/DEBUG: ABI: 'arm'
10-06 20:34:41.011 17936-17936/? I/DEBUG: pid: 28668, tid: 28880, name: GLThread 7823  >>> com.mapbox.mapboxsdk.testapp <<<
10-06 20:34:41.011 17936-17936/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x15
10-06 20:34:41.028 17936-17936/? I/DEBUG:     r0 00000011  r1 b949d280  r2 b949d280  r3 00000011
10-06 20:34:41.028 17936-17936/? I/DEBUG:     r4 00000000  r5 00000207  r6 b949d280  r7 a07078b8
10-06 20:34:41.028 17936-17936/? I/DEBUG:     r8 a590e16c  r9 a590e174  sl bb49184c  fp bb491880
10-06 20:34:41.028 17936-17936/? I/DEBUG:     ip 00000015  sp a07076a8  lr a55eb85b  pc a53b7bbc  cpsr 000b0030
10-06 20:34:41.028 17936-17936/? I/DEBUG: backtrace:
10-06 20:34:41.028 17936-17936/? I/DEBUG:     #00 pc 00336bbc  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.028 17936-17936/? I/DEBUG:     #01 pc 0056a857  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.028 17936-17936/? I/DEBUG:     #02 pc 00569a5b  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.028 17936-17936/? I/DEBUG:     #03 pc 00316a63  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.028 17936-17936/? I/DEBUG:     #04 pc 0030af51  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #05 pc 000f847b  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #06 pc 000fdd6f  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #07 pc 000fdd05  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #08 pc 000fdccd  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #09 pc 000fddf9  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #10 pc 000fddb9  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so
10-06 20:34:41.029 17936-17936/? I/DEBUG:     #11 pc 00181c03  /data/dalvik-cache/arm/data@[email protected]@[email protected]

Symbolicated Android crash

Crash dump is completed

********** Crash dump: **********
Build fingerprint: 'motorola/victara_reteu/victara:5.0/LXE22.46-19/18:user/release-keys'
pid: 28668, tid: 28880, name: GLThread 7823  >>> com.mapbox.mapboxsdk.testapp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x15
Stack frame #00 pc 00336bbc  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine std::__ndk1::__tree<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, mbgl::gl::VertexArray>, std::__ndk1::__map_value_compare<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, mbgl::gl::VertexArray>, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >, true>, std::__ndk1::allocator<std::__ndk1::__value_type<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, mbgl::gl::VertexArray> > >::__root() const at /Users/pguardiola/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/__tree:1009
Stack frame #01 pc 0056a857  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine std::__ndk1::map<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >, mbgl::gl::VertexArray, std::__ndk1::less<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >, std::__ndk1::allocator<std::__ndk1::pair<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const, mbgl::gl::VertexArray> > >::find(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&) at /Users/pguardiola/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/map:1220
Stack frame #02 pc 00569a5b  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::RenderSymbolLayer::render(mbgl::PaintParameters&, mbgl::RenderSource*) at /Users/pguardiola/mapbox/mapbox-gl-native/src/mbgl/renderer/layers/render_symbol_layer.cpp:232
Stack frame #03 pc 00316a63  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::Renderer::Impl::render(mbgl::UpdateParameters const&) at /Users/pguardiola/mapbox/mapbox-gl-native/src/mbgl/renderer/renderer_impl.cpp:538
Stack frame #04 pc 0030af51  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::Renderer::render(mbgl::UpdateParameters const&) at /Users/pguardiola/mapbox/mapbox-gl-native/src/mbgl/renderer/renderer.cpp:32
Stack frame #05 pc 000f847b  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::android::MapRenderer::render(_JNIEnv&) at /Users/pguardiola/mapbox/mapbox-gl-native/platform/android/src/map_renderer.cpp:130
Stack frame #06 pc 000fdd6f  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine operator() at /Users/pguardiola/mapbox/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/armeabi-v7a/../../../../../../../mason_packages/headers/jni.hpp/3.0.0/include/jni/native_method.hpp:245
Stack frame #07 pc 000fdd05  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine operator() at /Users/pguardiola/mapbox/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/armeabi-v7a/../../../../../../../mason_packages/headers/jni.hpp/3.0.0/include/jni/native_method.hpp:112
Stack frame #08 pc 000fdccd  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine __invoke at /Users/pguardiola/mapbox/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/armeabi-v7a/../../../../../../../mason_packages/headers/jni.hpp/3.0.0/include/jni/native_method.hpp:110
Stack frame #09 pc 000fddf9  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine operator()<jni::jobject *> at /Users/pguardiola/mapbox/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/armeabi-v7a/../../../../../../../mason_packages/headers/jni.hpp/3.0.0/include/jni/native_method.hpp:59
Stack frame #10 pc 000fddb9  /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine __invoke<jni::jobject *> at /Users/pguardiola/mapbox/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/armeabi-v7a/../../../../../../../mason_packages/headers/jni.hpp/3.0.0/include/jni/native_method.hpp:55
Stack frame #11 pc 00181c03  /data/dalvik-cache/arm/data@[email protected]@[email protected]

👀 @tobrun @ivovandongen

@Guardiola31337 Guardiola31337 added Android Mapbox Maps SDK for Android crash labels Oct 6, 2017
@Guardiola31337
Copy link
Contributor Author

Noting here that it's not crashing when testing it in a Nexus 5 Android 6.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants