microsoft / Lumia-imaging-sdk

Lumia Imaging SDK is a comprehensive set of GPU/CPU imaging tools and effects that run on both mobile and desktop, with high speed and memory efficiency. Samples and extras code are included.
MIT License
75 stars 37 forks source link

MFT Exception #8

Open LanceMcCarthy opened 8 years ago

LanceMcCarthy commented 8 years ago

I started seeing an exception in my app that uses the new MFT. I came back here and tried to reproduce it and was successful.

Environmental Facts:

Here are the steps to reproduce:

  1. Start Video MFT example app
  2. Select any effect (editable or static)
  3. Start Recording
  4. The frame will freeze and crash

Here's the debug output the following:

Starting recording... Exception thrown: 'System.InvalidCastException' in VideoEffectSample.exe Exception thrown: 'System.InvalidCastException' in VideoEffectSample.exe Exception thrown: 'System.InvalidCastException' in mscorlib.ni.dll Exception thrown: 'System.InvalidCastException' in mscorlib.ni.dll The Windows Runtime Object can only be used in the threading context where it was created, because it implements INoMarshal or has MarshalingBehaviorAttribute(MarshalingType.None) set. The Windows Runtime Object can only be used in the threading context where it was created, because it implements INoMarshal or has MarshalingBehaviorAttribute(MarshalingType.None) set.

Exception thrown: 'System.ArgumentException' in mscorlib.ni.dll WinRT information: The parameter is incorrect.