-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yesterday I downloaded, compiled, and installed the latest stable FlightGear, 0.9.1. Unfortunately, some of the aircraft do not work. When doing "fgfs --aircraft=shuttle", the program dies as soon as soon as the cockpit view starts to pop up. I searched this list, and found some advice someone had given someone else about running the program with gdb and getting a backtrace, and I have done so, and will now present my results. I don't really know how to use the debugger for much, so I'll mention everything I did, just in case:
$ gdb ./fgfs (from the directory FlightGear is in, of course; I installed it and some of the libraries it requires in a toplevel /flightgear directory) (gdb) run --aircraft=shuttle ... tons of output that can be supplied if needed... ... Start common FDM init ...initializing position... FGJSBsim::set_Longitude: -2.13556 FGJSBsim::set_Latitude: 0.656448 cur alt (ft) = 0 FGJSBsim::set_Altitude: -0.000431126 lat (deg) = 37.6117 Terrain altitude: -0.00141445 ...initializing ground elevation to -0.000431126ft... ...initializing sea-level radius... lat = 37.6117 alt = -0.000431126 ...initializing velocities... FGJSBsim::set_V_calibrated_kts: 0 ...initializing Euler angles... FGJSBsim::set_Euler_Angles: 0, 0.0074002, 5.19934 End common FDM init Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 4089)] SGPropertyNode::getDoubleValue (this=0x0) at props.cxx:1117 1117 props.cxx: No such file or directory. in props.cxx (gdb) backtrace #0 SGPropertyNode::getDoubleValue (this=0x0) at props.cxx:1117 #1 0x0822fd3a in FGGain::Run (this=0x9891960) at FGGain.cpp:136 #2 0x0816ecc4 in FGFCS::Run (this=0x90315a0) at FGFCS.cpp:137 #3 0x08180762 in FGFDMExec::Run (this=0x8ddc130) at FGFDMExec.cpp:369 #4 0x081807ca in FGFDMExec::RunIC (this=0x8ddc130) at FGFDMExec.cpp:384 #5 0x08153167 in FGJSBsim::init (this=0x902b578) at JSBSim.cxx:234 #6 0x08050d57 in fgUpdateTimeDepCalcs () at main.cxx:909 #7 0x08051faf in fgMainLoop () at main.cxx:1177 #8 0x40090845 in idleWait () from /usr/lib/libglut.so.3 #9 0x0805700a in main (argc=2, argv=0xbffff824) at main.cxx:1823 #10 0x403963c1 in __libc_start_main () from /lib/libc.so.6 While I don't really know how to use the debugger, I do know C and C++, and it certainly appeared that SGPropertyNode::getDoubleValue was getting called with a NULL this pointer from FGGain::Run. I looked at the code, and indeed there are two calls to getDoubleValue in Run, both from pointers, so either InputNodes[0] or ScheduledBy is NULL. According to head, line 136 is "LookupVal = ScheduledBy->getDoubleValue();", so ScheduledBy would appear to be the culprit to me. But it's not only the shuttle that does this; for example, using --aircraft=X15 results in the exact same output. I don't think these are the only two aircraft that do this either. If there's any more information I can provide or another way for me to be helpful in general, please let me know. Tommy McDaniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE9/e3ZVB8FYP9YqDcRAkBeAJwNN30TOcN+mSFDV032VZUDUPiMsgCfS18z RIoCX7oZ1MfVSHvzgIYm6l4= =P9F7 -----END PGP SIGNATURE----- __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel