Skip to content

fix(ios): don't surface RiveUIView's transient missing-drawable draw log as a LogBox error - #348

Merged
mfazekas merged 1 commit into
feat/rive-ios-experimentalfrom
fix/ios-transient-drawable-logbox
Jul 17, 2026
Merged

mfazekas merged 1 commit into
feat/rive-ios-experimentalfrom
fix/ios-transient-drawable-logbox

Conversation

@mfazekas

Copy link
Copy Markdown
Collaborator

Opening any Rive page in the Debug example app pops a LogBox red screen reading [RiveUIView] [RiveUIView] Draw failed: missing drawable. The SDK's RiveUIView force-draws its MTKView before Auto Layout has sized it, so currentDrawable is nil for the first frame(s); it logs that transient condition at error level and rendering recovers on the next tick. rive-ios 6.21.1 is the latest release and upstream main has no change here, so RiveRuntimeLogger now forwards this specific .view message at debug instead of error.

Also strips the tag prefix the SDK hardcodes into its message strings (it already passes the same tag separately), which caused the doubled [RiveUIView] [RiveUIView] above.

Verified on an iPhone 17 / iOS 26.5 simulator: unfixed build shows the red screen on Quick Start; with the fix the same CAMetalLayer nextDrawable returning nil still occurs in the device log but nothing is forwarded at error level, no LogBox appears, and the animation renders.

@mfazekas
mfazekas merged commit cafc634 into feat/rive-ios-experimental Jul 17, 2026
11 checks passed
@mfazekas
mfazekas deleted the fix/ios-transient-drawable-logbox branch July 17, 2026 11:35
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.

1 participant