Page 1 of 1

IDirect3D9_CreateDevice fails after play/stop sequence

Posted: 13 May 2013 08:41
by balasubramanya
Hi,

IDirect3DDevice9_Present() fails with hr = 0x88760868 after doing play/stop sequence for long time. After receiving this error the next play() command fails with following error in IDirect3D9_GetDeviceCaps().
direct3d error: Could not read adapter capabilities. (hr=0x8876086A)
This error continues and it eventually leads to following error
direct3d error: Could not create the D3D device! (hr=0x8876086A)
direct3d error: Direct3D could not be opened
After this the playback stops.

I am playing live rtsp content with play/stop sequence in every 10 seconds. This issue is seen after few hours of playback.
I am using vlc 1.1.11. I can not use any other newer versions of vlc because this one is the stable version I thought after testing versions upto vlc 2.0.5. Please help me out with few inputs to fix this issue.

Regards,
Bala

Re: IDirect3D9_CreateDevice fails after play/stop sequence

Posted: 13 May 2013 17:03
by Jean-Baptiste Kempf
This is an issue of your video drivers, possibly. Can you try the DirectX video output?

Re: IDirect3D9_CreateDevice fails after play/stop sequence

Posted: 22 May 2013 11:32
by balasubramanya
Hi JB,

Following are my observations.

After getting the error(E_INVALIDARG or D3DERR_DEVICELOST) the subsequent calls to direct3d/directx creation/setup fails and the browser doesn't behave properly.
IDirect3DDevice9_Present fails with error E_INVALIDARG(HRESULT=0x80070057) or D3DERR_DEVICELOST(hr = 0x88760868)
According to MSDN(http://msdn.microsoft.com/en-us/library ... s.85).aspx) this error indicates "One or more arguments are not valid". What could be the reason for this error?

According to MSDN (http://msdn.microsoft.com/en-us/library ... s.85).aspx) we should reset the direct3d device if get D3DERR_DEVICELOST error.

For D3DERR_DEVICELOST issue I have already raised one more query in this forum.

These issues are seen after playing the video for more than 1hour.

Regards,
Bala