[SOLVED] Computer freeze with PG, help!

rpgplayerrob

28-03-2009 00:20:32

Hello,

I am having problems with the demos and the examples...

I am using Ogre 1.61 and PagedGeometry 1.05.

What I have encountered first was that I first tried the examples without compiling, and suddenly after some seconds (30 seconds to 3 minutes or so I believe), the computer just freezes, and I can't recover it by any means, so I have to cut the power and start the computer again.

I figured out that this might just be something related to the version of Ogre it uses compared to my Ogre version, so I compiled a version as described on the read me file. When I did this and started the program from the compiler, it's the same, it just freezes my computer completely, and I have to cut the power to get it back again.

I have other projects with the latest Ogre version running without a freeze, so I can not understand what exactly does it, it cannot just be something wrong with a driver or something, because then other Ogre projects would not work I guess?

Have anyone else encountered this problem? And is there a way to show you a log of what happened besides the Ogre.log?

By the way, here is the Ogre.log:


00:45:43: Creating resource group General
00:45:43: Creating resource group Internal
00:45:43: Creating resource group Autodetect
00:45:43: SceneManagerFactory for type 'DefaultSceneManager' registered.
00:45:43: Registering ResourceManager for type Material
00:45:43: Registering ResourceManager for type Mesh
00:45:43: Registering ResourceManager for type Skeleton
00:45:43: MovableObjectFactory for type 'ParticleSystem' registered.
00:45:43: OverlayElementFactory for type Panel registered.
00:45:43: OverlayElementFactory for type BorderPanel registered.
00:45:43: OverlayElementFactory for type TextArea registered.
00:45:43: Registering ResourceManager for type Font
00:45:43: ArchiveFactory for archive type FileSystem registered.
00:45:43: ArchiveFactory for archive type Zip registered.
00:45:43: FreeImage version: 3.10.0
00:45:43: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
00:45:43: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
00:45:43: DDS codec registering
00:45:43: Registering ResourceManager for type HighLevelGpuProgram
00:45:43: Registering ResourceManager for type Compositor
00:45:43: MovableObjectFactory for type 'Entity' registered.
00:45:43: MovableObjectFactory for type 'Light' registered.
00:45:43: MovableObjectFactory for type 'BillboardSet' registered.
00:45:43: MovableObjectFactory for type 'ManualObject' registered.
00:45:43: MovableObjectFactory for type 'BillboardChain' registered.
00:45:43: MovableObjectFactory for type 'RibbonTrail' registered.
00:45:43: *-*-* OGRE Initialising
00:45:43: *-*-* Version 1.6.1 (Shoggoth)
00:45:43: Loading library Plugin_CgProgramManager
00:45:43: Installing plugin: Cg Program Manager
00:45:43: Plugin successfully installed
00:45:43: Loading library Plugin_OctreeSceneManager
00:45:43: Installing plugin: Octree & Terrain Scene Manager
00:45:43: Plugin successfully installed
00:45:43: Loading library RenderSystem_Direct3D9
00:45:43: Installing plugin: D3D9 RenderSystem
00:45:43: D3D9 : Direct3D9 Rendering Subsystem created.
00:45:43: D3D9: Driver Detection Starts
00:45:43: D3D9: Driver Detection Ends
00:45:43: Plugin successfully installed
00:45:43: Loading library RenderSystem_GL
00:45:43: Installing plugin: GL RenderSystem
00:45:43: OpenGL Rendering Subsystem created.
00:45:44: Plugin successfully installed
00:45:44: OGRE EXCEPTION(6:FileNotFoundException): 'ogre.cfg' file not found! in ConfigFile::load at ..\src\OgreConfigFile.cpp (line 84)
00:45:51: D3D9 : RenderSystem Option: Full Screen = No
00:45:53: CPU Identifier & Features
00:45:53: -------------------------
00:45:53: * CPU ID: AuthenticAMD: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
00:45:53: * SSE: yes
00:45:53: * SSE2: yes
00:45:53: * SSE3: yes
00:45:53: * MMX: yes
00:45:53: * MMXEXT: yes
00:45:53: * 3DNOW: yes
00:45:53: * 3DNOWEXT: yes
00:45:53: * CMOV: yes
00:45:53: * TSC: yes
00:45:53: * FPU: yes
00:45:53: * PRO: yes
00:45:53: * HT: no
00:45:53: -------------------------
00:45:53: D3D9 : Subsystem Initialising
00:45:53: D3D9RenderSystem::_createRenderWindow "PagedGeometry Example 7 - Lightmaps", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
00:45:53: D3D9 : Created D3D9 Rendering Window 'PagedGeometry Example 7 - Lightmaps' : 800x600, 32bpp
00:45:53: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
00:45:53: Registering ResourceManager for type Texture
00:45:53: Registering ResourceManager for type GpuProgram
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT16_R
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT32_R
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT16_GR
00:45:53: D3D9: Vertex texture format supported - PF_FLOAT32_GR
00:45:53: RenderSystem capabilities
00:45:53: -------------------------
00:45:53: RenderSystem Name: Direct3D9 Rendering Subsystem
00:45:53: GPU Vendor: nvidia
00:45:53: Device Name: NVIDIA GeForce 8400 GS
00:45:53: Driver Version: 7.15.11.5834
00:45:53: * Fixed function pipeline: yes
00:45:53: * Hardware generation of mipmaps: yes
00:45:53: * Texture blending: yes
00:45:53: * Anisotropic texture filtering: yes
00:45:53: * Dot product texture operation: yes
00:45:53: * Cube mapping: yes
00:45:53: * Hardware stencil buffer: yes
00:45:53: - Stencil depth: 8
00:45:53: - Two sided stencil support: yes
00:45:53: - Wrap stencil values: yes
00:45:53: * Hardware vertex / index buffers: yes
00:45:53: * Vertex programs: yes
00:45:53: * Fragment programs: yes
00:45:53: * Geometry programs: no
00:45:53: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
00:45:53: * Texture Compression: yes
00:45:53: - DXT: yes
00:45:53: - VTC: no
00:45:53: * Scissor Rectangle: yes
00:45:53: * Hardware Occlusion Query: yes
00:45:53: * User clip planes: yes
00:45:53: * VET_UBYTE4 vertex element type: yes
00:45:53: * Infinite far plane projection: yes
00:45:53: * Hardware render-to-texture: yes
00:45:53: * Floating point textures: yes
00:45:53: * Non-power-of-two textures: yes
00:45:53: * Volume textures: yes
00:45:53: * Multiple Render Targets: 4
00:45:53: - With different bit depths: yes
00:45:53: * Point Sprites: yes
00:45:53: * Extended point parameters: yes
00:45:53: * Max Point Size: 8192
00:45:53: * Vertex texture fetch: yes
00:45:53: - Max vertex textures: 4
00:45:53: - Vertex textures shared: no
00:45:53: * Render to Vertex Buffer : no
00:45:53: * DirectX per stage constants: yes
00:45:53: ***************************************
00:45:53: *** D3D9 : Subsystem Initialised OK ***
00:45:53: ***************************************
00:45:53: ResourceBackgroundQueue - threading disabled
00:45:53: Particle Renderer Type 'billboard' registered
00:45:53: SceneManagerFactory for type 'OctreeSceneManager' registered.
00:45:53: SceneManagerFactory for type 'TerrainSceneManager' registered.
00:45:53: TerrainSceneManager: Registered a new PageSource for type Heightmap
00:45:53: Added resource location '../../media/trees' of type 'FileSystem' to resource group 'General'
00:45:53: Added resource location '../../media/terrains' of type 'FileSystem' to resource group 'General'
00:45:53: Added resource location '../../media/grass' of type 'FileSystem' to resource group 'General'
00:45:53: Parsing scripts for resource group Autodetect
00:45:53: Finished parsing scripts for resource group Autodetect
00:45:53: Parsing scripts for resource group General
00:45:53: Parsing script tree.material
00:45:53: Parsing script grass.material
00:45:53: Finished parsing scripts for resource group General
00:45:53: Parsing scripts for resource group Internal
00:45:53: Finished parsing scripts for resource group Internal
00:45:53: TerrainSceneManager: Activated PageSource Heightmap
00:45:53: Texture: terrain_texture2.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:45:53: Texture: terrain_detail.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
00:45:54: Texture: densitymap.png: Loading 1 faces(PF_A8R8G8B8,513x513x1) with 9 generated mipmaps from Image. Internal format is PF_A8R8G8B8,513x513x1.
00:45:54: Texture: terrain_lightmap.jpg: Loading 1 faces(PF_L8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_L8,512x512x1.
00:45:54: Mesh: Loading tree2.mesh.
00:45:54: WARNING: tree2.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
00:45:54: Texture: wood7.jpg: Loading 1 faces(PF_R8G8B8,600x600x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,600x600x1.
00:45:54: Texture: Leaves.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
00:45:54: Texture: grass2.png: Loading 1 faces(PF_A8R8G8B8,253x253x1) with 7 generated mipmaps from Image. Internal format is PF_A8R8G8B8,253x253x1.
00:45:55: Creating resource group BinFolder
00:45:55: Added resource location '.' of type 'FileSystem' to resource group 'BinFolder'
00:45:55: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Impostor.HKSHDSOJOKUYFPGCRGIKVPHHWDUCIZTF.128.png in resource group BinFolder or any other group. in ResourceGroupManager::openResource at ..\src\OgreResourceGroupManager.cpp (line 753)
00:45:55: Texture: Impostor.HKSHDSOJOKUYFPGCRGIKVPHHWDUCIZTF.128.png: Loading 1 faces(PF_A8R8G8B8,1024x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x512x1.

nargil

28-03-2009 07:42:13

Looks as it's freezing trying to create the impostor .png files in your applications root directory. Does the application have write permission in the directory ? Do you have some free space on the drive ?

rpgplayerrob

29-03-2009 20:15:28

Ok, I'll try to remove write-protection on the folder, and try it with that. I have about 150 gb free space so that shouldn't be the problem.

Just to be clear, the Ogre.log there doesn't really show the error at the time it happens, the computer just freezes, the OGRE EXEPTION there is just at startup of the application, and then it runs fine for 30 seconds to about 2 minutes, and then the freeze comes.

rpgplayerrob

29-03-2009 20:42:04

Ok, I have removed the write-protection on all the files in the project just to be sure, but it still freezes, but this time the log looks like this:

21:39:21: Creating resource group General
21:39:21: Creating resource group Internal
21:39:21: Creating resource group Autodetect
21:39:21: SceneManagerFactory for type 'DefaultSceneManager' registered.
21:39:21: Registering ResourceManager for type Material
21:39:21: Registering ResourceManager for type Mesh
21:39:21: Registering ResourceManager for type Skeleton
21:39:21: MovableObjectFactory for type 'ParticleSystem' registered.
21:39:21: OverlayElementFactory for type Panel registered.
21:39:21: OverlayElementFactory for type BorderPanel registered.
21:39:21: OverlayElementFactory for type TextArea registered.
21:39:21: Registering ResourceManager for type Font
21:39:21: ArchiveFactory for archive type FileSystem registered.
21:39:21: ArchiveFactory for archive type Zip registered.
21:39:21: FreeImage version: 3.10.0
21:39:21: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
21:39:21: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
21:39:21: DDS codec registering
21:39:21: Registering ResourceManager for type HighLevelGpuProgram
21:39:21: Registering ResourceManager for type Compositor
21:39:21: MovableObjectFactory for type 'Entity' registered.
21:39:21: MovableObjectFactory for type 'Light' registered.
21:39:21: MovableObjectFactory for type 'BillboardSet' registered.
21:39:21: MovableObjectFactory for type 'ManualObject' registered.
21:39:21: MovableObjectFactory for type 'BillboardChain' registered.
21:39:21: MovableObjectFactory for type 'RibbonTrail' registered.
21:39:21: *-*-* OGRE Initialising
21:39:21: *-*-* Version 1.6.1 (Shoggoth)
21:39:21: Loading library Plugin_CgProgramManager
21:39:21: Installing plugin: Cg Program Manager
21:39:21: Plugin successfully installed
21:39:21: Loading library Plugin_OctreeSceneManager
21:39:21: Installing plugin: Octree & Terrain Scene Manager
21:39:21: Plugin successfully installed
21:39:21: Loading library RenderSystem_Direct3D9
21:39:21: Installing plugin: D3D9 RenderSystem
21:39:21: D3D9 : Direct3D9 Rendering Subsystem created.
21:39:21: D3D9: Driver Detection Starts
21:39:21: D3D9: Driver Detection Ends
21:39:21: Plugin successfully installed
21:39:21: Loading library RenderSystem_GL
21:39:21: Installing plugin: GL RenderSystem
21:39:21: OpenGL Rendering Subsystem created.
21:39:22: Plugin successfully installed
21:39:22: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
21:39:22: D3D9 : RenderSystem Option: Anti aliasing = None
21:39:22: D3D9 : RenderSystem Option: Floating-point mode = Fastest
21:39:22: D3D9 : RenderSystem Option: Full Screen = No
21:39:22: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 8400 GS
21:39:22: D3D9 : RenderSystem Option: VSync = No
21:39:22: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
21:39:22: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
21:39:27: *** Stopping Win32GL Subsystem ***
21:39:27: CPU Identifier & Features
21:39:27: -------------------------
21:39:27: * CPU ID: AuthenticAMD: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
21:39:27: * SSE: yes
21:39:27: * SSE2: yes
21:39:27: * SSE3: yes
21:39:27: * MMX: yes
21:39:27: * MMXEXT: yes
21:39:27: * 3DNOW: yes
21:39:27: * 3DNOWEXT: yes
21:39:27: * CMOV: yes
21:39:27: * TSC: yes
21:39:27: * FPU: yes
21:39:27: * PRO: yes
21:39:27: * HT: no
21:39:27: -------------------------
21:39:27: D3D9 : Subsystem Initialising
21:39:27: D3D9RenderSystem::_createRenderWindow "PagedGeometry Example 7 - Lightmaps", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
21:39:27: D3D9 : Created D3D9 Rendering Window 'PagedGeometry Example 7 - Lightmaps' : 800x600, 32bpp
21:39:27: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
21:39:27: Registering ResourceManager for type Texture
21:39:27: Registering ResourceManager for type GpuProgram
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT16_R
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT32_R
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT16_GR
21:39:27: D3D9: Vertex texture format supported - PF_FLOAT32_GR
21:39:27: RenderSystem capabilities
21:39:27: -------------------------
21:39:27: RenderSystem Name: Direct3D9 Rendering Subsystem
21:39:27: GPU Vendor: nvidia
21:39:27: Device Name: NVIDIA GeForce 8400 GS
21:39:27: Driver Version: 7.15.11.5834
21:39:27: * Fixed function pipeline: yes
21:39:27: * Hardware generation of mipmaps: yes
21:39:27: * Texture blending: yes
21:39:27: * Anisotropic texture filtering: yes
21:39:27: * Dot product texture operation: yes
21:39:27: * Cube mapping: yes
21:39:27: * Hardware stencil buffer: yes
21:39:27: - Stencil depth: 8
21:39:27: - Two sided stencil support: yes
21:39:27: - Wrap stencil values: yes
21:39:27: * Hardware vertex / index buffers: yes
21:39:27: * Vertex programs: yes
21:39:27: * Fragment programs: yes
21:39:27: * Geometry programs: no
21:39:27: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
21:39:27: * Texture Compression: yes
21:39:27: - DXT: yes
21:39:27: - VTC: no
21:39:27: * Scissor Rectangle: yes
21:39:27: * Hardware Occlusion Query: yes
21:39:27: * User clip planes: yes
21:39:27: * VET_UBYTE4 vertex element type: yes
21:39:27: * Infinite far plane projection: yes
21:39:27: * Hardware render-to-texture: yes
21:39:27: * Floating point textures: yes
21:39:27: * Non-power-of-two textures: yes
21:39:27: * Volume textures: yes
21:39:27: * Multiple Render Targets: 4
21:39:27: - With different bit depths: yes
21:39:27: * Point Sprites: yes
21:39:27: * Extended point parameters: yes
21:39:27: * Max Point Size: 8192
21:39:27: * Vertex texture fetch: yes
21:39:27: - Max vertex textures: 4
21:39:27: - Vertex textures shared: no
21:39:27: * Render to Vertex Buffer : no
21:39:27: * DirectX per stage constants: yes
21:39:27: ***************************************
21:39:27: *** D3D9 : Subsystem Initialised OK ***
21:39:27: ***************************************
21:39:27: ResourceBackgroundQueue - threading disabled
21:39:27: Particle Renderer Type 'billboard' registered
21:39:27: SceneManagerFactory for type 'OctreeSceneManager' registered.
21:39:27: SceneManagerFactory for type 'TerrainSceneManager' registered.
21:39:27: TerrainSceneManager: Registered a new PageSource for type Heightmap
21:39:27: Added resource location '../../media/trees' of type 'FileSystem' to resource group 'General'
21:39:27: Added resource location '../../media/terrains' of type 'FileSystem' to resource group 'General'
21:39:27: Added resource location '../../media/grass' of type 'FileSystem' to resource group 'General'
21:39:27: Parsing scripts for resource group Autodetect
21:39:27: Finished parsing scripts for resource group Autodetect
21:39:27: Parsing scripts for resource group General
21:39:27: Parsing script tree.material
21:39:27: Parsing script grass.material
21:39:27: Finished parsing scripts for resource group General
21:39:27: Parsing scripts for resource group Internal
21:39:27: Finished parsing scripts for resource group Internal
21:39:27: TerrainSceneManager: Activated PageSource Heightmap
21:39:27: Texture: terrain_texture2.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:39:27: Texture: terrain_detail.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
21:39:27: Texture: densitymap.png: Loading 1 faces(PF_A8R8G8B8,513x513x1) with 9 generated mipmaps from Image. Internal format is PF_A8R8G8B8,513x513x1.
21:39:28: Texture: terrain_lightmap.jpg: Loading 1 faces(PF_L8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_L8,512x512x1.
21:39:28: Mesh: Loading tree2.mesh.
21:39:28: WARNING: tree2.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
21:39:28: Texture: wood7.jpg: Loading 1 faces(PF_R8G8B8,600x600x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,600x600x1.
21:39:28: Texture: Leaves.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
21:39:28: Texture: grass2.png: Loading 1 faces(PF_A8R8G8B8,253x253x1) with 7 generated mipmaps from Image. Internal format is PF_A8R8G8B8,253x253x1.
21:39:28: Creating resource group BinFolder
21:39:28: Added resource location '.' of type 'FileSystem' to resource group 'BinFolder'
21:39:28: Texture: Impostor.HKSHDSOJOKUYFPGCRGIKVPHHWDUCIZTF.128.png: Loading 1 faces(PF_A8R8G8B8,1024x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x512x1.


I am running on Direct3D as you can see in the log, and I realized that I should try OpenGL as well, and on OpenGL it works, it never freezes there.

Any ideas?

rpgplayerrob

29-03-2009 23:58:37

Hi again, I downloaded the latest drivers for my graphic card, and now it seems to be working... :oops: