Segfault running PyOgre on debian unstable

mansu

14-12-2005 19:26:05

Hi,

I have tried installing Pyogre on debian(unstable) and it wasn't smooth. I had ogre 1.0.5 on my machine with libcegui 0.3.0. This setup ran all the demos and some of the programs i worked on from the tutorials.
These are the steps i did:

python setup.py install

This code generated the swig bindings for ogre .It gave many warnings.

But it failed for cegui with an error saying that CEGUIUDim.h was not found. Then i installed CEGUI 0.4.1 from source in /usr/local and it failed to compile for Demo4. Since it was a test i ignored it and went ahead with the installation. The installation went ok as far as the libraries were concerned. I am ok with not having CCEGUI now.

But when i ran a demo in pyogre demos, i get a seg fault.

suman@suman:~/downloads/DL/ogre/pyogre-1.0.6-0/demos$ python ogre/CelShadingDemo.py
Creating resource group General
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
Loading library libOgrePlatform.so
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DevIL version: Developer's Image Library (DevIL) 1.6.7 Jul 21 2005
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
Registering ResourceManager for type HighLevelGpuProgram
Loading library /usr/lib/OGRE/RenderSystem_GL.so
OpenGL Rendering Subsystem created.
Loading library /usr/lib/OGRE/Plugin_ParticleFX.so
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Loading library /usr/lib/OGRE/Plugin_BSPSceneManager.so
Registering ResourceManager for type BspLevel
Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so
TerrainSceneManager: Registered a new PageSource for type Heightmap
Loading library /usr/lib/OGRE/Plugin_EXRCodec.so
EXRCodec initialised
Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so
Segmentation fault
suman@suman:~/downloads/DL/ogre/pyogre-1.0.6-0/demos$ vi ogre/


One change i see from the ogre is that the swig is compiled with g++4.0 and IMO ogre (on debian unstale) is still on 3.x. Can this be a reason?

I also do not have an NVidia card.So this is useless on my machine. Is there a way to disable this plugin?

Clay

16-12-2005 18:48:17

Cg will run on any card (or at least it will tell you that it cannot run and give you an error, not a segfault). It will detect what your card supports and run it accordingly.... The cause of the crash is probably that you don't have Cg installed. If you do have it installed then you can remove the plugin from the plugins.cfg. This is probably in /etc/ogre if you are running debian. Let me know if you have trouble finding it and I'll ask the ogre debian maintainer where that's supposed to be.

mansu

19-12-2005 23:26:34

I tried unmarking the plugin in the plugins.cfg. That doesn't seem to work.

Also, i get an error much before now though i have changes nothing.The last line being:

pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
Registering ResourceManager for type HighLevelGpuProgram


strace of the command gives:


time([1135026599]) = 1135026599
write(3, "02:39:59: DevIL image formats: b"..., 198) = 198
write(2, "Registering ResourceManager for "..., 56Registering ResourceManager for type HighLevelGpuProgram) = 56
write(2, "\n", 1
) = 1
time([1135026599]) = 1135026599
write(3, "02:39:59: Registering ResourceMa"..., 67) = 67
open("/etc/OGRE/plugins.cfg", O_RDONLY|O_LARGEFILE) = 4
_llseek(4, 0, [631], SEEK_END) = 0
_llseek(4, 0, [631], SEEK_CUR) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "# /etc/OGRE/plugins.cfg - ogre p"..., 8191) = 631
read(4, "", 8191) = 0
close(4) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



I have also tried running the latest version of pyogre in windows, but i get a segfault on windows also.Is this a bug in latest pyogre?