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

Native crash with findFirst() reproducible with 7.0.2 #7043

Closed
beczesz opened this issue Aug 18, 2020 · 19 comments
Closed

Native crash with findFirst() reproducible with 7.0.2 #7043

beczesz opened this issue Aug 18, 2020 · 19 comments

Comments

@beczesz
Copy link

beczesz commented Aug 18, 2020

When I execute a query with findFirst() now it throws an exception all the time findAll() and then accessing the first element works fine.

 *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 Build fingerprint: 'samsung/starltexx/starlte:10/QP1A.190711.020/G960FXXUAETG3:user/release-keys'
 Revision: '26'
 ABI: 'arm64'
 Timestamp: 2020-08-18 16:45:34+0300
 pid: 15035, tid: 15461, name: rx.internal.sch  >>> com.example.project <<<
 uid: 10314
 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
 Cause: null pointer dereference
     x0  0000007a270ddd28  x1  0000000000000003  x2  0000007a0a749318  x3  0000007a271392e8
     x4  0000000000000011  x5  0000000000000000  x6  0000007b1d6f9440  x7  0000007b1d6f9440
     x12 0000000000000002  x13 00000079d80d1000  x14 fffffffffc000000  x15 0000000000000280
     x16 0000007b19ae3890  x17 0000007b19ad5b20  x18 00000000ca62c1d6  x19 0000007a8a271cd0
     x8  0000000000000000  x9  0000000000000000  x10 00000079d80d3598  x11 0000000000000000
     x20 0000007a0a749388  x21 0000007a8a271ce8  x22 0000007a0a750020  x23 0000000000000003
     x24 0000000000000000  x25 000000000584fbe8  x26 00000079e7f6ebe8  x27 0000000000000000
     x28 0000007a0a750020  x29 0000007a0a7492d0
     sp  0000007a0a7492d0  lr  00000079f7bd189c  pc  0000000000000000
 backtrace:
       #00 pc 0000000000000000  <unknown>
       #01 pc 000000000011d898  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #02 pc 00000000002419e4  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #03 pc 00000000001dc2f4  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #04 pc 000000000024a120  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #05 pc 00000000001af618  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #06 pc 00000000001a3b74  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #07 pc 00000000001a547c  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #08 pc 000000000024810c  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #09 pc 000000000024b97c  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #10 pc 00000000001a2288  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #11 pc 00000000001a216c  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #12 pc 000000000012674c  /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (Java_io_realm_internal_TableQuery_nativeFind+20) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #13 pc 0000000000140350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #14 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #15 pc 00000000001460ac  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #16 pc 00000000002e3d38  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #17 pc 00000000002dedc4  /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*)+900) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #18 pc 00000000002ec38c  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+14300) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #19 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #20 pc 0000000000473234  [anon:dalvik-classes3.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes3.dex] (io.realm.internal.TableQuery.find)
       #21 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #22 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #23 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #24 pc 00000000002edc40  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20624) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #25 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #26 pc 0000000000467424  [anon:dalvik-classes3.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes3.dex] (io.realm.RealmQuery.getSourceRowIndexForFirstObject)
       #27 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #28 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #29 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #30 pc 00000000002ec38c  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+14300) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #31 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #32 pc 00000000004671cc  [anon:dalvik-classes3.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes3.dex] (io.realm.RealmQuery.findFirst)
       #33 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #34 pc 00000000002b40c4  /apex/com.android.runtime/lib64/libart.so (art::interpreter::EnterInterpreterFromInvoke(art::Thread*, art::ArtMethod*, art::ObjPtr<art::mirror::Object>, unsigned int*, art::JValue*, bool)+1004) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #35 pc 000000000014617c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+452) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #36 pc 00000000004b2c20  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #37 pc 00000000004b3cd0  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #38 pc 000000000038d064  /apex/com.android.runtime/lib64/libart.so (art::JNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue const*)+620) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #39 pc 000000000036f514  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodA(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue const*, art::Primitive::Type, art::InvokeType)+1260) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #40 pc 000000000002e77c  /apex/com.android.runtime/lib64/libjdwp.so (invoker_doInvoke+500) (BuildId: d95da8615dcbf10d84b80da1ef45888a)
       #41 pc 000000000002b680  /apex/com.android.runtime/lib64/libjdwp.so (reportEvents+592) (BuildId: d95da8615dcbf10d84b80da1ef45888a)
       #42 pc 000000000002b0f4  /apex/com.android.runtime/lib64/libjdwp.so (event_callback+1004) (BuildId: d95da8615dcbf10d84b80da1ef45888a)
       #43 pc 0000000000027940  /apex/com.android.runtime/lib64/libjdwp.so (cbSingleStep+360) (BuildId: d95da8615dcbf10d84b80da1ef45888a)
       #44 pc 0000000000035638  /apex/com.android.runtime/lib64/libopenjdkjvmti.so (openjdkjvmti::JvmtiMethodTraceListener::DexPcMoved(art::Thread*, art::Handle<art::mirror::Object>, art::ArtMethod*, unsigned int)+1376) (BuildId: 0ff879552b025388e4dbe57943e72044)
       #45 pc 00000000002ac938  /apex/com.android.runtime/lib64/libart.so (art::instrumentation::Instrumentation::DexPcMovedEventImpl(art::Thread*, art::ObjPtr<art::mirror::Object>, art::ArtMethod*, unsigned int) const+176) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #46 pc 00000000002f1330  /apex/com.android.runtime/lib64/libart.so (art::interpreter::InstructionHandler<false, false>::DoDexPcMoveEvent(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame const&, unsigned int, art::instrumentation::Instrumentation const*, art::JValue*)+240) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #47 pc 00000000002ee274  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+22212) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #48 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #49 pc 000000000015ef30  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.user.contact.exampleContactManager.searchexampleContact)
       #50 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #51 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #52 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #53 pc 00000000002edc40  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20624) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #54 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #55 pc 000000000015ebd8  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.user.contact.exampleContactManager.getOrCreateexampleContact)
       #56 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #57 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #58 pc 00000000002dfe14  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+628) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #59 pc 00000000002edc08  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20568) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #60 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #61 pc 000000000015ed80  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.user.contact.exampleContactManager.insertOrUpdateexampleContact)
       #62 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #63 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #64 pc 00000000002dfe14  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+628) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #65 pc 00000000002edc08  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20568) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #66 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #67 pc 00000000001610b0  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.user.contact.exampleContactManager.updateDefaultContacts)
       #68 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #69 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #70 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #71 pc 00000000002edc40  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20624) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #72 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #73 pc 0000000000162448  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.user.session.SessionManager.lambda$loginUser$2$SessionManager)
       #74 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #75 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #76 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #77 pc 00000000002edc40  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20624) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #78 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #79 pc 00000000001617dc  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.user.session.-$$Lambda$SessionManager$6xyc7F7_oapi6jhxIjPa9tyCyBU.call)
       #80 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #81 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #82 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #83 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #84 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #85 pc 00000000000f40c0  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.RxManager.lambda$execute$2)
       #86 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #87 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #88 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #89 pc 00000000002ec948  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+15768) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #90 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #91 pc 00000000000f3de0  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes2.dex] (com.example.project.business.-$$Lambda$RxManager$2cg8IEjNoNuvomIn6vcIi0_dImA.call)
       #92 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #93 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #94 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #95 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #96 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #97 pc 0000000000168188  [anon:dalvik-classes4.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes4.dex] (rx.Observable.unsafeSubscribe)
       #98 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #99 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #100 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #101 pc 00000000002edc40  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20624) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #102 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #103 pc 0000000000180a58  [anon:dalvik-classes4.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes4.dex] (rx.internal.operators.OperatorSubscribeOn$1.call)
       #104 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #105 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #106 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #107 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #108 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #109 pc 00000000001896a0  [anon:dalvik-classes4.dex extracted in memory from /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!classes4.dex] (rx.internal.schedulers.ScheduledAction.run)
       #110 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #111 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #112 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #113 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #114 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #115 pc 00000000001e71e8  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.Executors$RunnableAdapter.call)
       #116 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #117 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #118 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #119 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #120 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #121 pc 00000000001ed1f0  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.FutureTask.run)
       #122 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #123 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #124 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #125 pc 00000000002ee95c  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+23980) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #126 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #127 pc 00000000001f3bdc  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run)
       #128 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #129 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #130 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #131 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #132 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #133 pc 00000000001f81d8  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor.runWorker)
       #134 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #135 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #136 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #137 pc 00000000002edc40  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20624) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #138 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #139 pc 00000000001f7020  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run)
       #140 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #141 pc 00000000002ba48c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #142 pc 00000000002deda8  /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*)+872) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #143 pc 00000000002edda0  /apex/com.android.runtime/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+20976) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #144 pc 0000000000142bd8  /apex/com.android.runtime/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #145 pc 00000000000ea9dc  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run)
       #146 pc 00000000002b4768  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+496) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #147 pc 0000000000593e30  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1024) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #148 pc 0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #149 pc 000000000014065c  /apex/com.android.runtime/lib64/libart.so (art_quick_instrumentation_entry+252) (BuildId: e5d7e465573fd3bb65b28a8f0bd1666b)
       #150 pc 0000000000102b8c  <anonymous:7a0a64d000>
