From: Brian S. <bsc...@us...> - 2009-06-23 06:45:14
|
>>>>> "Richard" == Richard writes: Richard> Anyway, I put in the printf and fflush lines before the Richard> assert (now on line 202) and re-ran Atlas. It starts over Richard> San Francisco at a zoom setting of 1250 so I crabbed the Richard> map over to the north east to find the new stuff at around Richard> 55w. Sure enough, the assert catches a missing lump of Richard> scenery called ".jpg" (it also tries ".png") and stops. The Richard> last few successful loads and the error are copied below: Richard> loading /usr/share/games/FlightGear/Atlas//8/w056n50.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w055n53.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w055n52.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w058n55.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w057n55.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w056n55.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w055n51.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w059n56.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w058n56.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w057n56.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/w056n56.jpg Richard> loading /usr/share/games/FlightGear/Atlas//8/.png Atlas: Richard> Scenery.cxx:202: void Texture::load(SGPath, float*): Richard> Assertion `data != __null' failed. Aborted There are two things: (1) I should change Texture::load() to be more forgiving of errors. (2) It's very odd that somebody wants to load a file with no name. I wonder if this is a problem with SGPath's file() method. As a test, try changing line 391 of Scenery.cxx from: f.append(_ti->sceneryDir().file()); to: f.append(_ti->name()); Let me know if it works. Brian -- Brian Schack 19 Xǔchāng Street 2F phone: 2381 4727 Taipei 100 fax: 2381 2145 TAIWAN |