Skip to content
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

Crash on inserting a new item with 7.0. X and 10.0.0-BETA.6 #7057

Closed
beczesz opened this issue Aug 25, 2020 · 15 comments
Closed

Crash on inserting a new item with 7.0. X and 10.0.0-BETA.6 #7057

beczesz opened this issue Aug 25, 2020 · 15 comments

Comments

@beczesz
Copy link

beczesz commented Aug 25, 2020

We experience a lots of crashes starting with 7.X.X (I tried 10.0.0-BETA.6 too and it is the same). This particular crash happens when I try to insert an object.

It crashes with the same insertion all the time strangely enough with other primary key it is working with "andre.justice@example.com" is crashing though. I don't know why...

I tried andre.justice1@example.com and it is working fine.

I have the realm file too but I would send it to somebody from the devs directly.

2020-08-25 10:28:16.843 com.example.package E/REALM: ../src/realm/alloc_slab.cpp:522: [realm-core-6.0.17] Assertion failed: ref != 0 with (ref, get_file_path_for_assertions()) =  [0, "/data/data/com.example.package/files/beczesz_yahoo_com_realm"]
    <backtrace not supported on this platform>!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.
2020-08-25 10:28:16.844 com.example.package A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 12932 (rx.schedulers.E), pid 12148 (example.package)
2020-08-25 10:28:16.901 ? E/crash_dump64: unknown process state: t
2020-08-25 10:28:16.934 ? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2020-08-25 10:28:16.935 ? I//system/bin/tombstoned: received crash request for pid 12932
2020-08-25 10:28:16.936 ? I/crash_dump64: performing dump of process 12148 (target tid = 12932)
2020-08-25 10:28:16.944 ? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-08-25 10:28:16.944 ? A/DEBUG: Build fingerprint: 'samsung/gts6leea/gts6l:10/QP1A.190711.020/T865XXU3BTF2:user/release-keys'
2020-08-25 10:28:16.944 ? A/DEBUG: Revision: '8'
2020-08-25 10:28:16.944 ? A/DEBUG: ABI: 'arm64'
2020-08-25 10:28:16.945 ? A/DEBUG: Timestamp: 2020-08-25 10:28:16+0300
2020-08-25 10:28:16.945 ? A/DEBUG: pid: 12148, tid: 12932, name: rx.schedulers.E  >>> com.example.package <<<
2020-08-25 10:28:16.945 ? A/DEBUG: uid: 10206
2020-08-25 10:28:16.945 ? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2020-08-25 10:28:16.945 ? A/DEBUG:     x0  0000000000000000  x1  0000000000003284  x2  0000000000000006  x3  0000007901d978a0
2020-08-25 10:28:16.945 ? A/DEBUG:     x4  fefeff773733023f  x5  fefeff773733023f  x6  fefeff773733023f  x7  7f7f7f7f7f7f7f7f
2020-08-25 10:28:16.945 ? A/DEBUG:     x8  00000000000000f0  x9  35d4ad018af831c4  x10 0000000000000001  x11 0000000000000000
2020-08-25 10:28:16.945 ? A/DEBUG:     x12 fffffff0fffffbdf  x13 ffffffffffffffff  x14 0000000000000000  x15 ffffffffffffffff
2020-08-25 10:28:16.945 ? A/DEBUG:     x16 00000079924518c0  x17 000000799242dfe0  x18 00000000ca62c1d6  x19 0000000000002f74
2020-08-25 10:28:16.945 ? A/DEBUG:     x20 0000000000003284  x21 00000000ffffffff  x22 000000787360eb57  x23 000000000000020a
2020-08-25 10:28:16.945 ? A/DEBUG:     x24 000000787360eb10  x25 0000007901d9d020  x26 0000000000000000  x27 ffffffffffffffff
2020-08-25 10:28:16.945 ? A/DEBUG:     x28 0000007901d98af0  x29 0000007901d97940
2020-08-25 10:28:16.945 ? A/DEBUG:     sp  0000007901d97880  lr  00000079923df27c  pc  00000079923df2a8
2020-08-25 10:28:17.066 ? A/DEBUG: backtrace:
2020-08-25 10:28:17.066 ? A/DEBUG:       #00 pc 00000000000832a8  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: b0750023d0cf44584c064da02400c159)
2020-08-25 10:28:17.066 ? A/DEBUG:       #01 pc 00000000002b2720  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #02 pc 00000000002b27a0  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #03 pc 00000000002b28c4  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #04 pc 000000000023bfd4  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #05 pc 000000000023be98  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #06 pc 0000000000254168  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #07 pc 00000000001e99ac  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #08 pc 000000000027a130  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #09 pc 0000000000240ffc  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #10 pc 0000000000248694  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #11 pc 00000000002499ac  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #12 pc 000000000024cbc0  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #13 pc 0000000000246c5c  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #14 pc 000000000024cbc0  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #15 pc 0000000000246c88  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #16 pc 000000000024b014  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #17 pc 000000000024b160  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #18 pc 0000000000290f04  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #19 pc 000000000029114c  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #20 pc 000000000011bea0  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #21 pc 00000000001500d8  /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (Java_io_realm_internal_objectstore_OsObjectBuilder_nativeCreateOrUpdate+396) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
2020-08-25 10:28:17.066 ? A/DEBUG:       #22 pc 0000000000140350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #23 pc 00000000021d6c10  /memfd:/jit-cache (deleted) (io.realm.internal.objectstore.OsObjectBuilder.createNewObject+80)
2020-08-25 10:28:17.066 ? A/DEBUG:       #24 pc 0000000002127654  /memfd:/jit-cache (deleted) (io.realm.com_test_package_model_package_packageContactEntryRealmProxy.copy+2628)
2020-08-25 10:28:17.066 ? A/DEBUG:       #25 pc 00000000021de664  /memfd:/jit-cache (deleted) (io.realm.com_test_package_model_package_packageContactEntryRealmProxy.copyOrUpdate+1412)
2020-08-25 10:28:17.066 ? A/DEBUG:       #26 pc 0000000002183dd0  /memfd:/jit-cache (deleted) (io.realm.DefaultRealmModuleMediator.copyOrUpdate+2928)
2020-08-25 10:28:17.066 ? A/DEBUG:       #27 pc 00000000021d0504  /memfd:/jit-cache (deleted) (io.realm.Realm.copyOrUpdate+260)
2020-08-25 10:28:17.066 ? A/DEBUG:       #28 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #29 pc 0000000000145fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #30 pc 00000000002e3c00  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #31 pc 00000000002dee60  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #32 pc 00000000002ec094  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+14008) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #33 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #34 pc 000000000046988c  [anon:dalvik-classes3.dex extracted in memory from /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!classes3.dex] (io.realm.Realm.copyToRealmOrUpdate)
2020-08-25 10:28:17.066 ? A/DEBUG:       #35 pc 00000000002b500c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2064809272542564460+488) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #36 pc 00000000002bad18  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #37 pc 00000000002dee40  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+860) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #38 pc 00000000002eb8dc  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+12032) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #39 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.066 ? A/DEBUG:       #40 pc 00000000001606cc  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!classes2.dex] (com.example.package.business.user.contact.packageContactManager.getOrCreatepackageContact)
2020-08-25 10:28:17.067 ? A/DEBUG:       #41 pc 00000000002b500c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2064809272542564460+488) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.067 ? A/DEBUG:       #42 pc 0000000000592fa4  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.067 ? A/DEBUG:       #43 pc 0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
2020-08-25 10:28:17.067 ? A/DEBUG:       #44 pc 000000000014065c  /apex/com.android.runtime/lib64/libart.so (art_quick_instrumentation_entry+252) (BuildId: 43e64e0437c4a841a9ca58fd088a8d04)
@rorbech
Copy link
Contributor

