Yep!
Tried ...
--aircraft=CitationX --airport=CYOW --runway=25 --fg-scenery=
$HOME/Scenery-1.0.1
Take off, wheels up, and turn to 98, flying at about 2500, at about 260
IAS ... about 10 minutes or so and BANG!
As reported had hundreds of ...
CullVisitor::apply(Geode&) detected NaN,
depth=nan, center=(0.006986 0.000522999 0.089738),
matrix={
nan nan nan nan
nan nan nan nan
nan nan nan nan
nan nan nan nan
}
For for the next run I added --log-level=debug
==============================================
and got last output of ...
CullVisitor::apply(Geode&) detected NaN,
depth=nan, center=(0.006986 0.000522999 0.089738),
matrix={
nan nan nan nan
nan nan nan nan
nan nan nan nan
nan nan nan nan
}
Loading tile 1728984
Trying /home/geoff/Scenery-1.0.1/w080n40/w075n45/1728984
Trying /home/geoff/Scenery-1.0.1/Terrain/w080n40/w075n45/1728984
OBJECT_BASE 1728984.btg
Trying /home/geoff/Scenery-1.0.1/Objects/w080n40/w075n45/1728984
Running Mai OBn LJECT_SHARoop
======= ==== ED M====
odels/Communications/Updatradio-mediuing time
Cm.xml lon=urrent Unix calenda-74.7694r time = 123653lat=79345.4060
warp4 e = 0
lev= C-20.47 urrent hdg=GMT = 3/1808/2009
18:45:30
CurrenCreat Unixtin cag alend new buffer ofar tim size =e = 123653
37930 warp = 0
2768 Current GMT = 3/8/2009 18:45:
30
Current Julian Date = 2.4549e+06
COURSE: GMT = 2/8/109 18:45:30
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.7184
days = -12 hours = 18.7583 lon = 0 lst = 5.95833
COURSE: GMT = 2/8/109 18:45:30
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.7184
days = -12 hours = 18.7583 lon = nan lst = Creanantin
Currg aent l neon=0.00w b Siuffderer ealof Tisizme e == 32768
5.86471
gst => C245.8rea65
Currtinentg a LOCA neL Sidew buffer ofreal Ti sime = ze = 32768
nan (nan) (diff = -0.0936229)
Elapsed time interval is = 506127, previous remainder Creatingis a =
6283
new buffer of size = 3--> F276ram8
e rate is = 72
Model iterations needed = 61, new remainder = 4077
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Defering boundingvolume tree built for
"/home/geoff/Scenery-1.0.1/Terrain/w080n40/w075n45/1728984.btg" to
parent.
Got cached model
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac"
Defering boundingvolume tree built for
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac" to
parent.
Defering boundingvolume tree built for
"Models/Communications/radio-medium.xml" to parent.
Building boundingvolume tree for "17289findbyF84.sreqtg".
379 size 33
Deleting a sample
In memory sounds sample
Loading tile 1728992
Trying /home/geoff/Scenery-1.0.1/w080n40/w075n45/1728992
Trying /home/geoff/Scenery-1.0.1/Terrain/w080n40/w075n45/1728992
OBJECT_BASE 1728992.btg
Trying /home/geoff/Scenery-1.0.1/Objects/w080n40/w075n45/1728992
OBJECT_SHARED Models/Communications/radio-medium.xml lon=-74.9431
lat=45.5417 elev=-32.36 hdg=180
OBJECT_SHARED Models/Communications/radio-medium.xml lon=-74.9542
lat=45.5769 elev=-17.42 hdg=180
OBJECT_SHARED Models/Communications/radio-medium.xml lon=-74.9419
lat=45.5419 elev=-13.77 hdg=180
OBJECT_SHARED Models/Communications/radio-medium.xml lon=-74.9389
lat=45.5408 elev=-24.74 hdg=180
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Creating a new buffer of size = 32768
Defering boundingvolume tree built for
"/home/geoff/Scenery-1.0.1/Terrain/w080n40/w075n45/1728992.btg" to
parent.
Got cached model
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac"
Defering boundingvolume tree built for
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac" to
parent.
Defering boundingvolume tree built for
"Models/Communications/radio-medium.xml" to parent.
Got cached model
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac"
Defering boundingvolume tree built for
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac" to
parent.
Defering boundingvolume tree built for
"Models/Communications/radio-medium.xml" to parent.
Got cached model
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac"
Defering boundingvolume tree built for
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac" to
parent.
Defering boundingvolume tree built for
"Models/Communications/radio-medium.xml" to parent.
Got cached model
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac"
Defering boundingvolume tree built for
"/home/geoff/fg/fgfs/data/Models/Communications/radio-medium.ac" to
parent.
Defering boundingvolume tree built for
"Models/Communications/radio-medium.xml" to parent.
Building boundingvolume tree for "1728992.stg".
~/fg$
Then once more ... but this time again hundreds of -
===================================================
CullVisitor::apply(Geode&) detected NaN,
depth=nan, center=(0.006986 0.000522999 0.089738),
matrix={
nan nan nan nan
nan nan nan nan
nan nan nan nan
nan nan nan nan
}
But the last output was -
=======================
Running Main Loop
======= ==== ====
Updating time
Current Unix calendar time = 1236538578 warp = 0
Current GMT = 3/8/2009 18:56:18
Current Unix calendar time = 1236538578 warp = 0
Current GMT = 3/8/2009 18:56:18
Current Julian Date = 2.4549e+06
COURSE: GMT = 2/8/109 18:56:18
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.7109
days = -12 hours = 18.9383 lon = 0 lst = 6.13833
COURSE: GMT = 2/8/109 18:56:18
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.7109
days = -12 hours = 18.9383 lon = nan lst = nan
Current lon=0.00 Sidereal Time = 6.04521
gst => 246.045
Current LOCAL Sidereal Time = nan (nan) (diff = -0.0931263)
Elapsed time interval is = 448486, previous remainder is = 3409
Model iterations needed = 54, new remainder = 1895
========================================================
########################################################
So I dumped some code into CullVisitor.cpp, like
========================================================
if (osg::isNaN(depth))
{
static long _s_nan_counter = 0;
if (( _s_nan_counter % 100 ) == 0 ) {
osg::notify(osg::NOTICE)<<"CullVisitor::apply(Geode&)
detected NaN,"<<std::endl
<<" depth="<<depth<<",
center=("<<bb.center()<<"),"<<std::endl
<<" matrix="<<matrix<<" count="<<
_s_nan_counter<<std::endl;
}
_s_nan_counter++;
}
recompiled OSG, and added > templog2.txt 2>&1 to the command and
tried again... same POOF!!!
The bottom of the log file...
count=123600
Running Main Loop
======= ==== ====
Updating time
Current Unix calendar time = 1236541266 warp = 0
Current GMT = 3/8/2009 19:41:6
Current Unix calendar time = 1236541266 warp = 0
Current GMT = 3/8/2009 19:41:6
Current Julian Date = 2.4549e+06
COURSE: GMT = 2/8/109 19:41:06
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.6798
days = -12 hours = 19.685 lon = 0 lst = 6.885
COURSE: GMT = 2/8/109 19:41:06
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.6798
days = -12 hours = 19.685 lon = nan lst = nan
Current lon=0.00 Sidereal Time = 6.79389
gst => 246.794
Current LOCAL Sidereal Time = nan (nan) (diff = -0.0911071)
Elapsed time interval is = 9171, previous remainder is = 5686
Model iterations needed = 1, new remainder = 6524
Updating Sun position
Gst = 6.79389
t->cur_time = 1236541266
Sun Geodetic lat = -0.079674 Geodetic lat = -0.079674
sun angle relative to current location = nan
Updating adjusted fog parameters.
Updating light parameters.
Sun angle = nan
ambient = 0.04 diffuse = 0 specular = 0.215 sky = 0.08
OpenAL error (AL_INVALID_VALUE): set_volume
OpenAL error (AL_INVALID_VALUE): set_volume
OpenAL error (AL_INVALID_VALUE): set_pitch
AICarrier: Inside Operating Box
AICarrier: Inside Operating Box
AI Manager: AI model return list size 2
Scheduling for : Aircraft/757/757-Delta.xml N711ZX KCVG
0xdbfb48 Done
FGTileMgr::update()
State == Running
CullVisitor::apply(Geode&) detected NaN,
depth=nan, center=(-7.36437 -0.108393 -0.246904),
matrix={
nan nan nan nan
nan nan nan nan
nan nan nan nan
nan nan nan nan
}
count=123700
============================================================
--- chopped --- seems maybe I should use 1000, not 100 ;=))
============================================================
count=124500
CullVisitor::apply(Geode&) detected NaN,
depth=nan, center=(0.006954 -0.000108998 0.0015055),
matrix={
nan nan nan nan
nan nan nan nan
nan nan nan nan
nan nan nan nan
}
count=124600
Running Main Loop
======= ==== ====
Updating time
Current Unix calendar time = 1236541266 warp = 0
Current GMT = 3/8/2009 19:41:6
Current Unix calendar time = 1236541266 warp = 0
Current GMT = 3/8/2009 19:41:6
Current Julian Date = 2.4549e+06
COURSE: GMT = 2/8/109 19:41:06
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.6798
days = -12 hours = 19.685 lon = 0 lst = 6.885
COURSE: GMT = 2/8/109 19:41:06
March 21 noon (GMT) = 1237636800
Time since 3/21/109 GMT = -12.6798
days = -12 hours = 19.685 lon = nan lst = nan
Current lon=0.00 Sidereal Time = 6.79389
gst => 246.794
Current LOCAL Sidereal Time = nan (nan) (diff = -0.0911071)
Elapsed time interval is = 9574, previous remainder is = 6524
Model iterations needed = 1, new remainder = 7765
Out of time today ... am a lot better at flying the Citation
after this ;=)) ... it does seem to be quite a repeatable BUG ;=()
about 5 times in the last hour or so...
Regards,
Geoff.
On Sun, 2009-03-08 at 18:07 +0000, James Turner wrote:
> On 7 Mar 2009, at 09:40, James Turner wrote:
> > > start FlightGear using fgfs --aircraft=CitationX --airport=CYOW
> > > --runway=25
> > > take off, and make a left turn to heading 98, while maintaining an
> > > IAS of approx 250 kts, and an altitude of approx 2500 ft. Maintain
> > > this heading for approx 13 minutes and FlightGear will seg fault:
> >
> > Normally, these crashes are not related to the CullVisitor, it just
> > happens to be a noisy part of the code, so it shows up in logs.
> > The crash is almost certainly my fault, will take a look (probably
> > tomorrow, today is my last day of
>
> I'm unable to reproduce the crash using these steps - can anyone else?
> James
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel