Description

Any discussions related to Vuforia Engine development with Unity.

Vuforia Engine v10 DLL Issues on Mac

If you're receiving DLL issues while using a Mac for your app development and using Vuforia Engine v10.0 till 10.8 in your project, you might be affected by an unfortunate unforeseen expired certificate in the SDK.

What errors might I receive?

The errors that you might experience are:

  1. Unity pop-up error when opening your project: ""VuforiaEngine.bundle" will damage your computer. You should move it to the Bin."
  2. Unity error when pressing Play: "DllNotFoundException: VuforiaEngine.dll"

What causes these issues?

This issue is caused by an expired certificate in the SDK.

Which versions are affected?

You can experience these issues when using one of the following versions of Vuforia Engine in combination with a Mac device as development platform:

  • Vuforia Engine v10.8.4
  • Vuforia Engine v10.7.2
  • Vuforia Engine v10.6.3
  • Vuforia Engine v10.5.5
  • Vuforia Engine v10.4.4
  • Vuforia Engine v10.3.2
  • Vuforia Engine v10.2.5
  • Vuforia Engine v10.1.4
  • Vuforia Engine v10.0.12

How can I solve this problem?

You can find our workarounds underneath:

  • Upgrade your project from your current Vuforia Engine version to v10.9.3 or newer.

  • Re-sign the expired certificate in your project by using the attached .py patch script.

  • Optional: Re-sign the expired certificate in your .unitypackage by also using the attached .py script.

    • Using the resigned .unitypackage will solve the dll issue for any future projects if you decide to not upgrade to v10.9.3 or newer.

You can also find a video about how to solve this problem here: https://youtu.be/WAdEbGjk0hk

How do I use the patch-vuforia-extension.py script?

You can use the python script which allows you to both update the expired certificates in your projects and .unitypackage. The benefit of being able to re-sign the .unitypackage is that you can re-use this with new projects without having to re-sign every time using an older version then v10.9. 

Required: Python (should be already installed on every Mac device)

  • Download and unzip the "vuforia-bundle-patcher.zip" file
  • Locate the com.ptc.vuforia.engine.v10.x.x.tgz in "MyProject/Packages/" and copy its path name
    • Optional: Locate your add-vuforia-package-10-8-4.unitypackage and copy its path name
  • Open your Terminal
  • Change the current working directory to the location of your .py script with the cd command.
  • Call: python patch-vuforia-extension.py <path to Vuforia package *.tgz in a project, or the *.unitypackage>

A backup file will be added to the same directory as your .tgz or .unitypackage file. 

Example: python patch-vuforia-extension.py /Users/patrickscheper/Desktop/MyUnityProject/Packages/com.ptc.vuforia.engine-10.8.4.tgz

How to fix the black screen issue with ARCore / Android

The black screen issue you're encountering might be related to Google removing ARCore support for 32-bit apps on 64-bit devices. This might causes devices to show a black screen because of the removed support from Google:

Image removed.

To solve this issue you must build for 64-bit devices. To do so you have to change the following settings:

  • Switch the Scripting Backend in the Project Settings from Mono to IL2CPP.
  • Target only the ARM64 (64-bit) architecture.

Your settings should look something like:

Image removed.

Please read more about the issue here: https://developers.google.com/ar/64bit

Attachment

Unity 2020.3.21f, 2020.3.22f1, and 2020.3.23f1 cause target tracking offsets on the Hololens 2

Hey everyone,

 

There's a known issue reported by Microsoft and Unity where the following Unity versions cause flashing and strobing effects on the Hololens 2:

  • Unity 2020.3.21f
  • Unity 2020.3.22f1
  • Unity 2020.3.23f1

You can find the issue here on Github. We identified that this can also cause offsets when tracking targets with Vuforia Engine. Microsoft stated that a current workaround is to upgrade to the newer release of Unity, 2020.3.24f1, which fixes the issues.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Vuforia permission error when running after first install

Hello,

Recently we updated to Vuforia 10. However we found we had an issue with tracking resetting position when stopping AR mode on our application.

Instead we updated to Vuforia 9.8.11, which solved an issue we were having without having the position reset issue. However, we noticed recently that when the app is installed and run for the very first time, we get the following Vuforia error: "Vuforia Engine Initialization Error: INIT NO CAMERA ACCESS". This appears despite allowing camera permissions. This error does not appear on subsequent launches of the app. If we uninstall and reinstall the app, we get the error again.

Unity Version: 2021.2.8f1

Any assistance would be greatly appreciated.

Hey there,

 

Sadly PTC does not provide technical support for deprecated versions. Instead I'd be happy to understand the reset position issue. Could you elaborate on that?

 

Kind regards,

Patrick Scheper

No problem. Updating to the LTS version of Unity 2021 fixed this error for us. I made a post about the reset position issue here: 

https://developer.vuforia.com/forum/unity-development/camera-position-retained-after-recreating-vuforia-camera-android

Vuforia and AR Foundation in Unity - Image Tracking Crash on iPad

Dear Vuforia Team,

 