@beczesz
Copy link
Author

beczesz commented Aug 18, 2020

Note: with 6.1.0 we did not have any problem, now I started to see these since 7.X.X
for some reason I see more often on Samsung Galaxy S9 (I heard complaints with Galaxy series)

@VicMikhailau
Copy link

VicMikhailau commented Aug 19, 2020

Crash also reproduced after updating from 6.1.0 to 7.0.1 or 7.0.2:
Tested on Xiaomi MI A3 (Android 10)
I think in my case place of crash is here - mRealm.executeTransaction { realm -> realm.delete(TargetClass::class.java) }

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 30229 (.package), pid 30150
Build fingerprint: 'Xiaomi/laurel_sprout/laurel_sprout:10/QKQ1.190910.002/V11.0.20.0.QFQMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2020-08-19 20:48:59+0300
pid: 30150, tid: 30229, name: .package  >>> com.package <<<
uid: 10228
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
 Cause: null pointer dereference
     x0  0000007ddb59b800  x1  0000000000000000  x2  0000000000000000  x3  0000000000000006
     x4  0000000000000040  x5  0000000000000000  x6  0000007e455ecc00  x7  0000007e455ecc00
     x8  0000000000000000  x9  000000000000003f  x10 0000000000000000  x11 0000000000000006
     x12 0000000000000000  x13 0000007ddb3bafd8  x14 0000007ddb335600  x15 0000007e455ecc00
     x16 0000007ed90198f0  x17 0000007ed900b070  x18 0000007dd95a2000  x19 0000007ddb59b800
     x20 0000000000000001  x21 07ad1cdb85a5df72  x22 0000000000000040  x23 0000000000000000
     x24 0000007dda0ca6c8  x25 0000000000000000  x26 0000000000000001  x27 0000000000000001
     x28 0000000000000001  x29 0000007dda0caac0
     sp  0000007dda0ca500  lr  0000007dddb5ebc0  pc  0000007dddb5fbd4
 backtrace:
       #00 pc 0000000000281bd4  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #01 pc 0000000000280bbc  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #02 pc 0000000000280a6c  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #03 pc 000000000019f3d0  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #04 pc 00000000001a5670  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #05 pc 000000000024b960  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #06 pc 00000000001a2288  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #07 pc 00000000001a24cc  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #08 pc 000000000029a668  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #09 pc 000000000019255c  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #10 pc 000000000018c4b0  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #11 pc 000000000018c17c  /data/app/com.lpackage-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #12 pc 00000000001999e0  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #13 pc 0000000000199b58  /data/app/com.package-hs0W7jJijCkrZWB8dvN7Vw==/lib/arm64/librealm-jni.so (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
       #14 pc 00000000000e6890  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: cf739dbc84bcc78f7a1500721bfb3758)
       #15 pc 0000000000084b6c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: cf739dbc84bcc78f7a1500721bfb3758)

