question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native crash on realm-android 3.5.0

See original GitHub issue

Steps & Code to Reproduce

Logging is disabled on the device, I cannot know what operation caused this crash. If I remove db and create new one ( clear user data on my app), the crash doesn’t happen on new db.


#### Version of Realm and tooling
Realm version(s): ?
3.5.0

Realm sync feature enabled: yes/no
no
Android Studio version: ?
2.3.3
build.gradle on project level
       dependencies {
		classpath 'com.android.tools.build:gradle:2.3.3'
		classpath "io.realm:realm-gradle-plugin:3.5.0"
	}
Which Android version and device: ?
Sony G3125
Android SDK 24

#### Crash log

09-21 10:58:21.035  3095  3095 I AEE_AED : pid: 2976, tid: 3056, name: DTWRealmMgrThre  >>> (my app) <<<
09-21 10:58:21.035  3095  3095 I AEE_AED : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-21 10:58:21.035  3095  3095 I AEE_AED :     x0   0000000000000000  x1   0000000000000bf0  x2   0000000000000006  x3   0000000000000008
09-21 10:58:21.036  3095  3095 I AEE_AED :     x4   000000000000001d  x5   8080800000000000  x6   0000007094861000  x7   0000000000000000
09-21 10:58:21.036  3095  3095 I AEE_AED :     x8   0000000000000083  x9   ffffffffffffffdf  x10  0000000000000000  x11  0000000000000001
09-21 10:58:21.036  3095  3095 I AEE_AED :     x12  0000000000000018  x13  0000000000000000  x14  0000000000000000  x15  0036ece2d72d06ad
09-21 10:58:21.036  3095  3095 I AEE_AED :     x16  0000007091b76ed0  x17  0000007091b1f6d8  x18  0000000c00000000  x19  0000007074b434f8
09-21 10:58:21.036  3095  3095 I AEE_AED :     x20  0000000000000006  x21  0000007074b43450  x22  000000000000000b  x23  0000000000000001
09-21 10:58:21.036  3095  3095 I AEE_AED :     x24  0000007089d4b010  x25  0000000000000001  x26  0000000000000868  x27  0000007089c43980
09-21 10:58:21.036  3095  3095 I AEE_AED :     x28  0000000000000000  x29  0000007074b3f840  x30  0000007091b1cb04
09-21 10:58:21.036  3095  3095 I AEE_AED :     sp   0000007074b3f820  pc   0000007091b1f6e0  pstate 0000000060000000
09-21 10:58:21.044  3095  3095 I AEE_AED : 
09-21 10:58:21.044  3095  3095 I AEE_AED : backtrace:
09-21 10:58:21.044  3095  3095 I AEE_AED :     #00 pc 000000000006d6e0  /system/lib64/libc.so (tgkill+8)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #01 pc 000000000006ab00  /system/lib64/libc.so (pthread_kill+64)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #02 pc 0000000000024118  /system/lib64/libc.so (raise+24)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #03 pc 000000000001c9bc  /system/lib64/libc.so (abort+52)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #04 pc 00000000001e0e3c  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.044  3095  3095 I AEE_AED :     #05 pc 00000000001e0e80  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #06 pc 00000000001e0f10  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #07 pc 000000000018ec00  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #08 pc 000000000018bbd4  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #09 pc 000000000018be6c  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #10 pc 000000000018d614  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #11 pc 00000000000e8d68  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #12 pc 00000000000d2560  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #13 pc 000000000005ba20  /data/app/(my app)/lib/arm64/librealm-jni.so (Java_io_realm_internal_SharedRealm_nativeCommitTransaction+48)
09-21 10:58:21.045  3095  3095 I AEE_AED :     #14 pc 0000000000ca5f14  /data/app/(my app)/oat/arm64/base.odex (offset 0xb21000)
09-21 11:11:17.435  7315  7315 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 7315 ((my app process))09-21 10:58:21.035  3095  3095 I AEE_AED : pid: 2976, tid: 3056, name: DTWRealmMgrThre  >>> (my app) <<<
09-21 10:58:21.035  3095  3095 I AEE_AED : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-21 10:58:21.035  3095  3095 I AEE_AED :     x0   0000000000000000  x1   0000000000000bf0  x2   0000000000000006  x3   0000000000000008
09-21 10:58:21.036  3095  3095 I AEE_AED :     x4   000000000000001d  x5   8080800000000000  x6   0000007094861000  x7   0000000000000000
09-21 10:58:21.036  3095  3095 I AEE_AED :     x8   0000000000000083  x9   ffffffffffffffdf  x10  0000000000000000  x11  0000000000000001
09-21 10:58:21.036  3095  3095 I AEE_AED :     x12  0000000000000018  x13  0000000000000000  x14  0000000000000000  x15  0036ece2d72d06ad
09-21 10:58:21.036  3095  3095 I AEE_AED :     x16  0000007091b76ed0  x17  0000007091b1f6d8  x18  0000000c00000000  x19  0000007074b434f8
09-21 10:58:21.036  3095  3095 I AEE_AED :     x20  0000000000000006  x21  0000007074b43450  x22  000000000000000b  x23  0000000000000001
09-21 10:58:21.036  3095  3095 I AEE_AED :     x24  0000007089d4b010  x25  0000000000000001  x26  0000000000000868  x27  0000007089c43980
09-21 10:58:21.036  3095  3095 I AEE_AED :     x28  0000000000000000  x29  0000007074b3f840  x30  0000007091b1cb04
09-21 10:58:21.036  3095  3095 I AEE_AED :     sp   0000007074b3f820  pc   0000007091b1f6e0  pstate 0000000060000000
09-21 10:58:21.044  3095  3095 I AEE_AED : 
09-21 10:58:21.044  3095  3095 I AEE_AED : backtrace:
09-21 10:58:21.044  3095  3095 I AEE_AED :     #00 pc 000000000006d6e0  /system/lib64/libc.so (tgkill+8)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #01 pc 000000000006ab00  /system/lib64/libc.so (pthread_kill+64)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #02 pc 0000000000024118  /system/lib64/libc.so (raise+24)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #03 pc 000000000001c9bc  /system/lib64/libc.so (abort+52)
09-21 10:58:21.044  3095  3095 I AEE_AED :     #04 pc 00000000001e0e3c  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.044  3095  3095 I AEE_AED :     #05 pc 00000000001e0e80  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #06 pc 00000000001e0f10  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #07 pc 000000000018ec00  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #08 pc 000000000018bbd4  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #09 pc 000000000018be6c  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #10 pc 000000000018d614  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #11 pc 00000000000e8d68  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #12 pc 00000000000d2560  /data/app/(my app)/lib/arm64/librealm-jni.so
09-21 10:58:21.045  3095  3095 I AEE_AED :     #13 pc 000000000005ba20  /data/app/(my app)/lib/arm64/librealm-jni.so (Java_io_realm_internal_SharedRealm_nativeCommitTransaction+48)
09-21 10:58:21.045  3095  3095 I AEE_AED :     #14 pc 0000000000ca5f14  /data/app/(my app)/oat/arm64/base.odex (offset 0xb21000)
09-21 11:11:17.435  7315  7315 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 7315 ((my app process))

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
beeendercommented, Sep 21, 2017

Should be the same issue reported to core https://github.com/realm/realm-core/issues/2832

Same issue with https://github.com/realm/realm-java/issues/5178

The fix is in core 2.9.2. and 3.x.x which has not been released yet.

The current snapshot should contain the fix.

1reaction
Zhuindencommented, Oct 7, 2017

also 4.0.0-RC1 contains the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Realm: Create reactive mobile apps in a fraction ... - MongoDB
If your app crashes, telling you that the Realm constructor was not found, there are a few things you can try: First of...
Read more >
Apk crashes after adding realm to react native - Stack Overflow
I use realm in my daily work, I have met this issue is because realm doesn't support hermes engine yet, see this issue,...
Read more >
Create reactive mobile apps in a fraction of the time - Realm
Realm Java is the first database built for mobile. An alternative to SQLite and ORMs that's fast, easy to use, and open source....
Read more >
realm | Yarn - Package Manager
This project hosts the JavaScript versions of Realm. Currently we support React Native (JSC & Hermes on iOS & Android), Node.js and Electron...
Read more >
Tales from the dark side: developing SDKs at scale - SlideShare
While developing Realm Java, we found bugs in Android. ... A native crash • Realm Java issue #3651(October 2016) • Segmentation fault in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found