I followed the post to combine Vuforia with AR foundation in Unity (https://library.vuforia.com/unity-extension/vuforia-engine-and-ar-foundation).

I am using Vuforia for Image target and I have the AR Camera from AR foundation.

After preparing the scene and when I play in Unity editor, the webcam can detect the image target and show the corresponding object in place.

The problem occurs when I build and try the app on the iPad. Once the image target is detected, the app crashes.

It would be great to understand to know how I can adjust to make it work. Thank you.

 

Unity 2021.3.7f1

AR Foundation 4.2.7

ARKit XR plugin 4.2.7

Vuforia package 10.12.3

iPad Pro OS 16.1.1

Vuforia 10.13 with Unity 2021 on M2 Macbook - Failed to get WebCam Image

Hello,

I updated a Unity project to Unity 2021.3.18 and also updated Vuforia to the latest version (10.13).

When starting my app in editor and going into an AR scene, I get an error "Failed to get WebCam Image!" and the webcam does not start. This error also sometimes comes some seconds after starting my app (no AR scene at this point).

I am on a Macbook Pro 2023 with M2 Max chip.

My app starts with non-AR scenes and I load my AR scenes with a loading-screen scene in the background.

I created a completely independent AR scene in the same project and started it in playmode and my camera works. so it does not seem to be a general issue.

Any idea what I could do? Is there some sort of re-initialization of the ARCamera once my AR scene started to get the macbook internal camera to work?

By the way, when I build the project to iOS on a real device, the AR works fine. It's just not working in editor.

Also I tried loading my scene directly with an OnGUI button with the SceneManager without any loading scene and it did also not work. so I guess thats also not the issue.

Hope anyone has an idea :(

Cheers, Robert

 

 

Hey there,

 

Can you try to reproduce this with our Core Samples?

 

Kind regards,

Patrick Scheper

Vuforia Engine Product Manager

Support for Geo-referenced Objects in AR

I am trying to design an environment with Geolocated interactive objects in Vuforia AR. Does Vuforia Engine have any support for geo-referenced objects and any location component that works with stabilized world tracking (heading and location of the object with respect to the device) on mobile platforms (android and iOS)? Thank you

Hey there,

 

I would say that there's little documentation on this use-case, but we have one article which is specific to Area Targets which might be of help: https://library.vuforia.com/develop-area-targets/geolocation-external-prior-area-targets/.

 

Cannot get content from an unfinished UnityWebRequest object

Hello! i am having this error, trying to have the app download an assetbundle from an url:  

  • InvalidOperationException: Cannot get content from an unfinished UnityWebRequest object
  • UnityEngine.Networking.DownloadHandler.GetCheckedDownloader[T] (UnityEngine.Networking.UnityWebRequest www) (at <1b339e701b4b41ba9e5bacb491247150>:0)
  • UnityEngine.Networking.DownloadHandlerAssetBundle.GetContent (UnityEngine.Networking.UnityWebRequest www) (at <9387c707b3dc43e28471eec2e11e7579>:0)
  • AssetBundleAugmenter+<DownloadAndCache>d__6.MoveNext () (at Assets/AssetBundleAugmenter.cs:37)
  • UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <4746c126b0b54f3b834845974d1a9190>:0)

I followed this documentation: https://library.vuforia.com/unity-extension/package-augmentations-unity-assetbundles The image target is stored in a vuforia database, it worked well when using it with a normally built .apk with the 3D model included in the installer. The URL of the bundle is this: https://cavetrolltest01.000webhostapp.com/AssetBundles/nickhatchery/

Hey there,

 

The error message you're seeing suggests that you're trying to access the content of a UnityWebRequest object before it has finished downloading. One potential solution is to ensure that the UnityWebRequest has completed before trying to access its content.

Hey! thanks for the response. However, i should fill with a value , like 1, 2, 3? these represent seconds? miliseconds, or some sort of order?

 

Failed to load database on android build

I'm having an issue with vuforia on unity. I've created a multitarget that works fine on unity, but when i build the project into my phone, my multitarget is not loaded and android logcat give me this error : 2023/01/23 14:53:17.812 9523 12850 Error AR Failed to load database 'Vuforia/CESI_project.xml'. can someone tell me how to fix this? i tried reinstalling vuforia, changing phone, but nothing work. even the default mars pictures database

 

Hey there,


Is this reproducible in a completely new project with nothing but Engine, a license key, and the target? If so, can you share your reproducible steps? If so, could you share the target via the file upload so I could try to reproduce it locally?

Thanks!

Invalid Key

Hello kinda new here, right now Im having a problem my License Key ( Basic Plan ) where everytime I paste the Vuforia License Key it always shows  " Vuforia Engine initialization failed: LICENSE_CONFIG_INVALID_KEY "  . I tried to created a new license and use it, still show the same error. Change my unity editor to other version ( 2020.3.44f1 LTS ) same result as always. Can anyone help me?

Currently Im using : Vuforia Engine 10.12.3 Unity Editor 2021.3.16f1