[0.5.2-exp.8] Duplicated and displaced artboard corruption
My Unity app is on the edge of its performance budget and I need to get Rive off the main thread so it doesn’t block frames (Rive can lag behind the main rendering thread, that is ok). There is an experimental threading mode which looks promising but I have some issues with this.
Here is the Unity experimental build I use:
https://github.com/rive-app/rive-unity/blob/v0.5.2-exp.8/package/Runtime/Components/Public/ThreadingMode.cs
https://github.com/rive-app/rive-unity/releases/tag/v0.5.2-exp.8
Codex generated bug report:
The attached minimal Unity project reproduces corrupted captured output using
Rive's public quick_start_health_bar.riv sample. It contains one RivePanel,
one RiveWidget and one independent moving Unity UI Image.
The captured frames show repeated and displaced HEALTH text, numbers and bar
segments, rectangular patches and fragments outside the intended panel bounds.
This occurs with both BackgroundThread and MainThread.
Environment
- Rive Unity 0.5.2-exp.8.
- Package commit 0654a22528bc53cd68936ee4e81d349f540331f9.
- Unity 6000.5.1f1, revision 0d9463e84828.
- Universal Render Pipeline 17.5.0 and Unity UI 2.5.0.
- macOS 26.6.2, build 25G83.
- Apple M2, Mac14,3, 16 GB RAM.
- Metal, Development IL2CPP ARM64 standalone player.
- 1920 x 1080 window, render scale 1.0, MSAA disabled.
Reproduction
1. Extract the attached RiveRenderingRepro project and open it in Unity 6000.5.1f1.
2. Let Package Manager resolve the pinned public dependencies.
3. Open Assets/Repro.unity.
4. Choose Reproduction > Build macOS player.
5. Launch Build/RenderingRepro.app and capture using the command in README.txt.
Default launch selects BackgroundThread.
6. Repeat with --inline to select MainThread.
The scene uses a default forward URP renderer with an empty renderer-feature
list, one camera and a Screen Space Overlay canvas. The Rive panel occupies
the left rectangle with anchors (0, 0.25) to (0.5, 1). Its widget stretches
across the panel and loads the public file's default artboard and state machine
through FileHandle.LoadAsync and RiveWidget.LoadAsync.
The capture waits for WidgetStatus.Loaded, another 120 frames and
WaitForEndOfFrame, then calls ScreenCapture.CaptureScreenshotAsTexture.
Expected
One complete health-bar image in the left panel, with one moving cyan Unity UI
square along the bottom.
Observed
Duplicated and displaced text and graphics in both threading modes. Each tested
player loaded its widget, completed the capture and exited with code 0.
An earlier five-panel control also produced corrupted captures in both modes.
Logs
The final build reported zero errors and warnings. Both final player runs had
zero exception or assertion lines. Each player emitted one No EventSystem found
warning. PointerInputMode is DisablePointerInput and focus behavior uses the
renderer default.
The public sample produced zero Failed to import object warnings.
The archive contains the public sample, its source URL and license, the scene,
runtime and build scripts, pinned dependencies, instructions and validation
results. The observed issue is confirmed in PNG captures. Editor Play and other
platforms remain untested.
Does this setup require different initialization in 0.5.2-exp.8, or does this
match a known Metal/URP capture or rendering issue?