Remote Render not working windrunner

Hello, I'm trying to use Remote Render function but it doesn't work.

I get an error message when I open the Remote Render feature of ML Hub.

Clicking the Restart button does not work and I get the following message:
"- 'service-start' command failed with -1073740791 and said: "

I have restarted my PC and MagicLeap2, but the problem persists.

Please tell me how to fix the error.

These are environment information.

Thanks.

Hi @ryosuke,

Welcome to the Magic Leap 2 Developer Forums. I'm contacting the team to see what we can uncover regarding this issue. Thank you for reaching out to us.

Best,

El

Hi @ryosuke,

Firstly, I wanted to thank you for bringing this issue to our attention. This is a known issue and we are currently working on it. Apologies for any inconvenience this may cause. As a workaround, you are able to run this command:

powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Magic Leap Remote Rendering\SetupRemoteViewerIP.ps1"

The hub will still not accurately indicate that things are working, but this is what the hub does to facilitate pairing. When looking at the device, you will see an indication that you are connected.

Let me know if this helps.

Best,

El

Hi El,

According to your information, I run that command and succeeded to connect device.
The attached image is the screenshot of ML2 with Remote Render running.

But still windrunner is not working and I can't start Remote Render service on PC.

Please let me know if there is any way to improve.
Thanks,

Ryosuke

Did you try to launch the app on the host anyway? You may not have a few features that the hub provides. For example, if you have multiple XR headsets, you may need to manually ensure that the default runtime is set correctly.

If you want to be sure if Windrunner is running, you can check the Window Task Manager and look for windrunner-service.

Best,

El

Hi, @etucker

Thank you for reply.

I launched Remote Viewer on my PC and still "Windrunner is not running properly. Please try restarting Windrunner service."

After that, I tried to restart windrunner but failed.

I did this command and it seems windrunner-service is working.
powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Magic Leap Remote Rendering\DebuggerScript.ps1"

Windows IP 構成


イーサネット アダプター イーサネット:

   メディアの状態. . . . . . . . . . . .: メディアは接続されていません
   接続固有の DNS サフィックス . . . . .:

Wireless LAN adapter ローカル エリア接続* 1:

   メディアの状態. . . . . . . . . . . .: メディアは接続されていません
   接続固有の DNS サフィックス . . . . .:

Wireless LAN adapter ローカル エリア接続* 2:

   接続固有の DNS サフィックス . . . . .:
   リンクローカル IPv6 アドレス. . . . .: fe80::ac01:4f65:b37d:16e0%14
   IPv4 アドレス . . . . . . . . . . . .: 192.168.137.1
   サブネット マスク . . . . . . . . . .: 255.255.255.0
   デフォルト ゲートウェイ . . . . . . .:

Wireless LAN adapter Wi-Fi:

   接続固有の DNS サフィックス . . . . .: lan
   リンクローカル IPv6 アドレス. . . . .: fe80::823f:7b94:4e24:a9bc%17
   IPv4 アドレス . . . . . . . . . . . .: 192.168.8.233
   サブネット マスク . . . . . . . . . .: 255.255.255.0
   デフォルト ゲートウェイ . . . . . . .: 192.168.8.1

イーサネット アダプター Bluetooth ネットワーク接続:

   メディアの状態. . . . . . . . . . . .: メディアは接続されていません
   接続固有の DNS サフィックス . . . . .:
Get-NetIPAddress -AddressFamily IPv4


IPAddress         : 192.168.137.1
InterfaceIndex    : 14
InterfaceAlias    : ローカル エリア接続* 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.2.100
InterfaceIndex    : 8
InterfaceAlias    : イーサネット
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Tentative
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.74.114
InterfaceIndex    : 8
InterfaceAlias    : イーサネット
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.60.59
InterfaceIndex    : 13
InterfaceAlias    : ローカル エリア接続* 1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.73.218
InterfaceIndex    : 11
InterfaceAlias    : Bluetooth ネットワーク接続
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.8.233
InterfaceIndex    : 17
InterfaceAlias    : Wi-Fi
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 11:54:40
PreferredLifetime : 11:54:40
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 127.0.0.1
InterfaceIndex    : 1
InterfaceAlias    : Loopback Pseudo-Interface 1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 8
PrefixOrigin      : WellKnown
SuffixOrigin      : WellKnown
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

