ObjectCaptureSession Crashes When Storage Space Is Insufficient

I’m currently using the RealityKit/ObjectCaptureSession API to develop my app, and I’ve noticed that Apple’s official Reality Composer app also uses the same API. However, both my app and the Reality Composer app crash if the device doesn’t have enough storage space (approximately 4 GB free). Here is the debug log I’m seeing:

Insufficient storage: required 4000000000 Switch to error state. Got error = insufficientStorage(requiredBytes: 4000000000) fromState == toState so punting transition! from=disabled toState=disabled Punting transition since states match: disabled Got error starting session! insufficientStorage(requiredBytes: 4000000000)

I would like to request:

  1. A fix for the crash in the official Reality Composer app.
  2. Guidance on how to properly handle this crash or error when using the ObjectCaptureSession API in my own app.

Thank you!

Answered by DTS Engineer in 820277022

Hello @thomashu,

A fix for the crash in the official Reality Composer app.

Please file a bug report using Feedback Assistant.

Guidance on how to properly handle this crash or error when using the ObjectCaptureSession API in my own app.

When you receive this error, it is up to you to decide how you want your app to respond. For example, you might decide to present the user with an alert indicating that there is not enough space to run the session.

-- Greg

Hello @thomashu,

A fix for the crash in the official Reality Composer app.

Please file a bug report using Feedback Assistant.

Guidance on how to properly handle this crash or error when using the ObjectCaptureSession API in my own app.

When you receive this error, it is up to you to decide how you want your app to respond. For example, you might decide to present the user with an alert indicating that there is not enough space to run the session.

-- Greg

ObjectCaptureSession Crashes When Storage Space Is Insufficient
 
 
Q