[fixed]b3d loader freezes

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
matgaw
Posts: 45
Joined: Sat Oct 06, 2007 11:33 am

[fixed]b3d loader freezes

Post by matgaw »

Updated my Irrlicht revision, and now during loading of "some" (don't know what turns this on) b3d models, Irrlicht freezes. (for example: MeshViewer)

Exists in SVN 2546, (some older from 28/29.07 too)
Irrlicht 1.5 and older work fine.

Example test model: http://89.171.200.74/40.rar

(40/level.b3d)
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Sorry to be a pain, but can you zip that or use a free archiver? I can't open RAR files in Ubuntu
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The problem is that you use network paths for your textures: //192.168.0.1/something
This seems to give fopen major problems. I'll check the man pages.
Edit: Ok, I have changed the fopen() test by access(), but this did not help much. So it's definitely better to avoid such filenames.
We might also change the default texture loading order. Most loaders do check the original filename first, then the basename (which means loading from the current working directory), then the mesh's path. The latter tests will also be made with additional paths from the original filename. Maybe we should try the more local paths first.
matgaw
Posts: 45
Joined: Sat Oct 06, 2007 11:33 am

Post by matgaw »

I'm only poining out that this default behavior has changed. I didn't create this model so I don't know what paths are inside... But I know that they didn't have problems loading in older Irrlicht versions (SVN around 1600 I think...)

I had also some problems with loading textures in some SVN from end of July... looks like it didn't check the mesh directory, only current working dir (don't know if this is repaired yet).
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, it's repaired. And all models will (at some point) use the same loading scheme. As said, maybe the current solution is not the best. But you can easily get around this problem by fixing the actual mesh. BTW: You can also just wait a few seconds, it will load after all texture checks have timed out :wink:
Post Reply