Crash on minimize?

chni

17-09-2009 10:47:52

Hi,

When I minimize my Windows.Forms window containing a Mogre render window, the application crashes with an unspecific runtime error. According to the log, Ogre seems to unload itself as soon as I minimize the window.

This is my Ogre log:

10:45:39: D3D9TextureManager released:
10:45:39: 0 unmanaged textures
10:45:39: D3D9HardwareBufferManager released:
10:45:39: 0 unmanaged vertex buffers
10:45:39: 0 unmanaged index buffers
10:45:39: Reset device ok w:792 h:536
10:45:39: D3D9TextureManager recreated:
10:45:39: 0 unmanaged textures
10:45:39: D3D9HardwareBufferManager recreated:
10:45:39: 0 unmanaged vertex buffers
10:45:39: 0 unmanaged index buffers
10:45:39: !!! Direct3D Device successfully restored.
10:45:40: !!! Direct3D Device Lost!
10:45:40: D3D9TextureManager released:
10:45:40: 0 unmanaged textures
10:45:40: D3D9HardwareBufferManager released:
10:45:40: 0 unmanaged vertex buffers
10:45:40: 0 unmanaged index buffers
10:45:40: OGRE EXCEPTION(3:RenderingAPIException): Cannot reset device! Driver internal error in D3D9RenderWindow::restoreLostDevice at d:\cubicalminds\mogreworld\mogre\ogrenew\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp (line 3254)
10:45:42: Unregistering ResourceManager for type BspLevel
10:45:42: *-*-* OGRE Shutdown
10:45:42: Unregistering ResourceManager for type Compositor
10:45:42: Unregistering ResourceManager for type Font
10:45:42: Unregistering ResourceManager for type Skeleton
10:45:42: Unregistering ResourceManager for type Mesh
10:45:42: Unregistering ResourceManager for type HighLevelGpuProgram
10:45:42: Uninstalling plugin: Cg Program Manager
10:45:42: Plugin successfully uninstalled
10:45:42: Unloading library C:/MogreSDK/bin/Debug\Plugin_CgProgramManager_d
10:45:42: Uninstalling plugin: Octree & Terrain Scene Manager
10:45:42: Plugin successfully uninstalled
10:45:42: Unloading library C:/MogreSDK/bin/Debug\Plugin_OctreeSceneManager_d
10:45:42: Uninstalling plugin: BSP Scene Manager
10:45:42: Plugin successfully uninstalled
10:45:42: Unloading library C:/MogreSDK/bin/Debug\Plugin_BSPSceneManager_d
10:45:42: Uninstalling plugin: ParticleFX
10:45:42: Plugin successfully uninstalled
10:45:42: Unloading library C:/MogreSDK/bin/Debug\Plugin_ParticleFX_D
10:45:42: Uninstalling plugin: GL RenderSystem
10:45:42: *** Stopping Win32GL Subsystem ***
10:45:42: Plugin successfully uninstalled
10:45:42: Unloading library C:/MogreSDK/bin/Debug\RenderSystem_GL_d
10:45:42: Uninstalling plugin: D3D9 RenderSystem
10:45:42: Render Target 'Main RenderWindow' Average FPS: 196.295 Best FPS: 392.216 Worst FPS: 0.374813
10:45:42: D3D9 : Shutting down cleanly.
10:45:42: Unregistering ResourceManager for type Texture
10:45:42: Unregistering ResourceManager for type GpuProgram
10:45:42: D3D9 : Direct3D9 Rendering Subsystem destroyed.
10:45:42: Plugin successfully uninstalled
10:45:42: Unloading library C:/MogreSDK/bin/Debug\RenderSystem_Direct3D9_d
10:45:42: Unregistering ResourceManager for type Material


Please help.

Greetings
Chris

smiley80

21-09-2009 17:33:05

Try not to render when the window is minimized.
Or use OpenGL.