SlimDX, errors resizing a form


Topic related to current development efforts on the core engine and demos

Veteran

Posts: 787

Joined: Wed Mar 22, 2006 8:06 pm

Post Wed Apr 14, 2010 4:57 pm

SlimDX, errors resizing a form

Hi, I got some nasty logs, the trouble is when a render window gets resized. It happens when rendering to a System.Windows.Forms.Form directly, but I'm not getting troubles when rendering to a Control.

Log 1: RenderToTexture demo, SlimDX Aug09/Feb10, I resized the window with mouse, there was the D3DRenderWindow.WindowMovedOrResized() call (see log entry), crash.
http://axiom.pastebin.com/Thyv7rR7

Log 2: Shadows demo, SlimDX Aug09/Feb10, I resized the window with mouse, there was the D3DRenderWindow.WindowMovedOrResized() call (see log entry). No crash, but window stopped updating (freezed).
http://axiom.pastebin.com/GAa7Kb8t

Perhaps it gives a clue to the unexpected buffer disposals in SlimDX
User avatar

Site Admin

Posts: 1270

Joined: Thu Mar 02, 2006 11:29 pm

Location: Boston, MA, USA

Post Wed Jul 28, 2010 1:08 pm

Re: SlimDX, errors resizing a form

Do you get these crashes on demo's that don't use RTT's like CameraTrack or Particle?
Borrillis
The Steward of Axiom

Veteran

Posts: 787

Joined: Wed Mar 22, 2006 8:06 pm

Post Fri Jul 30, 2010 5:20 am

Re: SlimDX, errors resizing a form

Unfortunately yes, tried fresh trunk (SlimDX Feb10) and have run CameraTrack, SkyBox (had an issue with ParticleFX demo) and some others, doesn't seem to depend on RTT.

This is from CameraTrack

[D3D] : BackBuffer was disposed, reinitializing.
[D3D] : ZBuffer was disposed, reinitializing.
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:797,H:598, AR:1,332776
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:793,H:595, AR:1,332773
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:785,H:585, AR:1,34188
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:781,H:579, AR:1,348877
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:770,H:568, AR:1,355634
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:760,H:558, AR:1,362007
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:747,H:542, AR:1,378229
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:740,H:531, AR:1,393597
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:730,H:514, AR:1,420233
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:726,H:508, AR:1,429134
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:724,H:504, AR:1,436508
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:722,H:501, AR:1,441118
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:720,H:499, AR:1,442886
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:720,H:498, AR:1,445783
!!! Direct3D Device Lost!
Viewport for camera 'MainCamera' - actual dimensions L:0,T:0,W:720,H:497, AR:1,448692
HardwareBufferManager: No unused temporary vertex buffers found.
D3DTextureManager released:
0 unmanaged textures.
D3DHardwareBufferManager released:
0 unmanaged vertex buffers.
0 unmanaged index buffers.
D3DERR_INVALIDCALL: Invalid call (-2005530516)
at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
at SlimDX.Direct3D9.Device.Reset(PresentParameters presentParameters)
at Axiom.RenderSystems.DirectX9.D3DRenderSystem.RestoreLostDevice() in g:\prj\AxiomAndOgre\axiom-trunk-fresh\Projects\Axiom\RenderSystems\DirectX9\D3DRenderSystem.cs:line 2880
HardwareBufferManager: No unused temporary vertex buffers found.
D3DTextureManager released:
0 unmanaged textures.
D3DHardwareBufferManager released:
0 unmanaged vertex buffers.
0 unmanaged index buffers.
D3DERR_INVALIDCALL: Invalid call (-2005530516)
at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
at SlimDX.Direct3D9.Device.Reset(PresentParameters presentParameters)
at Axiom.RenderSystems.DirectX9.D3DRenderSystem.RestoreLostDevice() in g:\prj\AxiomAndOgre\axiom-trunk-fresh\Projects\Axiom\RenderSystems\DirectX9\D3DRenderSystem.cs:line 2880
HardwareBufferManager: No unused temporary vertex buffers found.
D3DTextureManager released:
0 unmanaged textures.
D3DHardwareBufferManager released:
0 unmanaged vertex buffers.
0 unmanaged index buffers.
D3DERR_INVALIDCALL: ....

repeats

Veteran

Posts: 787

Joined: Wed Mar 22, 2006 8:06 pm

Post Fri Jul 30, 2010 9:59 am

Re: SlimDX, errors resizing a form

just prooved this problem on another machine, I'd wonder if being the only who's getting this. Same issues on different hardware - with XP/32 and Vista/32. DirectX and graphics drivers up to date on both systems. Used the most recent trunk. This happens if rendering to a system window in the built in render loop (the way demos do). I'm also rendering to a SWF.Control by calling RenderTarget.Update() on specific events and the control (RT) can be resized freely.

Return to Engine Development

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.