Strange Tutorial x06 Problem

charlie

29-05-2006 21:18:42

Hallo!

The x06 demo exits immedeately after pressing the OK button in the ogre configuration dialog....
Any idea what could be the problem.
The tutorial is unchanged except that I commented the following lines because I get compilation problems (probably due to different Ogre Versions).

@betajaen: Oh, and thanks again for the upload of the media today. :)


//OverlayManager::getSingleton().getOverlayElement("nx.gui.logo")->setLeft(mViewport[3]->getWidth() - 68);
//mTextInstructions = OverlayManager::getSingleton().getOverlayElement("nx.gui.text-instructions.text");
//mTextInstructions->setCaption(instructions);


Here's the log file:

21:57:15: Creating resource group General
21:57:15: Creating resource group Internal
21:57:15: Creating resource group Autodetect
21:57:15: Registering ResourceManager for type Material
21:57:15: Registering ResourceManager for type Mesh
21:57:15: Registering ResourceManager for type Skeleton
21:57:15: MovableObjectFactory for type 'ParticleSystem' registered.
21:57:15: Loading library OgrePlatform.dll
21:57:15: OverlayElementFactory for type Panel registered.
21:57:15: OverlayElementFactory for type BorderPanel registered.
21:57:15: OverlayElementFactory for type TextArea registered.
21:57:15: Registering ResourceManager for type Font
21:57:15: ArchiveFactory for archive type FileSystem registered.
21:57:15: ArchiveFactory for archive type Zip registered.
21:57:15: DevIL version: Developer's Image Library (DevIL) 1.6.5
21:57:15: DevIL image formats: bmp dib cut dcx dds gif 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
21:57:15: Registering ResourceManager for type HighLevelGpuProgram
21:57:15: Registering ResourceManager for type Compositor
21:57:15: MovableObjectFactory for type 'Entity' registered.
21:57:15: MovableObjectFactory for type 'Light' registered.
21:57:15: MovableObjectFactory for type 'BillboardSet' registered.
21:57:15: MovableObjectFactory for type 'ManualObject' registered.
21:57:15: MovableObjectFactory for type 'BillboardChain' registered.
21:57:15: MovableObjectFactory for type 'RibbonTrail' registered.
21:57:15: Loading library .\RenderSystem_Direct3D9
21:57:15: D3D9 : Direct3D9 Rendering Subsystem created.
21:57:15: D3D9: Driver Detection Starts
21:57:15: D3D9: Driver Detection Ends
21:57:15: Loading library .\RenderSystem_GL
21:57:15: OpenGL Rendering Subsystem created.
21:57:16: Loading library .\Plugin_ParticleFX
21:57:16: Particle Emitter Type 'Point' registered
21:57:16: Particle Emitter Type 'Box' registered
21:57:16: Particle Emitter Type 'Ellipsoid' registered
21:57:16: Particle Emitter Type 'Cylinder' registered
21:57:16: Particle Emitter Type 'Ring' registered
21:57:16: Particle Emitter Type 'HollowEllipsoid' registered
21:57:16: Particle Affector Type 'LinearForce' registered
21:57:16: Particle Affector Type 'ColourFader' registered
21:57:16: Particle Affector Type 'ColourFader2' registered
21:57:16: Particle Affector Type 'ColourImage' registered
21:57:16: Particle Affector Type 'ColourInterpolator' registered
21:57:16: Particle Affector Type 'Scaler' registered
21:57:16: Particle Affector Type 'Rotator' registered
21:57:16: Particle Affector Type 'DirectionRandomiser' registered
21:57:16: Particle Affector Type 'DeflectorPlane' registered
21:57:16: Loading library .\Plugin_BSPSceneManager
21:57:16: Registering ResourceManager for type BspLevel
21:57:16: Loading library .\Plugin_OctreeSceneManager
21:57:16: Loading library .\Plugin_CgProgramManager
21:57:16: *-*-* OGRE Initialising
21:57:16: *-*-* Version 1.2.0 (Dagon)
21:57:16: Creating resource group Bootstrap
21:57:16: Added resource location '../Media/overlays/' of type 'FileSystem' to resource group 'Bootstrap'
21:57:16: Added resource location '../Media/' of type 'FileSystem' to resource group 'General'
21:57:16: Added resource location '../Media/images/' of type 'FileSystem' to resource group 'General'
21:57:16: Added resource location '../Media/materials/' of type 'FileSystem' to resource group 'General'
21:57:16: Added resource location '../Media/meshes/' of type 'FileSystem' to resource group 'General'
21:57:16: Added resource location '../Media/particles/' of type 'FileSystem' to resource group 'General'
21:57:16: Added resource location '../Media/315/' of type 'FileSystem' to resource group 'General'
21:57:16: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
21:57:16: D3D9 : RenderSystem Option: Anti aliasing = None
21:57:16: D3D9 : RenderSystem Option: Floating-point mode = Fastest
21:57:16: D3D9 : RenderSystem Option: Full Screen = No
21:57:16: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce4 Ti 4200 with AGP8X
21:57:16: D3D9 : RenderSystem Option: VSync = No
21:57:16: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
21:57:17: D3D9 : Subsystem Initialising
21:57:17: D3D9RenderSystem::createRenderWindow "Tutorial x06 - NxTurismo", 1024x768 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
21:57:17: D3D9 : Created D3D9 Rendering Window 'Tutorial x06 - NxTurismo' : 1024x768, 32bpp
21:57:17: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
21:57:17: Registering ResourceManager for type Texture
21:57:17: Registering ResourceManager for type GpuProgram
21:57:17: RenderSystem capabilities
21:57:17: -------------------------
21:57:17: * Hardware generation of mipmaps: yes
21:57:17: * Texture blending: yes
21:57:17: * Anisotropic texture filtering: yes
21:57:17: * Dot product texture operation: yes
21:57:17: * Cube mapping: yes
21:57:17: * Hardware stencil buffer: yes
21:57:17: - Stencil depth: 8
21:57:17: - Two sided stencil support: no
21:57:17: - Wrap stencil values: yes
21:57:17: * Hardware vertex / index buffers: yes
21:57:17: * Vertex programs: yes
21:57:17: - Max vertex program version: vs_1_1
21:57:17: * Fragment programs: yes
21:57:17: - Max fragment program version: ps_1_3
21:57:17: * Texture Compression: yes
21:57:17: - DXT: yes
21:57:17: - VTC: no
21:57:17: * Scissor Rectangle: yes
21:57:17: * Hardware Occlusion Query: yes
21:57:17: * User clip planes: no
21:57:17: * VET_UBYTE4 vertex element type: no
21:57:17: * Infinite far plane projection: no
21:57:17: * Hardware render-to-texture: yes
21:57:17: * Floating point textures: no
21:57:17: * Non-power-of-two textures: yes
21:57:17: * Volume textures: yes
21:57:17: * Multiple Render Targets: 1
21:57:17: * Point Sprites: yes
21:57:17: * Extended point parameters: yes
21:57:17: * Max Point Size: 8192
21:57:17: ***************************************
21:57:17: *** D3D9 : Subsystem Initialised OK ***
21:57:17: ***************************************
21:57:17: ResourceBackgroundQueue - threading disabled
21:57:17: Particle Renderer Type 'billboard' registered
21:57:17: Creating viewport on target 'Tutorial x06 - NxTurismo', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
21:57:17: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 1024 H: 768
21:57:17: Parsing scripts for resource group Autodetect
21:57:17: Finished parsing scripts for resource group Autodetect
21:57:17: Parsing scripts for resource group Bootstrap
21:57:17: Parsing script OgreCore.material
21:57:17: Parsing script OgreProfiler.material
21:57:17: Parsing script Ogre.fontdef
21:57:17: Parsing script OgreDebugPanel.overlay
21:57:17: Texture: nx.gui.center.png: Loading 1 faces(PF_A8B8G8R8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
21:57:17: Font TrebuchetMSBoldusing texture size 512x512
21:57:17: Info: Freetype returned null for character 160 in font TrebuchetMSBold
21:57:17: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
21:57:17: Bad element attribute line: 'right 2' for element nx.gui.logo in overlay Core/DebugOverlay
21:57:17: Texture: nx.gui.logo.png: Loading 1 faces(PF_A8B8G8R8,64x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
21:57:17: Bad element attribute line: 'right 2' for element nx.gui.instructions in overlay Core/DebugOverlay
21:57:17: D3D9 : ***** Dimensions altered by the render system
21:57:17: D3D9 : ***** Source image dimensions : 196x196
21:57:17: D3D9 : ***** Texture dimensions : 256x256
21:57:17: Texture: controls1.png: Loading 1 faces(PF_A8B8G8R8,196x196x1) with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
21:57:17: Parsing script OgreLoadingPanel.overlay
21:57:17: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
21:57:17: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
21:57:17: Finished parsing scripts for resource group Bootstrap
21:57:17: Parsing scripts for resource group General
21:57:17: Parsing script heightmap.material
21:57:17: Parsing script nx.grid.material
21:57:17: Parsing script nx.particles.material
21:57:17: Parsing script nx.shapes.material
21:57:17: Error in material nx.raycaster at line 130 of nx.shapes.material: Bad specular attribute, wrong number of parameters (expected 2, 4 or 5)
21:57:17: Error in material nx.crosshair at line 145 of nx.shapes.material: Bad specular attribute, wrong number of parameters (expected 2, 4 or 5)
21:57:17: Parsing script nx.stairs.material
21:57:17: Parsing script nx.track.material
21:57:17: Parsing script nx.zones.material
21:57:17: Parsing script nature.cloud_dome.material
21:57:17: Parsing script nx.315.material
21:57:17: Parsing script nx6.material
21:57:17: Parsing script Scene.material
21:57:17: Parsing script nx.particles.particle
21:57:17: Finished parsing scripts for resource group General
21:57:17: Parsing scripts for resource group Internal
21:57:17: Finished parsing scripts for resource group Internal
21:57:17: Win32Input8: DirectInput Activation Starts
21:57:17: Win32Input8: Establishing keyboard input.
21:57:17: Win32Input8: Keyboard input established.
21:57:17: Win32Input8: Initializing mouse input in immediate mode.
21:57:17: Win32Input8: Mouse input in immediate mode initialized.
21:57:17: Win32Input8: DirectInput OK.
21:57:17: Mesh: Loading nx6.clouddome.mesh.
21:57:17: Warning: material clo has no supportable Techniques on this hardware, it will be rendered blank.
21:57:17: Mesh: Loading nx6.skydome.mesh.
21:57:17: [NxOgre] NxOgre Log started.
21:57:17: [NxOgre] Starting up PhysX SDK
21:57:17: [NxOgre] Started.
21:57:17: [NxOgre] Creating scene 'Main'.
21:57:17: Mesh: Loading nx.track.mesh.
21:57:17: Texture: road2.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:17: Texture: road1-leaves.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road4.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road1-leaves2.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road3.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road1-leaves4a.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: topgrass.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: soilwall1.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road1.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road2-sideleaves.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: Texture: road1-leaves4b.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:57:18: 5
21:57:18: Mesh: Loading nx6.chassis.mesh.
21:57:18: Texture: nx6.chassis.png: Loading 1 faces(PF_B8G8R8,4x4x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,4x4x1.
21:57:18: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: SceneNode::attachObject
Description: Object already attached to a SceneNode or a Bone.
File: ..\src\OgreSceneNode.cpp
Line: 117
Stack unwinding: <<beginning of stack>>
21:57:18: Unregistering ResourceManager for type BspLevel
21:57:18: *-*-* OGRE Shutdown
21:57:18: Unregistering ResourceManager for type Compositor
21:57:18: Unregistering ResourceManager for type Font
21:57:18: Unregistering ResourceManager for type Skeleton
21:57:18: Unregistering ResourceManager for type Mesh
21:57:18: Unregistering ResourceManager for type HighLevelGpuProgram
21:57:18: Unloading library .\Plugin_CgProgramManager
21:57:18: Unloading library .\Plugin_OctreeSceneManager
21:57:18: Unloading library .\Plugin_BSPSceneManager
21:57:18: Unloading library .\Plugin_ParticleFX
21:57:18: *** Stopping Win32GL Subsystem ***
21:57:18: Unloading library .\RenderSystem_GL
21:57:19: Render Target 'Tutorial x06 - NxTurismo' Average FPS: 0 Best FPS: 0 Worst FPS: 999
21:57:19: D3D9 : Shutting down cleanly.
21:57:19: Unregistering ResourceManager for type Texture
21:57:19: Unregistering ResourceManager for type GpuProgram
21:57:19: D3D9 : Direct3D9 Rendering Subsystem destroyed.
21:57:19: Unloading library .\RenderSystem_Direct3D9
21:57:19: Unregistering ResourceManager for type Material
21:57:19: Unloading library OgrePlatform.dll

betajaen

29-05-2006 21:50:51

Hmm, Interesting. I have not seen it crash before.

The crash may be the mTextInstructions you've just commented out (it's used later for car stats.), so I'd comment all of that code out too.

But the error seems to be focused around the car entity being attached twice.

charlie

30-05-2006 08:37:02

What Version of ogre are you using?

betajaen

30-05-2006 09:54:43

Erm, none on the PC ;)

Although I was working with Dagon RC 1/CVS before the computer exploded, but many people have had it working with Dagon before. There is even a thread around here about the vehicle demo and tweaking the class in Dagon.

magura

16-06-2006 16:52:46

see
http://www.ogre3d.org/phpBB2addons/view ... =9427#9427

that seems to fix the issue, tho its a bit hacky :)