SharedTexture/Info texture handle bug

I’m running into an intermittent bug that I can’t reproduce in a small patch, it only appears in my large show patch with many textures, renderers and texturefx.

I’m running 45beta34.1 in /dx9ex mode

The bug is when using sharedtexture to send a video stream (in this case Kinect RGB texture) across two monitors. Often when starting the patch I get no texture (white quad) on the second monitor. If I disconnect and reconnect the handle pin of Info to Sharedtexture I get the following error in TTY:

00:01:21 : E_INVALIDARG: An Invalid parameter was passed to the returning function (-2147024809) Handle: 214743648 Format: X8R8G8B8

The strange thing is I can fix it if I put a renderer/DX9Texture upstream, open the renderer with the inspector, and randomly change some options. Literally sometimes if I change anti-aliasing it works, sometimes if I change texture format it works.

My best guess is it’s an out of range error on the handle pin data type, either on the Info or Sharedtexture. And by changing those options it generates a new handle which eventually is in range.

Also here

00:00:18     : adding disabled path D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to available plugins. already watched by: D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins
00:00:18     : adding disabled path D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to available plugins. already watched by: D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins
00:00:18     : adding D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to VVVV.Hosting.Factories.EditorFactory
00:00:18     : adding D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to VVVV.Hosting.Factories.EffectsFactory
00:00:18     : adding D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to VVVV.Hosting.Factories.PatchFactory
00:00:18     : adding D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to VVVV.Hosting.FreeFrameFactory
00:00:18     : adding D:\vvvv\vvvv_45beta34.1_x86\lib\nodes\plugins\ to VVVV.Hosting.VSTFactory
00:00:18  -  : AsDesktop: 1920 x 1080
00:00:18  -  : \\.\DISPLAY1 AsDesktop Refresh Rate: 59
00:00:18  -  : AsDesktop: 1920 x 1080
00:00:18  -  : \\.\DISPLAY1 AsDesktop Refresh Rate: 59
00:00:18  -  : AsDesktop: 1920 x 1080
00:00:18  -  : \\.\DISPLAY1 AsDesktop Refresh Rate: 59
00:00:19     : E_INVALIDARG: An invalid parameter was passed to the returning function (-2147024809) Handle: 2147483648 Format: A8R8G8B8

Also look at IOBox and pin tip (from SharedTexture (EX9.Texture) helppatch)
https://vvvv.org/sites/default/files/imagecache/large/images/SharedTexture%20(EX9.Texture)%20help_2015.09.22-08.32.13.jpg

confirmed for x86 versions of b34 and b34.1
works in b33.7
investigating…

fixed in latest alpha.

Thanks!..

@joreg, just be sure, have you fixed it on x64 too? I have noticed the same behavior on x64.
As well as the handle flickering between two values. This I when using videoin and videotexture.
It can be fixed by rendering the texture to a new texture. All this is dx9

@sunep that specific one was an x86 only bug. if you have an x64 one to reproduce please start a new thread. i am not aware of any.

the handle flickering with videotexture is by design and not a bug. of course the image should not flicker.