On Tue, 8 Aug 2006, Lee Elliott wrote:

> I think there's now a patch in for the engine problem - don't
> know if it fixes everything though.

Well it changed the behaviour somewhat. No more negative FF et al values.
It still accelerates like mad in extreme turns but now we get a SIGSEGV
clue. I got this SIGSEGV three times in a row in the same manner as for the
negative FF effect, so it seems to be reproducable.

#1 (below) is a call to localWind for the thruster calculations, only the 
thruster
altitude is NAN. The altitude comes from the lines just
before the for-loop. (yasim::Model::initIteration, Model.cpp line 100 and on)
   // Need a local altitude for the wind calculation
   float lground[4];
   _s->planeGlobalToLocal(_global_ground, lground);
   float alt = Math::abs(lground[3]);

"_global_ground" are all NAN:s too. But I think by then, my insane turns had
become insane loopings. (Hard to tell with the view flipping around like
that.) I can't see where the NAN value of _global_ground came from, from a
stack backtrace, so the lead ends there.

On the other hand it's perfectly reasonable that altitude becomes a NAN
under those circumstances -- the aircraft bloody should disintegrate under
that kind of stress. So maybe it isn't a bug after all, rather a realistic
simulation of a massive structural failure due to severe overspeed and
exceeded G limit. ;)  ("Altitude?" ...of debris and fumes you mean?)


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 9871)]
0x0825a3b8 in yasim::Turbulence::getTurbulence (this=0xa806678, loc=0x0, 
alt=nan(0x400000),
     up=0xbfffed60, turbOut=0xbfffedb0) at Turbulence.cpp:100
100     static inline float c2fu(unsigned char c) { return (c+0.5)*(1.0/256); }
(gdb) bt
#0  0x0825a3b8 in yasim::Turbulence::getTurbulence (this=0xa806678, loc=0x0, 
alt=nan(0x400000),
     up=0xbfffed60, turbOut=0xbfffedb0) at Turbulence.cpp:100
#1  0x0824fcb5 in yasim::Model::localWind (this=0x9c1222c, pos=0xbfffee40, 
s=0x9c1223c,
     out=0xbfffee30, alt=nan(0x400000)) at Model.cpp:544
#2  0x0824e923 in yasim::Model::initIteration (this=0x9c1222c) at Model.cpp:111
#3  0x0824eb00 in yasim::Model::iterate (this=0x9c1222c) at Model.cpp:163
#4  0x08244baa in yasim::FGFDM::iterate (this=0x9c12228, dt=0.00833333377) at 
FGFDM.cpp:92
#5  0x0823dab7 in YASim::update (this=0xa92fae0, dt=0.015240000188350679) at 
YASim.cxx:217
#6  0x080520bd in fgUpdateTimeDepCalcs () at main.cxx:163
#7  0x08052cb6 in fgMainLoop () at main.cxx:488
#8  0x08087492 in GLUTidle () at fg_os.cxx:124
#9  0x400a5929 in __glutRegisterEventParser () from /usr/X11R6/lib/libglut.so.3
#10 0x400a60ad in glutMainLoop () from /usr/X11R6/lib/libglut.so.3
#11 0x0805582b in fgMainInit (argc=2, argv=0xbffff464) at main.cxx:1021
#12 0x08051a86 in main (argc=2, argv=0xbffff464) at bootstrap.cxx:203


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to