Worklets installation not working. Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 17909 (mqt_js)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- android, javascript, react-native
- 领域
- mobile
调研方向
Start with the JavaScript reproduction using Worklets.createRunInContextFn and the manual MainApplication.java setup, then inspect the Android logcat output around the SIGABRT on the mqt_js thread. Done means the Fibonacci example executes successfully without the fatal signal in a project that is not using React Native's new architecture.
由索引模型根据 Issue 内容生成。
描述
Hello Team
Thanks for bringing this package. I've been trying to install it in my JavaScript project (no typescript) and I've been having issues not being able to execute the example.
I've installed it, manually linking it (my project has problems with auto-linking, so I manually added it to the MainApplication.java file). It seems to be capturing the function correctly, but it fails with an error Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 17909 (mqt_js) when executing the code.
I'm trying the example as follows:
import { Worklets } from 'react-native-worklets-core'
const fibonacci = (num) => {
'worklet'
if (num <= 1) return 1
return fibonacci(num - 1) + fibonacci(num - 2)
}
const worklet = Worklets.createRunInContextFn(fibonacci)
worklet(50).then((result) => {
console.log(`Fibonacci of 50 is ${result}`)
})
There shouldn't be a difference compared to the example typescript one, except for removing the types.
This is the error I see in my console, before it crashes
And this is the logcat
09-04 12:07:20.747 17673 17909 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 17909 (mqt_js), pid 17673 (package.name)
09-04 12:07:20.784 18125 18125 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-04 12:07:20.784 18125 18125 F DEBUG : Build fingerprint: 'google/sdk_gphone_x86/generic_x86_arm:11/RSR1.201013.001/6903271:user/release-keys'
09-04 12:07:20.784 18125 18125 F DEBUG : Revision: '0'
09-04 12:07:20.784 18125 18125 F DEBUG : ABI: 'x86'
09-04 12:07:20.784 18125 18125 F DEBUG : Timestamp: 2023-09-04 12:07:20-0500
09-04 12:07:20.784 18125 18125 F DEBUG : pid: 17673, tid: 17909, name: mqt_js >>> com.app.name <<<
09-04 12:07:20.784 18125 18125 F DEBUG : uid: 10163
09-04 12:07:20.784 18125 18125 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
09-04 12:07:20.784 18125 18125 F DEBUG : eax 00000000 ebx 00004509 ecx 000045f5 edx 00000006
09-04 12:07:20.784 18125 18125 F DEBUG : edi f351e81e esi be2a6130
09-04 12:07:20.784 18125 18125 F DEBUG : ebp f4ca6b90 esp be2a60d8 eip f4ca6b99
09-04 12:07:20.786 18125 18125 F DEBUG : backtrace:
09-04 12:07:20.786 18125 18125 F DEBUG : #00 pc 00000b99 [vdso] (__kernel_vsyscall+9)
09-04 12:07:20.786 18125 18125 F DEBUG : #01 pc 0005ad68 /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
09-04 12:07:20.786 18125 18125 F DEBUG : #02 pc 00076511 /apex/com.android.runtime/lib/bionic/libc.so (abort+209) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
Is there something I'm missing here?
Also, I'm not using React's new architecture
Thank you!
- 主要语言
- C++
- 星标
- 791
- 派生
- 65
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
margelo/react-native-worklets-core 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
margelo/react-native-worklets-core#271 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
margelo/react-native-worklets-core#269 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
margelo/react-native-worklets-core#268 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 72/100
margelo/react-native-worklets-core#267 · 1 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
margelo/react-native-worklets-core#266 · 1 条评论 · 2 个 reaction ·
查看 margelo/react-native-worklets-core 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
hyprwm/aquamarine#426 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
amnezia-vpn/amnezia-client#3222 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
valkey-io/valkey-search#1465 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
KhronosGroup/Vulkan-Tutorial#524 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
microsoft/onnxruntime-genai#2633 ·
维护者通常 1 天内回复