🐛 Logged: Rive file became Malformed

I’ve been working on a Rive file for a few days and was finally done to embed it in my React Native app. I did notice that sometimes when re-focusing on rive a toast pops up saying “rive had to patch up your file due to some bad data”. But everything worked pretty fine in the MacOS app editor.

But.. running the `*.riv` file in iOS crashes the app, Sentry says:

artboardFromName:error: > Main > KERN_INVALID_ADDRESS at 0x68.

And in Android it also crashes with “app.rive.runtime.kotlin.core.errors.MalformedFileException: Malformed Rive File.”

Caused by app.rive.runtime.kotlin.core.errors.MalformedFileException: Malformed Rive File.

app.rive.runtime.kotlin.core.File.import(Native Method)

app.rive.runtime.kotlin.core.File.<init>(File.kt:34)

app.rive.runtime.kotlin.RiveAnimationView.loadFileFromResource(RiveAnimationView.kt:410)

app.rive.runtime.kotlin.RiveAnimationView.onAttachedToWindow(RiveAnimationView.kt:910)

android.view.View.dispatchAttachedToWindow(View.java:23177)


Now I don’t really know what to do. I have a 4 day old backup `*.rev` file that does not give the error, but it would be sad to have to redo 4 days of work. Anyone knows why this error occurs and how to resolve it?