Device lost when playing back mkv (1 Viewer)

mryom

Portal Member
April 8, 2007
10
0
Home Country
Denmark Denmark
RC3:
RC3:
Monochrome:
XP SP3:
AMD Athlon(tm) 64 X2 Dual Core Processor 3600+:
Maxtor 300GB:
768(1GB):
Asus :
Nvidia Geforce 8200:
6.14.11.7516:
Nvidia HDMI:
Nvidia HDMI:
Nvidia HDMI Audio 1.0.0.25:
Nvidia HDMI Audio:
CoreAVC 1.8.5:
Panasonic TH42PZ70EA:
HDMI cable 1.3a:


When MP is loaded.
1. Choose 'Watch' menu
2. Choose 'TV-Series' menu
3. Chooses the show, the season and a episode (meaning choose any you like)
4. MP minimizes(by it self), so i get to look at windows backgroud. The sound begins(no picture) plays for 1-5 sec. Then "reverts" to the previous menu. Meaning i can now choose the episode again.


If i choose a episode now, it will play with no issues, this only happens the first time after MP is startet. and only when playing back mkv files.


Not sure this is the right place for this, but to me it looks like a MP problem and not a TV-series problem.
 

EViS

Portal Pro
September 30, 2006
364
2
Home Country
United Kingdom United Kingdom
I have the exact same problem (RC3 with no SVN's) when going into 'My Videos' (I don't have any 'TV-Series' plugins).

The problem DOES NOT exist when using EVR or disabling VMR9's 'Use Exclusive Mode'. I have also tried changing from CoreAVC & AC3Filter to PowerDVD8 Audio/Video decoders, the problem still existed.

The problem only seems to exist with mkv's. All DVD's & TV play fine, I do not have any DIVX's to test with.
 

EViS

Portal Pro
September 30, 2006
364
2
Home Country
United Kingdom United Kingdom
Possibly help in an explanation from the Mediaportal.log:

2008-11-07 00:43:22.656250 [Info.][MPMain]: VMR9: ReleaseComObject(): 0
2008-11-07 00:43:22.656250 [Debug][MPMain]: PlaneScene: PresentImage() dispose surfaces
2008-11-07 00:43:23.125000 [Info.][MPMain]: VideoPlayerVMR9: Disabling DX9 exclusive mode
2008-11-07 00:43:23.125000 [Info.][MPMain]: Main: Received DX exclusive mode switch message. Fullscreen && maximized == False
2008-11-07 00:43:23.125000 [Debug][MPMain]: Main: Goto windowed mode: False
2008-11-07 00:43:23.140625 [Debug][MPMain]: D3D: Switch to windowed mode - Playing media: False
2008-11-07 00:43:23.140625 [Warn.][MPMain]: D3D: Switch to windowed mode failed - Error in the application.
-2005530520 (D3DERR_DEVICELOST)
at Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[] presentationParameters)
at MediaPortal.D3DApp.SwitchFullScreenOrWindowed(Boolean bWindowed)
2008-11-07 00:43:23.140625 [Info.][MPMain]: D3D: BuildPresentParamsFromSe

And from mryom's error.log:

2008-11-06 23:43:01.731415 [ERROR][MPMain]: No translation found for id 109811
2008-11-06 23:43:17.084487 [ERROR][MPMain]: Main: Device lost - Error in the application.
-2005530520 (D3DERR_DEVICELOST)
at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
at Microsoft.DirectX.Direct3D.Device.Present()
at MediaPortalApp.Render(Single timePassed)

Came across this whilst googline, not sure if it is of any help...

The problem arises from the WM_SIZE message handler, which failed to check whether the WM_SIZE message was being kicked off from a switch to fullscreen mode - by a call to "SetWindowLongPtr(m_hWnd,GWL_style,WS_EX_TOPMOST)" - (in which case the message should be ignored) and I believe this was taking focus away from the newly created fullscreen, so that a subsequent call to Reset() within the remainder fullscreen toggle method was failing and throwing a device lost exception that wasn't being handled. There are two obvious solutions to this: (1) add a simple check in the WM_SIZE handler to check for windowed mode before continuing; or, (2) catch exceptions in the toggle method and deal with them. While I agree with adding exception handling in principle, one should not knowingly allow them to be generated during 'normal' operations. Hence, I went with the simple check in my WM_SIZE handler.
 

mryom

Portal Member
April 8, 2007
10
0
Home Country
Denmark Denmark
sorry didnt realize that was dealing with the same issue. Thx

keep up the good work
 

EViS

Portal Pro
September 30, 2006
364
2
Home Country
United Kingdom United Kingdom
Ah yes, should have checked there first :). Thanks tourettes! Looking forward to the update...
 

Users who are viewing this thread

Top Bottom