Get-NetIPAddress -AddressFamily IPv4
192.168.137.1
192.168.2.100
169.254.74.114
169.254.60.59
169.254.73.218
192.168.8.233
127.0.0.1
Getting Default Runtime

Property      : {ActiveRuntime}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR
PSChildName   : 1
PSDrive       : HKLM
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 1
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 1
Name          : HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1

Getting OXR Runtime Info

Property      : {C:\Program Files\Oculus\Support\oculus-runtime\oculus_openxr_64.json, C:\Program Files\Magic Leap Remo
                te Rendering\openxr_windrunner.json}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1\AvailableRuntimes
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1
PSChildName   : AvailableRuntimes
PSDrive       : HKLM
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 2
Name          : HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1\AvailableRuntimes

Getting OXR Runtime Value
C:\Program Files\Magic Leap Remote Rendering\openxr_windrunner.json
Getting Magic Leap Windrunner Properties

Property      : {VerifyClientCert, CertificatePath, PrivateKeyPath, CACertificatePath...}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Magic Leap, Inc.\Windrunner
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Magic Leap, Inc.
PSChildName   : Windrunner
PSDrive       : HKCU
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 7
Name          : HKEY_CURRENT_USER\SOFTWARE\Magic Leap, Inc.\Windrunner

Getting Execution Policy

Scope           : MachinePolicy
ExecutionPolicy : Undefined


Scope           : UserPolicy
ExecutionPolicy : Undefined


Scope           : Process
ExecutionPolicy : Bypass


Scope           : CurrentUser
ExecutionPolicy : Undefined


Scope           : LocalMachine
ExecutionPolicy : Undefined

Checking for running apps that try to use Magic Leap Remote Rendering
Checking if Remote Rendering Service is running

Id      : 6524
Handles : 577
CPU     : 0.21875
SI      : 1
Name    : windrunner-service

Checking if device is connected via adb
List of devices attached
192.168.8.240:5555      device

Getting info about installed remote viewer
Activity Resolver Table:
  Schemes:
      rr:
        204ce12 com.magicleap.remote_viewer_app/android.app.NativeActivity filter 16a70a6
          Action: "android.intent.action.VIEW"
          Category: "android.intent.category.DEFAULT"
          Category: "android.intent.category.BROWSABLE"
          Scheme: "rr"

  Non-Data Actions:
      android.intent.action.MAIN:
        204ce12 com.magicleap.remote_viewer_app/android.app.NativeActivity filter cd47a01
          Action: "android.intent.action.MAIN"
          Category: "android.intent.category.DEFAULT"
          Category: "android.intent.category.LAUNCHER"
          Category: "org.khronos.openxr.intent.category.IMMERSIVE_HMD"

Key Set Manager:
  [com.magicleap.remote_viewer_app]
      Signing KeySets: 8

