Skip to content

Android crash on startup - assertion "hostObjectProxy" failed' [React-Native v0.73.5 | New Architecture] #197

Description

@axxag

Hello, I have found that android refuses to start on react-native v0.73.5 / react-native-v8 v2.3.0 with newArchEnabled=true. Everything works just fine when newArchEnabled=false.

EDIT: Confirmed that the issue also exists on the newly released react-native v0.73.6.

I was able to track this down to an assertion in HostProxy.cpp:42 where it seems hostObjectProxy gets set to a nullptr when the new architecture is enabled. I will continue looking into this, but can anyone more familiar with this code assist? Here is a minimal repro: https://github.com/axxag/rn073-v8issue

And here is a snippet of the logcat:

--------- beginning of crash
03-11 06:53:06.361  2612  2612 F DEBUG   : *** *** *** *** *** *** *** *** ***
*** *** *** *** *** *** ***
03-11 06:53:06.362  2612  2612 F DEBUG   : Build fingerprint: 'Windows/windows_x86_64/windows_x86_64:13/TQ3A.230901.001/2311.40000.5.0:user/release-keys'
03-11 06:53:06.362  2612  2612 F DEBUG   : Revision: '0'
03-11 06:53:06.362  2612  2612 F DEBUG   : ABI: 'x86_64'
03-11 06:53:06.362  2612  2612 F DEBUG   : Timestamp: 2024-03-11 06:53:06.253810786-0700
03-11 06:53:06.362  2612  2612 F DEBUG   : Process uptime: 200s
03-11 06:53:06.362  2612  2612 F DEBUG   : Cmdline: com.rndiffapp
03-11 06:53:06.362  2612  2612 F DEBUG   : pid: 2259, tid: 2607, name: mqt_js
>>> com.rndiffapp <<<
03-11 06:53:06.362  2612  2612 F DEBUG   : uid: 10072
03-11 06:53:06.362  2612  2612 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
03-11 06:53:06.363  2612  2612 F DEBUG   : Abort message: '.../rn-diff-purge/RnDiffApp/node_modules/react-native-v8/src/v8runtime/HostProxy.cpp:42: static void rnv8::HostObjectProxy::Getter(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &): assertion "hostObjectProxy" failed'
03-11 06:53:06.363  2612  2612 F DEBUG   :     rax 0000000000000000  rbx 00000000000008d3  rcx 0000746d6bbc73bf  rdx 0000000000000006
03-11 06:53:06.363  2612  2612 F DEBUG   :     r8  000000000000002a  r9  000000000000002a  r10 0000746a415d6440  r11 0000000000000203
03-11 06:53:06.363  2612  2612 F DEBUG   :     r12 0000746a415d6af8  r13 0000746ccefa4120  r14 0000746a415d6438  r15 0000000000000a2f
03-11 06:53:06.363  2612  2612 F DEBUG   :     rdi 00000000000008d3  rsi 0000000000000a2f
03-11 06:53:06.363  2612  2612 F DEBUG   :     rbp 0000746a415d6a80  rsp 0000746a415d6430  rip 0000746d6bbc73bf
03-11 06:53:06.363  2612  2612 F DEBUG   : backtrace:
03-11 06:53:06.363  2612  2612 F DEBUG   :       #00 pc 000000000005f3bf  /apex/com.android.runtime/lib64/bionic/libc.so (abort+191) (BuildId: 76cb658c499bceaab85932d1254e26df)
03-11 06:53:06.363  2612  2612 F DEBUG   :       #01 pc 000000000005f82e  /apex/com.android.runtime/lib64/bionic/libc.so (__assert2+30) (BuildId: 76cb658c499bceaab85932d1254e26df)
03-11 06:53:06.364  2612  2612 F DEBUG   :       #02 pc 00000000000bc2c7  /data/app/~~HAiHMMA51WxAFDvqIIzP6A==/com.rndiffapp-hwfFeT8WLL7VmgBKd6uH7A==/lib/x86_64/libv8executor.so (rnv8::HostObjectProxy::Getter(v8::Local<v8::Name>, v8::PropertyCallbackInfo<v8::Value> const&)+1207) (BuildId: dedb282826b6573c088fa6c542749978119fe645)
03-11 06:53:06.364  2612  2612 F DEBUG   :       #03 pc 00000000009674b3  /data/app/~~HAiHMMA51WxAFDvqIIzP6A==/com.rndiffapp-hwfFeT8WLL7VmgBKd6uH7A==/lib/x86_64/libv8android.so (BuildId: 6454e6146fa02879)
03-11 06:53:06.364  2612  2612 F DEBUG   :       #04 pc 00000000009b2da5  /data/app/~~HAiHMMA51WxAFDvqIIzP6A==/com.rndiffapp-hwfFeT8WLL7VmgBKd6uH7A==/lib/x86_64/libv8android.so (v8::internal::Object::GetProperty(v8::internal::LookupIterator*, bool)+85) (BuildId: 6454e6146fa02879)
03-11 06:53:06.364  2612  2612 F DEBUG   :       #05 pc 00000000008644f2  /data/app/~~HAiHMMA51WxAFDvqIIzP6A==/com.rndiffapp-hwfFeT8WLL7VmgBKd6uH7A==/lib/x86_64/libv8android.so (BuildId: 6454e6146fa02879)
03-11 06:53:06.364  2612  2612 F DEBUG   :       #06 pc 000000000086c96c  /data/app/~~HAiHMMA51WxAFDvqIIzP6A==/com.rndiffapp-hwfFeT8WLL7VmgBKd6uH7A==/lib/x86_64/libv8android.so (BuildId: 6454e6146fa02879)
03-11 06:53:06.364  2612  2612 F DEBUG   :       #07 pc 000000000057e277  /data/app/~~HAiHMMA51WxAFDvqIIzP6A==/com.rndiffapp-hwfFeT8WLL7VmgBKd6uH7A==/lib/x86_64/libv8android.so (BuildId: 6454e6146fa02879)
--------- beginning of system
03-11 06:53:06.662   347   631 I ActivityManager: Process com.rndiffapp (pid 2259) has died: cch CRE

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions