OgreAL Crash

kintaro

22-01-2007 17:34:52

Hi CaseyB, I get the latest svn head version of ogreAl and I noticed that there is something wrong with the release mode compilation. It compiles ok, but when I run one of the demos, it crashes, doesn't work, different from debug mode where everything is ok, the demos work very well.

What do I have to do to fix the release mode?


Thanks for help.

CaseyB

22-01-2007 18:16:51

What happens when you try to run? Does it just crash or does it bring up an error / exception window?

kintaro

22-01-2007 18:34:39

When I try to run a demo, first appear a black screen, it seems to ben loading resources, and after a while, it returns to windows and appears a send error report window.

Here is the ogre log:

15:18:11: Creating resource group General
15:18:11: Creating resource group Internal
15:18:11: Creating resource group Autodetect
15:18:11: Registering ResourceManager for type Material
15:18:11: Registering ResourceManager for type Mesh
15:18:11: Registering ResourceManager for type Skeleton
15:18:11: MovableObjectFactory for type 'ParticleSystem' registered.
15:18:11: Loading library OgrePlatform.dll
15:18:11: OverlayElementFactory for type Panel registered.
15:18:11: OverlayElementFactory for type BorderPanel registered.
15:18:11: OverlayElementFactory for type TextArea registered.
15:18:11: Registering ResourceManager for type Font
15:18:11: ArchiveFactory for archive type FileSystem registered.
15:18:11: ArchiveFactory for archive type Zip registered.
15:18:11: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
15:18:11: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
15:18:11: Registering ResourceManager for type HighLevelGpuProgram
15:18:11: Registering ResourceManager for type Compositor
15:18:11: MovableObjectFactory for type 'Entity' registered.
15:18:11: MovableObjectFactory for type 'Light' registered.
15:18:11: MovableObjectFactory for type 'BillboardSet' registered.
15:18:11: MovableObjectFactory for type 'ManualObject' registered.
15:18:11: MovableObjectFactory for type 'BillboardChain' registered.
15:18:11: MovableObjectFactory for type 'RibbonTrail' registered.
15:18:11: Loading library .\RenderSystem_Direct3D9
15:18:11: D3D9 : Direct3D9 Rendering Subsystem created.
15:18:11: D3D9: Driver Detection Starts
15:18:11: D3D9: Driver Detection Ends
15:18:11: Loading library .\RenderSystem_GL
15:18:11: OpenGL Rendering Subsystem created.
15:18:12: *-*-* OGRE Initialising
15:18:12: *-*-* Version 1.2.1 (Dagon)
15:18:12: Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
15:18:12: Added resource location '../../Media/Audio' of type 'FileSystem' to resource group 'General'
15:18:12: Added resource location '../../Media/Gui' of type 'FileSystem' to resource group 'General'
15:18:12: Added resource location '../../Media/Materials/Scripts' of type 'FileSystem' to resource group 'General'
15:18:12: Added resource location '../../Media/Materials/Textures' of type 'FileSystem' to resource group 'General'
15:18:12: Added resource location '../../Media/Models' of type 'FileSystem' to resource group 'General'
15:18:12: Added resource location '../../Media/Materials/Textures/cubemapsJS.zip' of type 'Zip' to resource group 'General'
15:18:12: Added resource location '../../Media/Materials/bguires.zip' of type 'Zip' to resource group 'General'
15:18:12: Parsing scripts for resource group Autodetect
15:18:12: Finished parsing scripts for resource group Autodetect
15:18:12: Parsing scripts for resource group General
15:18:12: Parsing script Civic.material
15:18:12: Parsing script Ogre.material
15:18:12: Parsing script Scene.material
15:18:12: Parsing script Tower.material
15:18:12: Parsing script bgui.material
15:18:12: Parsing script Arial.fontdef
15:18:12: Finished parsing scripts for resource group General
15:18:12: Parsing scripts for resource group Internal
15:18:12: Finished parsing scripts for resource group Internal
15:18:12: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
15:18:12: D3D9 : RenderSystem Option: Anti aliasing = None
15:18:12: D3D9 : RenderSystem Option: Floating-point mode = Fastest
15:18:12: D3D9 : RenderSystem Option: Full Screen = Yes
15:18:12: D3D9 : RenderSystem Option: Rendering Device = ATI MOBILITY RADEON Xpress 200 Series
15:18:12: D3D9 : RenderSystem Option: VSync = Yes
15:18:12: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
15:18:12: D3D9 : Subsystem Initialising
15:18:12: D3D9RenderSystem::createRenderWindow "Ogre Framework", 1024x768 fullscreen miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true
15:18:12: D3D9 : Created D3D9 Rendering Window 'Ogre Framework' : 1024x768, 32bpp
15:18:14: Registering ResourceManager for type Texture
15:18:14: Registering ResourceManager for type GpuProgram
15:18:14: RenderSystem capabilities
15:18:14: -------------------------
15:18:14: * Hardware generation of mipmaps: yes
15:18:14: * Texture blending: yes
15:18:14: * Anisotropic texture filtering: yes
15:18:14: * Dot product texture operation: yes
15:18:14: * Cube mapping: yes
15:18:14: * Hardware stencil buffer: yes
15:18:14: - Stencil depth: 8
15:18:14: - Two sided stencil support: yes
15:18:14: - Wrap stencil values: yes
15:18:14: * Hardware vertex / index buffers: yes
15:18:14: * Vertex programs: yes
15:18:14: - Max vertex program version: vs_2_0
15:18:14: * Fragment programs: yes
15:18:14: - Max fragment program version: ps_2_0
15:18:14: * Texture Compression: yes
15:18:14: - DXT: yes
15:18:14: - VTC: no
15:18:14: * Scissor Rectangle: yes
15:18:14: * Hardware Occlusion Query: yes
15:18:14: * User clip planes: yes
15:18:14: * VET_UBYTE4 vertex element type: yes
15:18:14: * Infinite far plane projection: yes
15:18:14: * Hardware render-to-texture: yes
15:18:14: * Floating point textures: yes
15:18:14: * Non-power-of-two textures: yes
15:18:14: * Volume textures: yes
15:18:14: * Multiple Render Targets: 4
15:18:14: * Point Sprites: yes
15:18:14: * Extended point parameters: yes
15:18:14: * Max Point Size: 256
15:18:14: ***************************************
15:18:14: *** D3D9 : Subsystem Initialised OK ***
15:18:14: ***************************************
15:18:14: ResourceBackgroundQueue - threading disabled
15:18:14: Particle Renderer Type 'billboard' registered
15:18:14: Creating viewport on target 'Ogre Framework', rendering from camera 'SimpleCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
15:18:14: Viewport for camera 'SimpleCamera', actual dimensions L: 0 T: 0 W: 1024 H: 768
15:18:14: *-*-* OgreAL Initialization
15:18:14: MovableObjectFactory for type 'OgreAL_Sound' registered.
15:18:14: MovableObjectFactory for type 'OgreAL_Listener' registered.
15:18:14: *-*-* Creating OpenAL
15:18:15: OpenAL Devices: Generic Software, Generic Software,
15:18:15: Choosing: Generic Software
15:18:15: Supported Formats
15:18:15: -----------------
15:18:15: * AL_FORMAT_MONO16, Monophonic Sound
15:18:15: * AL_FORMAT_STEREO16, Stereo Sound
15:18:15: * AL_FORMAT_QUAD16, 4 Channel Sound
15:18:15: * AL_FORMAT_51CHN16, 5.1 Surround Sound
15:18:15: * AL_FORMAT_61CHN16, 6.1 Surround Sound
15:18:15: * AL_FORMAT_71CHN16, 7.1 Surround Sound
15:18:15: EAX 2.0 Detected
15:18:15: Texture: cloudy_noon_fr.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:18:15: Texture: cloudy_noon_bk.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:18:15: Texture: cloudy_noon_lf.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:18:15: Texture: cloudy_noon_rt.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:18:15: Texture: cloudy_noon_up.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:18:15: Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
15:18:15: Mesh: Loading ogrehead.mesh.
15:18:15: Texture: WeirdEye.png: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:18:15: Texture: GreenSkin.jpg: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:18:15: Texture: spheremap.png: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
15:18:15: D3D9 : ***** Dimensions altered by the render system
15:18:15: D3D9 : ***** Source image dimensions : 96x96
15:18:15: D3D9 : ***** Texture dimensions : 128x128
15:18:15: Texture: dirt01.jpg: Loading 1 faces(PF_B8G8R8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
15:18:15: === Setting X-RAM Buffer Mode
15:18:15: === Allocating 118260 bytes of X-RAM



Thanks for your help

CaseyB

22-01-2007 18:57:03

EXCELLENT!!!
You can see in your log that it's allocating X-RAM! This is a feature that I have never been able to test because I could not find anyone whose card would support this! If you wouldn't mind helping me test out this feature then I'll branch off a testing version with a lot of debug info built in so we can have a better idea of where it's crashing!

kintaro

22-01-2007 19:22:18

Sure, I will be glad to help you to test your program. Just ask what I have to do.

I'll pass to you what I am using, maybe it could help you:

currently ogre version: 1.2.1

compiler: Visual Studio 2005 Express

computer: notebook HP Pavilion ZV6250

CaseyB

22-01-2007 19:29:07

Cool! What I'll do is make some changes to the OgreAL project and point you to a different place to update from SVN and it'll print a lot of extra info into the log, so you should just have to update and build like normal. I'll let you know when I get the changes made. It'll have to be tonight since I'm at work now. Thank you!

kintaro

22-01-2007 22:57:56

You're welcome. :D

Ok, I will be waiting for the testing files.

CaseyB

23-01-2007 01:01:51

Turns out it was a mistake on my part. As I was cleaning up the constructor I deleted the line that defaulted X-RAM support to false, so in release mode it was floating and resulted in a true. :oops: I have fixed it in SVN, but the anonymous access may lag a bit. Good find though! And it has also caused me to clean up some more inconsistencies!

kintaro

23-01-2007 01:47:19

Hi CaseyB, I had built normal the SVN OgreAl, in release mode and it is working very well, thanks very much. :D

In debug mode is working very well too.

Here is the ogre log of the demo in release mode:

23:22:51: Creating resource group General
23:22:51: Creating resource group Internal
23:22:51: Creating resource group Autodetect
23:22:51: Registering ResourceManager for type Material
23:22:51: Registering ResourceManager for type Mesh
23:22:51: Registering ResourceManager for type Skeleton
23:22:51: MovableObjectFactory for type 'ParticleSystem' registered.
23:22:51: Loading library OgrePlatform.dll
23:22:51: OverlayElementFactory for type Panel registered.
23:22:51: OverlayElementFactory for type BorderPanel registered.
23:22:51: OverlayElementFactory for type TextArea registered.
23:22:51: Registering ResourceManager for type Font
23:22:51: ArchiveFactory for archive type FileSystem registered.
23:22:51: ArchiveFactory for archive type Zip registered.
23:22:51: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
23:22:51: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
23:22:51: Registering ResourceManager for type HighLevelGpuProgram
23:22:51: Registering ResourceManager for type Compositor
23:22:51: MovableObjectFactory for type 'Entity' registered.
23:22:51: MovableObjectFactory for type 'Light' registered.
23:22:51: MovableObjectFactory for type 'BillboardSet' registered.
23:22:51: MovableObjectFactory for type 'ManualObject' registered.
23:22:51: MovableObjectFactory for type 'BillboardChain' registered.
23:22:51: MovableObjectFactory for type 'RibbonTrail' registered.
23:22:51: Loading library .\RenderSystem_Direct3D9
23:22:51: D3D9 : Direct3D9 Rendering Subsystem created.
23:22:52: D3D9: Driver Detection Starts
23:22:52: D3D9: Driver Detection Ends
23:22:52: Loading library .\RenderSystem_GL
23:22:52: OpenGL Rendering Subsystem created.
23:22:52: *-*-* OGRE Initialising
23:22:52: *-*-* Version 1.2.1 (Dagon)
23:22:52: Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
23:22:52: Added resource location '../../Media/Audio' of type 'FileSystem' to resource group 'General'
23:22:52: Added resource location '../../Media/Gui' of type 'FileSystem' to resource group 'General'
23:22:52: Added resource location '../../Media/Materials/Scripts' of type 'FileSystem' to resource group 'General'
23:22:52: Added resource location '../../Media/Materials/Textures' of type 'FileSystem' to resource group 'General'
23:22:52: Added resource location '../../Media/Models' of type 'FileSystem' to resource group 'General'
23:22:52: Added resource location '../../Media/Materials/Textures/cubemapsJS.zip' of type 'Zip' to resource group 'General'
23:22:52: Added resource location '../../Media/Materials/bguires.zip' of type 'Zip' to resource group 'General'
23:22:52: Parsing scripts for resource group Autodetect
23:22:52: Finished parsing scripts for resource group Autodetect
23:22:52: Parsing scripts for resource group General
23:22:52: Parsing script Civic.material
23:22:52: Parsing script Ogre.material
23:22:52: Parsing script Scene.material
23:22:52: Parsing script Tower.material
23:22:52: Parsing script bgui.material
23:22:52: Parsing script Arial.fontdef
23:22:52: Finished parsing scripts for resource group General
23:22:52: Parsing scripts for resource group Internal
23:22:52: Finished parsing scripts for resource group Internal
23:22:52: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
23:22:52: D3D9 : RenderSystem Option: Anti aliasing = None
23:22:52: D3D9 : RenderSystem Option: Floating-point mode = Fastest
23:22:52: D3D9 : RenderSystem Option: Full Screen = Yes
23:22:52: D3D9 : RenderSystem Option: Rendering Device = ATI MOBILITY RADEON Xpress 200 Series
23:22:52: D3D9 : RenderSystem Option: VSync = No
23:22:52: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
23:22:52: D3D9 : Subsystem Initialising
23:22:52: D3D9RenderSystem::createRenderWindow "Ogre Framework", 800x600 fullscreen miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
23:22:52: D3D9 : Created D3D9 Rendering Window 'Ogre Framework' : 800x600, 32bpp
23:22:53: Registering ResourceManager for type Texture
23:22:53: Registering ResourceManager for type GpuProgram
23:22:53: RenderSystem capabilities
23:22:53: -------------------------
23:22:53: * Hardware generation of mipmaps: yes
23:22:53: * Texture blending: yes
23:22:53: * Anisotropic texture filtering: yes
23:22:53: * Dot product texture operation: yes
23:22:53: * Cube mapping: yes
23:22:53: * Hardware stencil buffer: yes
23:22:53: - Stencil depth: 8
23:22:53: - Two sided stencil support: yes
23:22:53: - Wrap stencil values: yes
23:22:53: * Hardware vertex / index buffers: yes
23:22:53: * Vertex programs: yes
23:22:53: - Max vertex program version: vs_2_0
23:22:53: * Fragment programs: yes
23:22:53: - Max fragment program version: ps_2_0
23:22:53: * Texture Compression: yes
23:22:53: - DXT: yes
23:22:53: - VTC: no
23:22:53: * Scissor Rectangle: yes
23:22:53: * Hardware Occlusion Query: yes
23:22:53: * User clip planes: yes
23:22:53: * VET_UBYTE4 vertex element type: yes
23:22:53: * Infinite far plane projection: yes
23:22:53: * Hardware render-to-texture: yes
23:22:53: * Floating point textures: yes
23:22:53: * Non-power-of-two textures: yes
23:22:53: * Volume textures: yes
23:22:53: * Multiple Render Targets: 4
23:22:53: * Point Sprites: yes
23:22:53: * Extended point parameters: yes
23:22:53: * Max Point Size: 256
23:22:53: ***************************************
23:22:53: *** D3D9 : Subsystem Initialised OK ***
23:22:53: ***************************************
23:22:53: ResourceBackgroundQueue - threading disabled
23:22:53: Particle Renderer Type 'billboard' registered
23:22:53: Creating viewport on target 'Ogre Framework', rendering from camera 'SimpleCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
23:22:53: Viewport for camera 'SimpleCamera', actual dimensions L: 0 T: 0 W: 800 H: 600
23:22:53: *-*-* OgreAL Initialization
23:22:53: MovableObjectFactory for type 'OgreAL_Sound' registered.
23:22:53: MovableObjectFactory for type 'OgreAL_Listener' registered.
23:22:53: *-*-* Creating OpenAL
23:22:54: OpenAL Devices: Generic Software, Generic Software,
23:22:54: Choosing: Generic Software
23:22:54: Supported Formats
23:22:54: -----------------
23:22:54: * AL_FORMAT_MONO16, Monophonic Sound
23:22:54: * AL_FORMAT_STEREO16, Stereo Sound
23:22:54: * AL_FORMAT_QUAD16, 4 Channel Sound
23:22:54: * AL_FORMAT_51CHN16, 5.1 Surround Sound
23:22:54: * AL_FORMAT_61CHN16, 6.1 Surround Sound
23:22:54: * AL_FORMAT_71CHN16, 7.1 Surround Sound
23:22:54: EAX 2.0 Detected
23:22:54: Texture: cloudy_noon_fr.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:22:54: Texture: cloudy_noon_bk.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:22:54: Texture: cloudy_noon_lf.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:22:54: Texture: cloudy_noon_rt.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:22:54: Texture: cloudy_noon_up.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:22:54: Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:22:54: Mesh: Loading ogrehead.mesh.
23:22:54: Texture: WeirdEye.png: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
23:22:54: Texture: GreenSkin.jpg: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
23:22:54: Texture: spheremap.png: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
23:22:54: D3D9 : ***** Dimensions altered by the render system
23:22:54: D3D9 : ***** Source image dimensions : 96x96
23:22:54: D3D9 : ***** Texture dimensions : 128x128
23:22:54: Texture: dirt01.jpg: Loading 1 faces(PF_B8G8R8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
23:22:54: Texture: dirt-grass.jpg: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
23:22:54: Font Arialusing texture size 512x512
23:22:54: Info: Freetype returned null for character 160 in font Arial
23:22:54: Texture: ArialTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
23:22:54: Win32Input8: DirectInput Activation Starts
23:22:54: Win32Input8: Establishing keyboard input.
23:22:54: Win32Input8: Keyboard input established.
23:22:54: Win32Input8: Establishing mouse input.
23:22:54: Win32Input8: Mouse input established.
23:22:54: Win32Input8: DirectInput OK.
23:22:54: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
23:22:59: *-*-* OgreAL Shutdown
23:22:59: *-*-* Releasing OpenAL
23:22:59: *-*-* OGRE Shutdown
23:22:59: Unregistering ResourceManager for type Compositor
23:22:59: Unregistering ResourceManager for type Font
23:22:59: Unregistering ResourceManager for type Skeleton
23:22:59: Unregistering ResourceManager for type Mesh
23:22:59: Unregistering ResourceManager for type HighLevelGpuProgram
23:22:59: *** Stopping Win32GL Subsystem ***
23:22:59: Unloading library .\RenderSystem_GL
23:23:00: Render Target 'Ogre Framework' Average FPS: 75.3433 Best FPS: 76.1622 Worst FPS: 75.1731
23:23:01: D3D9 : Shutting down cleanly.
23:23:01: Unregistering ResourceManager for type Texture
23:23:01: Unregistering ResourceManager for type GpuProgram
23:23:01: D3D9 : Direct3D9 Rendering Subsystem destroyed.
23:23:01: Unloading library .\RenderSystem_Direct3D9
23:23:01: Unregistering ResourceManager for type Material
23:23:01: Unloading library OgrePlatform.dll


There is something else I can do more?

OgreAl is a very nice tool, I like it very much, very easy to use.

Thanks very much

CaseyB

23-01-2007 01:50:59

Nope, that's perfect! Thank you! I am glad you like OgreAL!