|
From: Jon S. B. <js...@ha...> - 2001-07-15 19:42:21
|
I got this when trying to run FlightGear before having set the FG_ROOT
environment variable:
============= console dump ===============
$
fgfs --fdm=jsb --airport-id=KEDW --offset-distance=25 --aircraft=x15 --altit
ude=50000 --uBody=1500 --wBody=100 FlightGear: Version 0.7.8
Scanning for root: command line
fg_root = /FlightGear
Reading global preferences
Reading properties from /FlightGear/preferences.xml
Error reading property list from file /FlightGear/preferences.xml
Failed to read global preferences from /FlightGear/preferences.xml
Processing command line arguments
Opening a window: 800x600
GeForce2 MX/AGP/3DNOW!
Max texture size = 2048
Depth buffer bits = 16
WARNING: fntLoadTXF: Failed to open '/FlightGear/Fonts/typewriter.txf' for
reading.
NewAirportInit KEDW
0 [main] fgfs 1072 open_stackdumpfile: Dumping stack trace to
fgfs.exe.stackdump
Segmentation fault (core dumped)
=========== end console dump =============
FGFS assumes (I think) that fg_root is at /FlightGear. However, if it is
not, but the user simply has forgotten to set the FG_ROOT environment
variable, I think a segfault can be avoided. I don't know how this is
supposed to be handled, but it should probably be handled by an informative
message rather than a segfault. Or perhaps I am all wrong ...
;-)
Jon
|