Repository navigation
Description
Description
Each ui.Workspace.restore_workspace() that includes the Viewport window rebuilds the viewport, and about 150 MiB of VRAM is never freed afterwards. It also happens when the restored layout is identical to the current one. Showing, hiding or resizing other windows does not leak.
We switch layouts from an extension, so this adds up: after a day the app sat at 31 of 32 GB and RTX started failing with ERROR_OUT_OF_DEVICE_MEMORY. Only a restart gets the memory back.
The log shows destroyViewport before every createViewport, so the old viewport does get destroyed.
Repro in the Script Editor, empty stage, default layout:
import asyncio, os, subprocess
import omni.kit.app
import omni.ui as ui
def vram_mib():
out = subprocess.run(
["nvidia-smi", "--query-compute-apps=pid,used_memory", "--format=csv,noheader,nounits"],
capture_output=True, text=True).stdout
for line in out.splitlines():
pid, used = line.split(", ")
if pid == str(os.getpid()):
return int(used)
async def run(repeats=20):
app = omni.kit.app.get_app()
layout = ui.Workspace.dump_workspace()
start = vram_mib()
for i in range(repeats):
ui.Workspace.restore_workspace(layout, False)
for _ in range(30):
await app.next_update_async()
print(i + 1, vram_mib() - start, "MiB")
await asyncio.sleep(10)
print("after 10 s:", vram_mib() - start, "MiB")
asyncio.ensure_future(run())On our scene VRAM goes up by roughly 150 MiB per restore and stays there after the 10 s wait. We expected it to return to where it started.
Isaac Sim version
6.1.0-rc.26+release.49347.2d230af4.gl (Kit 110.3.0+feature.371399.00c488ae.gl)
Operating System (OS)
Ubuntu 24.04.5 LTS
GPU Name
RTX 5090
GPU Driver and CUDA versions
Driver 580.173.02, CUDA 13.0
Logs
[omni.rtx] Insufficient VRAM, skipping TextureLoader post-processing
[omni.rtx] Out of GPU memory allocating resource 'MemoryManager chunk' [size: unknown]
[omni.rtx] VkResult: ERROR_OUT_OF_DEVICE_MEMORY
[omni.rtx] vkAllocateMemory failed for flags: N.
[omni.usd.multitick.render] multiTickRateRender() returned nullAdditional information
This build already has the Kit 110.3 fixes for OMPE-97839 (VRAM growing while resizing the viewport with Fill Viewport on) and OMPE-57854 (descriptor pool leak when recreating scene widgets), so it looks like a different path. Is there a way to release the old viewport's resources without restarting? For now we avoid restore_workspace after startup and only toggle window visibility.
Activity
PeterL-NV commentedon Nov 17, 2026
Hi, thanks for reporting the issue! Seems it's fixed in the upcoming release which will be based on Kit 110.4. I tested with an internal build,
restore_workspace, visibility toggles and creating/destroying viewport windows each raise VRAM once, by under 1 GiB, and then it stays flat over 150 repetitions. So the per-restore growth no longer occurs there. Please re-verify after the release is public.PeterL-NV commentedon Dec 2, 2026
I am closing the issue for now. Feel free to reopen if you still experience it with the upcoming release.