Unable to render unity scene on headset using App Simulator

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

Unity Editor version:2022.3.12f1
ML2 OS version:1.7.0
Unity SDK version:1.12.1
Host OS: Windows

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

Hello,
I'm having trouble rendering the unity scene onto my ML2 headset while using App Simulator on the MLHub. If I open up scene view and enable gizmos, I'm able to observe the camera frustum and controller position+ray moving around as I move my head and the controller, but no elements from the scene appear on the headset.

When I build and run the unity app onto my ML2 headset, the scene works as normal. I would, however, prefer to use App Simulator for faster iteration.

Has anybody run into a similar problem before? Could it be a hardware related issue?

Thanks in advance.

Hi @shurh1029,

Welcome to the Magic Leap 2 Developer Forums. We are so grateful to have you here engaging with us.

Are you receiving any errors in the console upon running the app simulator? If you run the simulator without the device, does it function?

Best,

El

Hello El,

In isolation, everything appears to be working.
The virtual simulator appears to launch just fine with the 1.7.0 sdk, the magic leap 2 appears to connect to the PC via MLHub just fine and app simulator is able to launch.

The unity scene also appears to run just fine with no errors. I was testing it out with the simple scene tutorial with the single cube so there really shouldn't be any issues with the way the unity scene was set up.

The issue lies in the fact that everything seems to be working correctly yet the magic leap 2 is unable to render the unity scene or have the headset movement be reflected in the camera view (in the game view window in the unity editor). This would be my second time setting up a magic leap 2 workflow from the initial tutorial, but I never ran into this particular problem with the other magic leap 2.

Can you ensure that in Project Settings > XR Plug-in Management > Plug-in Providers OpenXR is Deselected?

The Application Simulator does not have support for OpenXR just yet.

Best,

El

Hello El,

Yes I've made sure that I'm not using OpenXR and I've been downgrading the magic leap SDK package to v1.12.1 every time the setup tool updates it.

I'm sorry that you are experiencing this. I will go ahead and create a bug ticket for this. What version of the ML Hub are you using?

I'm using MLHub v2.0.19.202405091603.

Are you using the App Simulator through the Magic Leap Hub or accessing it directly in the Unity Editor?

If you are using the App Simulator Unity package, do you mind capturing the logs after reproducing the issue? The Logs can be captured by selecting Magic Leap > Save Diagnostics Logs

If you are using the Simulator through the Magic Leap Hub, you can capture the logs by selecting the App Simulator titile, then Save Diagnostic Logs

Hi,
I'm using the app simulator through the magic leap hub. I never ran into any errors while using it aside from the ADB errors I get when closing the unity project and leaving the app simulator instance running. I've attached the diagnostic logs to this reply:
NoSceneRenderingOutputLog.zip (637.1 KB)

Update: I had someone else try out the same scene on a different computer and they had the exact same issue with the unity scene view accurately reflecting what is happening in the scene during runtime but the display in the ML2 stuck on the "App simulator is running. Launch a Unity scene..." window.

Do you mind trying the app simulator unity package? The package tends to work better and is more integrated .

I tried using the app simulator unity package and it seems to work the first time I run the scene upon starting Unity. If I try to stop and start the scene again, I run into the same issue I had with the MLHub based app simulator. One error message I am running into on subsequent scene runs is:

Do you mind clearing your Library package cache folder and making sure that the Magic Leap App Simulator is the only XR Devices selecting in the Project Settings > XR Plug-in Management , under the standalone tab?

I tried both of these but ran into the same issues.

Hello anyone can solve it?

Do you mind providing us the logs ?

Additionally, please note that the App Simulator is deprecated and is no longer supported. We strongly recommend using other methods such as Unity’s XRI simulator since we are no longer developing or updating the MLSDK App Simulator.