Topic has a solution and is locked
Topic locked

Failed to create imageTargetObserver

August 3, 2021 - 3:54am #1
Topic solved

Hi guys,

 

being new to the environment I am currently trying to setup the most basic vuforia application, by displaying a 3D object above a picture I have laying around using my webcam.

I run the 2020.3.15f2 unity version on my windows 10 Laptop and included the 10.0 Vuforia plugin. My laptop is a commercial Dell machine from like 2013 or so, but seems to be running smoothly. Since it doenst have a builtin webcam I bought a noname camera which I recently replaced by a Logitech C270 HD Webcam.

Besides watching a bunch of tutorials about unity in general I was trying to complete the steps presented in either of the below tutorials:

Both have the exact same outcome. The screen turns black (unless I change the colour under "Background" in the inspector. And an Error Message is displayed (see Screenshots). Unfortunately I am unable to take much from that message, other than believing that this error causes the problem.

I did reinstall and reboot everything but consistently get the same result. Even with the different webcam. With all tutorials I have watched, it should simply start playing the webcam when hitting play. The webcams are working fine and not being used by any other devices. The branded webcam for some reason shows up as "USB Video Device" under the Camera Device name. This caused me to alter the webcamprofilex.xml file in order to remove a previously existing webcam profile error.

I havent yet found anyone with similar errors and don't know how to go from there. I have rebuilt and reimported the entire project multiple times. This unity visualisation is a small puzzlepiece to a larger existing project including MQTT. Just thought I'd mention that as "callback" functions are part of that protocol.

 

I'd be grateful for any clues regarding where to start on this,

Jonas

AttachmentSize
Image icon Error Message183.38 KB
Image icon Black Screen81.55 KB
Image icon Webcam Settings32.73 KB
Image icon Old Webcam Profile Error16.07 KB

Failed to create imageTargetObserver

August 12, 2021 - 3:33am #11

Hey there,

 

No need to be sorry! 

@jonaskreiner, it would be good if you can share/validate if you get the same issue.

@hanss1, are you also using an external webcam? If so, would be great if you can share the type.

Many thanks!



Kind regards,

Patrick Scheper

Technical Community Manager

Failed to create imageTargetObserver

August 11, 2021 - 11:58pm #10

Sorry to interrupt but I had the same error with SDK 10.0 with Unity version 2020.3.10f1 and 2021.1.4f1.

The full error message is shown as this.

Exception in callback: Failed to create ImageTargetObserver: DATABASE_LOAD_ERROR.

  at Vuforia.Internal.Core.ObserverFactory.<CreateImageTargetObserver>g__CreateAndConfigureObserver|12_0 (Vuforia.Internal.Core.ObserverFactory+<>c__DisplayClass12_0& ) [0x00022] in <3e063d47efba40c499797bc1c3fd2761>:0

  at Vuforia.Internal.Core.ObserverFactory.CreateImageTargetObserver (System.String datasetPath, System.String targetName, System.Nullable`1[T] motionHint) [0x00031] in <3e063d47efba40c499797bc1c3fd2761>:0

  at Vuforia.ObserverFactory.CreateImageTarget (System.String databasePath, System.String targetName) [0x00007] in <3e063d47efba40c499797bc1c3fd2761>:0

  at Vuforia.PlayModeHitTestProvider.CreateGroundPlaneImageTarget () [0x00014] in <3e063d47efba40c499797bc1c3fd2761>:0

  at Vuforia.PlayModeHitTestProvider..ctor (Vuforia.Internal.Core.IEngine engine) [0x0000d] in <3e063d47efba40c499797bc1c3fd2761>:0

  at Vuforia.World.Init (Vuforia.IObserverRegistry observerRegistry) [0x0004e] in <3e063d47efba40c499797bc1c3fd2761>:0

  at Vuforia.VuforiaBehaviour.VuforiaInitialized (Vuforia.VuforiaInitError code) [0x0002e] in <3e063d47efba40c499797bc1c3fd2761>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)

  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0

UnityEngine.Debug:LogErrorFormat (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:Update ()

System.Delegate:DynamicInvoke (object[])

Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeDelegate (System.Delegate,object[])

Vuforia.Utility.ExtensionMethods.DelegateHelper:InvokeWithExceptionHandling (System.Action)

Vuforia.Internal.Core.UnityLifeCycleListener:Update ()

 

I want to how can I fix this problem. Thank you!

Failed to create imageTargetObserver

August 11, 2021 - 6:16am #9

Hey Jonas,

 

Would you be able to try Vuforia Engine v10 and Unity 2020 and provide me with the full error message? Our R&D wanted to take a deeper look at what error is being produced.

Many thanks!



Kind regards,

Patrick Scheper

Technical Community Manager

Failed to create imageTargetObserver

August 5, 2021 - 5:18am #8

 Hi Patrick,

here you go. Its an really old Laptop, but performance rarely lets me down. Possible that there are other limitations,

Thanks

AttachmentSize
Image icon systeminfo.jpg158.18 KB

Failed to create imageTargetObserver

August 5, 2021 - 3:29am #7

Hey Jonas,

I am very glad to hear that the 9.8 works for you, but I will continue to do internal research why this did not work for 10.0.

Would you be able to provide your system specifications? That might help our R&D to find out the issue.

For now, again, happy that you're able to continue your AR development!

Failed to create imageTargetObserver

August 4, 2021 - 7:19am #6

Hi again,

Very grateful for your suggestion and I did get it working with Unity 2019.4.29f1 and Vuforia 9.8.5.



Full story:

1. 2019 with vuforia 10 created the identical problem as I had initially.

2. 2020 with vuforia 9.8. The file coming off vuforia development page only has 4KB (compared to 210MB for vuforia 10). Trying to include it with import package seemed to work, but no vuforia engine functions were displayed and I got an error message. When I searched for the issue I found a tutorial that did essiantially faced the exakt same thing and worked around the error by manually going from the package manager and some zip file off his comments (https://www.youtube.com/watch?v=nj6LMVg4YfU&ab_channel=BugOverflow). Although this seemed to have worked, at some point when unity compiles scripts it always disappeared rather quickly and never got the webcam to show.



3. As I thought it be only logical to try the last combination of 2019 and 9.8 -> This time it worked flawlessly and as of now everything runs to expactation although I did (or tried to do) the same in every version.

Hope this helps you out?

Jonas

 

Failed to create imageTargetObserver

August 4, 2021 - 5:00am #5

Hey Jonas,

When I click play in Unity it seems to work for me. My webcam turns on and everything seems to work. There are a few areas where I think the issue could be originating from but I'd like to rule out some other possibilities. Would you be able to do me a favor and try two things:

1. Create a new project using Unity Engine 2019 (latest is fine) and Vuforia Engine 10 (with the same license and database) to see if the issue keeps appearing?

2. Create a new project using Unity Engine 2020.3.15f2 and Vuforia Engine 9.8 (with the same license and database) to see if the issue keeps appearing?

I'd like to understand if this is a Unity or Vuforia issue so that I could point our development team to the right direction. Many thanks!

Failed to create imageTargetObserver

August 4, 2021 - 4:29am #4

Great, thanks Jonas! I will go through the project and let you know as soon as possible if I find anything.

Failed to create imageTargetObserver

August 4, 2021 - 1:20am #3

Hello,

unfortuantely the entire folder is yet to big for the forum here, so i put it in this wetransfer link: https://we.tl/t-GLRs2vC7gt



Hope this works as well. I wasn't sure If I should/can leave out certain files, but this way its all together :) 

Thanks,

Jonas

Failed to create imageTargetObserver

August 3, 2021 - 9:28am #2

Hey there,

Since you mentioned it's a very basic Vuforia project, would you be able to share it as an attachment?

Many thanks!

Topic locked