Linux Segfault with Demos

Glooba

16-05-2006 08:19:37

I have a very vague segfault while trying to build the demos under linux. I've modified all of the OgreNewt files to make them compile and link under linux, and demo1 compiles. However when I to run it I get a segfault This is just the end of the console output:

Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Mesh: Loading cylinder.mesh.
Texture: BeachStones.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Newton Frame Listener... m_elapsed: 0 m_update:0.00833333
Newton updates this loop: 0
Segmentation fault


I've tried to use GDB to figure out what is happening, but the Ogre window pops up and then I loose control of the mouse and keyboard, so I have not been able to get a stack trace of the problem.
The only compiles warnings I get are:

/home/kris/ogrenewtlibrary/src/OgreNewt_CollisionPrimitives.cpp: In constructor `OgreNewt::CollisionPrimitives::TreeCollision::TreeCollision(const OgreNewt::World*, int, int, const float*, const int*, bool)':
/home/kris/ogrenewtlibrary/src/OgreNewt_CollisionPrimitives.cpp:377: warning: passing NULL used for non-pointer converting 5 of `void NewtonTreeCollisionAddFace(const NewtonCollision*, int, const dFloat*, int, int)'
/home/kris/ogrenewtlibrary/src/OgreNewt_CollisionPrimitives.cpp: In constructor `OgreNewt::CollisionPrimitives::TreeCollision::TreeCollision(const OgreNewt::World*, int, Ogre::Vector3*, Ogre::IndexData*, bool)':
/home/kris/ogrenewtlibrary/src/OgreNewt_CollisionPrimitives.cpp:410: warning: passing NULL used for non-pointer converting 5 of `void NewtonTreeCollisionAddFace(const NewtonCollision*, int, const dFloat*, int, int)'
/home/kris/ogrenewtlibrary/src/OgreNewt_CollisionPrimitives.cpp:424: warning: passing NULL used for non-pointer converting 5 of `void NewtonTreeCollisionAddFace(const NewtonCollision*, int, const dFloat*, int, int)'

I'm sorry for such a vague description but its really the best I can do given the circumstances. If anyone has any idea what the problem could be or any suggestions could they please give me a hint.

TIA
Kris

pratty70

10-01-2007 17:49:21

Did you ever resolve this - what I am getting is very much like this !!

sharkyx

23-01-2007 15:01:29

For proper debugging, read this:

http://www.xfree86.org/4.4.0/XF86Config.5.html

Option "AllowDeactivateGrabs" "boolean"
This option enables the use of the Ctrl+Alt+Keypad-Divide key sequence to deactivate any active keyboard and mouse grabs. Default: off.