USD Composer keeps crashing with extension

Hi,

I’ve got an extension running that requires functions to run one after the other, but most operations in OV run in async functions as far as I have understood.

To countermeasure, I’ve included several “asyncio.ensure_future(omni.kit.app.get_app().next_update_async())” lines after each important step, but as I added these, it’s causing the program to crash.

Is there any particular reason for this, or any suggestion to keep Omniverse running while my app continues running? I’ve also checked the log files and there are no errors or warnings that could contribute to the shutdown of the operation, and there is ~7GB of free GPU memory and ~16GB of free RAM.

I’m running USD Composer 2023.1.1 and my GPU is an RTX 3060.

Thanks in advance for your help!