From: Marcus L. <ma...@ya...> - 2005-08-29 15:15:45
|
I've done some more searching, and the problem appears to be image urls having "../foo/bar.jpg" stuff, when loading the file "c:/beep/boop/usingbar.wrl" having "c:/beep" in the pathhandler. Then the ImageFileHandler fails to parse the file type correctly. Loading from boop (i.e. issuing that path to the pathhandler) solves the problem. Tricky... /Marcus P.S. Pardon the silly example names, I've had a busy day... :) Marcus Lindblom wrote: > Not this week, it's time for beer right now. 8-D > > I'll get on it on monday and see if I can find anything else that > pinpoints this issue a bit more, otherwise I'll put the stuff on the web > for you. > > Thanks for looking into it! > > /Marcus > > Andreas Zieringer wrote: > >> Hi Marcus, >> >> just tried it with a much longer pathname than yours this worked fine >> for me. Can you upload your file somewhere so we can reproduce this? >> >> Andreas >> >>> (Lots of posts this day. Hope you don't mind too much .. ;) >>> >>> Hi again, >>> >>> I have noticed some strange bug when loading files. If the path too >>> long, then things go wrong (textures disappear and/or no polygons >>> loaded). >>> >>> Loading a file such as >>> 'C:\Misc\Styx\thorax\Heart_20050825\Parts_heart\r_atrium.wrl' does >>> not work in OpenSG (1.4), OSGSceneviewer (1.4) or VRED (0.97). >>> >>> However, 'C:\Temp\Heart_20050825\Parts_heart\r_atrium.wrl' does. >>> >>> Also, if I load a incorrect file in vred, I can't load a correct file >>> without restarting. >>> >>> I suspect a buffer-overrun in the path length, especially if the >>> vrml-file refers textures (i.e. ../images/aorta.jpg is the case in >>> the above file). >>> >>> I couldn't find any bug on sourceforge, but I know there's been some >>> postings on path handling and such, so someone might have looked at >>> this. >>> >>> Can anyone confirm/deny this? >>> >>> Best Regards, >>> /Marcus >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >>> & QA >>> Security * Process Improvement & Measurement * >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Opensg-users mailing list >>> Ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensg-users >>> >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Opensg-users mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensg-users >> > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Opensg-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensg-users |