"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

InvalidArgumentException

Hi,

i use the vuforia example vuforia-samples-core-uwp-7-1-34.

i inserted the key, compiled it, deployed it to the microsoft holoens.

The app is starting and after clicking on "start" to scan for the 'images' the app crashes with:

 

AR: INFO: 2018-06-07 22:36:22: ObjectTracker: This device doesn't support model targets extended tracking, extended tracking will be turned off AppSession : Configure Video Background:  video: 896,504 screen: 1280,720 size: 1280,720 AR:ERROR: 2018-06-07 22:36:22: You must successfully set a mode with Device.setMode before retrieving RenderingPrimitives "ImageTargets.exe" (Win32): "C:\Windows\System32\msvproc.dll" geladen. PDB-Datei wurde nicht gefunden oder konnte nicht geöffnet werden. Exception thrown at 0x77472432 (KernelBase.dll) in ImageTargets.exe: 0x40080202: WinRT transform error (parameters: 0x80070032, 0x00000000, 0x00000027, 0x0ABFDAE8). ImageTargetsView : Failed to enable autofocus. D3D11 ERROR: ID3D11Device::CreateTexture2D: The Dimensions are invalid. For feature level D3D_FEATURE_LEVEL_11_1, the Width (value = 0) must be between 1 and 16384, inclusively. The Height (value = 0) must be between 1 and 16384, inclusively. And, the ArraySize (value = 1) must be between 1 and 2048, inclusively. [ STATE_CREATION ERROR #101: CREATETEXTURE2D_INVALIDDIMENSIONS] D3D11 ERROR: ID3D11Device::CreateTexture2D: MipLevels invalid. With the dimensions of Width = 0, Height = 0, and ArraySize = 1, MipLevels (value = 1) must be between 1 and 0, inclusively. [ STATE_CREATION ERROR #102: CREATETEXTURE2D_INVALIDMIPLEVELS] Exception thrown at 0x77472432 in ImageTargets.exe: Microsoft C++ exception: _com_error at memory location 0x0ACFDE40. D3D11 ERROR: ID3D11Device::CreateTexture2D: Returning E_INVALIDARG, meaning invalid parameters were passed. [ STATE_CREATION ERROR #104: CREATETEXTURE2D_INVALIDARG_RETURN] Exception thrown at 0x77472432 (KernelBase.dll) in ImageTargets.exe: 0x40080201: WinRT originate error (parameters: 0x80070057, 0x0000001D, 0x0ACFDBEC). Exception thrown at 0x77472432 in ImageTargets.exe: Microsoft C++ exception: Platform::InvalidArgumentException ^ at memory location 0x0ACFE0F4. HRESULT:0x80070057 The parameter is incorrect. WinRT-Informationen: The parameter is incorrect.

 

This is done in   VideoBackgroundTexture::Init(size_t width, size_t height) which is called in VideoBackground::Render() in line 230:

         Vuforia::Vec2I texSize = renderPrimitives->getVideoBackgroundTextureSize()

         m_vbTexture->Init(texSize.data[0], texSize.data[1]);

Does have someone any clue what i have done wrong or how to solve that issue ?