getMesh() and Linux

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Tequilla
Posts: 40
Joined: Mon Nov 10, 2003 3:42 pm
Location: Germany
Contact:

getMesh() and Linux

Post by Tequilla »

Hi all together,

I just tried Irrlicht first time with Linux (SuSE 9.0, 64bit) and discoverd, that the getMesh()-function does not work. Evereywhere, where a static mesh should be loaded (in the examples and the techdemo, too) the program crashs with an Access Violation.
I dont know anything more about it.
Does anybody know how to fix this?
Thank you!

Max
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Do you mean the getMesh() method of ISceneManager? I could not imagine that this think could crash. Maybe you mean the one of IAnimatedMesh? This should not crash either, but you should check that it the pointer you use to call it is not 0.
Tequilla
Posts: 40
Joined: Mon Nov 10, 2003 3:42 pm
Location: Germany
Contact:

Post by Tequilla »

Yes, the getMesh() of the ISceneManager. While executing the Techdemo for example, there are the following messages:
----
max@max:~/Documents/downloads/irrlicht-0.6/examples/Techdemo> ./techdemo
Irrlicht Engine version 0.6
Linux
Creating X window...
debugtest Choosing visual display with stencil...
Starting windowed mode...
Connecting glx context to window...
Window created.
This driver is not available in Linux. Trying OpenGL.
OpenGL Renderer.
OpenGL driver version is 1.2 or better.
Multitexturing disabled.
Loaded texture: #DefaultFont
Loaded texture: ../../media/fonthaettenschweiler.bmp
Loaded texture: ../../media/techdemoback.bmp
Opened mesh: ../../media/faerie.md2
Checked filename: ../../media/faerie.md2
Created mesh: ../../media/faerie.md2
Added mesh: ../../media/faerie.md2
Loaded mesh: ../../media/faerie.md2
Loaded texture: ../../media/faerie2.bmp
Could not open file of texture: ../../media/irrlichtlogo.bmp

Could not load texture: ../../media/irrlichtlogo.bmp
Deleting window...
Irrlicht Engine version 0.6
Linux
Creating X window...
debugtest Choosing visual display with stencil...
Starting windowed mode...
Connecting glx context to window...
Window created.
This driver is not available in Linux. Trying OpenGL.
OpenGL Renderer.
OpenGL driver version is 1.2 or better.
Multitexturing disabled.
Loaded texture: #DefaultFont
Loaded texture: ../../media/irrlichtlogoaligned.jpg
Loaded texture: ../../media/fonthaettenschweiler.bmp
Opened mesh: 20kdm2.bsp
Checked filename: 20kdm2.bsp
Speicherzugriffsfehler
----
I added the opened, checked, created and added mesh myself to locate the error. Now I know it must be inside of createMesh of the IMeshLoader. In which file can I find this method?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Hm, thats strange. I think you should take a look into the CQ3LevelMesh.cpp and CDefaultMeshFormatLoader.cpp. But I have absolutely no idea what this could be.
Post Reply