# ZI's PC simulator is unstable

**URL:** https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624
**Category:** Unity Development
**Created:** [August 19, 2022, 5:58pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624 "2022-08-19T17:58:11Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 19, 2022, 5:58pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/1 "2022-08-19T17:58:11Z")

</div>

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

**Unity Editor version** : 2022.2.0b4  
**ML2 OS version** :-  
**MLSDK version** :0.53.2  
**PC** :Windows 10 PC

**PC simulation of ZI is running unstable.**

After starting ZI, playback was performed in Unity Editor.  
The following error occurs.

```auto
ZIF] ZI runtime not found
UnityEngine.Debug:LogErrorFormat (string,object[])
MagicLeap.ZI.EnvironmentPathProvider:Update (string,bool) (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/ZIBridge/ServiceProviders/EnvironmentPathProvider.cs:58)
MagicLeap.ZI.LuminSdkPathProvider:Update (string,bool) (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/ZIBridge/ServiceProviders/LuminSdkPathProvider.cs:76)
MagicLeap.ZI.ZIBridge:UpdateSDKPaths (bool) (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/ZIBridge/ZIBridgeEnvironmentManagement.cs:61)
MagicLeap.ZI.ZIBridge:OnEditorApplicationUpdate () (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/ZIBridge/ZIBridge.cs:65)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

```

The Unity Editor's pause button is pressed.  
Press the Pause button on the Unity Editor again.  
When the Game tab of the Unity Editor is selected and displayed, the 3D model displayed in the Game tab is also displayed on the ZI screen. (The 3D model is also rotated on the ZI screen.)  
[https://twitter.com/tokufxug/status/1558786264991932416](https://twitter.com/tokufxug/status/1558786264991932416)

When anything other than the Game tab of the Unity Editor is selected, the 3D model on the ZI screen is displayed. (The 3D model rotation process is stopped on the ZI screen.)  
When a window other than the Unity Editor is selected, such as the ZI window, or when the mouse is clicked on the desktop, the 3D model will not appear on the ZI screen. (The 3D model suddenly disappears.)  
When the Game tab of the Unity Editor is selected and displayed again, the 3D model displayed in the Game tab is also displayed on the ZI screen. (The 3D model is also rotated on the ZI screen.)  
Since this is a Win PC, OpenGL Core is used.

---

<div class="post-metadata">

### Author: ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)
#### Post date: [August 19, 2022, 6:30pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/2 "2022-08-19T18:30:16Z")

</div>

@tokufxug Welcome to the Forums!

From your error message, it looks like you may be missing a package from The Lab. Can you verify you've installed the package shown in the screenshot below (highlighted and expanded)?

 ![Screen Shot 2022-08-19 at 11.29.06 AM](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/b95665a8fee92e3317f29f2c780d2c7aee3ce6c9.jpeg)

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 22, 2022, 1:48pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/3 "2022-08-22T13:48:54Z")

</div>

Hello @sengelman  
I opened The Lab 2.0 in Package Manager and checked.  
Zero Iteration (ZI) Runtime was already installed.

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

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 22, 2022, 2:07pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/4 "2022-08-22T14:07:30Z")

</div>

@sengelman  
The following warning message appears and the file path string is garbled.  
[Make sure Zero Iteration is installed in The Lab 2.0.

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

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 22, 2022, 2:23pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/5 "2022-08-22T14:23:53Z")

</div>

@sengelman Here is a video preview using Unity and ZI.

[![](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/91cfd8af11cef18cdede6ff89f59688e86408ff4.jpeg "ML2 ZI’s PC simulator is unstable.") ](https://www.youtube.com/watch?v=rue9W9dEWYc)

---

<div class="post-metadata">

### Author: ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)
#### Post date: [August 22, 2022, 8:51pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/6 "2022-08-22T20:51:01Z")

</div>

Thank you for the report, Tokuyama-san. I have informed our Zero Iteration team and I will await their response.

---

<div class="post-metadata">

### Author: ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)
#### Post date: [August 22, 2022, 8:56pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/7 "2022-08-22T20:56:48Z")

</div>

@tokufxug , can you open The Lab 2.0, and Save Diagnostic Logs, then send us the .zip file that gets created?

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 23, 2022, 12:20pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/8 "2022-08-23T12:20:57Z")

</div>

