Is the problem blueprint

mnm23

16-08-2006 02:03:44

Hey guys. I have a problem when loading up my project or the tutorials 605 and 606. This only started happening in my project when i added in bluprint. The exe's will only load up half the time. A problem occurs the other half and asks me to either debug, send/dont send report. When i choose debug is takes me to nxOgre_body.cpp and point to this code (Line 197):


if (_type == STATIC)
/*197*/ mActor->setGroup(owner->findGroupIndex("static"));
else
mActor->setGroup(owner->findGroupIndex("default"));


Just out of curiosity is the blueprint used for HW coding of PhysX. (only if you have PhysX card). Otherwise i have no idea why it works half the time and the other times it doesnt.

mnm23

16-08-2006 06:27:57

Somthing i found that was interesting was everytime i restarted it would start any of the above executibles fine. I must have restarted at least a dozen times by now. If i tried to do it with out restarting it would crash many times before it went through. Could this be with something not being erased/cleared in memory. Very wierd. Thanks again for the help.

betajaen

16-08-2006 10:04:58

Thats weird, and no the blueprints aren't limited to hardware.

Load up a DOS window, and run the tutorials that way, and see what the last few lines of debug output are?

mnm23

16-08-2006 17:43:07

When i try Tutorial606 the last few line say this before it crashes

[NxOgre] NxOgre Log Started.
[NxOgre] Starting up PhysX SDK
Unable to find any Athena Hardware device!
[NxOgre] Started.
[NxOgre] Creating scene 'Main'.


That is the same with Tutorial605. I dont get any output from my project when i run the exe. because its not a console project.

mnm23

16-08-2006 19:05:14

Ok i created a log to print out to a text file for my project and the last few lines are the same but i am posting the entire log in case there is something i missed. Sorry for it being so long.

