On the forum it was reported, that starting a tutorial on the default c172 twice crashes the sim. This was on FG from Ubuntu (fgfs version 2019.1.1). See forum thread: https://forum.flightgear.org/viewtopic.php?f=20&t=37233
I can replicate this on next, but for me the c172 crashes the sim immediatly when starting the preflight tutorial. Crashlog:
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/fuel.xml: line 11
Property /engines/active-engine/already-started-in-session is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 225
Property hydro/environment/water-level-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 226
Property hydro/environment/rho-slug_ft3 is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 227
Property hydro/environment/kinematic-viscosity-ft2_sec is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 229
Property hydro/environment/current-from-north-fps is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 230
Property hydro/environment/current-from-east-fps is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 232
Property hydro/environment/waves-from-deg is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 233
Property hydro/environment/wave-amplitude-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml: line 234
Property hydro/environment/wave-length-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 34
Property metrics/hydro-rp-x-in is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 35
Property metrics/hydro-rp-y-in is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 36
Property metrics/hydro-rp-z-in is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 38
Property metrics/hydro-beam-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 39
Property metrics/hydro-length-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 46
Property hydro/float-beam-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 47
Property hydro/float-beam-ft2 is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 48
Property hydro/float-beam-ft3 is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 49
Property hydro/float-beam-ft4 is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 52
Property hydro/hull-length-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 55
Property hydro/drag-tweak-factor is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 56
Property hydro/side-tweak-factor is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 57
Property hydro/lift-tweak-factor is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 58
Property hydro/pitch-tweak-factor is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 59
Property hydro/yaw-tweak-factor is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 60
Property hydro/yaw-stability-tweak-factor is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 63
Property hydro/fbx-lbs is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-hydrodynamics.xml: line 64
Property hydro/fby-lbs is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/c172p-heat.xml: line 22
Property heat/human-body-temp-degc is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/indicated-airspeed.xml: line 45
Property /instrumentation/airspeed-indicator/indicated-speed-kt is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 81
Property mooring/mooring-connected is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 84
Property mooring/latitude-deg is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 85
Property mooring/longitude-deg is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 86
Property mooring/altitude-ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 89
Property mooring/rope-spring-coeff-lbs_ft is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 90
Property mooring/max-rope-force-lbs is already defined.
In file /home/daniel/bin/fgfs/fgdata/Aircraft/c172p/Systems/mooring-jsbsim.xml: line 91
Property mooring/rope-length-ft is already defined.
fgfs: /home/daniel/src/fgfs/simgear.git/simgear/structure/subsystem_mgr.cxx:251: virtual void SGSubsystemGroup::init(): Assertion `_state == State::BIND' failed.
bin/runfglaunch.sh: line 4: 74138 Aborted DRI_PRIME=1 LD_LIBRARY_PATH=$FG_INSTALL_DIR/lib/:$FG_INSTALL_DIR/lib64:$LD_LIBRARY_PATH $FG_INSTALL_DIR/bin/fgfs --launcher
@stuartbuchanan can you take this one, initially?
I'm reproing something similar, where there's a mismatch between the airport and selected runway, causing an unknown runway exception in AICreateFlightplan.cxx. However even fixing that I'm still seeing SIGSEGV in model loading on reset.
What I don't understand is why frame #18 would call the destructor in frame #17.
Here's the line referenced by frame #18:
SGBinObject tile;
So that should just call the constructor for SGBinObject.
Last edit: Stuart Buchanan 2020-05-01
I've been unable to repro this specific issue under reposition.
Hm funny. An hour ago I could still reproduce the crash with my recent build from next. Then I did a debug build to get a backtrace but the crash is gone. Back to release build, it's gone there, too... Maybe it has to do with the reposition crash that James fixed?
Yes the assert is debug only, and it's the issue I fixed. I still don't understand why it occurs for some people and not others, but please do confirm that updarting to next fixes it.
I never had any reposition issues. Is there a way to reproduce it?
No we don't figure out a way to reproduce it, for people who don't have it
Based on the comments this appears to have been fixed. Please comment if you can still reproduce it, then we can re-open it.