Skip to content

iOS crash in setNumberState when updating State Machine input on main thread #405

@jay-clavier

Description

@jay-clavier

We are seeing a production crash on iOS when calling setNumberState on a Rive State Machine.
The crash happens on the main thread inside RiveReactNativeViewManager.setNumberState.

This crash is captured via Firebase Crashlytics

Environment :
react-native: 0.80.0
rive-react-native: ^9.3.4
Devices: iPhone (multiple models)
JS Engine: Hermes
New Architecture: Enable

Crash :

Crashed: com.apple.main-thread
0  RiveReactNativeViewManager.setNumberState(_:stateMachineName:inputName:value:)
   RiveReactNativeView.swift:622
1  libdispatch.dylib
2  UIKitCore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions