App crashes (sometimes) with Fatal signal 11 (SIGSEGV), code 1
<p>I am developing an app with the HERE SDK, and everything worked fine until now. I get errors like this one:<br>
 <code>Fatal signal 11 (SIGSEGV), code 1, fault addr 0x750057 in tid 10206 (FinalizerDaemon)</code><br>
or this one:<br>
    <code>Fatal signal 11 (SIGSEGV), code 1, fault addr 0x94789680 in tid 24605 (FinalizerDaemon)</code></p>

<p>and they make my app crash.</p>

<p>It's not always the same errors, but they always come all alone in my Logcat,with no other information.  </p>

<p>In all my app I am using HERE objects and services, and even by printing the stacktrace I don't get more information about the errors.<br>
I just noticed that these errors appear pretty much randomly, but only when I am using these objects/services.</p>

<p>I use a real device to test my app, a Sony Xperia Z3 compact, so I don't think it comes from here. </p>

<p>I am really lost, so if someone has any idea even on how to get more infos about the errors, please help</p>

<p><strong>EDIT:</strong></p>

<pre><code> 05-09 23:04:10.148 6770-6782/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 6782 (FinalizerDaemon)
05-09 23:04:10.266 30179-30179/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-09 23:04:10.266 30179-30179/? I/DEBUG: UUID: 5569a1b9-c913-4101-99fa-5099e2cadd48
05-09 23:04:10.266 30179-30179/? I/DEBUG: Build fingerprint: 'Sony/D5803/D5803:5.1.1/23.4.A.1.264/2418263178:user/release-keys'
05-09 23:04:10.266 30179-30179/? I/DEBUG: Revision: '0'
05-09 23:04:10.266 30179-30179/? I/DEBUG: ABI: 'arm'
05-09 23:04:10.266 30179-30179/? I/DEBUG: pid: 6770, tid: 6782, name: FinalizerDaemon  &gt;&gt;&gt; com.david.metroz &lt;&lt;&lt;
05-09 23:04:10.266 30179-30179/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
05-09 23:04:10.294 30179-30179/? I/DEBUG:     r0 98327400  r1 00000000  r2 00000002  r3 00000000
05-09 23:04:10.294 30179-30179/? I/DEBUG:     r4 aec264c0  r5 b3df7acc  r6 98327400  r7 73652348
05-09 23:04:10.294 30179-30179/? I/DEBUG:     r8 6f9983a8  r9 b482a800  sl 12f1d820  fp b3df7abc
05-09 23:04:10.294 30179-30179/? I/DEBUG:     ip b5303950  sp b3df7ab0  lr b510717f  pc a0b7205c  cpsr a00e0010
05-09 23:04:10.294 30179-30179/? I/DEBUG:     #00 pc 000f405c  /data/app/com.david.metroz-1/lib/arm/libMAPSJNI.so (Java_com_nokia_maps_GeoBoundingBoxImpl_destroyNative+76)
05-09 23:04:10.294 30179-30179/? I/DEBUG:     #01 pc 001d7d4f  /data/dalvik-cache/arm/data@app@com.david.metroz-1@base.apk@classes.dex
05-09 23:04:12.302 862-1274/? E/NativeCrashListener: Exception dealing with report
                                                     android.system.ErrnoException: read failed: EAGAIN (Try again)
                                                         at libcore.io.Posix.readBytes(Native Method)
                                                         at libcore.io.Posix.read(Posix.java:165)
                                                         at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
                                                         at android.system.Os.read(Os.java:350)
                                                         at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
                                                         at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
</code></pre>

<p><strong>EDIT 2:</strong> I am now pretty sure that the crash happens when I am retrieving HERE objects from database using gson.    </p>

<p>The following code works when everything is done in the same app runtime, but when I save a string in the database, close the app and then re-open it, I get the <code>Fatal signal</code> while converting the <code>json string</code> back to the object.</p>

<pre><code>// to insert I create a json string and then insert it in the database
String mGbSortie = gson.toJson(geoboundinBox);

//and then to retrieve the data :
Type gbType = new TypeToken&lt;GeoBoundingBox&gt;(){}.getType();
geoBoudingBox = gson.fromJson(stringFromDb, listType)
</code></pre>

<p>I really don't know why it doesn't work.</p>