Crash on setting values on databinding instance when Referenced Assets change on iOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react-native, swift, typescript
- Domain
- mobile-dev
Research direction
Reproduce the crash with the linked breakawaydata/rive-react-native-boolean-crash project using the supplied rive.zip asset on the iOS simulator. Start at ios/RiveReactNativeView.swift line 678 and compare the cases that set only one property with the case that sets both. Done means the boolean and referenced asset properties can both be set from a button click without an iOS crash.
Written by the indexing model from the issue text.
Description
Description
When running on iOS setting both a boolean property that is in a view model, and referenced assets, the app will crash when both of those types of properties are set via Button click. However if you only set one, there is no crash. This code does work however in React Native on Android.
It looks like the crash is an EXEC_BAD_ACCESS on the following line https://github.com/rive-app/rive-react-native/blob/main/ios/RiveReactNativeView.swift#L678
Provide a Repro
https://github.com/breakawaydata/rive-react-native-boolean-crash
Source .riv/.rev file
Expected behavior
I'd expect the app to not crash and set the properties
Device & Versions
- Device: iOS Simulator
- OS: iOS 18.4
- NPM Version: 10.2.4
- Dominant language
- TypeScript
- Stars
- 783
- Forks
- 81
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rive-app/rive-react-native
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rive-app/rive-react-native#433 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
rive-app/rive-react-native#431 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rive-app/rive-react-native#448 · 2 comments · 1 reaction ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR)Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rive-app/rive-react-native#444 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
rive-app/rive-react-native#441 ·
All issues in rive-app/rive-react-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openzim/mwoffliner#2933 ·
Maintainers usually reply within 1 day
-
Use the README category name for website links and submissionsPossibly taken @dajiaohuang claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
birobirobiro/awesome-shadcn-ui#647 ·
Maintainers usually reply within 2 days
-
check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Urigo/accounter-fullstack#4604 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day