13:39:48: Creating resource group General
13:39:48: Creating resource group Internal
13:39:48: Creating resource group Autodetect
13:39:48: Registering ResourceManager for type Material
13:39:48: Registering ResourceManager for type Mesh
13:39:48: Registering ResourceManager for type Skeleton
13:39:48: MovableObjectFactory for type 'ParticleSystem' registered.
13:39:48: Loading library OgrePlatform.dll
13:39:48: OverlayElementFactory for type Panel registered.
13:39:48: OverlayElementFactory for type BorderPanel registered.
13:39:48: OverlayElementFactory for type TextArea registered.
13:39:48: Registering ResourceManager for type Font
13:39:48: ArchiveFactory for archive type FileSystem registered.
13:39:48: ArchiveFactory for archive type Zip registered.
13:39:48: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
13:39:48: 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
13:39:48: Registering ResourceManager for type HighLevelGpuProgram
13:39:48: Registering ResourceManager for type Compositor
13:39:48: MovableObjectFactory for type 'Entity' registered.
13:39:48: MovableObjectFactory for type 'Light' registered.
13:39:48: MovableObjectFactory for type 'BillboardSet' registered.
13:39:48: MovableObjectFactory for type 'ManualObject' registered.
13:39:48: MovableObjectFactory for type 'BillboardChain' registered.
13:39:48: MovableObjectFactory for type 'RibbonTrail' registered.
13:39:48: Loading library .\RenderSystem_Direct3D9
13:39:48: D3D9 : Direct3D9 Rendering Subsystem created.
13:39:48: D3D9: Driver Detection Starts
13:39:48: D3D9: Driver Detection Ends
13:39:48: Loading library .\RenderSystem_GL
13:39:48: OpenGL Rendering Subsystem created.
13:39:49: Loading library .\Plugin_ParticleFX
13:39:49: Particle Emitter Type 'Point' registered
13:39:49: Particle Emitter Type 'Box' registered
13:39:49: Particle Emitter Type 'Ellipsoid' registered
13:39:49: Particle Emitter Type 'Cylinder' registered
13:39:49: Particle Emitter Type 'Ring' registered
13:39:49: Particle Emitter Type 'HollowEllipsoid' registered
13:39:49: Particle Affector Type 'LinearForce' registered
13:39:49: Particle Affector Type 'ColourFader' registered
13:39:49: Particle Affector Type 'ColourFader2' registered
13:39:49: Particle Affector Type 'ColourImage' registered
13:39:49: Particle Affector Type 'ColourInterpolator' registered
13:39:49: Particle Affector Type 'Scaler' registered
13:39:49: Particle Affector Type 'Rotator' registered
13:39:49: Particle Affector Type 'DirectionRandomiser' registered
13:39:49: Particle Affector Type 'DeflectorPlane' registered
13:39:49: Loading library .\Plugin_BSPSceneManager
13:39:49: Registering ResourceManager for type BspLevel
13:39:49: Loading library .\Plugin_OctreeSceneManager
13:39:49: Loading library .\Plugin_CgProgramManager
13:39:49: *-*-* OGRE Initialising
13:39:49: *-*-* Version 1.2.1 (Dagon)
13:39:49: Creating resource group Bootstrap
13:39:49: Added resource location '../Media/overlays/' of type 'FileSystem' to resource group 'Bootstrap'
13:39:49: Added resource location '../Media/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/images/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/materials/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/meshes/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/particles/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/materials/programs' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/materials/textures' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/models' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/set/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/instructions/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/315/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/216/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/605/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/606/' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/particle' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/fonts' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/Characters' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/Level_1' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/Level_3' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/gui' of type 'FileSystem' to resource group 'General'
13:39:49: Added resource location '../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
13:39:49: Added resource location '../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
13:39:49: Added resource location '../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
13:39:49: Added resource location '../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
13:39:49: Added resource location '../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
13:39:49: Added resource location '../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
13:39:49: Creating resource group Intro
13:39:49: Added resource location '../Media/gui/Intro/Intro.zip' of type 'Zip' to resource group 'Intro'
13:39:49: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
13:39:49: D3D9 : RenderSystem Option: Anti aliasing = None
13:39:49: D3D9 : RenderSystem Option: Floating-point mode = Fastest
13:39:49: D3D9 : RenderSystem Option: Full Screen = No
13:39:49: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce Go 7900 GTX
13:39:49: D3D9 : RenderSystem Option: VSync = No
13:39:49: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
13:39:49: D3D9 : Subsystem Initialising
13:39:49: D3D9RenderSystem::createRenderWindow "MyOgreWindow", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
13:39:49: D3D9 : Created D3D9 Rendering Window 'MyOgreWindow' : 800x600, 32bpp
13:39:49: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:39:49: Registering ResourceManager for type Texture
13:39:49: Registering ResourceManager for type GpuProgram
13:39:49: RenderSystem capabilities
13:39:49: -------------------------
13:39:49: * Hardware generation of mipmaps: yes
13:39:49: * Texture blending: yes
13:39:49: * Anisotropic texture filtering: yes
13:39:49: * Dot product texture operation: yes
13:39:49: * Cube mapping: yes
13:39:49: * Hardware stencil buffer: yes
13:39:49: - Stencil depth: 8
13:39:49: - Two sided stencil support: yes
13:39:49: - Wrap stencil values: yes
13:39:49: * Hardware vertex / index buffers: yes
13:39:49: * Vertex programs: yes
13:39:49: - Max vertex program version: vs_3_0
13:39:49: * Fragment programs: yes
13:39:49: - Max fragment program version: ps_3_0
13:39:49: * Texture Compression: yes
13:39:49: - DXT: yes
13:39:49: - VTC: no
13:39:49: * Scissor Rectangle: yes
13:39:49: * Hardware Occlusion Query: yes
13:39:49: * User clip planes: yes
13:39:49: * VET_UBYTE4 vertex element type: yes
13:39:49: * Infinite far plane projection: yes
13:39:49: * Hardware render-to-texture: yes
13:39:49: * Floating point textures: yes
13:39:49: * Non-power-of-two textures: yes
13:39:49: * Volume textures: yes
13:39:49: * Multiple Render Targets: 4
13:39:49: * Point Sprites: yes
13:39:49: * Extended point parameters: yes
13:39:49: * Max Point Size: 8192
13:39:49: ***************************************
13:39:49: *** D3D9 : Subsystem Initialised OK ***
13:39:49: ***************************************
13:39:49: ResourceBackgroundQueue - threading disabled
13:39:49: Particle Renderer Type 'billboard' registered
13:39:49: Win32Input8: DirectInput Activation Starts
13:39:49: Win32Input8: Establishing keyboard input.
13:39:49: Win32Input8: Keyboard input established.
13:39:49: Win32Input8: Establishing mouse input.
13:39:49: Win32Input8: Mouse input established.
13:39:49: Win32Input8: DirectInput OK.
13:39:49: Win32Input8: DirectInput Activation Starts
13:39:49: Win32Input8: Establishing keyboard input.
13:39:49: Win32Input8: Keyboard input established.
13:39:49: Win32Input8: Initializing mouse input in immediate mode.
13:39:49: Win32Input8: Mouse input in immediate mode initialized.
13:39:49: Win32Input8: DirectInput OK.
13:39:49: Creating viewport on target 'MyOgreWindow', rendering from camera 'IntroCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
13:39:49: Viewport for camera 'IntroCam', actual dimensions L: 0 T: 0 W: 800 H: 600
13:39:49: Initialising resource group Intro
13:39:49: Parsing scripts for resource group Intro
13:39:49: Finished parsing scripts for resource group Intro
13:39:49: Texture: TaharezLook.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:39:49: Texture: _cegui_ogre_0: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
13:39:49: Texture: _cegui_ogre_1: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:39:49: Texture: introterm5.png: Loading 1 faces(PF_A8B8G8R8,800x600x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,800x600x1.
13:39:49: Texture: loadingback.png: Loading 1 faces(PF_A8B8G8R8,600x50x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,600x50x1.
13:39:49: Texture: loading.png: Loading 1 faces(PF_A8B8G8R8,40x40x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,40x40x1.
13:39:49: Parsing scripts for resource group Autodetect
13:39:49: Finished parsing scripts for resource group Autodetect
13:39:49: Parsing scripts for resource group Bootstrap
13:39:49: Parsing script OgreCore.material
13:39:49: Parsing script OgreProfiler.material
13:39:49: Parsing script Ogre.fontdef
13:39:49: Parsing script OgreDebugPanel.overlay
13:39:49: Font TrebuchetMSBoldusing texture size 512x512
13:39:49: Info: Freetype returned null for character 160 in font TrebuchetMSBold
13:39:49: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
13:39:49: Bad element attribute line: 'right 2' for element nx.gui.logo in overlay Core/DebugOverlay
13:39:49: Texture: nx.logo.png: Loading 1 faces(PF_A8B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
13:39:49: Parsing script OgreLoadingPanel.overlay
13:39:49: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
13:39:49: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:39:49: Finished parsing scripts for resource group Bootstrap
13:39:49: Parsing scripts for resource group General
13:39:49: Parsing script Examples.program
13:39:50: Parsing script StdQuad_vp.program
13:39:50: Parsing script heightmap.material
13:39:50: Parsing script nx.grid.material
13:39:50: Parsing script nx.particles.material
13:39:50: Parsing script nx.shapes.material
13:39:50: Error in material nx.raycaster at line 204 of nx.shapes.material: Bad specular attribute, wrong number of parameters (expected 2, 4 or 5)
13:39:50: Error in material nx.crosshair at line 219 of nx.shapes.material: Bad specular attribute, wrong number of parameters (expected 2, 4 or 5)
13:39:50: Parsing script nx.stairs.material
13:39:50: Parsing script nx.track.material
13:39:50: Parsing script nx.zones.material
13:39:50: Parsing script BlackAndWhite.material
13:39:50: Parsing script Bloom.material
13:39:50: Parsing script DOF.material
13:39:50: Parsing script Embossed.material
13:39:50: Parsing script Example-DynTex.material
13:39:50: Parsing script Example-Water.material
13:39:50: Parsing script Example.material
13:39:50: Parsing script Examples-Advanced.material
13:39:50: Parsing script facial.material
13:39:50: Parsing script Glass.material
13:39:50: Parsing script hdr.material
13:39:50: Parsing script HeatVision.material
13:39:50: Parsing script Hurt.material
13:39:50: Parsing script Invert.material
13:39:50: Parsing script Laplace.material
13:39:50: Parsing script MotionBlur.material
13:39:50: Parsing script Ocean.material
13:39:50: Parsing script OffsetMapping.material
13:39:50: Parsing script Ogre.material
13:39:50: Parsing script OldMovie.material
13:39:50: Parsing script OldTV.material
13:39:50: Parsing script Posterize.material
13:39:50: Parsing script RZR-002.material
13:39:50: Parsing script SharpenEdges.material
13:39:51: Parsing script smoke.material
13:39:51: Parsing script Tiling.material
13:39:51: Parsing script 312.material
13:39:51: Parsing script 313.material
13:39:51: Parsing script chair.material
13:39:51: Error in material nx.t112.Plastice[s] Ogre Exporter by Walaber at line 3 of chair.material: Expecting '{' but got material nx.t112.Metal instead.
13:39:51: Error in material nx.t112.Plastice[s] Ogre Exporter by Walaber at line 3 of chair.material: Unexpected end of file.
13:39:51: Parsing script set.material
13:39:51: Parsing script instructions.material
13:39:51: Parsing script nx.bodyguide.material
13:39:51: Parsing script nature.cloud_dome.material
13:39:51: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named view_position.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: Error at line 18 of nature.cloud_dome.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named view_position.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named skyScale.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: Error at line 18 of nature.cloud_dome.material: Invalid param_named attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named skyScale.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDir.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: Error at line 38 of nature.cloud_dome.material: Invalid param_named attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDir.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDir.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: Error in material clo at line 68 of nature.cloud_dome.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDir.
File: ..\src\OgreGpuProgram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
13:39:51: Parsing script nx.315.material
13:39:51: Parsing script nx6.material
13:39:51: Parsing script Scene.material
13:39:51: Parsing script int.material
13:39:51: Parsing script nx.interior1.material
13:39:51: Parsing script Liger.material
13:39:51: Parsing script RockBoss.material
13:39:51: Parsing script Roman.material
13:39:51: Parsing script RomanBoss.material
13:39:51: Parsing script RomanBoss2.material
13:39:51: Parsing script VG6_GGVV_Level_RomanConcept.material
13:39:51: Parsing script FPS_Aaron.material
13:39:51: Parsing script fresnelenviron.material
13:39:51: Parsing script Examples.compositor
13:39:51: Parsing script sample.fontdef
13:39:51: Parsing script nx.particles.particle
13:39:51: Parsing script Example-Water.particle
13:39:51: Parsing script Example.particle
13:39:51: Parsing script smoke.particle
13:39:51: Finished parsing scripts for resource group General
13:39:51: Parsing scripts for resource group Internal
13:39:51: Finished parsing scripts for resource group Internal
13:39:51: Creating viewport on target 'MyOgreWindow', rendering from camera 'MenuCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
13:39:51: Viewport for camera 'MenuCam', actual dimensions L: 0 T: 0 W: 800 H: 600
13:39:51: Texture: TaharezLook.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:39:51: Texture: _cegui_ogre_2: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
13:39:51: Texture: _cegui_ogre_3: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
13:39:51: Texture: Term5MenuImageSet.png: Loading 1 faces(PF_A8B8G8R8,800x600x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,800x600x1.
13:39:51: Texture: menuback.png: Loading 1 faces(PF_B8G8R8,487x334x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8,487x334x1.
13:39:52: Texture: clouds.jpg: Loading 1 faces(PF_B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
13:39:52: [NxOgre] NxOgre Log started.
13:39:52: [NxOgre] Starting up PhysX SDK
13:39:52: [NxOgre] Started.
13:39:52: [NxOgre] Creating scene 'Main'.

M@gg!

16-08-2006 19:15:05

Did you try to implement more debug messages to locate the error exactly?

Ogre::LogManager::getSingleton().LogMessage("string");

Print out some pointers, too.

Have you used the debug function of Visual Studio?

mnm23

16-08-2006 19:19:09

I have used the debug function in VS and it point to nxOgre_body.cpp. I have in my first post that actual line it points to.

M@gg!

16-08-2006 19:35:34

Ok, I forgot about this.

Did you examine the classes in the debugger? If there are NULL Pointers?

mnm23

16-08-2006 19:49:05

I dont understand what you mean by this.

Did you examine the classes in the debugger? If there are NULL Pointers?


If you mean did i check while in debug mode to see if there were any NULL pointers. Yes i did. But i only checked through the classe that called the mActor. Still couldnt find anything wrong. Really wierd and annoying because i have to try to load up the exe. a few times before it actually works. Thanks for the help.

M@gg!

16-08-2006 20:07:25

If you mean did i check while in debug mode to see if there were any NULL pointers. Yes i did. But i only checked through the classe that called the mActor. .

Yes, I meant this.

mnm23

16-08-2006 20:07:31

Ok maybe its not blueprint, because i just tried loading up Tutorial06 and it did the samething. I had to try to launch the exe. a few times before it actually went.

As well Tutorial07 gave me the same problem but for Tutorial07 the cosole read soemthing different than the others.

[NxOgre] NxOgre Log started.
[NxOgre] Starting up PhysX SDK
Unable to find any Athena Hardware devices!
[NxOgre] Started.
[NxOgre] Creating scene "Scene.0'.
Mesh Loading cube.1m.mesh.
[NxOgre] Creating scene 'Scene.1'.


Unlike the others how they crashed at Scene 'Main". this one crashed at scene 'Scene.1'. Dont know if this helps. Ill keep looking to see if i can find any similarities.

mnm23

16-08-2006 20:46:00

I have gone through all the tutorials and these are all the ones that crashed when starting. Tutorial309, 402, 605, 606, 802, x06, x07. They all crashed with the debug pointing to the same place.

if (_type == STATIC)
mActor->setGroup(owner->findGroupIndex("static"));
else
mActor->setGroup(owner->findGroupIndex("default"));



Also Tutorial 901 crashed when starting but it left behind CookedFluidMesh.bin. Dont know what that is.

betajaen

16-08-2006 21:08:14

Thing is those tutorials aren't really that related, and 402 and x07 don't even exist anymore.

Also what part of that if statement is it crashing on?

mnm23

16-08-2006 21:15:42

They all point to this line.


mActor->setGroup(owner->findGroupIndex("static"));

betajaen

16-08-2006 21:26:18

Which doesn't make sense anyway because the static group is already set up.

Try:

mActor->setGroup(2)

mnm23

16-08-2006 21:37:30

Ok i tried what you said and it crashed again but this time it points to this line in nxOgre_body.cpp.

if (_type == STATIC)

betajaen

16-08-2006 22:00:23

Okay that is becoming silly, it must be corrupt file somewhere.

Re-download NxOgre from the CVS into a fresh directory and recompile.

mnm23

17-08-2006 06:05:16

Ok so i think i have solved the problem. I havent re-downloaded nxOgre. I was messing around with the code. I noticed that when it was crashing was when it said creating scene Scene 'Main". Now im my code it looks like this.

mSceneMgr->setAmbientLight(ColourValue(1, 1, 1));

mSceneMgr->setSkyDome(true, "Examples/CloudySky");

mWorld = new nxOgre::world(mRoot);

nxOgre::scene* mScene = mWorld->createScene("Main", mSceneMgr);


After looking at this for a long time i thought what if mSceneMgr is messing it up because i am setting a few things before. Now i have always had my projects set up this way. Never have they given me any trouble like this, but i was pulling at anything to try to figure this out. So my code looks like this now.

mWorld = new nxOgre::world(mRoot);

nxOgre::scene* mScene = mWorld->createScene("Main", mSceneMgr);

mSceneMgr->setAmbientLight(ColourValue(1, 1, 1));

mSceneMgr->setSkyDome(true, "Examples/CloudySky");


And now it works, so far(LOL). I have loaded it up at least 20 times and still no crashing. I hope this helps anyone who comes acrross this so they dont have to go through what i went through in the last two days. LOL.

Watch i go back to it now and it crashes. Anyways thanks for all the help and advice guys. Much appreciated.

M@gg!

17-08-2006 08:03:17

Realy strange.

In our program the physic is initialised far after setting up the scene in Ogre and it works pretty good!

BigBulle

19-08-2006 23:27:45

I get exactly the same crash at the same position:
if (_type == STATIC)
mActor->setGroup(owner->findGroupIndex("static"));


with the following exception message:
Unhandled exception at 0x005b1709 (nxOgre.dll) in Tretissimus.exe: 0xC0000005: Access violation writing location 0x00000004.

betajaen

20-08-2006 09:52:19

I can't understand how that code causes it to crash, it's really clean and the static group should be created at that point.

Can I ask how you are creating your world, scene and body?

BigBulle

26-08-2006 11:31:00

Sorry for the delay on this answer. I can't work on this project really often.

My code is based on the ExampleApplication class of the Ogre's tutorials (I read that it's not a good idea, I will look to that later).
I create everything in the createScene() methods like this:
// Create ground
createPlane("grid","nx.grid",Vector3(0,0,0),Vector2(1024,1024),Vector2(100,100));

mWorld = new nxOgre::world(mRoot);
nxOgre::scene* mScene = mWorld->createScene("Main",mSceneMgr);

mScene->hasGravity();
mScene->hasFloor();

nxOgre::body * wallleft = mScene->createBody("WallLeft", "cube.1m.mesh", new nxOgre::cubeShape(Ogre::Vector3(2,20,2)), 1000.0f, Ogre::Vector3(-5,10,0));
wallleft->mNode->scale(Ogre::Vector3(2,20,2));

nxOgre::body * wallRight = mScene->createBody("WallRight", "cube.1m.mesh", new nxOgre::cubeShape(Ogre::Vector3(2,20,2)), 1000.0f, Ogre::Vector3(5,10,0));
wallRight->mNode->scale(Ogre::Vector3(2,20,2));


As you certainly guess, I'm new to Ogre and to nxOgre :wink: . So please don't waste to much time on this post, especially if I'm the only one to get this problem.

CU,

BigBulle

betajaen

26-08-2006 12:01:28

No, thats pretty normal.

Although I would make those walls static bodies (mScene->createStaticBody) rather than dynamics.

I can't see any bugs or coding errors in that code, very strange.

datniel

29-04-2007 12:20:26

I've been having the same problem on and off for a while. I traced it back to:

mActor = owner->mScene->createActor(mActorDescription);

-would result in a NULL variable.

The problem just cropped up again two days before my final (uni) assignment hand-in.... which is nice :). It seems this very bad hack has fixed it for now, bizarrely:


while ( !mActor ) {
mActor = owner->mScene->createActor(mActorDescription);
Ogre::LogManager::getSingleton().logMessage("New Actor");
}


I'd just thought I'd ask if anyone else is still seeing this problem? I've not updated in a couple of months, I must admit, nxOgre_includes.h tells me I'm using a CVS build of "NxOgre 0.5".

betajaen

29-04-2007 16:55:04

Probably because your using 0.5, when a NULL pointer is set for a new actor. It means PhysX had a problem with the parameters of the actor and body description.

I suggest you upgrade to 0.4RC3 or 0.6SVN both are slightly more advanced and newer than what your playing with now ;)

datniel

29-04-2007 22:39:59

Ok great, thanks betajaen I'll try that out ASAP.