rorbech commented Aug 25, 2020

Seems like using the exact same key in a filtering query when openin the file in Realm Studio also causes issues. Will see if we can trace what is causing this.

@rorbech
Copy link
Contributor

rorbech commented Aug 25, 2020

It appears that the file is partly corrupted. Do you have any ways to reproduce this or any information of the steps leading to this?

@beczesz
Copy link
Author

beczesz commented Aug 25, 2020

I'm working on an email client and after syncing like 80k emails generally this happens. I don't have the exact steps unfortunately but in various different ways it seems to be that the database can be corrupted.

The only thing what was changed is the lib version which was upgraded from 6.1.0 to 7.0.+

@beczesz
Copy link
Author

beczesz commented Aug 25, 2020

Since the steps are very complicated and application specific what do you suggest how will we get closer to fix this issue?

@beczesz
Copy link
Author

beczesz commented Aug 30, 2020

Ok, we decided that we will roll back to 6.1.0 for every user because 7.X and 10.X was unstable. We saw this especially on Samsung devices and OnPlus devices, but on others too. The database got corrupted on: schema migration, realm file format migration, and simply by using it after a while it got corrupted after a while.

If anybody is interested how we did it then please let me a message.

@cmelchior
Copy link
Contributor

Unrolling /Users/cm/Realm/realm-java/tools/./dump.txt from Realm Java 7.0.2 (base) using ABI arm64-v8a. Realm Core 6.0.17.