@sengelman I have sent a bug report with Diagnostic Logs attached.  
I just found out that you can attach zip files to this forum as well. 😅  
[TheLabLogs-20220823-205016-win.zip](https://forum.magicleap.cloud/uploads/short-url/ttW0X7E0fiEzdC3I19YUFp4zpec.zip) (247.5 KB)

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

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 25, 2022, 11:56am UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/9 "2022-08-25T11:56:19Z")

</div>

@sengelman Right now I do not have ML2 at hand; the Japanese release of ML2 is scheduled for the end of this year at the earliest. (I personally think it will be beyond 2023, based on the current supply of ML2.) If ZI does not work, the verification and development of ML2 will come to a complete halt.  
I would like to know the timeline for the completion of the investigation here.

---

<div class="post-metadata">

### Author: ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)
#### Post date: [August 25, 2022, 3:01pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/10 "2022-08-25T15:01:37Z")

</div>

@tokufxug:

I was advised to provide you with the following possible steps:

1. Use ZIFUnity directly instead of The Lab, or
2. Uninstall ZIFUnity from Unity.

Can you tell me if either of these things resolve your issue using ZI?

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 25, 2022, 3:17pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/11 "2022-08-25T15:17:13Z")

</div>

@sengelman  
At first I used ZIFUnity as written below and got the following error: ZIFUnity will not start.  
[https://developer.magicleap.cloud/learn/docs/guides/developer-tools/zero-iteration/zi-unity-zif](https://developer.magicleap.cloud/learn/docs/guides/developer-tools/zero-iteration/zi-unity-zif)

```auto
Failed to start the ZI server: the requested object does not exist
UnityEngine.Debug:LogError (object)
MagicLeap.ZI.AsyncTask`1<bool>:ProcessEvent (MagicLeap.ZI.AsyncEvent) (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/Async/AsyncTask.cs:141)
MagicLeap.ZI.AsyncTask`1<bool>:ProcessEvents () (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/Async/AsyncTask.cs:154)
MagicLeap.ZI.AsyncTask`1/<>c __DisplayClass4_0/<<Start>g__ ProcessSessionStart|0>d<bool>:MoveNext () (at Library/PackageCache/com.magicleap.zifunity@e8996832c6eb/ZIFUnity/Async/AsyncTask.cs:52)
Unity.EditorCoroutines.Editor.EditorCoroutine/YieldProcessor:MoveNext (System.Collections.IEnumerator) (at Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:80)
Unity.EditorCoroutines.Editor.EditorCoroutine:ProcessIEnumeratorRecursive (System.Collections.IEnumerator) (at Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:134)
Unity.EditorCoroutines.Editor.EditorCoroutine:MoveNext () (at Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:115)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

```

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 25, 2022, 3:44pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/12 "2022-08-25T15:44:39Z")

</div>

@sengelman  
I uninstalled ZIFUnity and ran it with The Lab 2.0 ZI and it worked without error.  
Incidentally, when the Game tab of Unity is selected, the rotational motion of the 3D model on the ZI side is smooth.  
When the Game tab is not selected, the rotational motion of the 3D model almost stops.

[![](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/20c8cf0d1bb6fa2a170f499eec1fb8503e581bc3.jpeg "Magic Leap 2 The Lab 2.0 ZI") ](https://www.youtube.com/watch?v=lSKuSlfJ8AI)

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 25, 2022, 3:47pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/13 "2022-08-25T15:47:47Z")

</div>

@sengelman For the time being, I will verify the operation with The Lab 2.0's ZI.  
However, since ZIFUnity does not currently work, I personally have no problem lowering the priority, but would like to know the cause of the non-working.  
Is it a bug in the ZIFUnity situation? Is it due to my misconfiguration?

---

<div class="post-metadata">

### Author: ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)
#### Post date: [August 25, 2022, 4:26pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/14 "2022-08-25T16:26:59Z")

</div>

@tokufxug , can you make sure these options are selected?

We believe it will improve the ZIF performance.

 ![Screen Shot 2022-08-25 at 11.24.08 AM](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/a9b6b01abd021e2d0052993688377303ce29e007.png)

---

<div class="post-metadata">

### Author: ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)
#### Post date: [August 26, 2022, 12:10pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/15 "2022-08-26T12:10:47Z")

</div>

It was already set up. It seems to depend on the performance of the Win PC I am using, so no problem.

 ![WS000005](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/9f6d888cdc9100af44c393e3c98f99cdee427222.jpeg)

---

<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: [April 17, 2024, 9:06pm UTC](https://forum.magicleap.cloud/t/zis-pc-simulator-is-unstable/624/16 "2024-04-17T21:06:25Z")

</div>


