Forum

SlimDX.Direct3D11.Direct3D11Exception in SlimDX: E_INVALIDARG


#1

Hi,

I’m getting this exception with a number of DX11 nodes. Simplest way to reproduce is to connect a PerfMeter (DX11.Debug) to a Renderer (DX11).

00:01:08 ERR : SlimDX.Direct3D11.Direct3D11Exception in SlimDX: E_INVALIDARG: An invalid parameter was passed to the returning function (-2147024809)

Stacktrace:
   at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
   at SlimDX.Direct3D11.Buffer.Build(Device device, DataStream data, Int32 sizeInBytes, ResourceUsage usage, BindFlags bindFlags, CpuAccessFlags accessFlags, ResourceOptionFlags optionFlags, Int32 structureByteStride)
   at SlimDX.Direct3D11.Buffer..ctor(Device device, BufferDescription description)
   at FeralTic.DX11.Resources.DX11DynamicStructuredBuffer`1..ctor(DX11RenderContext context, Int32 cnt)
   at VVVV.DX11.Nodes.DX11QuadLayerNode.BindBuffers(DX11RenderContext context)
   at VVVV.DX11.Nodes.DX11QuadLayerNode.RenderInstanced(DX11RenderContext context, DX11RenderSettings settings)
   at VVVV.DX11.Nodes.DX11QuadLayerNode.Render(DX11RenderContext context, DX11RenderSettings settings)
   at VVVV.DX11.DX11LayerExtensions.RenderAll(ISpread`1 layer, DX11RenderContext context, DX11RenderSettings settings)
   at VVVV.DX11.Nodes.DX11LayerGroupNode.Render(DX11RenderContext context, DX11RenderSettings settings)
   at VVVV.DX11.DX11LayerExtensions.RenderAll(ISpread`1 layer, DX11RenderContext context, DX11RenderSettings settings)
   at VVVV.DX11.Nodes.AbstractDX11LayerSpaceNode.Render(DX11RenderContext context, DX11RenderSettings settings)
   at VVVV.DX11.DX11LayerExtensions.RenderAllWithLog(ISpread`1 layer, DX11RenderContext context, DX11RenderSettings settings, ILogger logger)

00:01:08  *  : Render State Stack should now have a size of 0!
00:01:08  -  : Clearing

Any idea why this is happening? I’m running vvvv in Parallels, so it can be a hypervisor problem.

Thanks,
Szabi


#2

yes sorry… looks like a parallels issue. bootcamp is the proper way to run vvvv on mac hardware.