CreateWorld Crash

jarwulf

27-02-2011 21:16:36

Hi after reformatting my computer I have a bunch of NxOgre programs that worked before suddenly not working anymore due to I guess mixing up of some files. In one I'm getting a crash at this line.


// Create the world.
mWorld = NxOgre::World::createWorld();



which autobreaks at


/* validation section */
_VALIDATE_RETURN_ERRCODE(dst != NULL, EINVAL);
if (src == NULL || sizeInBytes < count)
{
/* zeroes the destination buffer */
memset(dst, 0, sizeInBytes);

_VALIDATE_RETURN_ERRCODE(src != NULL, EINVAL);
_VALIDATE_RETURN_ERRCODE(sizeInBytes >= count, ERANGE);
/* useless, but prefast is confused */
return EINVAL;
}

*break* memcpy(dst, src, count);
return 0;



The Ogrelogfile.log is as follows

22:23:17: Parsing script Dither.material
22:23:17: Parsing script DOF.material
22:23:17: OGRE EXCEPTION(7:InternalErrorException): Unable to find CG profile enum for program DOF_Blend_ps: The parameter used is invalid. in CgProgram::selectProfile at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
22:23:17: High-level program DOF_Blend_ps encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to find CG profile enum for program DOF_Blend_ps: The parameter used is invalid. in CgProgram::selectProfile at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)

22:23:17: Parsing script Embossed.material
22:23:17: Parsing script Example-Water.material
22:23:18: Parsing script Examples-Advanced.material
22:23:18: Parsing script Examples-DynTex.material
22:23:18: Parsing script Examples-Water.material
22:23:18: Parsing script Examples.material
22:23:18: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
22:23:18: Compiler error: invalid parameters in Examples.material(837): setting of constant failed

22:23:19: Parsing script facial.material
22:23:19: Parsing script Glass.material
22:23:19: Parsing script GLSLSwizzle.material
22:23:19: Parsing script Halftone.material
22:23:19: Parsing script hdr.material
22:23:19: Parsing script HeatVision.material
22:23:19: Parsing script Hurt.material
22:23:19: Parsing script instancing.material
22:23:20: Parsing script Invert.material
22:23:20: Parsing script IsoSurf.material
22:23:20: Parsing script Laplace.material
22:23:20: Parsing script MotionBlur.material
22:23:20: Parsing script MRTtest.material
22:23:20: Parsing script NightVision.material
22:23:20: Parsing script Ocean.material
22:23:20: Parsing script OffsetMapping.material
22:23:20: Parsing script Ogre.material
22:23:20: Parsing script OldMovie.material
22:23:21: Parsing script OldTV.material
22:23:21: Parsing script ParticleGS.material
22:23:21: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: The compile returned an error.
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
22:23:21: High-level program Ogre/ParticleGS/GenerateVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: The compile returned an error.
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
22:23:21: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: The compile returned an error.
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
22:23:21: High-level program Ogre/ParticleGS/DisplayVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: The compile returned an error.
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
22:23:21: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: The compile returned an error.
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
22:23:21: High-level program Ogre/ParticleGS/DisplayPS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: The compile returned an error.
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)

22:23:21: Parsing script Penguin.material
22:23:21: Parsing script Posterize.material
22:23:21: Parsing script pssm.material
22:23:21: Parsing script RadialBlur.material
22:23:21: Parsing script RZR-002.material
22:23:21: Parsing script ShaderSystem.material
22:23:21: Parsing script shadows.material
22:23:21: Parsing script SharpenEdges.material
22:23:21: Parsing script sibenik.material
22:23:21: Parsing script smoke.material
22:23:21: Parsing script Tiling.material
22:23:21: Parsing script Trans.material
22:23:21: Parsing script VarianceShadowmap.material
22:23:21: Parsing script deferreddemo.material
22:23:21: Parsing script deferred_post.material
22:23:21: Parsing script deferred_post_minilight.material
22:23:21: Parsing script ShadowCaster.material
22:23:21: Parsing script ssao.material
22:23:21: Parsing script ROOM.material
22:23:21: Parsing script RTShaderSystem.material
22:23:21: Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
22:23:21: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized

22:23:21: Parsing script RomanBath.material
22:23:21: Parsing script Sinbad.material
22:23:21: Parsing script racecar.material
22:23:21: Parsing script wheel50cmx10cmx50cm.material
22:23:21: Parsing script photon.material
22:23:22: Parsing script cc.material
22:23:22: Parsing script emitted_emitter.particle
22:23:22: Parsing script Examples-Water.particle
22:23:22: Parsing script Examples.particle
22:23:22: Parsing script smoke.particle
22:23:22: Parsing script nxogre.zz.particle
22:23:22: Parsing script Examples.compositor
22:23:22: Parsing script deferred.compositor
22:23:22: Parsing script ssao.compositor
22:23:22: Parsing script sample.fontdef
22:23:22: Finished parsing scripts for resource group Popular



Any idea what's missing?

Thanks

betajaen

27-02-2011 21:33:52

First step, Have you copied the PhysX dlls into your application's folder?

jarwulf

27-02-2011 21:41:01

First step, Have you copied the PhysX dlls into your application's folder?


Thanks this particular one at least works now. I don't remember having to copy over all the PhysX files before. Is this nvidia's idea of a new feature?

betajaen

27-02-2011 22:06:42

I think the System Software hasn't been updated for the 2.8.4 dlls, which NxOgre is compiled against. The master PhysX loader DLL tries to load 2.8.4 which doesn't exist.