facebook / hermes

A JavaScript engine optimized for running React Native.
https://hermesengine.dev/
MIT License
9.92k stars 642 forks source link

art_sigsegv_fault while accessing array with JNI -> JSI #592

Closed osdnk closed 1 year ago

osdnk commented 3 years ago

Bug Description

I am working on RecyclerList on Android. I want to access fields with JNI and JSI. I have my playtgroud that is pretty dirty, but clearly shows the issue: https://github.com/osdnk/react-native-ultimate-list-playground

image image image image image

and on the JS side I simply do: image to set the array in a global space.

I have a video of the outcome: Hermes: https://streamable.com/ecfq0w JSC: https://streamable.com/gebcti

After intensive scrolling I have an issue: image

Hermes: 0.9.0 RM: 0.66.r-rc.2 OS: MacOS 11.5.9, Android 10 Platform: arm64-v8a Device: OnePlus 7 (But i was also testing on some Samsung and Xiaomi)

Steps To Reproduce

See the repo https://github.com/osdnk/react-native-ultimate-list-playground and instructions in the readme.

neildhar commented 3 years ago

Hi @osdnk, it would be helpful if you could provide a symbolicated stack trace using ndk-stack. See the instructions here on how to do that.

osdnk commented 3 years ago
********** Crash dump: **********
Build fingerprint: 'OnePlus/OnePlus7_EEA/OnePlus7:10/QKQ1.190716.003/1909110008:user/release-keys'
pid: 16893, tid: 16960, name: mqt_js  >>> com.example.reactnativemmkv <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x86b514b600
Stack frame #00 pc 00000000000f7954  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::GCScope::newPinnedHermesValue(hermes::vm::HermesValue) at /tmp/hermes/hermes/include/hermes/VM/HandleRootOwner.h:466
Stack frame #01 pc 00000000000f7dfc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::regExpPrototypeSymbolReplace(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs) at /tmp/hermes/hermes/lib/VM/JSLib/RegExp.cpp:?
Stack frame #02 pc 00000000000f816c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::JSObject::getNamed_RJS(hermes::vm::Handle<hermes::vm::JSObject>, hermes::vm::Runtime*, hermes::vm::SymbolID, hermes::vm::PropOpFlags, hermes::vm::PropertyCacheEntry*) at /tmp/hermes/hermes/include/hermes/VM/JSObject.h:1938
Stack frame #03 pc 00000000000f6538  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::BasedPointer::computeSegmentAndOffset(void const*) at /tmp/hermes/hermes/include/hermes/VM/PointerBase.h:216
Stack frame #04 pc 000000000004d6fc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMapBase<llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >, hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >::moveFromOldBuckets(llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:?
Stack frame #05 pc 0000000000068a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine char16_t* std::__ndk1::uninitialized_copy<unsigned char const*, char16_t*>(unsigned char const*, unsigned char const*, char16_t*) at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3108
Stack frame #06 pc 000000000006c4f4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::HermesValueTraits<hermes::vm::JSArray, true>::arrow(hermes::vm::HermesValue const&) at /tmp/hermes/hermes/include/hermes/VM/HermesValueTraits.h:233
Stack frame #07 pc 0000000000069d74  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::vector<hermes::vm::StackTraceInfo, std::__ndk1::allocator<hermes::vm::StackTraceInfo> >::size() const at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:656
Stack frame #08 pc 000000000004d9e4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseMapPair<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long> >::allocateBuckets(unsigned int) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:794
Stack frame #09 pc 000000000004d164  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<unsigned int, hermes::vm::HeapSnapshot::TraceNodeStats, llvh::DenseMapInfo<unsigned int>, llvh::detail::DenseMapPair<unsigned int, hermes::vm::HeapSnapshot::TraceNodeStats> >::getNumBuckets() const at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:784
Stack frame #10 pc 00000000000350d8  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+652) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine HermesPointerValue at /tmp/hermes/hermes/API/hermes/hermes.cpp:423
Stack frame #11 pc 0000000000026624  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNK8facebook3jsi8Function4callIJRKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_NS0_5ValueEEEESC_RNS0_7RuntimeEDpOT_+240) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #12 pc 0000000000026480  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #13 pc 0000000000020158  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNSt6__ndk128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_+116) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #14 pc 0000000000022b0c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (facebook::react::JSIExecutor::callFunction(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, folly::dynamic const&)+1156) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #15 pc 0000000000091d68  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #16 pc 0000000000093360  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #17 pc 0000000000063a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #18 pc 0000000000059248  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail13MethodWrapperIMNS_5react15JNativeRunnableEFvvEXadL_ZNS4_3runEvEES4_vJEE8dispatchENS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIS4_NS3_8RunnableEE8JavaPartESB_vE11_javaobjectEEE+32) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #19 pc 00000000000591c0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassINS_5react15JNativeRunnableENS6_8RunnableEE8JavaPartES8_vE11_javaobjectEEEESD_vJEE4callEP7_JNIEnvP8_jobjectSG_+60) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #20 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #21 pc 0000000002006b84  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
Stack frame #22 pc 0000000002001990  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
Stack frame #23 pc 0000000002001ad4  /memfd:/jit-cache (deleted) (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage+52)
Stack frame #24 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #25 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #26 pc 00000000002e281c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #27 pc 00000000002dda7c  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #28 pc 00000000005a0008  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #29 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #30 pc 000000000032a096  /system/framework/framework.jar (android.os.Looper.loop+466)
Stack frame #31 pc 00000000005a2d78  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1040) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #32 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #33 pc 0000000000268d36  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74)
Stack frame #34 pc 00000000005a1ae8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #35 pc 0000000000130a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #36 pc 00000000000ec0f0  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
Stack frame #37 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #38 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #39 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #40 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #41 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #42 pc 00000000004aff10  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #43 pc 00000000004b1024  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #44 pc 00000000004f19ec  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #45 pc 00000000000d6b70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
Stack frame #46 pc 0000000000074eac  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a2584ee8458a61d422edf24b4cd23b78)

