On Friday 10 March 2006 14:38, Melchior FRANZ wrote:
> * Melchior FRANZ -- Thursday 09 March 2006 19:43:
> > (D) "-1000 ft" crash. Don't remember the exact message. Doesn't
> > seem related to any "special" subsystem.
>
> "Attempting to schedule tiles for bogus lon and lat = (-1000,0)
> This is a FATAL error. Exiting!"
>
> triggered by FGTileMgr::schedule_needed(). Which process sets
> lon=-1000 and lat=0 and requests a tile for that?
>
> m.
>
okay, I have a partial answer. The lon = -1000, and lat = 0 values appear to
be the default values of many class constructors, including SGLocation.
On line 956, of AIModels/AIAircraft.cxx the ground following code of the AI
models tries to schedule tiles in order to do an elevation check.
globals->get_tile_mgr()->update( aip.getSGLocation(), range );
normally this is not a problem, but AIBase allows the loading of non-existent
models:
if (!model_path.empty()) {
try {
model = load3DModel( globals->get_fg_root(), model_path, props,
globals->get_sim_time_sec() );
} catch (const sg_exception &e) {
model = NULL;
}
}
if (model) {
aip.init( model );
aip.setVisible(true);
invisible = false;
globals->get_scenery()->get_scene_graph()->addKid(aip.getSceneGraph());
// Register that one at the scenery manager
globals->get_scenery()->register_placement_transform(aip.getTransform());
} else {
if (!model_path.empty()) {
SG_LOG(SG_INPUT, SG_WARN, "AIBase: Could not load model " <<
model_path);
}
}
However, if the model path doesn't exist, the aip doen't get initialized, and
hence will be positioned at the default position of lon= -1000, lat=0.0.
I'm still testing a few combinations of parameters, and I also don't quite
understand why FlightGear only crashed during the initialization while
silently rejecting any models at runtime.
Anyways, a (partial) patch is in progress.
Cheers,
Durk
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel