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

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

Open
hopestar90 opened this issue Sep 26, 2024 · 1 comment
Labels
need more info Awating additional info before proceeding

Comments

@hopestar90
Copy link

  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)

@hopestar90 hopestar90 added the bug Something isn't working label Sep 26, 2024
@hopestar90 hopestar90 changed the title When I use Hermes to run my project, I face a crash online When I use Hermes to run my project, I face a crash online about JSONLexer.cpp function scanNumber() Sep 26, 2024
@tmikov
Copy link
Contributor

tmikov commented Sep 26, 2024

Thanks for reporting this. Unfortunately this issue is based on an old version of Hermes and we’re only able to support the latest version. Please try reproducing this issue with the most recent build.

Additionally, the stack trace provided is not symbolicated correctly. We have information about how to symbolicate crashes here: https://github.com/facebook/hermes/blob/main/doc/ReactNativeIntegration.md#reporting-native-crashes

@tmikov tmikov added need more info Awating additional info before proceeding and removed bug Something isn't working labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Awating additional info before proceeding
Projects
None yet
Development

No branches or pull requests

2 participants