Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Mihail_P_
Beginner
59 Views

sample_decode IDirect3DSurface9::UnlockRect

Greetings

I`ve faced with a strange behavior of sample_decode example in MODE_FILE_DUMP with -d3d option. If I launch this sample project under IDE (VS 2013, Debug or Release configuration, Windows 8.1) - I receive an access violation exception in D3DFrameAllocator::UnlockFrame function, on pSurface->UnlockRect line. If I launch builded sample from the command line - everything works normal.

Does anybody have any idea why this could happen?

0 Kudos
6 Replies
59 Views

Hi Mihail,

Can you provide more detailed description of the issue - version of samples, msdk ver. or share the log from system analyzer (<mediaSDK>/tools/analyzer). We have 3 models of which Dump model includes mode_file_dump function which is called by using -o option to perform decoding with YUV dump. psurface is a pointer to d3d9 memory surface and provides a handle to dump the frames. I am assuming as decoded frame are not completely unlocked when you are call dump function, hence access violation flag is raised. What is the exception message code. Are you using modified sample code or is the issue seen with default sample code? 

Thanks,

Surbhi_M_Intel
Employee
59 Views

Hi Mikhail,

We are able to replicate the issue using -o and -d3d option. Investigating on this issue, will update with a solution/workaround soon. 

Thanks,
Surbhi

59 Views

Hi Mikail,

We are able to rootcause the issue only to d3d surface usage. Thank you for bring this to our notice. This bug currently has been escalated and we expect to fix it with our next release. As you are building application on Win 8.1 OS may I suggest using d3d11 surface in the same scenario, we verified and it works with no access violation error.

Thanks,

Mihail_P_
Beginner
59 Views

Harsh Jain (Intel) wrote:

Hi Mikail,

We are able to rootcause the issue only to d3d surface usage. Thank you for bring this to our notice. This bug currently has been escalated and we expect to fix it with our next release. As you are building application on Win 8.1 OS may I suggest using d3d11 surface in the same scenario, we verified and it works with no access violation error.

Thanks,

Unfortunately, I need to provide comatibility with Windows 7/XP, so I have to use Direct3D9. Though this bug is not critical (only debug mode is affected) it will complicate my work. Is there any workaroud possible from my side?

59 Views

Hi,

As issue occurs only in debug mode, only workaround would be to try and build in release mode. Agree, it will be bit complicated to work in debug mode. But, I will update once we have the fix and will share engineering version soon.

Thanks,

Mihail_P_
Beginner
59 Views

Thanks a lot for the assist, will wait for fix

Reply