-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libc Fatal signal 11 on Async transaction #5652
Comments
The real question is whether this still happens with Realm 4.3.1, because there was some similar thing fixed in the Core that was released in 4.x |
Hi @gorje001 Can you reproduce this in a sample project? |
@cmelchior it would be difficult to reproduce in a sample project. The realm async write is tied to REST API calls that are transformed from JSON and then stored in realm. We make dozens of calls and all the realm writes work except this one in only one situation (after sign out when realm is cleared). Is there a way I can help provide you with more information without a sample project? |
Hi guys, I can reproduce it in our project. The weird thing is it happens randomly - sometimes after 1 call, sometimes after 100. Logs from two different crashes below:
|
I upgraded to 4.3.1 and I am still getting the same crash. |
@gorje001 just out of random curiousity, do you have |
@Zhuinden no my model does not contain any RealmLists. It has int, boolean, String, Date and a couple nested models (that don't have RealmLists). |
It's a duplicate of #5578. |
Closing due inactivity. Please comment in case you get more information and the issue still persists |
Goal
I'm storing a model using asynchronous transaction
Crash in libc. Here's the log output with LogLevel.TRACE.
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLong -1988950160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeIsAttached -1988950160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLink -1988950272
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950272
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetNull -1988950272
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLong -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetBoolean -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetBoolean -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetBoolean -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLong -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetBoolean -1988950080
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950064
01-02 14:33:26.557 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetNull -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeIsAttached -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988949936
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLink -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetString -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLong -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeIsAttached -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950064
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetLink -1988950080
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeGetIndex -1988950080
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_UncheckedRow_nativeSetNull -1988950080
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/RxApi: completed copying model to realm
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.558 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeCommitTransaction -2013417160
01-02 14:33:26.565 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeGetVersionID -2013417160
01-02 14:33:26.565 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -2013417160
01-02 14:33:26.566 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsInTransaction -2013417160
01-02 14:33:26.566 16543-16835/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeCloseSharedRealm -2013417160
01-02 14:33:26.566 16543-16543/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -1938175448
01-02 14:33:26.566 16543-16543/com.sportngin.android.debug I/chatty: uid=10085(u0_a85) com.sportngin.android.debug identical 2 lines
01-02 14:33:26.566 16543-16543/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -1938175448
01-02 14:33:26.566 16543-16543/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_Collection_nativeCreateResults
01-02 14:33:26.566 16543-16543/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -1938175448
01-02 14:33:26.567 16543-16543/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_SharedRealm_nativeIsClosed -1938175448
01-02 14:33:26.567 16543-16543/com.sportngin.android.debug V/REALM_JNI: --> Java_io_realm_internal_Collection_nativeSize -1988640128
01-02 14:33:26.567 16543-16543/com.sportngin.android.debug A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3 in tid 16543 (n.android.debug)
Steps & Code to Reproduce
It only seems to crash after we've logged out, then make this API call and store this model the first time. Subsequent calls/stores work just fine.
I put in log statements. It completes the code block in the transaction, but crashes before onSuccess is called.
Code Sample
Version of Realm and tooling
Realm version(s): ?
3.7.2
Realm sync feature enabled: yes/no
no
Android Studio version: ?
3.0.1
Which Android version and device: ?
I get the crash on multiple emulators. API 26, x86
The text was updated successfully, but these errors were encountered: