ZI broken on latest OS/Unity SDK

Give us as much detail as possible regarding the issue you're experiencing.

Unity Editor version: 2022.2.0b8
ML2 OS version: B3E.220818.12-R.085
MLSDK version: v0.53.3

Error messages from logs (syntax-highlighting is supported via Markdown):

Here's what i'm doing/seeing:

  1. Set the app-sim-target window to "device"
  2. Press the play/connect button in that same window, wait for the ZI app to launch on the device, and for the unity pop-up to finish. (At this point I get a message in the headset that it is connected and to play my unity scene)
  3. Press play in Unity
  4. ZI app on the headset crashes and dumps me back to the main menu

This was tested using the unity example project included in v0.53.3. The only thing I did was to import the ZI tar in the package manager (I confirmed that I did import the one from 0.53.3 and not 0.53.2)

I tried running logcat via ADB to see what errors were showing up on the headset, but since ZI uses it's own ADB server and caused a conflict, that didn't work.

1 Like

@rmuk can you Save Diagnostic Logs and attach them here?

Ok, I had been testing using the Unity "app sim target" window, not the one in the hub. I don't see that diagnostic log option within Unity.

I just tried to launch app sim from the hub, and that also launch the device agent and then crashes shortly after (several seconds). I have attached that log.
MLHubLogs-20220914-110536-win.zip (368.6 KB)

edit:
Just saw this in the logs:
09-14 11:04:20.112 10100 6566 6589 E com.magicleap.zi_agent: leapcore/frameworks/perception/lumin/src/head_tracking.cpp(177) operator()():
09-14 11:04:20.112 10100 6566 6589 E com.magicleap.zi_agent: ERR: exception: Handle not registered
09-14 11:04:20.122 10100 6566 6589 E com.magicleap.zi_agent: leapcore/frameworks/perception/lumin/src/head_tracking.cpp(177) operator()():
09-14 11:04:20.122 10100 6566 6589 E com.magicleap.zi_agent: ERR: [stack trace begin]

......

09-14 11:04:20.128 10100 6566 6589 E com.magicleap.zi_agent: leapcore/frameworks/perception/lumin/src/controller.cpp(98) operator()():
09-14 11:04:20.128 10100 6566 6589 E com.magicleap.zi_agent: ERR: exception: Perception system not started
09-14 11:04:20.133 10100 6566 6589 E com.magicleap.zi_agent: leapcore/frameworks/perception/lumin/src/controller.cpp(98) operator()():
09-14 11:04:20.133 10100 6566 6589 E com.magicleap.zi_agent: ERR: [stack trace begin]

One note, the values (position/orientation/etc) in the simulator window for head-pose, controller, etc. all were updating for a few seconds before it crashed. So it was able to connect somewhat briefly. Also, i'm using the USB-C cable that shipped with the device, connected directly to a USB-C port on my machine. Additionally, the computer is hard-wired and the headset is connected to a very strong wifi-6 access point with very little congestion.

1 Like

Is this on Mac(version?) or Windows(version)?

This is occurring with the Magic Leap Hub and App Simulator, right?

Does this happen in simulator mode as well?

1 Like

Windows. And it happens in the hub as well as if I start ZI from within unity

1 Like

Is your app using wifi? If not can you disable that? I'd like to make sure it's forcing the connection via USB-C.

1 Like

My app? I'm not running any apps. The crashes in unity were happening with the example project from the SDK download, and the one from the hub was happening with no apps running.

2 Likes

@rmuk do you get the same results when using Unity 2022.2.0b7?

1 Like

I am unable to test that at the moment, however it happens even without unity involved at all. If i simply open ZI in the hub and connect to the headset, the headset app crashes after a few moments (that's the log I posted above). At the moment, the headset is on a fresh install of the latest OS with no extra apps installed.

1 Like