fireStateAtPath crashes on Android
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- kotlin, react-native, typescript
- Lĩnh vực
- mobile
Hướng nghiên cứu
Start by tracing fireStateAtPath through the Android path and inspect the stack-trace locations in Artboard.kt and RiveFileController.kt, especially getOrCreateStateMachines and processAllInputs. Confirm the Android implementation handles the state-machine path without looking up an empty name; done means fireStateAtPath no longer crashes while fireState continues to work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
The app (expo client) crashes when trying to use fireStateAtPath
Provide a Repro
The issue seems to be that it doesn't find the StateMachine in the native side.
Sadly I cannot provide a riv file but it works on both iOS and web - with fireStateAtPath - so the riv file is fine.
fireState also works fine
const fireStateOrfireStateAtPath = (stateName: string) => {
if (stateName.includes("/")) {
const [state, ...path] = stateName.split("/").reverse();
riveRef.current?.fireStateAtPath(state, path.reverse().join("/"));
} else {
riveRef.current?.fireState(stateMachineName, stateName);
}
};
Any ideas? Thank you ❤️
Logcat
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception app.rive.runtime.kotlin.core.errors.StateMachineException: No StateMachine found with name .
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] at app.rive.runtime.kotlin.core.StateMachineInstance app.rive.runtime.kotlin.core.Artboard.stateMachine(java.lang.String) (Artboard.kt:137)
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] at java.util.List app.rive.runtime.kotlin.controllers.RiveFileController.getOrCreateStateMachines(java.lang.String) (RiveFileController.kt:607)
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] at void app.rive.runtime.kotlin.controllers.RiveFileController.processAllInputs() (RiveFileController.kt:523)
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] at void app.rive.runtime.kotlin.controllers.RiveFileController.advance(float) (RiveFileController.kt:264)
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] at void app.rive.runtime.kotlin.renderers.RiveArtboardRenderer.advance(float) (RiveArtboardRenderer.kt:51)
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578]
08-30 10:37:22.779 32224 1111 F p.myapp.debu: java_vm_ext.cc:578] in call to CallVoidMethodV
08-30 10:37:22.780 779 855 D EnterpriseController: netId is 0
08-30 10:37:22.780 779 855 E Netd : getNetworkForDns: getNetId from enterpriseCtrl is netid 0
08-30 10:37:22.780 779 855 D DnsProxyListener: DNSDBG::dns addrinfo af 0 - 10252
08-30 10:37:22.813 779 1112 E ResolverController: No valid NAT64 prefix (602, <unspecified>/0)
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348] No pending exception expected: app.rive.runtime.kotlin.core.errors.StateMachineException: No StateMachine found with name .
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348] at app.rive.runtime.kotlin.core.StateMachineInstance app.rive.runtime.kotlin.core.Artboard.stateMachine(java.lang.String) (Artboard.kt:137)
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348] at java.util.List app.rive.runtime.kotlin.controllers.RiveFileController.getOrCreateStateMachines(java.lang.String) (RiveFileController.kt:607)
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348] at void app.rive.runtime.kotlin.controllers.RiveFileController.processAllInputs() (RiveFileController.kt:523)
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348] at void app.rive.runtime.kotlin.controllers.RiveFileController.advance(float) (RiveFileController.kt:264)
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348] at void app.rive.runtime.kotlin.renderers.RiveArtboardRenderer.advance(float) (RiveArtboardRenderer.kt:51)
08-30 10:37:22.974 32224 1111 F p.myapp.debu: thread.cc:2348]
08-30 10:37:22.996 32224 1111 F p.myapp.debu: runtime.cc:642] Runtime aborting --- recursively, so no thread-specific detail!
- Ngôn ngữ chính
- TypeScript
- Star
- 785
- Fork
- 81
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rive-app/rive-react-native
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rive-app/rive-react-native#433 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
rive-app/rive-react-native#431 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rive-app/rive-react-native#448 · 2 bình luận · 1 reaction ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR)Có thể đã có người làm @Togetic đã nhận 42 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
rive-app/rive-react-native#444 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
rive-app/rive-react-native#441 ·
Tất cả issue của rive-app/rive-react-native
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
siyuan-note/siyuan#20517 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NaturalIntelligence/fast-xml-parser#890 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
zsviczian/obsidian-excalidraw-plugin#3000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
pnpm/get.pnpm.io#68 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nuxt-modules/better-auth#578 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày