Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rive_react_native/RiveReactNativeView.swift:225: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value #218

Closed
Waltari10 opened this issue Dec 21, 2023 · 3 comments

Comments

@Waltari10
Copy link

Waltari10 commented Dec 21, 2023

Description

Upgraded rive-react-native to 6.2.0 from 3.0.41 and now it's crashing the entire app all the time.

Error message in Xcode is:
rive_react_native/RiveReactNativeView.swift:225: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Provide a Repro

import Rive from "rive-react-native";
<Rive resourceName="timeline" stateMachineName="ToggleIcon" />

Source .riv/.rev file

Expected behavior

I'd expect it not to start crashing when updating the package.

Screenshots

Device & Versions (please complete the following information)

  • Device: iOS simulator iPhone SE (3rd generation)
  • OS: iOS 17.2
  • NPM Version: 10.1.0

Additional context

  • I tried upgrading the Rive app to latest version and re-exporting the riv file, but it didn't help.
  • Also removed and updated node_modules and pods a few times as well as tried rebuilding the iOS app.
@Waltari10
Copy link
Author

This PR seems to fix the issue for me: #206

@HayesGordon
Copy link
Contributor

Hi Waltari, thanks for verifying. Would you happen to have a reproducible example project you can share with us? I'm not able to verify the issue on my side.

The same with the linked issue. But in the meantime we can get that linked PR merged as it seems to solve multiple issues

@HayesGordon
Copy link
Contributor

The above PR is merged. I'm closing this issue, but please reopen it if it's not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants