|
From: Tobias D. <tda...@gm...> - 2018-04-11 09:52:22
|
Ah, it turns out that there is actually a bug in the code, namely a missing NULL check after getting the current waypoint from the AI aircraft, in the reachedEndOfCruise method. I presume that this method doesn't normally get called on the player aircraft, except in this unusual kind of situation; but when it does, it will crash, because there is no AI flight plan, and thus getting the current waypoint will yield a null pointer, and then the code calls a method on that without checking first, at which point it dumps core. I've added a check myself, now going to recompile and test. On Tue, Apr 10, 2018 at 08:13:37PM +0200, James Turner wrote: > > > > On 10 Apr 2018, at 19:00, Tobias Dammers <tda...@gm...> wrote: > > > > I have disabled AI traffic, fwiw. The crash happened at an altitude > > of approx. 400000 ft, and a ground speed of roughly 8.5 km/s. > > > > Any ideas? > > This is probably the default ‘user’ AIAircraft which models your > aircraft in the AI system. It’s experiencing some odd flight-plan > transition (and normally your aircraft would not have an AI > flight-plan - since these are really only used by traffic) > > Kind regards, > James > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Tobias Dammers - tda...@gm... |