Error when starting Remote Render

Hello, I'm using Remote Renderer to connect Magic Leap 2 to ML Hub via Device Bridge.
An error occurred when I started Remote Renderer after connecting Magic Leap 2 with ML Hub's Device Bridge.
Follow the instructions below to install the APK for Remote Viewer on Magic Leap 2.
https://developer-docs.magicleap.cloud/docs/guides/remote-rendering/remote-render
I've tried changing the network and disabling the firewall, but no improvement. adb paths are also going through.
The logged in user has administrator rights.
I tried restarting the PC and that did not help.



Start of Remote Render failed
- Command "powershell.exe -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Program Files\Magic Leap Remote Rendering\SetupRemoteViewerIP.ps1" " exited with non-zero code: 1
Remote Viewer will connect to one of the following addresses: 192.168.43.72:50051;192.168.137.1:50051;192.168.68.100:50051;
192.168.137.208:5555
2
Pair-MTLS : Failed to generate certificates for the device.
     ꏊ C:\Program Files\Magic Leap Remote Rendering\SetupRemoteViewerIP.ps1:147     :5
+     Pair-MTLS -Device $Device -adb $adb
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Pair-MTLS

For users with an active Developer Pro or Enterprise license, you can opt in to this experimental feature by installing Magic Leap Remote Rendering Preview package from the Package Manager in Magic Leap Hub.
Required Magic Leap 2 OS version: v1.2.0.

My Magic Leap 2 is Developer Pro, does Remote Renderer automatically determine this?
Do I have to set the permissions on the Magic Leap 2 side?

Magic Leap 2
Magic Leap OS - April 2023 - B3E.230330.11-R.043

PC
Windows 11 Home Version 22H2
OS Build 22621.1555
Windows Feature Experience Pack 1000.22640.1000.0

Magic Leap Remote Rendering 1.0.2

Best regards.

Hi @tokufxug, In order to use remote rendering and AR Cloud, you will need to obtain a license key by contacting sales@magicleap.com.

After you have your license key, follow this article to activate it on your device.

1 Like

Hi ababilinski,
I have previously obtained a key from Magic Leap for AR Cloud, but the license key for Remote Rendering and AR Cloud are keyed separately, does that mean I have to obtain a separate license key for Remote Rendering?
Also, I only have one Developer Pro, but if I had multiple Magic Leap 2's, would I need to get license keys for the number of units?
By the way, I contacted the care center about this matter but received no response.
If this error is due to not obtaining a license key, the error message should include the fact that the error is due to not obtaining a license key and how to obtain a license key. In fact, I have spent more than 4 hours on this investigation.


Sales contacted me last October asking me to activate my license key. I put an image capture in my previous post. After all, what's going on?

Hi @tokufxug, I spoke with our Customer Care team and understand you have the correct Developer Pro license. Apologies for the inconvenience you are experiencing.

I talked to our engineering team. Can you run the following script installed at 'C:\Program Files\Magic Leap Remote Rendering\DebuggerScript.ps1'

It may require bypassing certain security params with the following command:
powershell.exe -ExecutionPolicy Bypass -File 'C:\Program Files\Magic Leap Remote Rendering\DebuggerScript.ps1'

We have a debugger tool that we can use for insight into what error you are experiencing. Thank you for your patience.

1 Like

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

The File argument was enclosed in single quotes, but an error occurred, so it is executed with double quotes.

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

After executing the above command, the following information was displayed.
Error because $matches[0] is null.

PS C:\Users\tokuf> powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Magic Leap Remote Rendering\DebuggerScript.ps1"
ipconfig

Windows IP 構成


Wireless LAN adapter Wi-Fi:

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

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

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

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

   接続固有の DNS サフィックス . . . . .:
   リンクローカル IPv6 アドレス. . . . .: fe80::f004:533e:139:f560%10
   IPv4 アドレス . . . . . . . . . . . .: 192.168.68.100
   サブネット マスク . . . . . . . . . .: 255.255.255.0
   デフォルト ゲートウェイ . . . . . . .: fe80::3e84:6aff:fe95:8bc4%10
                                          192.168.68.1

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

   接続固有の DNS サフィックス . . . . .:
   リンクローカル IPv6 アドレス. . . . .: fe80::48ce:7588:e71f:d7d4%6
   IPv4 アドレス . . . . . . . . . . . .: 192.168.137.1
   サブネット マスク . . . . . . . . . .: 255.255.255.0
   デフォルト ゲートウェイ . . . . . . .:

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

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

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

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


IPAddress         : 192.168.68.100
InterfaceIndex    : 10
InterfaceAlias    : イーサネット 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 01:52:37
PreferredLifetime : 01:52:37
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.137.1
InterfaceIndex    : 6
InterfaceAlias    : ローカル エリア接続* 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Preferred
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.129.152
InterfaceIndex    : 4
InterfaceAlias    : Bluetooth ネットワーク接続
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.172.132
InterfaceIndex    : 15
InterfaceAlias    : ローカル エリア接続* 1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.164.55
InterfaceIndex    : 17
InterfaceAlias    : イーサネット
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.157.86
InterfaceIndex    : 3
InterfaceAlias    : Wi-Fi
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
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     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

