Crash on setting values on databinding instance when Referenced Assets change on iOS

Offen
#342 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
react-native, swift, typescript
Bereich
mobile-dev

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

triage
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

rive.zip

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
Vorherrschende Sprache
TypeScript
Sterne
789
Forks
81
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus rive-app/rive-react-native

Alle Issues in rive-app/rive-react-native

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.