Log in or register to post comments

Failed to create ImageTargetObserver

Unity Editor
January 21, 2023 - 5:14pm #1

Hello,
 
I am trying to create a very basic Vuforia application in Unity. I followed the "Getting started with Vuforia Engine in Unity" at https://library.vuforia.com/getting-started/getting-started-vuforia-engine-unity, but am encountering a "failed to create ImageTargetObserver: DATABASE_LOAD_ERROR" error that prevents the whole thing from displaying anything once I press Play.
 
 
I'm on Windows 10, Unity 2021.3.16f1 LTS, Vuforia 10.12.3. Desktop + a Logitech C270 external camera. Here's my complete project walkthrough:

  1. Create a new 3D project from Unity Hub in Unity 2021.3.16f1
  2. Import the Vuforia unitypackage, click Import, click Update when prompted
  3. Add an ARCamera to the scene
  4. open the configuration from the ARCamera inspector
  5. input my license key and click "Add license" (which opens up the License Manager page on Vuforia's website, ignored that)
  6. delete the MainCamera
  7. add my custom PNG to the project assets
  8. add an ImageTarget to the scene
  9. in the inspector, select Type > From Image and select my PNG in the list
  10. add a Cube as a child of the ImageTarget and place it above the ImageTarget in the scene

 
At this point, my project's hierarchy is completely identical to the one described in the official tutorial linked above. However, when pressing Play, my camera's status LED flashes up for a fraction of a second before I get an error (only a black screen is displayed). Here's the full trace:
 

Exception in callback: Failed to create ImageTargetObserver: DATABASE_LOAD_ERROR.
UnityEngine.Debug:LogErrorFormat (string,object[])
Vuforia.Internal.Utility.UnityLogger:LogError (string,object[])
Vuforia.Internal.Utility.Log:Error (string,object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate (System.Delegate,object[])
Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling<Vuforia.VuforiaInitError> (System.Action`1<Vuforia.VuforiaInitError>,Vuforia.VuforiaInitError)
Vuforia.Internal.Core.Engine:InitOnCameraReady ()
Vuforia.WebCam:HandleFirstWebCamFrame ()
Vuforia.WebCam:<Init>b__33_0 (bool)
Vuforia.Internal.Utility.VuforiaCoroutineUtility/<RunCoroutineWithTimeout>d__1:MoveNext ()
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
 
 
This error is similar to the one depicted in this older thread on this forum: https://developer.vuforia.com/forum/general/failed-create-imagetargetobserver-0
 
However, reinstalling Unity & Vuforia didn't help, neither did trying this in Unity 2020.3.44f1 LTS or replugging the webcam multiple times.
 
Is this a known issue?
 
Thank you for your help!
 

Platform: 

Failed to create ImageTargetObserver

January 28, 2023 - 7:17am #5

Hello,
 
I have added the image I sent you (as well as a few other ones for testing purposes) to a Device Database in the Target Manager. I am able to import it into my project as a unitypackage, and the name of my database does appear in the "Databases" tab of the Vuforia Engine Configuration (ARCamera inspector).
 
However, I am still experiencing the same issue (DATABASE_LOAD_ERROR). Note that I tried reinstalling Unity on the same drive as my OS, so everything is at the same place now.
 
Again, thank you for your help.

Failed to create ImageTargetObserver

January 26, 2023 - 5:40am #4

Hey there,

 

Let me try to reproduce the issue with the image you provided. Can you try to upload the image through the Target Manager on the Engine Developer Portal and export the database to try this on your setup? I want to see if this issue is related to Instant Image Targets which is the feature you use when you directly create an Image Target during runtime from an image.

 

Kind regards,

Patrick Scheper

Vuforia Engine Product Manager

Failed to create ImageTargetObserver

January 25, 2023 - 10:02am #3

Hi,
 
Thank you for your answer. Assuming by "database" you mean the image file I load into my Unity project assets, this is a link to one of the sample images I tested: https://i.pinimg.com/736x/90/bd/34/90bd3417b567a2ede0b888d305f8fb80.jpg
 
I tried with several other images, including JPEG's and PNG's of various sizes. All resulted in the same error mentioned in my initial post. Please note that I tried reproducing this issue on another machine with the same exact setup (OS, Unity version, Vuforia version, external webcam, followed steps as described) and it worked perfectly fine.
 
This tells me something might be wrong with my machine's setup. Unity is installed on the same drive as my project, however Windows is installed on another disk; could this be it?
 
Thank you for your time.

Failed to create ImageTargetObserver

January 24, 2023 - 6:53am #2

Hey there,

 

Can you share the Image Database so I can see if the issue is reproducible based on your provided steps?

 

Thank you!

 

Kind regards,

Patrick Scheper

Vuforia Engine Product Manager

Log in or register to post comments