Get-NetIPAddress -AddressFamily IPv4
192.168.68.100
192.168.137.1
169.254.129.152
169.254.172.132
169.254.164.55
169.254.157.86
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\Magic Leap Remote 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    : 1
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 : RemoteSigned


Scope           : LocalMachine
ExecutionPolicy : Undefined

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

Id      : 19664
Handles : 581
CPU     : 0.078125
SI      : 2
Name    : windrunner-service

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

Getting info about installed remote viewer
adb.exe: more than one device/emulator
Trying to ping computer IP addresses from Magic Leap
adb.exe: more than one device/emulator
Getting device wifi info
adb.exe: more than one device/emulator
adb.exe: more than one device/emulator
False
null 配列にインデックスを付けることはできません。
発生場所 C:\Program Files\Magic Leap Remote Rendering\DebuggerScript.ps1:66 文字:67
+ ... bWifiInfo -match '(?=IP Address: ).*') -match '\d.*'; $IP=$matches[0]
+                                                           ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) []、RuntimeException
    + FullyQualifiedErrorId : NullArray

Pinging ML device

使用法: ping [-t] [-a] [-n 要求数] [-l サイズ] [-f] [-i TTL] [-v TOS]
            [-r ホップ数] [-s ホップ数] [[-j ホスト一覧] | [-k ホスト一覧]]
            [-w タイムアウト] [-R] [-S ソースアドレス] [-c コンパートメント]
            [-p] [-4] [-6] ターゲット名

オプション:
    -t             中断されるまで、指定されたホストを Ping します。
                   統計を表示して続行するには、Ctrl+Break を押してください。
                   停止するには、Ctrl+C を押してください。
    -a             アドレスをホスト名に解決します。
    -n 要求数      送信するエコー要求の数です。
    -l サイズ      送信バッファーのサイズです。
    -f             パケット内の Don't Fragment フラグを設定します (IPv4 のみ)。
    -i TTL         Time To Live です。
    -v TOS         Type Of Service (IPv4 のみ。この設定はもう使用されておらず、
                   IP ヘッダー内のサービス フィールドの種類に影響しません)。
    -r ホップ数    指定したホップ数のルートを記録します (IPv4 のみ)。
    -s ホップ数    指定したホップ数のタイムスタンプを表示します (IPv4 のみ)。
    -j ホスト一覧  一覧で指定された緩やかなソース ルートを使用します
                   (IPv4 のみ)。
    -k ホスト一覧  一覧で指定された厳密なソース ルートを使用します
                   (IPv4 のみ)。
    -w タイムアウト
                   応答を待つタイムアウトの時間 (ミリ秒) です。
    -R             ルーティング ヘッダーを使用して逆ルートもテストします
                   (IPv6 のみ)。
                   RFC 5095 では、このルーティング ヘッダーは使用されなくなり
                   ました。このヘッダーが使用されているとエコー要求がドロップ
                   されるシステムもあります。
    -S ソースアドレス
                   使用するソース アドレスです。
    -c コンパートメント
                   ルーティング コンパートメント識別子です。
    -p             Hyper-V ネットワーク仮想化プロバイダー アドレスを
                   ping します。
    -4             IPv4 の使用を強制します。
    -6             IPv6 の使用を強制します。

@kdowney It seems that the Magic Leap 2 and the PC were connected via USB, which caused the $matches NULL error. No error occurs in the execution of the DebuggerScript.

C:\Users\tokuf>powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Magic Leap Remote Rendering\DebuggerScript.ps1"
ipconfig

Windows IP 構成


Wireless LAN adapter Wi-Fi:

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

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

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

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

   接続固有の DNS サフィックス . . . . .:
   リンクローカル IPv6 アドレス. . . . .: fe80::f004:533e:139:f560%10
   IPv4 アドレス . . . . . . . . . . . .: 192.168.68.100
   サブネット マスク . . . . . . . . . .: 255.255.255.0
   デフォルト ゲートウェイ . . . . . . .: fe80::3e84:6aff:fe95:8bc4%10
                                          192.168.68.1

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

   接続固有の DNS サフィックス . . . . .:
   リンクローカル IPv6 アドレス. . . . .: fe80::48ce:7588:e71f:d7d4%6
   IPv4 アドレス . . . . . . . . . . . .: 192.168.137.1
   サブネット マスク . . . . . . . . . .: 255.255.255.0
   デフォルト ゲートウェイ . . . . . . .:

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

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

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

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


