Desktop editor leaks a file handle per log line, then fails with "Unable to load asset" (0.8.5879...
Summary
On macOS, the desktop editor opens telemetry_logs.jsonl again for every log line it writes and never closes the handle. Opening a heavy file pushes the process past its limit of 2,560 open files. After that it can't open anything, so it shows the error below and the file never finishes loading. The same file opens and plays fine in the web editor in Chrome.
Environment
Rive Early Access desktop app 0.8.5879 (build 5866), editor environment preprod
macOS 26 (Darwin 25.6.0) on an Intel MacBook Pro
Only the desktop app is affected. The web editor in Chrome loads the same file fine, and no runtime is involved.
Error
Unable to load asset: "assets/images/artboard_bg_2x.png".
#0 PlatformAssetBundle.load.<anonymous closure> (package:flutter/src/services/asset_bundle.dart:332)
#1 _rootRunUnary (dart:async/zone_root.dart:48)
#2 _CustomZone.runUnary (dart:async/zone.dart:733)
<asynchronous suspension>
#3 RiveImageCache._load (package:rive_editor/rive/image_cache.dart:102)
<asynchronous suspension>
#4 DpiRenderImage.image.<anonymous closure> (package:rive_editor/rive/image_cache.dart:202)It appeared at 2026-09-17 06:02:11Z and again at 06:05:53Z. The PNG is present in the app bundle (App.framework/Resources/flutter_assets/assets/images/artboard_bg_2x.png, 171 bytes), so the asset isn't missing. The load fails because the process can't open any more files.
What I measured
While the file was loading, proc_pidinfo(PROC_PIDLISTFDS) reported 2,560 open descriptors, and 2,516 of them were files.
lsof showed 2,495 of those handles pointing at the same file, ~/Library/Containers/app.rive.ea-editor/Data/Library/Application Support/app.rive.ea-editor/telemetry_logs.jsonl
With no file open, the editor holds between 33 and 105 descriptors.
At the same moment, the editor's local MCP server on 127.0.0.1:9791 started resetting connections, which is what happens when accept() has no descriptors left.
Before that, the editor froze on the same file and macOS recorded a force quit at 05:57:36Z.
Quitting frees the handles. After a relaunch telemetry_logs.jsonl is gone, so I couldn't see which messages filled it.
Steps to reproduce
Open a large file in the desktop app. Mine has about 158,000 keyframes across 8 timelines, most of them vertex animation, and a state machine with 7 layers. I haven't tried a small file.
Watch the handle count with lsof -p $(pgrep -f "MacOS/Rive Early Access") | grep -c telemetry_logs
Once the process reaches about 2,560 open files, the error appears and the file stops loading.
Expected
The log file is opened once and kept open, or closed after each write, so the handle count stays flat however many lines get logged.
Where to look
The build includes package:utilities/telemetry/log_persistence_native.dart, which I assume is the native writer for this file.
I can share the file privately if that helps.