Log in or register to post comments

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 13, 2021 - 9:08am #1

Vuforia SDK Version: 10.2.5 -

Description with steps to reproduce:

I believe that creating image targets is broken on the latest version of Vuforia - 10.2.5

It works on desktop but I get this error on Android: Unable to set the RuntimeImageSource. The target width cannot be 0 or smaller.

 

Here is the code:

 

ImageTargetBehaviour test = VuforiaBehaviour.Instance.ObserverFactory.CreateImageTarget(TestTexture, 0.2f, "TestTexture");

The "TestTexture" variable is set in Inspector and is a valid texture. 

 

Development OS (Mac OS X, Windows, Linux): Windows -

Mobile OS and Version: Android 12

Mobile Device Manufacturer and Model name: Any -

Do the Vuforia Sample Applications show the same behavior?: Yes

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 23, 2021 - 7:11am #8

Hey there,

 

Can someone provide reproducible steps for this issue? Sadly on my device I do not seem to receive the error. You can also share a Unity project in .zip format through the attachments.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 23, 2021 - 5:06am #7

Update:



I found that the error doesn't actually affect tracking, The marker will detect and track fine, even with the error.



Also, it happens with every image I tried. 

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 22, 2021 - 7:18am #6

Hey there,

 

Can you share the picture you're using?

 

Kind regards,

Patrick Scheper

Technical Community Manager

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 20, 2021 - 9:37am #5

I just tested Android 11 and iOS and the problem happens there too. 



The only platform it seems to work on is Windows desktop. 



Please advise how to downgrade to an older version of 10, I could not find any way to do downgrade. 

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 19, 2021 - 7:09am #4

I have tested using v 10.3.2 and the problem persists.

It also happens with an older phone that is running Android 11. 

 

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 18, 2021 - 11:01am #3

Hey,

 

Can you try to upgrade to v10.3.2 and see if the issue persists? 

 

Kind regards,

Patrick Scheper

Technical Community Manager

Creating image targets at runtime throws error - "The target width cannot be 0 or smaller"

November 17, 2021 - 8:44am #2

Hey there,

 

I'm sorry you're encountering issues with the observer factory... I'll see if I can reproduce the issue and come back to you.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Log in or register to post comments