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

[BUG] After Installing Companion App it just shows a black screen [Android][Unity 2022.2][2.0.30] #67

Closed Bersaelor closed 1 year ago

Bersaelor commented 1 year ago

Describe the bug After installing the companion app after updating Unity to 2022.2, when building on Android the companion app just stays black. (Were usually the IP address etc is shown).

All I can see is a little Developm... label in the bottom right corner of the screen.

Please provide additional info

  1. Does your existing AR project work fine on a real AR device? Yes, prior to updating from 2021 to 2022 Unity yes.

  2. Can your issue be reproduced with plugin examples? To import examples into your project, press the 'Installer/Import Samples' button. Not applicable, as I don't even get as far as trying to connect to the Remote app

  3. Plugin version. You can find it in the 'Packages/AR Foundation Remote/package.json' file. 2.0.30-release.0

  4. Unity version and your OS (Windows/macOS/Linux). 2022.2.19, macOS

  5. Attach your 'Packages/manifest.json' file to this bug report.

``` { "dependencies": { "com.atteneder.draco": "4.0.2", "com.atteneder.gltfast": "4.8.5", "com.coffee.softmask-for-ugui": "https://github.com/freshplanet/SoftMaskForUGUI.git", "com.google.ar.core.arfoundation.extensions": "https://github.com/google-ar/arcore-unity-extensions.git", "com.kyrylokuzyk.arfoundationremote": "file:../Assets/Plugins/ARFoundationRemoteInstaller/com.kyrylokuzyk.arfoundationremote.tgz", "com.unity.addressables": "1.21.12", "com.unity.ai.navigation": "1.1.3", "com.unity.collab-proxy": "2.0.4", "com.unity.ide.rider": "3.0.21", "com.unity.ide.visualstudio": "2.0.18", "com.unity.ide.vscode": "1.2.5", "com.unity.localization": "1.3.2", "com.unity.mobile.android-logcat": "1.3.2", "com.unity.test-framework": "1.1.33", "com.unity.textmeshpro": "3.0.6", "com.unity.ugui": "1.0.0", "com.unity.vectorgraphics": "2.0.0-preview.21", "com.unity.xr.arcore": "5.0.6", "com.unity.xr.arfoundation": "5.0.6", "io.looc.tryon.core": "file:../../LooC-AR-Core-Unity", "com.unity.modules.androidjni": "1.0.0", "com.unity.modules.assetbundle": "1.0.0", "com.unity.modules.imageconversion": "1.0.0", "com.unity.modules.imgui": "1.0.0", "com.unity.modules.jsonserialize": "1.0.0", "com.unity.modules.particlesystem": "1.0.0", "com.unity.modules.screencapture": "1.0.0", "com.unity.modules.ui": "1.0.0", "com.unity.modules.uielements": "1.0.0", "com.unity.modules.umbra": "1.0.0", "com.unity.modules.unityanalytics": "1.0.0", "com.unity.modules.unitywebrequest": "1.0.0", "com.unity.modules.unitywebrequestassetbundle": "1.0.0", "com.unity.modules.unitywebrequestaudio": "1.0.0", "com.unity.modules.unitywebrequesttexture": "1.0.0", "com.unity.modules.unitywebrequestwww": "1.0.0", "com.unity.modules.video": "1.0.0", "com.unity.modules.xr": "1.0.0" }, "scopedRegistries": [ { "name": "OpenUPM", "url": "https://package.openupm.com", "scopes": [ "com.atteneder", "com.atteneder.gltfast", "com.openupm", "com.yasirkula.nativeshare" ] } ] } ``
  1. Press 'File/Save' in Unity, then attach your 'Assets/Plugins/ARFoundationRemoteInstaller/Resources/Settings.asset' file to this bug report.
  2. 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.

Samsung Galaxy S9. Android 10

Bersaelor commented 1 year ago

Here's a screenshot of the Android logs, in case that helps:

Screenshot 2023-05-22 at 20 25 10
Bersaelor commented 1 year ago

Tried the same with 2022.2.20, this time with a plain default Unity project. When installing the AR Foundation Remote 2 it still just stays black (none of the usual text).

Weirdly, after disconnecting my charging cable, the normal UI suddenly popped up?! When starting the app with an XR Origin and ARCameraManager's facingDirection User the remote does not send the camera image to the Unity Editor. If I switch to World it works and will show the camera image.

If I run the sample app on device with either User or World I see the camera stream both times.

If I run my full Unity Project's AR Remote, I still only get the black screen with tiny Development in the bottom corner.

KyryloKuzyk commented 1 year ago

Hi,

Thanks for the detailed bug report!

I believe your issue is connected to this one. https://forum.unity.com/threads/face-tracking-causes-black-screen-after-updating-to-2022-2-19.1439554/#post-9041062

I installed your dependencies in a fresh project and everything worked for me. There is one dependency I couldn't install ("io.looc.tryon.core") because it's local in your project. Can you please try to remove it and see if it helps?