I think the same issue:
#6969

@rorbech
Copy link
Contributor

rorbech commented Aug 21, 2020

@beczesz I am not able to reason about the root of this from the stack traces. Are you able to supply some details on whether it is an occasional or persisting error and do you have the Realm file that causes this?

@VicMikhailau
Copy link

@beczesz
In my case all steps were:

  • Call mRealm.executeTransaction { realm -> realm.delete(TargetClass::class.java)} before some large api requests
  • After retrieving in many places large TargetClass entities - saveOrUpdate(TargetClass) - Realm.findAll().
  • By first call { realm -> realm.delete(TargetClass::class.java)} - all good. But after second - crash.

Main point: large data saved and retrieved from DB. On 6.x.x versions all work as expected.

@beczesz
Copy link
Author

beczesz commented Aug 21, 2020

Unforunately I don't have the realm file anymore. I had to delete the database in order to be able to start the app. Next time if I can catch it I will save it.

@beczesz
Copy link
Author

beczesz commented Aug 21, 2020

Is there a private channel where I can send you a database file? I would not post it in public.

@rorbech
Copy link
Contributor

rorbech commented Aug 21, 2020

@beczesz Yes, you can send it to claus.rorbech (at) mongodb.com

@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

Unrolled stack trace from OP (Core 6.0.17):

