Hi all,
We're seeing an intermittent issue in a native SwiftUI + RealityKit app on Vision Pro (visionOS 27.0.1, still there on 27.2).
When we open a mixed ImmersiveSpace, roughly 1 in 10–30 opens, everything ends up offset from where it should be. Sometimes it's 50 cm, sometimes several meters, sometimes it's rotated. Holding the Digital Crown to recenter fixes it immediately.
We are attaching things to the camera, like we have a window following the user and that is offset in these rare cases which makes the app not usable.
In the device logs, a good open looks like this:
backboardd (recenter) Setting new world origin with anchor ...
backboardd ARWorldTrackingProcessor: Added world anchor ... successfully (x4)
backboardd (recenter) Finished (error: (null)) setting set new world origin ...
A bad open looks like this:
backboardd (recenter) Setting new world origin with anchor ...
arkitd SLAMAnchorUpdate: Failed to add anchor request ... NSPOSIXErrorDomain Code=4
backboardd ARWorldTrackingProcessor: Failed to add world anchor ... com.apple.arkit Code=200 "Adding an object failed." (x4)
backboardd (recenter) timeout exceeded. Forcing fade in.
Like whenever the bad state occurs it is because adding a world anchor seems to fail. I haven't tested with visionOS26 but the same app didnt run into that problem ever. So the system seems to fail adding its own origin anchors, gives up after 2 seconds and shows the space anyway.
Has anyone else run into this? And is there any way to detect it from the app or trigger a recenter in code?
Thanks!