Does this make sense? This is I think another crash but made exactly the same way.

osdnk commented 3 years ago

@neildhar Can I provide some additional context for that?

osdnk commented 3 years ago

I am attaching few other crashes.

********** Crash dump: **********
Build fingerprint: 'OnePlus/OnePlus7_EEA/OnePlus7:10/QKQ1.190716.003/1909110008:user/release-keys'
pid: 18980, tid: 18980, name: reactnativemmkv  >>> com.example.reactnativemmkv <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
Stack frame #00 pc 000000000007d96c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::regex::MatchCharNode::mayRequireDecodingSurrogatePair(unsigned int) const at /tmp/hermes/hermes/include/hermes/Regex/RegexNode.h:631
Stack frame #01 pc 000000000007e498  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::vector<hermes::regex::Node*, std::__ndk1::allocator<hermes::regex::Node*> >::__recommend(unsigned long) const at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:1027
Stack frame #02 pc 00000000000337c0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::getProperty(facebook::jsi::Object const&, facebook::jsi::String const&)+128) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine __split_buffer at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__split_buffer:318
Stack frame #03 pc 0000000000029214  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativemmkv.so (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, facebook::jsi::String const&) const+44) (BuildId: a09d62b7159ac03af67471935b8677fb5cd67d59)
Stack frame #04 pc 0000000000026898  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativemmkv.so (facebook::jsi::Object::getProperty(facebook::jsi::Runtime&, char const*) const+96) (BuildId: a09d62b7159ac03af67471935b8677fb5cd67d59)
Stack frame #05 pc 0000000000028900  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativemmkv.so (obtainStringValueAtIndexByKey(facebook::jsi::Runtime&, int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>)+100) (BuildId: a09d62b7159ac03af67471935b8677fb5cd67d59)
Stack frame #06 pc 0000000000028d1c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativemmkv.so (Java_com_reactnativemmkv_MmkvModule_getStringValueAtIndexByKey+124) (BuildId: a09d62b7159ac03af67471935b8677fb5cd67d59)
Stack frame #07 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #08 pc 00000000001365b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #09 pc 000000000014500c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #10 pc 00000000002e281c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #11 pc 00000000002dda7c  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #12 pc 00000000005a2adc  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+372) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #13 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #14 pc 0000000000000820  [anon:dalvik-classes4.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk!classes4.dex] (com.reactnativemmkv.MmkvModule.stringValueAtIndexByKey+20)
Stack frame #15 pc 00000000005a02c8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #16 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #17 pc 00000000000016b4  [anon:dalvik-classes7.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk!classes7.dex] (com.example.reactnativemmkv.MyRecyclerViewAdapter.onBindViewHolder+8)
Stack frame #18 pc 00000000005a02c8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #19 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #20 pc 0000000000001694  [anon:dalvik-classes7.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk!classes7.dex] (com.example.reactnativemmkv.MyRecyclerViewAdapter.onBindViewHolder+4)
Stack frame #21 pc 00000000005a02c8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #22 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #23 pc 00000000001bca68  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder)
Stack frame #24 pc 00000000005a02c8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #25 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #26 pc 00000000001bc8e4  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder+80)
Stack frame #27 pc 00000000005a02c8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #28 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #29 pc 00000000001c0762  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline+86)
Stack frame #30 pc 00000000005a5524  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirectRange+824) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #31 pc 0000000000130c14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct_range+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #32 pc 00000000001c0600  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline+1040)
Stack frame #33 pc 00000000005a02c8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #34 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #35 pc 00000000001b19c4  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.GapWorker.prefetchPositionWithDeadline+28)
Stack frame #36 pc 00000000005a25d4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1100) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #37 pc 0000000000130914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #38 pc 00000000001b1c66  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.GapWorker.flushTaskWithDeadline+30)
Stack frame #39 pc 00000000005a25d4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1100) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #40 pc 0000000000130914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #41 pc 00000000001b1ce8  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.GapWorker.flushTasksWithDeadline+44)
Stack frame #42 pc 00000000005a25d4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1100) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #43 pc 0000000000130914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #44 pc 00000000001b1d5e  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (androidx.recyclerview.widget.GapWorker.prefetch+6)
Stack frame #45 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #46 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #47 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #48 pc 000000000203a784  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GapWorker.run+452)
Stack frame #49 pc 0000000002006d24  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
Stack frame #50 pc 0000000002005af0  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
Stack frame #51 pc 00000000020242b0  /memfd:/jit-cache (deleted) (android.os.Looper.loop+1216)
Stack frame #52 pc 000000000013663c  /apex/com.android.runtime/lib64/libart.so (art_quick_osr_stub+60) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #53 pc 000000000033711c  /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1688) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #54 pc 00000000005aadc4  /apex/com.android.runtime/lib64/libart.so (MterpMaybeDoOnStackReplacement+212) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #55 pc 0000000000135350  /apex/com.android.runtime/lib64/libart.so (MterpHelpers+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #56 pc 000000000032a2f8  /system/framework/framework.jar (android.os.Looper.loop+1076)
Stack frame #57 pc 00000000005a2d78  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1040) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #58 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #59 pc 000000000018ffd4  /system/framework/framework.jar (android.app.ActivityThread.main+196)
Stack frame #60 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #61 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #62 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #63 pc 00000000001365b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #64 pc 000000000014500c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #65 pc 00000000004aff10  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #66 pc 00000000004b1ab4  /apex/com.android.runtime/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1480) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #67 pc 000000000043cde8  /apex/com.android.runtime/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #68 pc 00000000000c2c34  /system/framework/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 0f4468daae8e0ce987b6faa6213b1259db7d4057)
Stack frame #69 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #70 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #71 pc 00000000002e281c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #72 pc 00000000002dda7c  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #73 pc 00000000005a0008  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #74 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #75 pc 000000000036525e  /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
Stack frame #76 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #77 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #78 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #79 pc 00000000009d2030  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2256) (BuildId: 57e8be2bca00700dd3a961ce60905ae2059da384)
Stack frame #80 pc 00000000001365b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #81 pc 000000000014500c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #82 pc 00000000004aff10  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #83 pc 00000000004afb00  /apex/com.android.runtime/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+408) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #84 pc 00000000003ba5ec  /apex/com.android.runtime/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+624) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #85 pc 00000000000c099c  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116) (BuildId: ed34457ec75aaab022a9a0563a3f9937)
Stack frame #86 pc 00000000000c3900  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+988) (BuildId: ed34457ec75aaab022a9a0563a3f9937)
Stack frame #87 pc 00000000000035b0  /system/bin/app_process64 (main+1376) (BuildId: d23f7f711e9d93214484f019017fb1a7)
Stack frame #88 pc 000000000006ebc4  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
********** Crash dump: **********
Build fingerprint: 'OnePlus/OnePlus7_EEA/OnePlus7:10/QKQ1.190716.003/1909110008:user/release-keys'
pid: 19144, tid: 19205, name: mqt_js  >>> com.example.reactnativemmkv <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7e112b5ea8
Stack frame #00 pc 000000000005d6f0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::HermesValue::isUndefined() const at /tmp/hermes/hermes/include/hermes/VM/HermesValue.h:347
Stack frame #01 pc 00000000000f2e50  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine char16_t* std::__ndk1::uninitialized_copy<unsigned char const*, char16_t*>(unsigned char const*, unsigned char const*, char16_t*) at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3107
Stack frame #02 pc 000000000004d6fc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMapBase<llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >, hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >::moveFromOldBuckets(llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:?
Stack frame #03 pc 0000000000068a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine char16_t* std::__ndk1::uninitialized_copy<unsigned char const*, char16_t*>(unsigned char const*, unsigned char const*, char16_t*) at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3108
Stack frame #04 pc 000000000006c4f4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::HermesValueTraits<hermes::vm::JSArray, true>::arrow(hermes::vm::HermesValue const&) at /tmp/hermes/hermes/include/hermes/VM/HermesValueTraits.h:233
Stack frame #05 pc 0000000000069d74  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::vector<hermes::vm::StackTraceInfo, std::__ndk1::allocator<hermes::vm::StackTraceInfo> >::size() const at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:656
Stack frame #06 pc 000000000004d9e4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseMapPair<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long> >::allocateBuckets(unsigned int) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:794
Stack frame #07 pc 0000000000109778  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine HadesGC at /tmp/hermes/hermes/lib/VM/gcs/HadesGC.cpp:1304
Stack frame #08 pc 000000000004d6fc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMapBase<llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >, hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >::moveFromOldBuckets(llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:?
Stack frame #09 pc 0000000000068a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine char16_t* std::__ndk1::uninitialized_copy<unsigned char const*, char16_t*>(unsigned char const*, unsigned char const*, char16_t*) at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3108
Stack frame #10 pc 000000000006c4f4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::HermesValueTraits<hermes::vm::JSArray, true>::arrow(hermes::vm::HermesValue const&) at /tmp/hermes/hermes/include/hermes/VM/HermesValueTraits.h:233
Stack frame #11 pc 0000000000069d74  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::vector<hermes::vm::StackTraceInfo, std::__ndk1::allocator<hermes::vm::StackTraceInfo> >::size() const at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:656
Stack frame #12 pc 000000000004d9e4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseMapPair<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long> >::allocateBuckets(unsigned int) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:794
Stack frame #13 pc 000000000004c024  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::converter(hermes::vm::StringPrimitive const*) at /tmp/hermes/hermes/lib/VM/HeapSnapshot.cpp:528
Stack frame #14 pc 0000000000109430  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::__shared_weak_count::__release_shared() at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3458
Stack frame #15 pc 000000000004d6fc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMapBase<llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >, hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >::moveFromOldBuckets(llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:?
Stack frame #16 pc 0000000000068a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine char16_t* std::__ndk1::uninitialized_copy<unsigned char const*, char16_t*>(unsigned char const*, unsigned char const*, char16_t*) at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3108
Stack frame #17 pc 000000000006c4f4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::HermesValueTraits<hermes::vm::JSArray, true>::arrow(hermes::vm::HermesValue const&) at /tmp/hermes/hermes/include/hermes/VM/HermesValueTraits.h:233
Stack frame #18 pc 0000000000069d74  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::vector<hermes::vm::StackTraceInfo, std::__ndk1::allocator<hermes::vm::StackTraceInfo> >::size() const at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:656
Stack frame #19 pc 000000000004d9e4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseMapPair<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long> >::allocateBuckets(unsigned int) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:794
Stack frame #20 pc 000000000004d164  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<unsigned int, hermes::vm::HeapSnapshot::TraceNodeStats, llvh::DenseMapInfo<unsigned int>, llvh::detail::DenseMapPair<unsigned int, hermes::vm::HeapSnapshot::TraceNodeStats> >::getNumBuckets() const at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:784
Stack frame #21 pc 00000000000350d8  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+652) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine HermesPointerValue at /tmp/hermes/hermes/API/hermes/hermes.cpp:423
Stack frame #22 pc 0000000000026624  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNK8facebook3jsi8Function4callIJRKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_NS0_5ValueEEEESC_RNS0_7RuntimeEDpOT_+240) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #23 pc 0000000000026480  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #24 pc 0000000000020158  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNSt6__ndk128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_+116) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #25 pc 0000000000022b0c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (facebook::react::JSIExecutor::callFunction(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, folly::dynamic const&)+1156) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #26 pc 0000000000091d68  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #27 pc 0000000000093360  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #28 pc 0000000000063a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #29 pc 0000000000059248  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail13MethodWrapperIMNS_5react15JNativeRunnableEFvvEXadL_ZNS4_3runEvEES4_vJEE8dispatchENS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIS4_NS3_8RunnableEE8JavaPartESB_vE11_javaobjectEEE+32) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #30 pc 00000000000591c0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassINS_5react15JNativeRunnableENS6_8RunnableEE8JavaPartES8_vE11_javaobjectEEEESD_vJEE4callEP7_JNIEnvP8_jobjectSG_+60) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #31 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #32 pc 0000000002003304  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
Stack frame #33 pc 00000000020033b0  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
Stack frame #34 pc 00000000020034f4  /memfd:/jit-cache (deleted) (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage+52)
Stack frame #35 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #36 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #37 pc 00000000002e281c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #38 pc 00000000002dda7c  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #39 pc 00000000005a0008  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #40 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #41 pc 000000000032a096  /system/framework/framework.jar (android.os.Looper.loop+466)
Stack frame #42 pc 00000000005a2d78  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1040) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #43 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #44 pc 0000000000268d36  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74)
Stack frame #45 pc 00000000005a1ae8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #46 pc 0000000000130a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #47 pc 00000000000ec0f0  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
Stack frame #48 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #49 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #50 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #51 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #52 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #53 pc 00000000004aff10  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #54 pc 00000000004b1024  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #55 pc 00000000004f19ec  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #56 pc 00000000000d6b70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
Stack frame #57 pc 0000000000074eac  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
********** Crash dump: **********
Build fingerprint: 'OnePlus/OnePlus7_EEA/OnePlus7:10/QKQ1.190716.003/1909110008:user/release-keys'
pid: 19289, tid: 19349, name: mqt_js  >>> com.example.reactnativemmkv <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc0
Stack frame #00 pc 0000000000065bc4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::GCScope::newPinnedHermesValue(hermes::vm::HermesValue) at /tmp/hermes/hermes/include/hermes/VM/HandleRootOwner.h:466
Stack frame #01 pc 0000000000032af0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::createPropNameIDFromUtf8(unsigned char const*, unsigned long)+116) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine ~__value_func at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/functional:1826
Stack frame #02 pc 0000000000032078  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (facebook::jsi::valueFromDynamic(facebook::jsi::Runtime&, folly::dynamic const&)+236) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #03 pc 0000000000026464  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #04 pc 0000000000020158  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNSt6__ndk128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_+116) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #05 pc 0000000000022b0c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (facebook::react::JSIExecutor::callFunction(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, folly::dynamic const&)+1156) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #06 pc 0000000000091d68  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #07 pc 0000000000093360  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #08 pc 0000000000063a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #09 pc 0000000000059248  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail13MethodWrapperIMNS_5react15JNativeRunnableEFvvEXadL_ZNS4_3runEvEES4_vJEE8dispatchENS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIS4_NS3_8RunnableEE8JavaPartESB_vE11_javaobjectEEE+32) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #10 pc 00000000000591c0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassINS_5react15JNativeRunnableENS6_8RunnableEE8JavaPartES8_vE11_javaobjectEEEESD_vJEE4callEP7_JNIEnvP8_jobjectSG_+60) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #11 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #12 pc 0000000002006464  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
Stack frame #13 pc 0000000002005690  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
Stack frame #14 pc 00000000020066d4  /memfd:/jit-cache (deleted) (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage+52)
Stack frame #15 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #16 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #17 pc 00000000002e281c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #18 pc 00000000002dda7c  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #19 pc 00000000005a0008  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #20 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #21 pc 000000000032a096  /system/framework/framework.jar (android.os.Looper.loop+466)
Stack frame #22 pc 00000000005a2d78  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1040) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #23 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #24 pc 0000000000268d36  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74)
Stack frame #25 pc 00000000005a1ae8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #26 pc 0000000000130a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #27 pc 00000000000ec0f0  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
Stack frame #28 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #29 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #30 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #31 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #32 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #33 pc 00000000004aff10  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #34 pc 00000000004b1024  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #35 pc 00000000004f19ec  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #36 pc 00000000000d6b70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
Stack frame #37 pc 0000000000074eac  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
********** Crash dump: **********
Build fingerprint: 'OnePlus/OnePlus7_EEA/OnePlus7:10/QKQ1.190716.003/1909110008:user/release-keys'
pid: 19403, tid: 19463, name: mqt_js  >>> com.example.reactnativemmkv <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Stack frame #00 pc 00000000000f7954  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::GCScope::newPinnedHermesValue(hermes::vm::HermesValue) at /tmp/hermes/hermes/include/hermes/VM/HandleRootOwner.h:466
Stack frame #01 pc 00000000000f7dfc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::regExpPrototypeSymbolReplace(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs) at /tmp/hermes/hermes/lib/VM/JSLib/RegExp.cpp:?
Stack frame #02 pc 00000000000f7dfc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::regExpPrototypeSymbolReplace(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs) at /tmp/hermes/hermes/lib/VM/JSLib/RegExp.cpp:?
Stack frame #03 pc 00000000000f816c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::JSObject::getNamed_RJS(hermes::vm::Handle<hermes::vm::JSObject>, hermes::vm::Runtime*, hermes::vm::SymbolID, hermes::vm::PropOpFlags, hermes::vm::PropertyCacheEntry*) at /tmp/hermes/hermes/include/hermes/VM/JSObject.h:1938
Stack frame #04 pc 00000000000f6538  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::BasedPointer::computeSegmentAndOffset(void const*) at /tmp/hermes/hermes/include/hermes/VM/PointerBase.h:216
Stack frame #05 pc 000000000004d6fc  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMapBase<llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >, hermes::vm::StackTracesTreeNode::SourceLoc, llvh::detail::DenseSetEmpty, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc> >::moveFromOldBuckets(llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*, llvh::detail::DenseSetPair<hermes::vm::StackTracesTreeNode::SourceLoc>*) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:?
Stack frame #06 pc 0000000000068a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine char16_t* std::__ndk1::uninitialized_copy<unsigned char const*, char16_t*>(unsigned char const*, unsigned char const*, char16_t*) at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3108
Stack frame #07 pc 000000000006c4f4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine hermes::vm::HermesValueTraits<hermes::vm::JSArray, true>::arrow(hermes::vm::HermesValue const&) at /tmp/hermes/hermes/include/hermes/VM/HermesValueTraits.h:233
Stack frame #08 pc 0000000000069d74  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine std::__ndk1::vector<hermes::vm::StackTraceInfo, std::__ndk1::allocator<hermes::vm::StackTraceInfo> >::size() const at /opt/android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/vector:656
Stack frame #09 pc 000000000004d9e4  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long, hermes::vm::StackTracesTreeNode::SourceLocMapInfo, llvh::detail::DenseMapPair<hermes::vm::StackTracesTreeNode::SourceLoc, unsigned long> >::allocateBuckets(unsigned int) at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:794
Stack frame #10 pc 000000000004d164  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine llvh::DenseMap<unsigned int, hermes::vm::HeapSnapshot::TraceNodeStats, llvh::DenseMapInfo<unsigned int>, llvh::detail::DenseMapPair<unsigned int, hermes::vm::HeapSnapshot::TraceNodeStats> >::getNumBuckets() const at /tmp/hermes/hermes/external/llvh/include/llvh/ADT/DenseMap.h:784
Stack frame #11 pc 00000000000350d8  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+652) (BuildId: 4c1cf4e710a0140015b1d2f265a9ac5118f06e3b): Routine HermesPointerValue at /tmp/hermes/hermes/API/hermes/hermes.cpp:423
Stack frame #12 pc 0000000000026624  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNK8facebook3jsi8Function4callIJRKNSt6__ndk112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_NS0_5ValueEEEESC_RNS0_7RuntimeEDpOT_+240) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #13 pc 0000000000026480  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #14 pc 0000000000020158  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (_ZNSt6__ndk128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_+116) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #15 pc 0000000000022b0c  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libhermes-executor-debug.so (facebook::react::JSIExecutor::callFunction(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, folly::dynamic const&)+1156) (BuildId: 4963e834525c7be30d73ac11bfef0b864938a049)
Stack frame #16 pc 0000000000091d68  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #17 pc 0000000000093360  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #18 pc 0000000000063a88  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #19 pc 0000000000059248  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail13MethodWrapperIMNS_5react15JNativeRunnableEFvvEXadL_ZNS4_3runEvEES4_vJEE8dispatchENS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIS4_NS3_8RunnableEE8JavaPartESB_vE11_javaobjectEEE+32) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #20 pc 00000000000591c0  /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassINS_5react15JNativeRunnableENS6_8RunnableEE8JavaPartES8_vE11_javaobjectEEEESD_vJEE4callEP7_JNIEnvP8_jobjectSG_+60) (BuildId: 4f702f318db6ad088996c5b774708592260c96cb)
Stack frame #21 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #22 pc 0000000002001ef4  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
Stack frame #23 pc 0000000002001fa0  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
Stack frame #24 pc 00000000020020e4  /memfd:/jit-cache (deleted) (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage+52)
Stack frame #25 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #26 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #27 pc 00000000002e281c  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #28 pc 00000000002dda7c  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #29 pc 00000000005a0008  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #30 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #31 pc 000000000032a096  /system/framework/framework.jar (android.os.Looper.loop+466)
Stack frame #32 pc 00000000005a2d78  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1040) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #33 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #34 pc 0000000000268d36  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.reactnativemmkv-PZJmhxnTD0QC8VK-hAUUSQ==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74)
Stack frame #35 pc 00000000005a1ae8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #36 pc 0000000000130a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #37 pc 00000000000ec0f0  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
Stack frame #38 pc 00000000002b3b30  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.3929369822492601747+240) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #39 pc 0000000000591570  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #40 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #41 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #42 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #43 pc 00000000004aff10  /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: 615724283373fd93e5fb77101fe57dab)
Stack frame #44 pc 00000000004b1024  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #45 pc 00000000004f19ec  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 615724283373fd93e5fb77101fe57dab)
Stack frame #46 pc 00000000000d6b70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
Stack frame #47 pc 0000000000074eac  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
osdnk commented 3 years ago

I can imagine that this is because of the fact that I'm accessing this from a different thread (UI thread). I was under impression that this is supported behavior

neildhar commented 3 years ago

It's not generally safe to use the Hermes runtime from multiple threads at the same time. You'll need to manually synchronise access to the runtime if you want to do that.

I also noticed that the example in your project uses RN 0.65 whereas the mmkv library is being built against RN 0.66, that seems suspicious and is also prone to breaking. Some of the stack traces you posted don't seem possible in Hermes, so I just wanted to double check that you're using the unstripped libraries for Hermes 0.8.1 in those (since the example app is being built with that version).

tmikov commented 1 year ago

Closing, since the issue has been identified as accessing Hermes from multiple threads.