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

AR Companion app disconnects from the Editor on the first touch input when using Input System. #50

Closed DaneDonaldson98 closed 1 year ago

DaneDonaldson98 commented 1 year ago

When interacting with a UI Button while using the Foundation Remote, the ARCompanion App Crashes after displaying a 'SendLoop Exception: InvalidCastException' error across the entire screen. This happens in any current project / new project I test this with. I'm sure i'm being silly and missing something, but this error didn't show up until a couple days after no issues.

  1. Does your existing AR project work fine on a real AR device?
    • Yes, the AR Projects all work fine on a real AR Device, this issue only appears in the ARCompanion Editor Sim.
  2. Can your issue be reproduced with plugin examples? To import examples into your project, press the 'Installer/Import Samples' button.
    • This issue is still happening when using the Examples / Example scenes gathered from Unity themselves on AR.
  3. Plugin version. You can find it in the 'Packages/AR Foundation Remote/package.json' file.
    • 2.0.27 - release.0
  4. Unity version and your OS (Windows/macOS/Linux).
    • Unity 2021.3.16f1 personal (macOS). I'm on an M2 if that helps, but i'm using Intel Unity.
  5. Attach your 'Packages/manifest.json' file to this bug report.
    • I can't seem to locate this (Sorry)
  6. Press 'File/Save' in Unity, then attach your 'Assets/Plugins/ARFoundationRemoteInstaller/Resources/Settings.asset' file to this bug report.
    • File is not supported, I can't attach it.
  7. Your AR device model and its OS version. Please make sure your AR device supports ARKit/ARCore and supports a feature you would like to test in the Editor.
    • Iphone 12 pro / 16.1.1

I've attached a screenshot of the error scree CompanionError n.

alexbragger commented 1 year ago

Has there been any communication or update on this? I am experiencing the same issue for any interaction I attempt with the screen. iPhone 13 and settings same as OP.

KyryloKuzyk commented 1 year ago

Hi,

I'm sorry for the late reply. I can confirm the issue exists. I replicated it on my side and narrowed it to what seems like the actual cause. It seems like an issue in IL2CPP on iOS because Android (both Mono and IL2CPP) works fine.

BinaryFormatter fails to serialize byte[][] array or even the List<byte[]>, even if they are empty. I have a quick fix ready internally, but it's currently very inefficient. I hope to work around this Unity issue in the upcoming week.

DaneDonaldson98 commented 1 year ago

Good Morning,

Thanks for the reply! No worries about it late, all good.

Appreciate the detailed response, glad it's not just something i've done my end. I will just do testing on Android for now while it's being fixed :)

KyryloKuzyk commented 1 year ago

I fixed the issue in version 2.0.28-release.0. Could you please confirm the fix works for you? Please don’t forget to make a new build of the AR Companion app after updating to a new version.

DaneDonaldson98 commented 1 year ago

I fixed the issue in version 2.0.28-release.0. Could you please confirm the fix works for you? Please don’t forget to make a new build of the AR Companion app after updating to a new version.

Sorry for the delayed reply. It works now!

Thanks a ton for fixing the issue, was really driving me nuts!