Editor 0.8.5940: memory climbs about 3 GB a minute on a script-heavy file, even when idle (0.8.58...
Hi Rive team! 😄 Since 0.8.5940 one of my files makes the editor's memory climb by about 3 GB a minute, even when I'm not touching anything, until my Mac runs out of memory. Going back to 0.8.5879 fixed it for me.
Same file, same Mac (Mac mini M4, 16 GB, macOS 27.0), file open and idle:
0.8.5940: 4 GB → 17 GB in about 4 minutes
0.8.5879: about 1.2 GB, flat for 3 minutes
A lighter file of mine (8 artboard inputs) also sits higher on 0.8.5940: 4–5 GB, where I used to see 1–2 GB.
About the heavy file: 38 artboards, 19 Luau scripts, and 14 artboard-typed script inputs (Input<Artboard>). A few scripts call instance() on those inputs to build small pools (up to about 40 copies). The editor console stays empty.
What macOS recorded:
Every CPU report it wrote for Rive since the update includes riveLuaPushArtboard → Artboard::instance, under a run-loop timer. None of the five reports from 0.8.5879 include it.
A sample during the climb also shows ScriptReffedArtboard → File::createViewModelInstance → ViewModelInstanceRegistrarImpl::registerInstance.
vmmap at 18 GB: about 11.5 GB in untagged regions and 5.7 GB in the malloc zone (about 60 million allocations).
Could 0.8.5940 be re-pushing artboard script inputs on a timer? I'm happy to share the macOS reports, or the file privately if that helps! 😊