Packages:
  Package [com.magicleap.remote_viewer_app] (72f6fe0):
    userId=10105
    pkg=Package{a891299 com.magicleap.remote_viewer_app}
    codePath=/data/app/com.magicleap.remote_viewer_app-Nb54ygSwGaRJZyLzZyS_Og==
    resourcePath=/data/app/com.magicleap.remote_viewer_app-Nb54ygSwGaRJZyLzZyS_Og==
    legacyNativeLibraryDir=/data/app/com.magicleap.remote_viewer_app-Nb54ygSwGaRJZyLzZyS_Og==/lib
    primaryCpuAbi=x86_64
    secondaryCpuAbi=null
    versionCode=1002088 minSdk=29 targetSdk=29
    versionName=1.2.88
    splits=[base]
    apkSigningVersion=2
    applicationInfo=ApplicationInfo{b5db95e com.magicleap.remote_viewer_app}
    flags=[ ALLOW_CLEAR_USER_DATA ]
    privateFlags=[ PRIVATE_FLAG_ACTIVITIES_RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION ALLOW_AUDIO_PLAYBACK_CAPTURE ]
    dataDir=/data/user/0/com.magicleap.remote_viewer_app
    supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
    timeStamp=2023-07-12 23:10:59
    firstInstallTime=2023-07-12 23:11:00
    lastUpdateTime=2023-07-12 23:11:00
    signatures=PackageSignatures{216c13f version:2, signatures:[feacbda7], past signatures:[]}
    installPermissionsFixed=true
    pkgFlags=[ ALLOW_CLEAR_USER_DATA ]
    requested permissions:
      android.permission.INTERNET
      android.permission.ACCESS_NETWORK_STATE
      android.permission.CAMERA
      android.permission.ACCESS_WIFI_STATE
      android.permission.WAKE_LOCK
      com.magicleap.permission.SPATIAL_MAPPING
      com.magicleap.permission.PW_MAP
      com.magicleap.permission.SPATIAL_ANCHOR
      com.magicleap.permission.MARKER_TRACKING
      com.magicleap.permission.WORLD_RECONSTRUCTION
      com.magicleap.permission.HAND_TRACKING
      com.magicleap.permission.EYE_TRACKING
      org.khronos.openxr.permission.OPENXR_SYSTEM
    install permissions:
      org.khronos.openxr.permission.OPENXR_SYSTEM: granted=true
      com.magicleap.permission.HAND_TRACKING: granted=true
      com.magicleap.permission.SPATIAL_ANCHOR: granted=true
      android.permission.INTERNET: granted=true
      com.magicleap.permission.MARKER_TRACKING: granted=true
      android.permission.ACCESS_NETWORK_STATE: granted=true
      android.permission.ACCESS_WIFI_STATE: granted=true
      android.permission.WAKE_LOCK: granted=true
    User 0: ceDataInode=12001797 installed=true hidden=false suspended=false stopped=false notLaunched=false enabled=0 instant=false virtual=false
      gids=[3003]
      runtime permissions:
        com.magicleap.permission.EYE_TRACKING: granted=true
        android.permission.CAMERA: granted=true, flags=[ USER_SENSITIVE_WHEN_GRANTED|USER_SENSITIVE_WHEN_DENIED]

Package Changes:
  Sequence number=2
  User 0:
    seq=0, package=com.android.settings
    seq=1, package=com.magicleap.remote_viewer_app


Dexopt state:
  [com.magicleap.remote_viewer_app]


Compiler stats:
  [com.magicleap.remote_viewer_app]
    (No recorded stats)

Active APEX packages:


Inactive APEX packages:


Factory APEX packages:


  APEX session state:
Trying to ping computer IP addresses from Magic Leap
IPAddress         : 192.168.8.233
InterfaceIndex    : 17
InterfaceAlias    : Wi-Fi
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 11:54:37
PreferredLifetime : 11:54:37
SkipAsSource      : False
PolicyStore       : ActiveStore

Getting device wifi info
Wifi is enabled
Wifi scanning is only available when wifi is enabled
Wifi is connected to "GL-AXT1800-a9a-5G"
WifiInfo: SSID: GL-AXT1800-a9a-5G, BSSID: 94:83:c4:2b:0a:9d, MAC: 60:4b:aa:04:10:db, Supplicant state: COMPLETED, RSSI: -21, Link speed: 1200Mbps, Tx Link speed: 1200Mbps, Rx Link speed: 6Mbps, Frequency: 5220MHz, Net ID: 1, Metered hint: false, score: 60
KeyType: wpa2
IP Address: 192.168.8.240
successfulTxPackets: 17170
retriedTxPackets: 0
lostTxPackets: 0
successfulRxPackets: 16529
NetworkCapabilities: [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -16 SSID: "GL-AXT1800-a9a-5G"]
True
Pinging ML device 192.168.8.240

192.168.8.240 に ping を送信しています 32 バイトのデータ:
192.168.8.240 からの応答: バイト数 =32 時間 =47ms TTL=64
192.168.8.240 からの応答: バイト数 =32 時間 =62ms TTL=64
192.168.8.240 からの応答: バイト数 =32 時間 =70ms TTL=64
192.168.8.240 からの応答: バイト数 =32 時間 =79ms TTL=64

