Subclassed ARView crashes in init()

I am subclassing ARView. I'm seeing the following crash on Firebase during initialization. Unfortunately I can't reproduce it locally so I don't really know what is going on. All the devices are running iOS 15. Most of the devices have < 60 MB available RAM but not all, a few have more. It doesn't smell like a memory issue, but I mention it here... has anyone seen this?

It crashes in this thread:

Crashed: com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000arrow_right
0
CoreRE
re::CompoundShape::~CompoundShape() + 168
1
CoreRE
re::CompoundShape::~CompoundShape() + 148
2
CoreRE
re::CollisionShapeAssetLoader::unloadAsset(void*) + 176
3
CoreRE
re::internal::AssetBackgroundLoader::unloadAsset(re::internal::AssetLoadItem&) + 168
4
CoreRE
re::internal::AssetBackgroundLoader::runIfNeeded(re::internal::AssetLoadItem&) + 88

after starting on the main three:

com.apple.main-thread0
ARKitCore
+[ARSession setRenderType:] + 1022
2RealityKit
ARView.init(frame:cameraMode:automaticallyConfigureSession:) + 740

Hi, could you send us a sample project that reproduces this issue through Feedback Assistant? Please post the feedback ID here for the record, and I can send the bug to the RealityKit team. This sounds like a known bug.

Hi, I can't reproduce it myself, I'm just seeing the crashes in Firebase. Is there a workaround that I might employ? This will cause me to pull back a feature from production. Is there any documentation of the bug? Thanks!

Subclassed ARView crashes in init()
 
 
Q