Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jordan_C_
Beginner
133 Views

MFXClose throws exception

I get the following exception when trying to close my MFX session.

exception.png

The stack trace is

stacktrace.png

I am able to "continue" from this exception, but it's very annoying. What am I doing wrong?

I'm using MFX 1.17 on Windows x64. The stack trace indicates that it may have something to do with freeing surfaces. I'm using custom allocated system memory surfaces that I manually destroy before calling Close. Is that wrong?

-Jordan

0 Kudos
4 Replies
Jordan_C_
Beginner
133 Views

The issue appears to go away when I initialize the session with MFX_IMPL_VIA_D3D11. I suspect there's a bug in the teardown implementation for D3D9.

James_B_9
Beginner
133 Views

Hi,

Is this on Skylake?  I get the same problem, which resolves itself if I switch to DirectX 11.  I also found that using

mfxInitParam::GPUCopy = MFX_GPUCOPY_OFF

removed the problem, does this work for you?

James.

Jordan_C_
Beginner
133 Views

Yes, this is on a Skylake. I tried your fix and that also works for me. Good find. I'm not sure which is the preferable fix.

Surbhi_M_Intel
Employee
133 Views

Thanks Jordan and James for reporting this issue, we will check at our end and fix this bug, 

-Surbhi

Reply