192.168.8.240 の ping 統計:
    パケット数: 送信 = 4、受信 = 4、損失 = 0 (0% の損失)、
ラウンド トリップの概算時間 (ミリ秒):
    最小 = 47ms、最大 = 79ms、平均 = 64ms
getting device build ID
B3E.230526.01-R.026
Trying to run setup script in shell
Starting Remote Viewer on device 192.168.8.240:5555 using command: am start -S -e -s "1" -e -h "192.168.137.1:50052;192.168.8.233:50052;" -e --client_uuid "ad5d3257-efa3-3f2d-1833-f02f783596b8" -e --pairing_code "AxdPUqb9wxnn5Ss3tfBJtHwsRTKcaP9Y7cWvv9uMCDDAYb3VZUL2IyG2rL25Tfjq"  com.magicleap.remote_viewer_app/android.app.NativeActivity
Remote Viewer started successfully.
Getting nvidia-smi info
Thu Jul 13 08:59:40 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 531.79                 Driver Version: 531.79       CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                      TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060       WDDM | 00000000:01:00.0  On |                  N/A |
| 30%   32C    P8                9W / 170W|   2571MiB / 12288MiB |      3%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1400    C+G   ...iles\Varjo\varjo-base\VarjoBase.exe    N/A      |
|    0   N/A  N/A      1408    C+G   C:\Windows\System32\dwm.exe               N/A      |
|    0   N/A  N/A      2032    C+G   C:\Windows\explorer.exe                   N/A      |
|    0   N/A  N/A      6524    C+G   ...endering\bin\windrunner-service.exe    N/A      |
|    0   N/A  N/A      6736    C+G   ....Search_cw5n1h2txyewy\SearchApp.exe    N/A      |
|    0   N/A  N/A      7628    C+G   ...ejd91yc\AdobeNotificationClient.exe    N/A      |
|    0   N/A  N/A      8476    C+G   ...siveControlPanel\SystemSettings.exe    N/A      |
|    0   N/A  N/A      9688    C+G   ...2txyewy\StartMenuExperienceHost.exe    N/A      |
|    0   N/A  N/A     10132    C+G   ....Search_cw5n1h2txyewy\SearchApp.exe    N/A      |
|    0   N/A  N/A     11060    C+G   ...GeForce Experience\NVIDIA Share.exe    N/A      |
|    0   N/A  N/A     11516    C+G   ...CBS_cw5n1h2txyewy\TextInputHost.exe    N/A      |
|    0   N/A  N/A     11880    C+G   ...03.0_x64__8wekyb3d8bbwe\Cortana.exe    N/A      |
|    0   N/A  N/A     13156    C+G   ...ekyb3d8bbwe\PhoneExperienceHost.exe    N/A      |
|    0   N/A  N/A     13524    C+G   ...ncher\NVIDIA Omniverse Launcher.exe    N/A      |
|    0   N/A  N/A     15848    C+G   ...oogle\Chrome\Application\chrome.exe    N/A      |
|    0   N/A  N/A     16852    C+G   ...aam7r\AcrobatNotificationClient.exe    N/A      |
|    0   N/A  N/A     17260    C+G   ...5n1h2txyewy\ShellExperienceHost.exe    N/A      |
|    0   N/A  N/A     19044    C+G   ...joHome\Binaries\Win64\VarjoHome.exe    N/A      |
|    0   N/A  N/A     19368    C+G   ...arjo-compositor\VarjoCompositor.exe    N/A      |
|    0   N/A  N/A     22252    C+G   ...rs\dxcox\MagicLeap\MLHub\ml_hub.exe    N/A      |
+---------------------------------------------------------------------------------------+

Please let me know if you need other information.

Thanks,
Ryosuke

  1. To clarify, you are running the command
powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Magic Leap Remote Rendering\SetupRemoteViewerIP.ps1"
  1. After that, you are checking to make sure that windrunner is working.
  2. Then immediately running the Remote Viewer on you PC and it is not allowing you to run it and it says that windrunner is not running properly even though its running in the task manager?
1 Like

@etucker

Yes, what I did is what you wrote above.
I confirmed windrunner is running in the task manager.

Thanks,
Ryosuke