Skip to content

When I use Hermes to run my project, I face a crash online about JSONLexer.cpp function scanNumber() #1526

Closed as not planned
@hopestar90

Description

@hopestar90
  1. The Hermes version is based on rn/0.71-stable
  2. the crash is like this:
    SIGABRT: Abort program: Error: Find abort message failure
    SIGSEGV: Segmentation violation (invalid memory reference)

/Users/victor.chi/github_hermes_workspace/hermes/lib/VM/JSLib/JSONLexer.cpp:98 | hermes::vm::JSONLexer::scanNumber()
/Users/victor.chi/github_hermes_workspace/hermes/include/hermes/VM/HandleRootOwner.h:461 | hermes::vm::GCScope::newPinnedHermesValue(hermes::vm::HermesValue)
/Users/victor.chi/github_hermes_workspace/shopee-hermes/include/hermes/VM/SmallHermesValue-inline.h:37 | hermes::vm::HermesValue32::unboxToHV(hermes::vm::PointerBase&) const
/Users/victor.chi/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/deque:323 | std::__ndk1::__deque_iterator<llvh::StringMap<hermes::vm::MockedEnvironment::StatsTableValue, llvh::MallocAllocator>, llvh::StringMap<hermes::vm::MockedEnvironment::StatsTableValue, llvh::MallocAllocator>*, llvh::StringMap<hermes::vm::MockedEnvironment::StatsTableValue, llvh::MallocAllocator>&, llvh::StringMap<hermes::vm::MockedEnvironment::StatsTableValue, llvh::MallocAllocator>**, int, 170>::operator++()
/Users/victor.chi/github_hermes_workspace/hermes/include/hermes/VM/HandleRootOwner.h:307 | GCScope
/Users/victor.chi/github_hermes_workspace/hermes/API/hermes/hermes.cpp:771 | facebook::hermes::HermesRuntimeImpl::JsiProxy::get(hermes::vm::SymbolID)
/Users/victor.chi/github_hermes_workspace/hermes/API/hermes/hermes.cpp:795 | facebook::hermes::HermesRuntimeImpl::JsiProxy::get(hermes::vm::SymbolID)
/data/app/~~ownmaPykvO0cICHrwMqdDg==/com.xxxx.id-aOeqDDsay4zY5N-7Ue8MHw==/split_config.armeabi_v7a.apk!libhermes.so:46 | ??
/Users/chengyu.zhou/Documents/WorkSpace/ReactNativeAndroid/ReactNative/ReactAndroid/src/main/java/com/facebook/react/../hermes/reactexecutor/../../../../../../../../ReactCommon/jsi/jsi/decorator.h:264 | facebook::jsi::RuntimeDecorator<facebook::jsi::Runtime, facebook::jsi::Runtime>::createArray(unsigned int)
/Users/chengyu.zhou/Documents/WorkSpace/ReactNativeAndroid/ReactNative/ReactAndroid/../ReactCommon/jsi/jsi/jsi.h:720 | Array
/Users/chengyu.zhou/Documents/WorkSpace/ReactNativeAndroid/ReactNative/ReactAndroid/../ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp:235 | operator()
/Users/chengyu.zhou/Library/Android/sdk/ndk/19.2.5345600/sources/cxx-stl/llvm-libc++/include/type_traits:4350 | ZNSt6__ndk18__invokeIRPFvRKNS_8functionIFvvEEENS1_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEEJS5_SD_EEEDTclclsr3std6__ndk1E7forwardIT_Efp_Espclsr3std6__ndk1E7forwardIT0_Efp0_EEEOSH_DpOSI
/Users/chengyu.zhou/Library/Android/sdk/ndk/19.2.5345600/sources/cxx-stl/llvm-libc++/include/functional:1923 | std::__ndk1::function<void (std::__ndk1::function<void ()> const&, std::__ndk1::function<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > ()>)>::operator()(std::__ndk1::function<void ()> const&, std::__ndk1::function<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > ()>) const

from my side :

1 These android devices typically have smaller memory (usually 2-3GB)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoAwating additional info before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions