# Empty Game window during app simulation

**URL:** <https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083>\
**Category:** App Simulator\
**Created:** [October 13, 2022, 2:56pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083 "2022-10-13T14:56:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatteoFifth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/matteofifth/32/2158_2.png) [@MatteoFifth](https://forum.magicleap.cloud/u/MatteoFifth)\
**Post date:** [October 13, 2022, 2:56pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/1 "2022-10-13T14:56:02Z")

</div>

**Unity Editor version** : 2022.2.0b8  
**MLSDK version** : 1.0.0  
**Magic Leap Application Simulator (ZI) Runtime version**: v3.3.0.20220921  
**Magic Leap App Simulator for Unity** (if applicable): 1.0.0  
**Host OS** : Windows

Hi, I'm trying to set up a test project. I'm having trouble with the app simulation setup. I'm trying to use the Magic Leap App Simulator for Unity plugin to emulate the device. If I try to launch an app sim session through the dedicated window I get an error that says to set the OpenGL Core graphic API.

 ![OpenGLRequirement](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/014b5e9c9162a6ac2f31f1268d760ba4774f6943.png)

After the fix, I'm able to run an app sim simulation and the input given through the controller window, the app sim head pose window, and the game window is responsive. However, everything in the game window disappears when I hit the play button. I can correctly see the scene content through the scene window and the little camera preview. Moreover, the input is responsive, but I can't see anything in the game window. I think the problem is related to the GLSL error, but I cannot find a fix.

 ![Scene](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/fcf7fd6d40e05294bf9d4679e39227ac89e840da.png)

 ![Error](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/b9879e7ba24b5b665972975ba279c99a8d6af28c.png)

---

<div class="post-metadata">

**Author:** ![kvlasova](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kvlasova](https://forum.magicleap.cloud/u/kvlasova)\
**Post date:** [October 19, 2022, 5:48pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/3 "2022-10-19T17:48:35Z")

</div>

Hi @MatteoFifth ,

Can you try the following steps and let me know if you still receive the error?

1. Close your project
2. Head into your Unity project folder and delete the **Library** folder. Then restart the project in the Unity editor (This will prompt the Library folder to be rebuilt).
3. Make sure you've completed all the proper [project configuration steps](https://developer-docs.magicleap.cloud/docs/guides/unity/getting-started/configure-unity-settings)
4. If this error persists, please attach the App Simulator logs which you can find by going to **Magic Leap \> Save Diagnostics Logs** in the upper Unity Editor menu.

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [October 25, 2022, 3:11pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/4 "2022-10-25T15:11:25Z")

</div>

Hi @MatteoFifth, any luck with the steps above? Thanks.

---

<div class="post-metadata">

**Author:** ![MatteoFifth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/matteofifth/32/2158_2.png) [@MatteoFifth](https://forum.magicleap.cloud/u/MatteoFifth)\
**Post date:** [October 26, 2022, 12:37pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/5 "2022-10-26T12:37:05Z")

</div>

Hi @kdowney,  
Unfortunately, the GLSL compilation errors are still present. I tried to export the Diagnostic file, but I got this error in console.

 ![LogError](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/974a596556efb13352aabc626ea979ff7a9da971.png)

---

<div class="post-metadata">

**Author:** ![mns](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@mns](https://forum.magicleap.cloud/u/mns)\
**Post date:** [December 8, 2022, 3:07pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/6 "2022-12-08T15:07:41Z")

</div>

@MatteoFifth  
Hi, I faced the same issue probably.  
Have you already solved this? If yes, could you please teach me how to solve it?  
Or can you provide some tips as far as you remember?  
I really appreciate any help you can provide.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/7f3eaea042aec428e0949a9eec363461b84facf7.png)

---

<div class="post-metadata">

**Author:** ![mns](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@mns](https://forum.magicleap.cloud/u/mns)\
**Post date:** [December 8, 2022, 3:07pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/7 "2022-12-08T15:07:46Z")

</div>

@kdowney @kvlasova

> [@kvlasova](#):
>
> If this error persists, please attach the App Simulator logs which you can find by going to **Magic Leap \> Save Diagnostics Logs** in the upper Unity Editor menu.

I followed the instruction but still had the same error.  
I succeeded in getting the Logs file by doing **Magic Leap \> Save Diagnostics Logs**. But its size is over 30 MB then, so I can not attach it to this thread.  
Which file is actually needed for your investigation? Thanks in advance.

![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/d741450f4a6cb72fd84ef5c700e877519b469838.png)

---

<div class="post-metadata">

**Author:** ![MatteoFifth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/matteofifth/32/2158_2.png) [@MatteoFifth](https://forum.magicleap.cloud/u/MatteoFifth)\
**Post date:** [December 9, 2022, 4:03pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/8 "2022-12-09T16:03:27Z")

</div>

@mns  
Unfortunately, I wasn't able to fix these errors and use ML sum services. In my company, we integrate MRTK into our projects, so to test the applications now, I use the simulation services offered by Microsoft in the mixed reality toolkit. The counter to this approach is that you cannot test features that are specific to ML2, like the controller.

---

<div class="post-metadata">

**Author:** ![mns](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@mns](https://forum.magicleap.cloud/u/mns)\
**Post date:** [December 11, 2022, 4:10pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/9 "2022-12-11T16:10:29Z")

</div>

@MatteoFifth  
Thank you very much for your quick answer.  
It is so sad not to be able to fix it.  
But using the simulation service in MRTK sounds suitable for my case too. I'll do that. Thanks again.

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [December 12, 2022, 7:11pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/10 "2022-12-12T19:11:50Z")

</div>

Hi @MatteoFifth, thank you for your patience. We previously had a bug preventing the successful export of the error log. If you are able to update to our latest builds in Magic Leap Hub, and still have the issue, you should be able to export the log now without a problem. We'll take a look as a priority.

---

<div class="post-metadata">

**Author:** ![MatteoFifth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/matteofifth/32/2158_2.png) [@MatteoFifth](https://forum.magicleap.cloud/u/MatteoFifth)\
**Post date:** [December 13, 2022, 9:32am UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/11 "2022-12-13T09:32:48Z")

</div>

@kdowney Hi, I updated the unity SDK and ML app sim. Now if I try to enter play mode the behaviour is the same as described in the main question of this post, but after the GLSL errors, I get a loop of new errors. This is a screenshot of the unity console.

 ![Screenshot 2022-12-13 103042](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/fad4f12eed3b138509330497ec0584808e1040ee.png)

By the way, now I'm able to extract the logs and I'm providing them to you hoping to find a solution.  
Thanks a lot for the help.

[MLHubLogs-20221213101840.zip](https://forum.magicleap.cloud/uploads/short-url/hMy8AZm1TWCzI8nVMltF0DO3fpB.zip) (2.5 MB)

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [December 13, 2022, 2:49pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/12 "2022-12-13T14:49:21Z")

</div>

Thank you for your logs @MatteoFifth. The likely cause of this is the shaders require DirectX or Vulkan and need to be adapted for OpenGL. Please let me know if this unblocks you.

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [December 21, 2022, 4:18pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/13 "2022-12-21T16:18:46Z")

</div>

Hi all, if your Unity Editor's Game view goes blank after starting the App Simulator, please try the following:

- Open your project's **Player Setting**
  - Open the **Standalone tab** _(ie looks like a monitor and says Setting for Windows, Mac, Linux)_
  - Expand **Other Settings** and under Rendering
    - uncheck – Auto Graphics API for Windows
    - uncheck – Auto Graphics API for Mac
    - Then in Graphics APIs for Windows
      - Add **OpenGLCore**
      - Delete Direct3D11 – It should restart.

    - Then in Graphics APIs for Mac
      - Add **Metal**

  - Finally, seleect **Resolution and Presentation \> Resolution \> "Run In Background."**

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [December 21, 2022, 4:20pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/14 "2022-12-21T16:20:26Z")

</div>

Regarding the Hand Input device error, Can you verify that you have the Hand Tracking permission enabled ( Project Settings , then in the left hand menu MagicLeap\>Permissions)

---

<div class="post-metadata">

**Author:** ![javier](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@javier](https://forum.magicleap.cloud/u/javier)\
**Post date:** [May 11, 2023, 10:21pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/15 "2023-05-11T22:21:51Z")

</div>

I also have this problem, black screen on the unity editor and the glasses don't show anything. I tried everything suggested here but no luck. It even happens when it's simulator only.

It works correctly if I try it on the unity samples app

I'm attaching the logs, I took a look myself and notice that this message gets spammed

142136.751 Unity.exe:42104~57e8 E [ProtoUtils\_graphics.cpp:90] Incoming version 0 is not supported  
142136.752 Unity.exe:42104~57e8 'ml::SdkShim::CheckStructVersion' E [VersionCheck.inl:91] invalid MLGraphicsFrameParamsEx version 0, supported range is [2 ... 5]

[MLHubLogs-20230511-151413-win.zip](https://forum.magicleap.cloud/uploads/short-url/vpVVqWxHRE7qnfXO4xnjqs7fioe.zip) (2.9 MB)

---

<div class="post-metadata">

**Author:** ![kvlasova](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kvlasova](https://forum.magicleap.cloud/u/kvlasova)\
**Post date:** [May 11, 2023, 11:27pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/17 "2023-05-11T23:27:59Z")

</div>

Can you let us know the OS, Unity Editor and Unity SDK you are using?

---

<div class="post-metadata">

**Author:** ![javier](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@javier](https://forum.magicleap.cloud/u/javier)\
**Post date:** [May 12, 2023, 4:01pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/18 "2023-05-12T16:01:52Z")

</div>

The unity package is 1.6, ml sdk is 1.2 and so is the OS. Unity version 2022.2.19

I can also tell you that the screen is black the first run, the second run unity just crashes, i tried on two different computers and it's the same problem. Also, sometimes it throws some math errors like  
Assertion failed on expression: 'fRoot \>= Vector3f::epsilon'  
UnityEngine.Quaternion:LookRotation (UnityEngine.Vector3)

---

<div class="post-metadata">

**Author:** ![kvlasova](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kvlasova](https://forum.magicleap.cloud/u/kvlasova)\
**Post date:** [May 16, 2023, 1:46pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/19 "2023-05-16T13:46:57Z")

</div>

@javier can you confirm that this happens in App Sim inside ML Hub and could you try running the [Application Simulator for Unity](https://developer-docs.magicleap.cloud/docs/guides/unity/app-simulator/app-sim-unity-zif) package inside Unity and see if this error persists with that package as well?

Alternatively we recommend re-installing the Application Simulator package in ML Hub to see if the issue persists.

---

<div class="post-metadata">

**Author:** ![javier](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@javier](https://forum.magicleap.cloud/u/javier)\
**Post date:** [May 16, 2023, 2:34pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/20 "2023-05-16T14:34:06Z")

</div>

@kvlasova Yes actually I tried the app sim for Unity and the same problem occurred.

But like I said before, it all works on the Unity samples app

---

<div class="post-metadata">

**Author:** ![kvlasova](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kvlasova](https://forum.magicleap.cloud/u/kvlasova)\
**Post date:** [May 23, 2023, 3:33pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/21 "2023-05-23T15:33:32Z")

</div>

Javier, can you please update your ML Hub and App Sim packages to the latest version (both the runtime package inside ML Hub and the App Sim for Unity package) and try it again? It looks like the errors are coming from package versions being mismatched.

---

<div class="post-metadata">

**Author:** ![javier](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@javier](https://forum.magicleap.cloud/u/javier)\
**Post date:** [May 23, 2023, 5:56pm UTC](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083/22 "2023-05-23T17:56:22Z")

</div>

The app sim runtime version seems to be the latest, it's 3.5.0.20230410, I don't use the Unity app sim, I tried it once and since it didn't work so i removed it.

The ML hub is updated too, version 2.0.10.202305081358

I'd imagine is some kind of misconfiguration on my project, like I was saying before, it all works perfectly fine when I run the Unity samples that ML provides.

[Next page](https://forum.magicleap.cloud/t/empty-game-window-during-app-simulation/1083.md?page=2)