Unrolling /Users/cm/Realm/realm-java/tools/./dump.txt from Realm Java 7.0.2 (base) using ABI arm64-v8a
********** Crash dump: **********
Build fingerprint: 'samsung/starltexx/starlte:10/QP1A.190711.020/G960FXXUAETG3:user/release-keys'
#00 0x0000000000000000 <unknown>
#01 0x000000000011d898 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Array::get(unsigned long) const
                                                                                                        /Users/cm/Realm/realm-java/realm/realm-library/distribution/realm-core/core-5.0.15/include/realm/array.hpp:1087:12
#02 0x00000000002419e4 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ArrayString::init_from_mem(realm::MemRef)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/array_string.cpp:59:34
#03 0x00000000001dc2f4 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ArrayString::init_from_ref(unsigned long)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/array_string.hpp:82:9
#04 0x000000000024a120 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:1519:11
#05 0x00000000001af618 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::StringNodeBase::cluster_changed()
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/query_engine.hpp:1327:20
#06 0x00000000001a3b74 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::OrNode::cluster_changed()
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/query_engine.hpp:1843:24
#07 0x00000000001a547c /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Query::find()::$_1::operator()(realm::Cluster const*) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/query.cpp:1252:19
                                                                                                        realm::util::FunctionRef<bool (realm::Cluster const*)>::FunctionRef<realm::Query::find()::$_1&>(realm::Query::find()::$_1&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/function_ref.hpp:64:0
                                                                                                        realm::util::FunctionRef<bool (realm::Cluster const*)>::FunctionRef<realm::Query::find()::$_1&>(realm::Query::find()::$_1&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*)
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/function_ref.hpp:63:0
#08 0x000000000024810c /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::util::FunctionRef<bool (realm::Cluster const*)>::operator()(realm::Cluster const*) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/util/function_ref.hpp:77:16
                                                                                                        realm::ClusterNodeInner::traverse(realm::util::FunctionRef<bool (realm::Cluster const*)>, long) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:703:0
#09 0x000000000024b97c /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::ClusterTree::traverse(realm::util::FunctionRef<bool (realm::Cluster const*)>) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/cluster.cpp:2044:62
#10 0x00000000001a2288 /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Table::traverse_clusters(realm::util::FunctionRef<bool (realm::Cluster const*)>) const
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/table.hpp:319:27
#11 0x00000000001a216c /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        realm::Query::find()
                                                                                                        /mnt/jenkins/workspace/realm_realm-core_release_6.0.17@2/build-android-arm64-v8a-Release/../src/realm/query.cpp:1263:18
#12 0x000000000012674c /data/app/com.example.project-i1g-Go0hcnEx9WHdNpfbiw==/base.apk!librealm-jni.so (offset 0x15ec000) (Java_io_realm_internal_TableQuery_nativeFind+20) (BuildId: 04926858a1a347390f7b63cd2087113180457b0d)
                                                                                                        Java_io_realm_internal_TableQuery_nativeFind
                                                                                                        /Users/cm/Realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_TableQuery.cpp:1097:26

@RealmBot
Copy link
Collaborator

RealmBot commented Sep 2, 2020

➤ Finn Andersen commented:

Happens while descending the cluster tree

@cmelchior
Copy link
Contributor

@beczesz Are you saying you can reproduce making the database crash? If so, we would be really interested in knowing the steps to take?

@clementetb
Copy link
Collaborator

@beczesz Today we released version 7.0.4. It addresses several memory issues and searching objects by primary key. Would you mind checking if the issue persists?

@beczesz
Copy link
Author

beczesz commented Sep 9, 2020

Hi @clementetb ok I can check it, but only tomorrow. I get back to you.

@beczesz
Copy link
Author

beczesz commented Sep 9, 2020

@cmelchior unfortunately I'm not sure if I can reproduce this exact crash, but I can reproduce other types of crashes.Tomorrow I will make some tests and get back to you regarding 7.0.4

@cmelchior
Copy link
Contributor

Note, we just released 7.0.5 with more fixes.

@finnschiermer
Copy link

This might also be fixed by realm/realm-core#3904. We'd very much like to know if it persists after upgrading.

@cmelchior
Copy link
Contributor

We released 7.0.6, with a new fix. It shouldn't be related to this, but would be nice to hear if you can still reproduce using this version.

@VicMikhailau
Copy link

@cmelchior unfortunately, in my case, the crash is still reproducible.

@jedelbo
Copy link

jedelbo commented Sep 21, 2020

We should be aware the the issue reported by @VicMikhailau is not the same as the original issue here. As I think we have fixed issues around "find_first", I take the liberty to close this issue. If you find that there is still an issue around "find_first", please reopen. For other problems - please create new issue.

@jedelbo jedelbo closed this as completed Sep 21, 2020
@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

8 participants