Memory leak with Movie Capture in USD Composer template

Hello,

My team is encountering very high memory usage with the USD Composer app template whilst rendering frames for an extended period of time via Movie Capture.

Here is a log file showing the RAM usage of the Kit process over time:

Summary

2024-11-26 14:21:17 | INFO | kit (26556): 7.7 GiB
2024-11-26 14:31:27 | INFO | kit (26556): 7.8 GiB
2024-11-26 14:41:36 | INFO | kit (26556): 7.9 GiB
2024-11-26 14:51:46 | INFO | kit (26556): 8 GiB
2024-11-26 15:01:56 | INFO | kit (26556): 8 GiB
2024-11-26 15:12:06 | INFO | kit (26556): 8.1 GiB
2024-11-26 15:22:15 | INFO | kit (26556): 8.2 GiB
2024-11-26 15:32:25 | INFO | kit (26556): 8.3 GiB
2024-11-26 15:42:35 | INFO | kit (26556): 8.4 GiB
2024-11-26 15:52:45 | INFO | kit (26556): 8.5 GiB
2024-11-26 16:02:54 | INFO | kit (26556): 8.5 GiB
2024-11-26 16:13:04 | INFO | kit (26556): 8.6 GiB
2024-11-26 16:23:14 | INFO | kit (26556): 8.7 GiB
2024-11-26 16:33:23 | INFO | kit (26556): 8.8 GiB
2024-11-26 16:43:33 | INFO | kit (26556): 8.9 GiB
2024-11-26 16:53:43 | INFO | kit (26556): 9 GiB
2024-11-26 17:03:53 | INFO | kit (26556): 9.1 GiB
2024-11-26 17:14:04 | INFO | kit (26556): 9.1 GiB
2024-11-26 17:24:14 | INFO | kit (26556): 9.2 GiB
2024-11-26 17:34:23 | INFO | kit (26556): 9.3 GiB
2024-11-26 17:44:33 | INFO | kit (26556): 9.3 GiB
2024-11-26 17:54:43 | INFO | kit (26556): 9.4 GiB
2024-11-26 18:04:53 | INFO | kit (26556): 9.5 GiB
2024-11-26 18:15:02 | INFO | kit (26556): 9.6 GiB
2024-11-26 18:25:12 | INFO | kit (26556): 9.6 GiB
2024-11-26 18:35:22 | INFO | kit (26556): 9.7 GiB
2024-11-26 18:45:32 | INFO | kit (26556): 9.8 GiB
2024-11-26 18:55:41 | INFO | kit (26556): 9.8 GiB
2024-11-26 19:05:51 | INFO | kit (26556): 9.9 GiB
2024-11-26 19:16:01 | INFO | kit (26556): 10 GiB
2024-11-26 19:26:10 | INFO | kit (26556): 10.2 GiB
2024-11-26 19:36:20 | INFO | kit (26556): 10.2 GiB
2024-11-26 19:46:30 | INFO | kit (26556): 10.3 GiB
2024-11-26 19:56:40 | INFO | kit (26556): 10.4 GiB
2024-11-26 20:06:49 | INFO | kit (26556): 10.4 GiB
2024-11-26 20:16:59 | INFO | kit (26556): 10.5 GiB
2024-11-26 20:27:09 | INFO | kit (26556): 10.6 GiB
2024-11-26 20:37:18 | INFO | kit (26556): 10.7 GiB
2024-11-26 20:47:28 | INFO | kit (26556): 10.7 GiB
2024-11-26 20:57:38 | INFO | kit (26556): 10.8 GiB
2024-11-26 21:07:48 | INFO | kit (26556): 10.9 GiB
2024-11-26 21:17:57 | INFO | kit (26556): 10.9 GiB
2024-11-26 21:28:07 | INFO | kit (26556): 11 GiB
2024-11-26 21:38:17 | INFO | kit (26556): 11.1 GiB
2024-11-26 21:48:27 | INFO | kit (26556): 11.1 GiB
2024-11-26 21:58:36 | INFO | kit (26556): 11.2 GiB
2024-11-26 22:08:46 | INFO | kit (26556): 11.3 GiB
2024-11-26 22:18:56 | INFO | kit (26556): 11.3 GiB
2024-11-26 22:29:05 | INFO | kit (26556): 11.4 GiB
2024-11-26 22:39:15 | INFO | kit (26556): 11.5 GiB
2024-11-26 22:49:25 | INFO | kit (26556): 11.5 GiB
2024-11-26 22:59:35 | INFO | kit (26556): 11.6 GiB
2024-11-26 23:09:44 | INFO | kit (26556): 11.7 GiB
2024-11-26 23:19:54 | INFO | kit (26556): 11.7 GiB
2024-11-26 23:30:04 | INFO | kit (26556): 11.8 GiB
2024-11-26 23:40:14 | INFO | kit (26556): 11.9 GiB
2024-11-26 23:50:23 | INFO | kit (26556): 11.9 GiB
2024-11-27 00:00:33 | INFO | kit (26556): 12 GiB
2024-11-27 00:10:43 | INFO | kit (26556): 12.1 GiB
2024-11-27 00:20:52 | INFO | kit (26556): 13.1 GiB
2024-11-27 00:31:02 | INFO | kit (26556): 15.4 GiB
2024-11-27 00:41:12 | INFO | kit (26556): 17.6 GiB
2024-11-27 00:51:22 | INFO | kit (26556): 19.9 GiB
2024-11-27 01:01:31 | INFO | kit (26556): 22.6 GiB
2024-11-27 01:11:41 | INFO | kit (26556): 24.8 GiB
2024-11-27 01:21:51 | INFO | kit (26556): 27 GiB
2024-11-27 01:32:01 | INFO | kit (26556): 29.4 GiB
2024-11-27 01:42:10 | INFO | kit (26556): 31.6 GiB
2024-11-27 01:52:20 | INFO | kit (26556): 33.8 GiB
2024-11-27 02:02:30 | INFO | kit (26556): 36.1 GiB
2024-11-27 02:12:39 | INFO | kit (26556): 38.3 GiB
2024-11-27 02:22:49 | INFO | kit (26556): 40.5 GiB
2024-11-27 02:32:59 | INFO | kit (26556): 43.7 GiB
2024-11-27 02:43:09 | INFO | kit (26556): 45.9 GiB
2024-11-27 02:53:18 | INFO | kit (26556): 48.4 GiB
2024-11-27 03:03:28 | INFO | kit (26556): 50.4 GiB
2024-11-27 03:13:38 | INFO | kit (26556): 52.3 GiB

As you can see, after 13 hours of rendering, Kit has single-handedly filled the RAM, at which point Windows probably started killing random processes. This is not ideal, we’d very much like the ability to render overnight.

System specs:
Windows 10 Enterprise
i9-14900K
RTX 4090
64GB RAM

We’ve encountered the issue with the USD Composer app template with Kit 106.4 but as far as we can tell, it also happened with versions as far back as 106.2, so not a new bug with the latest releases.

Kind regards

Hey @axel.cocat

I appreciate the feedback! Ill make sure devs are aware of this

Thanks for letting us know. This looks like a memory leak with either the Movie Capture extension itself, or USD Composer. We will investigate.

I have filed a JIRA dev ticket to investigate. Could you provide us with the USD scene and some console logs on a second run to demonstrate the leak?