********** Crash dump: **********
Build fingerprint: 'samsung/gts6leea/gts6l:10/QP1A.190711.020/T865XXU3BTF2:user/release-keys'
#00 0x00000000000832a8 /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: b0750023d0cf44584c064da02400c159)
#01 0x00000000002b2720 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        please_report_this_error_to_help_at_realm_dot_io
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/terminate.cpp:50:5
#02 0x00000000002b27a0 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::util::terminate_internal(std::__ndk1::basic_stringstream<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/terminate.cpp:124:5
#03 0x00000000002b28c4 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list<realm::util::Printable>&&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/terminate.cpp:0:5
#04 0x000000000023bfd4 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        void realm::util::terminate_with_info<unsigned long&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(char const*, int, char const*, char const*, unsigned long&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >&&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/terminate.hpp:52:5
#05 0x000000000023be98 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::SlabAlloc::do_free(unsigned long, char*)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/alloc_slab.cpp:522:13
#06 0x0000000000254168 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::WrappedAllocator::do_free(unsigned long, char*)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/alloc.hpp:329:25
#07 0x00000000001e99ac /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Allocator::free_(unsigned long, char const*)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/alloc.hpp:469:12
#08 0x000000000027a130 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Node::do_copy_on_write(unsigned long)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/node.cpp:161:13
#09 0x0000000000240ffc /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ArrayUnsigned::insert(unsigned long, unsigned long)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/array_unsigned.cpp:190:5
#10 0x0000000000248694 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Cluster::insert_row(unsigned long, realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:938:16
#11 0x00000000002499ac /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Cluster::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:0:9
#12 0x000000000024cbc0 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1::operator()(realm::ClusterNode*, realm::ClusterNodeInner::ChildInfo&) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:316:42
#13 0x0000000000246c5c /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        unsigned long realm::ClusterNodeInner::recurse<unsigned long, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1>(realm::ClusterNodeInner::ChildInfo&, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:295:14
                                                                                                        unsigned long realm::ClusterNodeInner::recurse<unsigned long, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1>(realm::ObjKey, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:285:0
                                                                                                        realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:315:0
#14 0x000000000024cbc0 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1::operator()(realm::ClusterNode*, realm::ClusterNodeInner::ChildInfo&) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:316:42
#15 0x0000000000246c88 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ClusterNode::set_offset(unsigned long)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.hpp:160:18
                                                                                                        unsigned long realm::ClusterNodeInner::recurse<unsigned long, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1>(realm::ClusterNodeInner::ChildInfo&, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:302:0
                                                                                                        unsigned long realm::ClusterNodeInner::recurse<unsigned long, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1>(realm::ObjKey, realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)::$_1)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:285:0
                                                                                                        realm::ClusterNodeInner::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:315:0
#16 0x000000000024b014 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ClusterTree::insert_fast(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&, realm::ClusterNode::State&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:1849:40
#17 0x000000000024b160 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ClusterTree::insert(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:1873:5
#18 0x0000000000290f04 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Table::create_object(realm::ObjKey, std::__ndk1::vector<realm::FieldValue, std::__ndk1::allocator<realm::FieldValue> > const&)
                                                                                                        /opt/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/atomic:0:12
#19 0x000000000029114c /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Table::create_object_with_primary_key(realm::Mixed const&, bool*)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/table.cpp:2439:12
#20 0x000000000011bea0 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Object realm::Object::create<realm::JavaValue, realm::JavaContext>(realm::JavaContext&, std::__ndk1::shared_ptr<realm::Realm> const&, realm::ObjectSchema const&, realm::JavaValue, realm::CreatePolicy, realm::ObjKey, realm::Obj*)
                                                                                                        /Users/cm/Realm/realm-java/realm/realm-library/src/main/cpp/object-store/src/object_accessor.hpp:243:26
#21 0x00000000001500d8 /data/app/com.example.package-XpLurpE565NawubGOzMlow==/base.apk!librealm-jni.so (offset 0x15ed000) (Java_io_realm_internal_objectstore_OsObjectBuilder_nativeCreateOrUpdate+396) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        Java_io_realm_internal_objectstore_OsObjectBuilder_nativeCreateOrUpdate
                                                                                                        /Users/cm/Realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_objectstore_OsObjectBuilder.cpp:175:22

@clementetb
Copy link
Collaborator

@beczesz could you try with version 7.0.4, we released today and it addresses several memory issues.

@finnschiermer
Copy link

finnschiermer commented Sep 9, 2020

Looks like a copy-on-write on a null-ref ?

@realm realm deleted a comment from RealmBot Sep 9, 2020
@finnschiermer
Copy link

Fixed by realm/realm-core#3893

@finnschiermer
Copy link

Sorry, closing was premature.

@finnschiermer finnschiermer reopened this Sep 9, 2020
@jedelbo
Copy link

jedelbo commented Sep 9, 2020

Looking at the received file, it looks like this is due to a bug for which a fix has not yet been released. But it is under way (realm/realm-core#3900)

@cmelchior
Copy link
Contributor

7.0.5 have been released with the fix.

@finnschiermer
Copy link

Presumably fixed by realm/realm-core#3904

@RealmBot
Copy link
Collaborator

➤ Brian Munkholm commented:

I'll close this for now. Please do get back with a new issue in case you see the issue again. Thanks!

@iwo
Copy link

iwo commented Oct 29, 2020

@cmelchior we're getting similar crash on 7.0.8. So far we received multiple reports but all from one user.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.myapp <<<

backtrace:
  #00  pc 000000000006aaa4  /system/lib64/libc.so (tgkill+8)
  #00  pc 0000000000068234  /system/lib64/libc.so (pthread_kill+68)
  #00  pc 00000000000211a8  /system/lib64/libc.so (raise+28)
  #00  pc 000000000001bad8  /system/lib64/libc.so (abort+60)
  #00  pc 00000000002b45bc  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (please_report_this_error_to_help_at_realm_dot_io) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/util/terminate.cpp:50)
  #00  pc 00000000002b463c  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::util::terminate_internal(std::__ndk1::basic_stringstream<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >&)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/util/terminate.cpp:124)
  #00  pc 00000000002b4760  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list<realm::util::Printable>&&)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/util/terminate.cpp)
  #00  pc 000000000023d180  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (void realm::util::terminate_with_info<unsigned long&, unsigned long&, unsigned long const&, unsigned long&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > >(char const*, int, char const*, char const*, unsigned long&, unsigned long&, unsigned long const&, unsigned long&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >&&)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/util/terminate.hpp:52)
  #00  pc 000000000023d078  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::SlabAlloc::do_free(unsigned long, char*)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/alloc_slab.cpp)
  #00  pc 00000000001eaabc  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Allocator::free_(unsigned long, char const*)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/alloc.hpp:469)
  #00  pc 000000000027b5f8  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Node::do_copy_on_write(unsigned long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/node.cpp:161)
  #00  pc 00000000001e3d44  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Array::set(unsigned long, long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/array.cpp:410)
  #00  pc 000000000027b5e8  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Node::do_copy_on_write(unsigned long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/node.cpp:148)
  #00  pc 000000000027b41c  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Node::alloc(unsigned long, unsigned long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/node.cpp:74)
  #00  pc 00000000001e4654  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Array::insert(unsigned long, long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/array.cpp:475)
  #00  pc 0000000000240e4c  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::ArraySmallBlobs::insert(unsigned long, realm::BinaryData, bool)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/array_blobs_small.cpp:85)
  #00  pc 0000000000161e74  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::BPlusTree<realm::BinaryData>::insert(unsigned long, realm::BinaryData)::'lambda'(realm::BPlusTreeNode*, unsigned long)::operator()(realm::BPlusTreeNode*, unsigned long) const) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/distribution/realm-core/core-5.0.28/include/realm/bplustree.hpp:404)
  #00  pc 0000000000246024  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>::operator()(realm::BPlusTreeNode*, unsigned long) const) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/util/function_ref.hpp:117)
  #00  pc 0000000000246024  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::BPlusTreeLeaf::bptree_insert(unsigned long, realm::BPlusTreeNode::State&, realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/bplustree.cpp:160)
  #00  pc 0000000000247510  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::BPlusTreeBase::bptree_insert(unsigned long, realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/bplustree.cpp:719)
  #00  pc 0000000000161e30  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::BPlusTree<realm::BinaryData>::insert(unsigned long, realm::BinaryData)) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/distribution/realm-core/core-5.0.28/include/realm/bplustree.hpp:408)
  #00  pc 00000000002600dc  /data/app/com.myapp-2/lib/arm64/librealm-jni.so ((anonymous namespace)::InRealmHistory::add_changeset(realm::BinaryData)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/history.cpp)
  #00  pc 00000000002600dc  /data/app/com.myapp-2/lib/arm64/librealm-jni.so ((anonymous namespace)::InRealmHistoryImpl::prepare_changeset(char const*, unsigned long, unsigned long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/history.cpp:237)
  #00  pc 0000000000259388  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Replication::prepare_commit(unsigned long)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/replication.hpp:457)
  #00  pc 0000000000259388  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::DB::do_commit(realm::Transaction&)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/db.cpp:2064)
  #00  pc 0000000000258c98  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Transaction::commit()) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/db.cpp)
  #00  pc 0000000000257fdc  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::DB::upgrade_file_format(bool, int, int, int)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/db.cpp:1837)
  #00  pc 0000000000257154  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::DB::do_open(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, bool, bool, realm::DBOptions)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/db.cpp:1307)
  #00  pc 000000000025815c  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::DB::open(realm::Replication&, realm::DBOptions)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/db.cpp:1346)
  #00  pc 000000000025a4bc  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::DB::create(realm::Replication&, realm::DBOptions)) (SourceCode: /mnt/jenkins/workspace/realm_realm-core_release_6.1.3@3/build-android-arm64-v8a-Release/../src/realm/db.cpp:2693)
  #00  pc 000000000018b6c8  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::_impl::RealmCoordinator::open_db()) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/object-store/src/impl/realm_coordinator.cpp:507)
  #00  pc 000000000018b204  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::_impl::RealmCoordinator::do_get_realm(realm::Realm::Config, std::__ndk1::shared_ptr<realm::Realm>&, realm::util::Optional<realm::VersionID>, realm::util::CheckedUniqueLock&)) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/object-store/src/impl/realm_coordinator.cpp:293)
  #00  pc 000000000018b178  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::_impl::RealmCoordinator::get_realm(realm::Realm::Config, realm::util::Optional<realm::VersionID>)) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/object-store/src/impl/realm_coordinator.cpp:264)
  #00  pc 00000000001771c0  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (realm::Realm::get_shared_realm(realm::Realm::Config)) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/object-store/src/shared_realm.cpp:144)
  #00  pc 000000000011f8d0  /data/app/com.myapp-2/lib/arm64/librealm-jni.so (Java_io_realm_internal_OsSharedRealm_nativeGetSharedRealm) (SourceCode: /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp:70)
  #00  pc 000000000412992c  /data/app/com.myapp-2/oat/arm64/base.odex (offset 0x21cf000)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants