KyryloKuzyk / AR-Foundation-Remote-support

Support page for the 'AR Foundation Remote' plugin on the Asset Store
https://assetstore.unity.com/packages/tools/utilities/ar-foundation-remote-2-0-201106
9 stars 0 forks source link

ARFoundationRemote app has 3 errors displayed on the screen #107

Closed ochoajulian closed 1 month ago

ochoajulian commented 3 months ago

Bug: ARFoundationRemote app has 3 errors displayed on the screen (added below). I can still hit Play in the editor and see the project running on the app, but when I activate AR, it's a black screen. I have tried to uninstall the phone app and uninstalled then reinstalled the package. No luck.

Project is crashing after some time in AR, would like to see what's wrong with my project using ARFoundationRemote. Plugin Version: 2.0.37 Unity: 2022.3.20 Mac OS: Ventura 13.6.2 manifest.json Can't attach Settings.asset according to GitHub... AR Device: iPhone 13 Pro, OS: 17.4

Warnings that both appear on screen and in Xcode immediately after app install:

NullReferenceException: Object reference not set to an instance of an object. at ARFoundationRemote.Runtime.CameraSubsystemSender.OnAwake () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.Sender.gCreateCompanionAppObject|15_0[T] (ARFoundationRemote.Runtime.Sender+<>c__DisplayClass15_0& ) [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.Sender.OnAwake () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.GameObject:AddComponent() ARFoundationRemote.Runtime.Sender:gCreateCompanionAppObject|15_0(<>c__DisplayClass15_0&) ARFoundationRemote.Runtime.Sender:OnAwake()

AssertionException: Assertion failure. Value was False Expected: True at UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.TelepathyConnection.unregister_internal[T] () [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.CameraSubsystemSender.OnDisable () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.Sender.gCreateCompanionAppObject|15_0[T] (ARFoundationRemote.Runtime.Sender+<>c__DisplayClass15_0& ) [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.Sender.OnAwake () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.GameObject:AddComponent() ARFoundationRemote.Runtime.Sender:gCreateCompanionAppObject|15_0(<>c__DisplayClass15_0&) ARFoundationRemote.Runtime.Sender:OnAwake()

NullReferenceException: Object reference not set to an instance of an object. at ARFoundationRemote.Runtime.CpuImagesSender.OnEnable () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.Sender.gCreateCompanionAppObject|15_0[T] (ARFoundationRemote.Runtime.Sender+<>c__DisplayClass15_0& ) [0x00000] in <00000000000000000000000000000000>:0 at ARFoundationRemote.Runtime.Sender.OnAwake () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.GameObject:AddComponent() ARFoundationRemote.Runtime.Sender:gCreateCompanionAppObject|15_0(<>c__DisplayClass15_0&) ARFoundationRemote.Runtime.Sender:OnAwake()

KyryloKuzyk commented 1 month ago

Unfortunately, I wasn't able to reproduce the issue in this setup:

Can you please try the following?

  1. Re-import all assets in your project.
  2. Rebuild the AR Companion app.
  3. If this doesn't solve the issue, please try updating to the latest recommended Unity (currently 2022.3.28) and AR Foundation (currently 5.1.4).

Please feel free to reopen the issue if you have any additional info.