Skip to main content
f
8mo ago

Rive Animation Crash on iOS with Malformed File Error

Hello,

I am encountering a critical issue while integrating a calendar-type visual into a React Native app for iOS, specifically using rive-react-native version 7.3.0. The animation functions correctly within the Rive application itself, and here's a share link to the animation for reference: Rive Animation.

life_grid.rev
3 MB

However, upon rendering the page in the app, it crashes with the following error:

RiveRuntime/RiveViewModel.swift:94: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=rive.app.ios.runtime Code=600 "Malformed Rive File." UserInfo={name=Malformed, NSLocalizedDescription=Malformed Rive File.}

Steps Taken:

  • I initially suspected an issue with the death_date_artboard. Removing this Artboard stops the crashes.

  • I attempted to debug by incrementally removing elements from the artboard, but the app continued to crash until the entire artboard was removed.

  • Rebuilding the artboard from scratch did not resolve the issue, nor did replacing the image assets.

Could you please assist me in determining whether this is an issue with how React Native handles the Rive file, or if there's a potential bug or limitation within the Rive framework that I might be hitting?