ArcGisRuntime SDK for #Xamarin Android crashes on #Android 10

1268
5
08-28-2020 11:33 AM
AmitTaparia
New Contributor II

ArcGisRuntime SDK for #Xamarin Android crashes on #Android 10 on the following line in code:

ArcGISRuntimeEnvironment.SetLicense(license)

license information passed is free lite version.

This issue is only happening on Android OS 10. On Android OS < 10, its working perfectly fine.#

We are running SDK version 100.5

Here is what I am getting in the logs:

=================================================================
Native Crash Reporting
=================================================================
Got a SEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

No native Android stacktrace (see debuggerd output).

=================================================================
Basic Fault Address Reporting
=================================================================
08-28 14:24:19.770 W/com.infor.ips( 2761): 0xebadde09 skipped times: 0
Memory around native instruction pointer (0x78274854cc):0x78274854bc 20 01 00 54 f3 03 02 aa f4 03 01 aa f5 03 00 aa ..T............
0x78274854cc 81 16 40 38 e0 03 15 aa 07 00 00 94 7f 02 14 eb ..@8............
0x78274854dc 81 ff ff 54 fd 7b 42 a9 f4 4f 41 a9 f5 07 43 f8 ...T.{B..OA...C.
0x78274854ec c0 03 5f d6 ff 03 01 d1 f4 4f 02 a9 fd 7b 03 a9 .._......O...{..

=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_static_void_method_a <0x00007>
at StaticMethods:CallStaticVoidMethod <0x00277>
at JniStaticMethods:InvokeVoidMethod <0x00107>
at Java.Lang.JavaSystem:LoadLibrary <0x001af>
at Esri.ArcGISRuntime.ArcGISRuntimeEnvironment:Initialize <0x0010b>
at Esri.ArcGISRuntime.ArcGISRuntimeEnvironment:SetLicense <0x0007f>
at Infor.Mobile.Core.Droid.UI.Mapping.EsriMapEnvironmentManager:SetLicenses <0x0008-28 14:24:19.771 F/libc ( 2761): Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x794de51d64 in tid 2761 (<appname>), pid 2761 (<appname>)

0 Kudos
5 Replies
dotMorten_esri
Esri Notable Contributor

Do you also see this issue with v100.9 ?


The error you're seeing is likely because there's an issue with calling into the native part of the ArcGIS Runtime library (either it is not there, wrong architecture or something else), since the setlicense call is probably the first code that does so.

0 Kudos
AmitTaparia
New Contributor II

Hi Morten,

Thanks. It appears to be some temporary glitch because of which I was having this issue. I retried again today and its working fine as far as setting license is concerned. However the maps doesn't load up on Android 10 making the app unresponsive and it finally crashes the app.

0 Kudos
dotMorten_esri
Esri Notable Contributor

I've definitely seen the Android tooling be flaky and sometimes not deploy our native libraries, and they have a habit of magically go away the next day.

0 Kudos
DmitroLukash
New Contributor II

Hello! I have the same error and crash with 100.9. What you do you think I could do to fix it?

Thanks for helping me!

0 Kudos
DmitroLukash
New Contributor II

Ok, so what I have found out is that this is a bug with VS2019 and virtual devise simulation. It goes away when you are using real android devise for debugging.