RealityKit plugin RAQLThumbnailExtension huge memory usage

On my MacBook I see a process called RAQLThumbnailExtension that is using 7GB RAM (!) It is part of RealityKit:

Code Block
/System/Library/Frameworks/RealityKit.framework/PlugIns/RAQLThumbnailExtension.appex/Contents/MacOS/RAQLThumbnailExtension

Doing a sample shows a stack trace with the following interesting line:
Code Block
specialized static AssetLoader.importUSDZFile(info:completion:) (in RAQLThumbnailExtension)

and within that call there are calls to:

Code Block
re::AssetManager::createAssetEntryForNamedAsset
re::MeshAssetLoader::createRuntimeData
re::createMeshCollectionFromMeshAsset
re::mtl::Device::makeBuffer

(full stack is very deep so I won't share it all here.)

The Open Files view in Activity Monitor shows that this process has opened up a USDZ file that I downloaded some time ago. If I kill the process, it starts up again, reloads the file and goes back to using 7GB RAM on my machine.

My guess is that this process is trying to be helpful and render thumbnails of any USD files on the machine, but in this case it is getting bogged down and unable to complete the render for this file. It is a large USD file of a very large 3d scene, so I'm guessing it just can't handle it and is stuck.

I am curious if there is a way to turn off thumbnail generation of USD files. This seems like something I can live without, especially if I can get 7GB of RAM back in return.

Also in general it doesn't seem like autogeneration of thumbnails of USD scenes is a great idea given how large and complex they can be.

I am having exactly the same issues. My scene isn't particularly complex but it is large in scale.

Are you still seeing this issue on macOS Monterey? If so, could you file this issue on Feedback Assistant?

RealityKit plugin RAQLThumbnailExtension huge memory usage
 
 
Q