I’m working on a project where we would like to use BabylonJS native to run our WebXR application on iOS devices.
I have the current project running and able to start the playground application. But when I try to start the experience the application crashes. Not sure if this is a bug or something else I experience?
I’m testing on a iPhone Se running iOS 17.4.1. I am able to run WebXR in a app clip from Variant https://demos.launchar.app. Not sure how they solved it, or if they are using BabylonJS Native at all or create their own interface.
xr.baseExperience.enterXRAsync("immersive-ar", "unbounded", xr.renderTarget).then((xrSessionManager) => {
console.log("XR started");
});
I get XR started message but the screen starts to blink and I get following error:
BJS - [10:59:03]: session.enabledFeatures is not available on this device. It is possible that this feature is not supported.
XR started
interruptionHandler is called. -[FontServicesDaemonManager connection]_block_invoke
Thread Performance Checker: Thread running at User-interactive quality-of-service class waiting on a thread without a QoS class specified (base priority 31). Investigate ways to avoid priority inversions
PID: 1083, TID: 176361
Backtrace
=================================================================
3 AppleNeuralEngine 0x00000001deff0f34 7A5A59FE-13B5-31AB-B69D-6BB75B5B7CC8 + 28468
4 AppleNeuralEngine 0x00000001df00ea78 7A5A59FE-13B5-31AB-B69D-6BB75B5B7CC8 + 150136
5 Espresso 0x000000019f276d20 C576584B-5370-37C8-B9F2-4D02604F22E0 + 10960160
6 Espresso 0x000000019ed86108 _ZN8Espresso26net_compiler_segment_based9__forwardERKNSt3__110shared_ptrINS_14abstract_batchEEE + 1248
7 Espresso 0x000000019e8affd0 _ZN8Espresso3net9__forwardERKNSt3__110shared_ptrINS_14abstract_batchEEEii + 388
8 Espresso 0x000000019e8af14c C576584B-5370-37C8-B9F2-4D02604F22E0 + 704844
9 Espresso 0x000000019e8ad814 C576584B-5370-37C8-B9F2-4D02604F22E0 + 698388
10 Espresso 0x000000019e8ad5f0 espresso_plan_execute_sync + 132
11 SceneIntelligence 0x00000002099caf18 656443F8-FAF6-3ECA-B452-2108F9B50A2A + 36632
12 SceneIntelligence 0x00000002099d5784 656443F8-FAF6-3ECA-B452-2108F9B50A2A + 79748
13 ARKitCore 0x00000001bf51d7ac F0271512-8F53-3E91-8AE3-A6C6AD3CBF74 + 804780
14 ARKitCore 0x00000001bf5c75cc F0271512-8F53-3E91-8AE3-A6C6AD3CBF74 + 1500620
15 ARKitCore 0x00000001bf5c74bc F0271512-8F53-3E91-8AE3-A6C6AD3CBF74 + 1500348
16 libdispatch.dylib 0x0000000105054b98 _dispatch_call_block_and_release + 32
17 libdispatch.dylib 0x00000001050567bc _dispatch_client_callout + 20
18 libdispatch.dylib 0x000000010505e66c _dispatch_lane_serial_drain + 832
19 libdispatch.dylib 0x000000010505f43c _dispatch_lane_invoke + 460
20 libdispatch.dylib 0x0000000105060abc _dispatch_workloop_invoke + 2336
21 libdispatch.dylib 0x000000010506c404 _dispatch_root_queue_drain_deferred_wlh + 328
22 libdispatch.dylib 0x000000010506ba38 _dispatch_workloop_worker_thread + 444
23 libsystem_pthread.dylib 0x00000001eb5f8f20 _pthread_wqthread + 288
24 libsystem_pthread.dylib 0x00000001eb5f8fc0 start_wqthread + 8