Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

MFXClose throws exception

Jordan_C_
Beginner
554 Views

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
554 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.

0 Kudos
James_B_9
Beginner
554 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.

0 Kudos
Jordan_C_
Beginner
554 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.

0 Kudos
Surbhi_M_Intel
Employee
554 Views

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

-Surbhi

0 Kudos
Reply