Skip to content

fix(iOS): keep fileRef alive until the customLoaders finished#45

Merged
mfazekas merged 1 commit into
mainfrom
mfazekas/fix-crash-referenced-asset-loader-release-race
Nov 27, 2025
Merged

fix(iOS): keep fileRef alive until the customLoaders finished#45
mfazekas merged 1 commit into
mainfrom
mfazekas/fix-crash-referenced-asset-loader-release-race

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

Fixes: #44

Make sure RiveFile is alive until all of the customLoaders have finished. Whille not documented RiveFactory lifetime is tied to RiveFile lifetime.

@mfazekas mfazekas changed the title fix: keep fileRef alive until the customLoaders finished fix(iOS): keep fileRef alive until the customLoaders finished Nov 26, 2025
@mfazekas mfazekas requested a review from HayesGordon November 26, 2025 19:42

self.loadAssetInternal(source: assetData, asset: asset, factory: factory, completion: {})
self.loadAssetInternal(source: assetData, asset: asset, factory: factory, completion: {
withExtendedLifetime(fileRef) {}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

Copy link
Copy Markdown
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for investigating this

@mfazekas mfazekas merged commit 29de2ca into main Nov 27, 2025
5 checks passed
@HayesGordon HayesGordon deleted the mfazekas/fix-crash-referenced-asset-loader-release-race branch December 9, 2025 16:24
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

Successfully merging this pull request may close these issues.

[iOS] Crash with referencedAssets resolved after view is gone

2 participants