A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) with SDK 100.9

1858
3
09-08-2020 08:30 AM
DmitrySorokin
New Contributor

I tried to follow the "Search for an address" tutorial, but it gave the error "A / libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)" when using "arcgis-android: 100.9.0". I spent half a day looking for the cause and found out that using version "arcgis-android: 100.4.0" everything works.
Can you tell me how to debug the cause of such errors?
To reproduce this error, you can use my repository in which there are two commits with different versions of arcgis-android.
Commits · redballtoy/ArcGisSearchForAddress · GitHub 

0 Kudos
3 Replies
GayleYoung
Esri Contributor

Hi Dmitry,

can you tell us your Android devices and SDK versions please? Also, do you have a full stack trace from this error? I'm guessing this happens when you try to dispay the result (that is displaySearchResult()). Does it happen when you simply use the API to search for an address and don't display the result, in queryLocator()?

Thanks,

Gayle

0 Kudos
GayleYoung
Esri Contributor

Dmitry, if you could try the equivalent sample and let us know if that works for you, we'd appreciate it.

Find address | ArcGIS for Developers 

Thanks,

Gayle.

0 Kudos
ehoogend
New Contributor

I'm having the same issue when trying the starter app tutorial.

Device: Android emulator, with Android 10.0 (API 29) x86 target.

compileSdkVersion(30)
buildToolsVersion("30.0.2")

Arcgis runtime versions with the issue: 100.8.0 and 100.9.0

Using version 100.7.0 seems to fix the issue. Also, the issue only occurs when using vector base maps(e.g. Basemap.Type.STREETS_VECTOR). Using regular base maps(Basemap.Type.STREETS) does work.

Stacktrace:

Spoiler
2020-12-16 15:39:19.152 4481-4481/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-12-16 15:39:19.152 4481-4481/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
2020-12-16 15:39:19.152 4481-4481/? A/DEBUG: Revision: '0'
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: ABI: 'x86'
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: Timestamp: 2020-12-16 15:39:19+0100
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: pid: 4343, tid: 4406, name: Rendering threa >>> my.app.id.dev <<<
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: uid: 10166
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: Cause: null pointer dereference
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: eax 00000000 ebx c5ff2264 ecx c82e3650 edx 000010f2
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: edi c82e3738 esi cc379f2c
2020-12-16 15:39:19.153 4481-4481/? A/DEBUG: ebp c82e3688 esp c82e35fc eip 00000000
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: backtrace:
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #00 pc 00000000 <unknown>
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #01 pc 032ed92b /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #02 pc 032ec432 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #03 pc 0330c708 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #04 pc 03302f00 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #05 pc 02d27e63 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #06 pc 02d29cbe /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #07 pc 02cca4e5 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #08 pc 02065b30 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #09 pc 01efbaac /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore.so (RT_GeoView_draw+58) (BuildId: 896e1499b60b4400)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #10 pc 001bdb73 /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/lib/x86/libruntimecore_java.so (Java_com_esri_arcgisruntime_internal_jni_CoreGeoView_nativeDraw+67) (BuildId: 34ce751db888ae36)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #11 pc 00144f67 /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+71) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #12 pc 0013e9a2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+418) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #13 pc 00149a7a /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #14 pc 00332502 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+386) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #15 pc 0032c19c /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+988) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #16 pc 00684d03 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+643) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #17 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #18 pc 0032be96 [anon:dalvik-classes.dex extracted in memory from /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/base.apk] (com.esri.arcgisruntime.internal.jni.CoreGeoView.a+26)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #19 pc 00681adc /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #20 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #21 pc 00306b48 [anon:dalvik-classes.dex extracted in memory from /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/base.apk] (com.esri.arcgisruntime.internal.h.b.p.a+4)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #22 pc 00681adc /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #23 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.225 4481-4481/? A/DEBUG: #24 pc 003d9366 [anon:dalvik-classes.dex extracted in memory from /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/base.apk] (com.esri.arcgisruntime.mapping.view.GeoView$RenderingThread.c+66)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #25 pc 006845ac /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+1324) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #26 pc 00138921 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #27 pc 003d93fc [anon:dalvik-classes.dex extracted in memory from /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/base.apk] (com.esri.arcgisruntime.mapping.view.GeoView$RenderingThread.lambda$JcLo40vXHSV6cwpkdiT63QYK0pk)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #28 pc 00684f6c /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1260) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #29 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #30 pc 003d3184 [anon:dalvik-classes.dex extracted in memory from /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/base.apk] (com.esri.arcgisruntime.mapping.view.-$$Lambda$GeoView$RenderingThread$JcLo40vXHSV6cwpkdiT63QYK0pk.run+4)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #31 pc 006837bc /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1980) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #32 pc 00138a21 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #33 pc 002f5918 /system/framework/framework.jar (android.os.Handler.handleCallback+4)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #34 pc 00684f6c /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1260) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #35 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #36 pc 002f5784 /system/framework/framework.jar (android.os.Handler.dispatchMessage+8)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #37 pc 00681adc /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #38 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #39 pc 00319eda /system/framework/framework.jar (android.os.Looper.loop+466)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #40 pc 00684f6c /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1260) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #41 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #42 pc 003d96bc [anon:dalvik-classes.dex extracted in memory from /data/app/my.app.id.dev-4qKMf8vq7VlQrIGueIjpQA==/base.apk] (com.esri.arcgisruntime.mapping.view.GeoView$RenderingThread.run+20)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #43 pc 002f8e0a /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.12194892193087984976+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #44 pc 002ffcc5 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+181) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #45 pc 0066fbd9 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+1209) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #46 pc 0014503d /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #47 pc 0013e7d2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #48 pc 00149a69 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+281) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #49 pc 0055a513 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+99) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #50 pc 0055b91a /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+474) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #51 pc 005aaa51 /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+1585) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #52 pc 0011a8e5 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+53) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2020-12-16 15:39:19.226 4481-4481/? A/DEBUG: #53 pc 000af6a7 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 76290498408016ad14f4b98c3ab6c65c)

Hope this helps.

Best,

Erik

0 Kudos