DllNotFoundException and no active ARsubsystem

This is Alan Shawn. Here is my problem.

Include the following details while filing a bug report (edit as applicable):

  • Issue category: Unity XCode
  • Device type & OS version: Android
  • Host machine & OS version: windows
  • Issue Environment : unity editor
  • ARDK version: 3 beta 4
  • Unity version: 2021.3.29f1c1
    The ARDK 3 Beta4 has been installed from tarball as the Lightship DOCs suggests. I created a simple scene with AR Session and XR Origin. After running the game, here are the major issues poping out.
  1. DllNotFoundException: LightshipARDK assembly: type: member:(null)
  2. No active UnityEngine.XR.ARSubsystems.XRSessionSubsystem is available. Please ensure that a valid loader configuration exists in the XR project settings.
    UnityEngine.XR.ARFoundation.ARSession:OnEnable () (at Library/PackageCache/com.unity.xr.arfoundation@5.0.7/Runtime/ARFoundation/ARSession.cs:342)
  3. No active UnityEngine.XR.ARSubsystems.XRCameraSubsystem is available. Please ensure that a valid loader configuration exists in the XR project settings.
    UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`3<UnityEngine.XR.ARSubsystems.XRCameraSubsystem, UnityEngine.XR.ARSubsystems.XRCameraSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRCameraSubsystem/Provider>:OnEnable () (at Library/PackageCache/com.unity.xr.arfoundation@5.0.7/Runtime/ARFoundation/SubsystemLifecycleManager.cs:68)
    4.No active UnityEngine.XR.XRInputSubsystem is available. Please ensure that a valid loader configuration exists in the XR project settings.
    UnityEngine.XR.ARFoundation.ARInputManager:OnEnable () (at Library/PackageCache/com.unity.xr.arfoundation@5.0.7/Runtime/ARFoundation/ARInputManager.cs:24)

Hi Alan,

Unfortunately, Lightship 3.x doesn’t support in-editor testing on Windows yet. For the time being, you’ll have to deploy to your Android device and use something like logcat or Android Studio to get the output. If you’re curious about the cause of the “No active…” errors, please take a look at this Unity support thread for more information: http://forum.unity.com/threads/no-active-unityengine-xr-arsubsystems-xrsessionsubsystem-is-available.1409694/.

Kind Regards,
Maverick L.

Hi Maverick,
Many thanks for your kind help. I have shifted to a Macbook for the Playback function. In the case of macOS, does this No active… stuff matter for my further development on ARDK?

Thank you.

You’re very welcome! On Mac you can install the XR Simulation plugin mentioned in that Unity Support thread and you shouldn’t experience any of those “No active…” errors anymore. Make sure that you have the checkbox labeled “Initialize XR on Startup” ticked in Player settings as well.

Best,
Maverick L.