PTCInc / vuforia-engine

Bug and feedback issue tracker for the Vuforia Engine SDK
https://developer.vuforia.com
20 stars 0 forks source link

Getting a DllNotFoundException when trying to import Area target unitypackage #151

Closed Final-Singularity closed 2 months ago

Final-Singularity commented 2 months ago

Summarize the bug: I am using unity in Ubuntu 23.10, it has been working fine for normal usecases (Image Target, etc), however Area target unitypackage generated from ATG (from windows) is not getting imported properly in Unity. While importing, I am getting an error that says DllNotFoundException: VuforiaEngine.dll assembly: type: member:(null) Vuforia.Internal.Utility.GLTFLoading.GLTFExtractorUtility.Initialize (System.String path, UnityEngine.Material[] sourceMaterials, System.Boolean ignoreMaterials) (at :0)

PFA the log file AreaTarget_Editorlog.txt

Observed problem

  1. I created a fresh project, imported vuforia, added AR Camera and License key, changed the player settings to IL2CPP (armv64)

  2. Tried to import the unitypackage for my area -- and it resulted in the above error Log - AreaTarget_Editorlog.txt

  3. Alternatively, I tried to create an Area Target GameObject first and then import the unitypackage -- still resulted in the same error along with some others Log - AreaTarget_Editorlog_wgameobject.txt

Expected result Package should get imported without errors and should be able to view the space using Area Target gameObject

Other observations Even with the errors, the package becomes visible in the Area Target Behaviour database drop down, but has no effect upon being selected

Affected Vuforia Engine version: v10.25.4

Affected platform:

Affected database PFA the Area Target unitypackage that I was trying to import Ittina_Akkala_Road.zip

Thanks in advance,

ptc-epassaro commented 2 months ago

Hi @Final-Singularity, thanks for the report. Unfortunately Vuforia Engine is not officially supported for Unity on Linux and it does not include a Linux binary. This is not a problem for most of the target types because they don't interact with Vuforia Engine directly while in the Unity Editor. Area Targets are special in this sense, as even in the Editor they rely on the VuforiaEngine.dll to perform some operations.

Unfortunately this is the expected behaviour when using Vuforia in Unity on Linux. If possible, I would recommend you to use Vuforia Engine on Windows or MacOS to avoid this issue. If not, then feel free to open a new "Feature Feedback" Issue on this repository for the Linux support and our team will look into it.

Thank you and sorry I cannot give you a more satisfying answer.

Final-Singularity commented 2 months ago

Hi @ptc-epassaro , thanks for your response. I have been trying to use Unity and Vuforia for a long time now, but I am always facing some or the other issues in Windows, which is why I moved to linux where those issues resolved but unfortunately, the area target support is not possible. I am retrying in Windows now and am creating new bug reports for the issues I am facing. I will be really greatful if you guys can support me through these issues, thanks