IPAddress         : 192.168.68.100
InterfaceIndex    : 10
InterfaceAlias    : イーサネット 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 01:15:12
PreferredLifetime : 01:15:12
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.137.1
InterfaceIndex    : 6
InterfaceAlias    : ローカル エリア接続* 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Preferred
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.129.152
InterfaceIndex    : 4
InterfaceAlias    : Bluetooth ネットワーク接続
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.172.132
InterfaceIndex    : 15
InterfaceAlias    : ローカル エリア接続* 1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.164.55
InterfaceIndex    : 17
InterfaceAlias    : イーサネット
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.157.86
InterfaceIndex    : 3
InterfaceAlias    : Wi-Fi
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
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     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

Get-NetIPAddress -AddressFamily IPv4
192.168.68.100
192.168.137.1
169.254.129.152
169.254.172.132
169.254.164.55
169.254.157.86
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\Magic Leap Remote 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    : 1
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 : RemoteSigned


Scope           : LocalMachine
ExecutionPolicy : RemoteSigned

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

Id      : 19664
Handles : 492
CPU     : 0.3125
SI      : 2
Name    : windrunner-service

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

Getting info about installed remote viewer
Activity Resolver Table:
  Non-Data Actions:
      android.intent.action.MAIN:
        c29d69a com.magicleap.remote_viewer_app/android.app.NativeActivity filter ccfa426
          Action: "android.intent.action.MAIN"
          Category: "android.intent.category.DEFAULT"
          Category: "android.intent.category.LAUNCHER"

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

Packages:
  Package [com.magicleap.remote_viewer_app] (b283ffe):
    userId=10120
    pkg=Package{16d35f com.magicleap.remote_viewer_app}
    codePath=/data/app/com.magicleap.remote_viewer_app-Z5DDhpylxJToqXAnlu5sMg==
    resourcePath=/data/app/com.magicleap.remote_viewer_app-Z5DDhpylxJToqXAnlu5sMg==
    legacyNativeLibraryDir=/data/app/com.magicleap.remote_viewer_app-Z5DDhpylxJToqXAnlu5sMg==/lib
    primaryCpuAbi=x86_64
    secondaryCpuAbi=null
    versionCode=1000002 minSdk=29 targetSdk=29
    versionName=1.0.2
    splits=[base]
    apkSigningVersion=2
    applicationInfo=ApplicationInfo{89921ac 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-04-28 16:15:58
    firstInstallTime=2023-04-28 16:12:31
    lastUpdateTime=2023-04-28 16:15:58
    signatures=PackageSignatures{87dee75 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
      org.khronos.openxr.permission.OPENXR_SYSTEM
    install permissions:
      org.khronos.openxr.permission.OPENXR_SYSTEM: 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=5390464 installed=true hidden=false suspended=false stopped=false notLaunched=false enabled=0 instant=false virtual=false
      gids=[3003]
      runtime permissions:
        android.permission.CAMERA: granted=false, flags=[ USER_SENSITIVE_WHEN_GRANTED|USER_SENSITIVE_WHEN_DENIED]

Package Changes:
  Sequence number=0


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
Getting device wifi info
Wifi is enabled
Wifi scanning is only available when wifi is enabled
Wifi is connected to "LEAPERSJAPAN"
WifiInfo: SSID: LEAPERSJAPAN, BSSID: 7e:21:4a:6e:76:f7, MAC: 60:4b:aa:02:71:d7, Supplicant state: COMPLETED, RSSI: -49, Link speed: 172Mbps, Tx Link speed: 172Mbps, Rx Link speed: 258Mbps, Frequency: 2437MHz, Net ID: 2, Metered hint: false, score: 60
KeyType: wpa2
IP Address: 192.168.137.159
successfulTxPackets: 5650
retriedTxPackets: 0
lostTxPackets: 0
successfulRxPackets: 3219
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: -38 SSID: "LEAPERSJAPAN"]
True
Pinging ML device 192.168.137.159

192.168.137.159 に ping を送信しています 32 バイトのデータ:
192.168.137.159 からの応答: バイト数 =32 時間 =3ms TTL=64
192.168.137.159 からの応答: バイト数 =32 時間 =39ms TTL=64
192.168.137.159 からの応答: バイト数 =32 時間 =58ms TTL=64
192.168.137.159 からの応答: バイト数 =32 時間 =60ms TTL=64

192.168.137.159 の ping 統計:
    パケット数: 送信 = 4、受信 = 4、損失 = 0 (0% の損失)、
ラウンド トリップの概算時間 (ミリ秒):
    最小 = 3ms、最大 = 60ms、平均 = 40ms

I found the cause of the error: a bug in SetupRemoteViewerIP.ps1.
The error occurs if the adb path on line 123 contains a single space.

$processInfo.Arguments = "$additionalArgs --device $Device --adb_path $adb --mode client"

I modified it as follows and it works fine.

$processInfo.Arguments = "$additionalArgs --device $Device --adb_path `"$adb`" --mode client"

Thank you for the update @tokufxug

1 Like