Re: [Flightgear-devel] nan report

2009-04-23 Thread syd adams
The problem is gone here with the last posted patch ...
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] nan report

2009-04-23 Thread Mathias Fröhlich

Hi,

On Tuesday 21 April 2009 02:34:06 gerard robin wrote:
> On mardi 21 avril 2009, syd adams wrote:
> > Im getting the same messages at startup , at  any airport I try ,
> >  but usually it stops after an exit and restart.
> > I thought it was something local since no one on IRC had the same
> > problem.
>
> The same error not only with Vinson
> I  am mainly flying with  AI Carrier, to me,  that error is not new.

Hmm, the huge problem with this kind of errors is that you do mostly not see 
when the root of that problem happens.

Enabling floating point traps in the cpu points often to a place where the 
problem has happened already.
I have a patch for valgrind available that is waiting to be fed back to 
valgrind which /could/ help on that. But not yet done ...

In the meantime:
Is there a specific model that triggers this problem?
Any chance?

Greetings

Mathias

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread syd adams
Just a note :
I applied the last patch posted here and success !
No more warnings so far ,with the 777-200, at least.
I'll try more.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread syd adams
On Thu, Apr 23, 2009 at 12:29 PM, Alex Romosan wrote:

> syd adams  writes:
>
> > I tried this but no luck here  Im still getting this message
> > about every second:
> >
> > Warning: invalid line segment passed to
> IntersectVisitor::addLineSegment(..)
> >  nan nan 3.87514e+06 nan nan 3.85687e+06 segment ignored.
>
> i think this depends on the version of osg you are using. this
> particular warning comes from src/osgUtil/IntersectVisitor.cpp. can
> you try using a different version of osg? i use the latest from cvs and
> don't have any problems.
>
> --alex--
>

This is a completely fresh install of FG and OSG (svn)  from yesterday 
OSG version is 2.9.4 ...
I was getting this message before , and seemed to start when I tried the
first ridgelift patch ... but can't verify that for certain...
on an AMD Athalon 2800+ Nvidia Geforce 6200  ...
It doesn't appear to slow things down here , just make it hard to watch for
my own error messages .
I'll try out these new patches and see what happens
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
udpated the patch again, with another Nan killer from jano.
That seems to have worked for him, at least

http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
so here comes another attempt to reduce these error to silence :

line 238 :

if ( alt > 0.1 ) { probe_elev_m[i] =  alt; } else { probe_elev_m[i] = 0.1 ;};

lines 319-321 for desperate cases :

strength = lift_mps * SG_METER_TO_FEET ;
if(isnan(strength)) strength=0; 
_ridge_lift_fps_node->setDoubleValue( strength );

the diff is on :

http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2 (updated)


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Alex Romosan
syd adams  writes:

> I tried this but no luck here  Im still getting this message
> about every second:
>
> Warning: invalid line segment passed to IntersectVisitor::addLineSegment(..)
>  nan nan 3.87514e+06 nan nan 3.85687e+06 segment ignored.

i think this depends on the version of osg you are using. this
particular warning comes from src/osgUtil/IntersectVisitor.cpp. can
you try using a different version of osg? i use the latest from cvs and
don't have any problems.

--alex--


-- 
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Mouse cursor showing mode again in Windows version

2009-04-23 Thread Frederic Bouvier
Hi friends,

just a quick note to tell that I found the bug in OSG that prevent the cursor 
to change shape and display the current input mode.
I submitted the fix to Robert, and uploaded a new fg win32 binary with the not 
yet official fix at the usual location.

Enjoy ;-)

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
http://fgsd.sourceforge.net/   FlightGear Scenery Designer


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread syd adams
I tried this but no luck here  Im still getting this message about every
second:

Warning: invalid line segment passed to IntersectVisitor::addLineSegment(..)
 nan nan 3.87514e+06 nan nan 3.85687e+06 segment ignored.



> i tested :
> > _ridge_lift_fps_node->setDoubleValue( 0 );
> >
> > and no more nan, all the properties in ridge-lift are now valid.
> >
> > jano
>
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Fatal error: name must begin with alpha or '_'

2009-04-23 Thread John Waget
thank you ! I will try another cvs update!
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Detlef Faber
Am Donnerstag, den 23.04.2009, 17:43 +0200 schrieb jean pellotier:
> Patrice Poly a écrit :
> > the fix, as a patch
> >
> > http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2
> >
> > hope this works...
> >
> >   
> nope, same behaviour!!
> 
> i think that on my "slow" PC, your ridge lift is sometimes initialised a 
> little to early (while position is 0,0,0 maybe), resulting in some nan 
> in the result of terrain scan, wich lead to a "nan" in 
> /environment/ridge-lift-fps.
> 
> and as it's used to compute the next aircraft position, nan go all along 
> the calculs...
> 
> i tested :
> _ridge_lift_fps_node->setDoubleValue( 0 );
> 
> and no more nan, all the properties in ridge-lift are now valid.
> 
> jano
> 
> 
what is your OSG Version?

I've had tons of nans at startup of the bf109 and fw190. They stopped
once the Aircraft gained some speed and the rest of the flight was fine.
This started approximately at the time of the ambient update. My other
machine ran both Aircraft fine so I didn't bother much. Todays I updated
to 2.9.3 and all the startup nans were gone. 

> 
> --
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ___
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
-- 
Detlef Faber

http://www.sol2500.net/flightgear



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Ron Jensen
On Thu, 2009-04-23 at 10:56 -0600, Ron Jensen wrote:
> On Thu, 2009-04-23 at 11:56 -0400, Patrice Poly wrote:
> > > nope, same behaviour!!
> > >
> > > i think that on my "slow" PC, your ridge lift is sometimes initialised a
> > > little to early (while position is 0,0,0 maybe), resulting in some nan
> > > in the result of terrain scan, wich lead to a "nan" in
> > > /environment/ridge-lift-fps.
> > >
> > > and as it's used to compute the next aircraft position, nan go all along
> > > the calculs...
> > >
> > > i tested :
> > > _ridge_lift_fps_node->setDoubleValue( 0 );
> > >
> > > and no more nan, all the properties in ridge-lift are now valid.
> > >
> > > jano
> > 
> > Jano, may I ask you to do a little experiment ?
> > 
> > As you have a machine which triggers the error, maybe you could try this:
> > 
> > comment out all the formulas, and replace them by a nice constant, all over 
> > the file.
> > Then, from bottom to top, and one by one, put the original calculations 
> > back.
> > 
> > Maybe that could help focus on the one that produces the bad thing ?
> > 
> > 
> > Then, you could also try the following ?
> > 
> > line 231 :  if (timer >= 1.0 ) {
> > 
> > this waits 1 second before doing a scan, maybe
> > * this could be raised to a longer time ?
> > * this could be replaced by something that tells us for sure the scenery is 
> > here,the plane is placed,  and that get_elevation_m is ready to work ?
> > 
> > I'm blind here for these experiments...
> 
> Adding a test for NaN will prevent (or at least mask) the problem:
> 
>   strength = lift_mps * SG_METER_TO_FEET ;
>   if(isnan(strength)) strength=0; 
>   _ridge_lift_fps_node->setDoubleValue( strength );
> 
> 
> We could add some debug printing, too perhaps:


if(isnan(strength)){
   SG_LOG( SG_EVENT, SG_ALERT, "Ridge lift strength is NaN = " << strength 
);
   strength=0;
}
_ridge_lift_fps_node->setDoubleValue( strength );


SG_LOG is preferred over cout...

Ron



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Ron Jensen
On Thu, 2009-04-23 at 11:56 -0400, Patrice Poly wrote:
> > nope, same behaviour!!
> >
> > i think that on my "slow" PC, your ridge lift is sometimes initialised a
> > little to early (while position is 0,0,0 maybe), resulting in some nan
> > in the result of terrain scan, wich lead to a "nan" in
> > /environment/ridge-lift-fps.
> >
> > and as it's used to compute the next aircraft position, nan go all along
> > the calculs...
> >
> > i tested :
> > _ridge_lift_fps_node->setDoubleValue( 0 );
> >
> > and no more nan, all the properties in ridge-lift are now valid.
> >
> > jano
> 
> Jano, may I ask you to do a little experiment ?
> 
> As you have a machine which triggers the error, maybe you could try this:
> 
> comment out all the formulas, and replace them by a nice constant, all over 
> the file.
> Then, from bottom to top, and one by one, put the original calculations back.
> 
> Maybe that could help focus on the one that produces the bad thing ?
> 
> 
> Then, you could also try the following ?
> 
> line 231 :if (timer >= 1.0 ) {
> 
> this waits 1 second before doing a scan, maybe
> * this could be raised to a longer time ?
> * this could be replaced by something that tells us for sure the scenery is 
> here,the plane is placed,  and that get_elevation_m is ready to work ?
> 
> I'm blind here for these experiments...

Adding a test for NaN will prevent (or at least mask) the problem:

  strength = lift_mps * SG_METER_TO_FEET ;
  if(isnan(strength)) strength=0; 
  _ridge_lift_fps_node->setDoubleValue( strength );


We could add some debug printing, too perhaps:

  strength = lift_mps * SG_METER_TO_FEET ;
  if(isnan(strength)){
 strength=0; 
 cout << /* whatever variables we need */ << endl;
  } 
  _ridge_lift_fps_node->setDoubleValue( strength );

Ron




--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Adding AIs while FG execution.

2009-04-23 Thread James Bond
Hi every one,


I want to use the AIManager to add AIs to FlightGear while
it run. I added a subSystem to receve the modele and the calssing of
the object to load, i used the AIManager Attach methode but i dosn't
work.

SOS.

Vuris.


  --
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
> nope, same behaviour!!
>
> i think that on my "slow" PC, your ridge lift is sometimes initialised a
> little to early (while position is 0,0,0 maybe), resulting in some nan
> in the result of terrain scan, wich lead to a "nan" in
> /environment/ridge-lift-fps.
>
> and as it's used to compute the next aircraft position, nan go all along
> the calculs...
>
> i tested :
> _ridge_lift_fps_node->setDoubleValue( 0 );
>
> and no more nan, all the properties in ridge-lift are now valid.
>
> jano

Jano, may I ask you to do a little experiment ?

As you have a machine which triggers the error, maybe you could try this:

comment out all the formulas, and replace them by a nice constant, all over 
the file.
Then, from bottom to top, and one by one, put the original calculations back.

Maybe that could help focus on the one that produces the bad thing ?


Then, you could also try the following ?

line 231 :  if (timer >= 1.0 ) {

this waits 1 second before doing a scan, maybe
* this could be raised to a longer time ?
* this could be replaced by something that tells us for sure the scenery is 
here,the plane is placed,  and that get_elevation_m is ready to work ?

I'm blind here for these experiments...

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread jean pellotier
Patrice Poly a écrit :
> the fix, as a patch
>
> http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2
>
> hope this works...
>
>   
nope, same behaviour!!

i think that on my "slow" PC, your ridge lift is sometimes initialised a 
little to early (while position is 0,0,0 maybe), resulting in some nan 
in the result of terrain scan, wich lead to a "nan" in 
/environment/ridge-lift-fps.

and as it's used to compute the next aircraft position, nan go all along 
the calculs...

i tested :
_ridge_lift_fps_node->setDoubleValue( 0 );

and no more nan, all the properties in ridge-lift are now valid.

jano



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly

> Can you please send a diff to current cvs?

its in the previous post I made. Sorry, I messed up a bit with mail this 
morning...

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Torsten Dreyer
> I posted the correct version  to
> www.bentha.net/fgfs/ridge-lift/ridge-lift-in-environment.zip
Can you please send a diff to current cvs?

Torsten

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
so, a possible fix :

line 218-220 should be : 

probe_lon_rad[i] = 
fmod((deg2rad*user_longitude_deg+asin(sin(ground_wind_from_rad)

*sin(dist_probe_m[i]/earth_rad_m)/cos(probe_lat_rad[i]))+PI)
,(2.0*PI))-PI;

( the"  last probe_lat_rad[i] "  was written  wrong as " probe_lon_rad[i] "... 
which doesn't surprise me too much if sending weird things, as this is what 
we are calculating here... ty Jentron for pointing it out )

and line 205-206 :

double ground_wind_from_rad = PI*( ground_wind_from_deg/180.0);

( no need anymore for checking if lon is >0, this was due to the previous 
error )

I even wonder how this worked my side without errors, and even behaved good...

I posted the correct version  to 
www.bentha.net/fgfs/ridge-lift/ridge-lift-in-environment.zip

Hopefully this was the culpript, and there is no other...

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
the fix, as a patch

http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2

hope this works...

This includes the correction for the lee side, according to Ian's advice based 
on real fly.

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
so, a possible fix :

line 218-220 should be : 

probe_lon_rad[i] = 
fmod((deg2rad*user_longitude_deg+asin(sin(ground_wind_from_rad)

*sin(dist_probe_m[i]/earth_rad_m)/cos(probe_lat_rad[i]))+PI)
,(2.0*PI))-PI;

( the"  last probe_lat_rad[i] "  was written  wrong as " probe_lon_rad[i] "... 
which doesn't surprise me too much if sending weird things, as this is what 
we are calculating here... ty Jentron for pointing it out )

and line 205-206 :

double ground_wind_from_rad = PI*( ground_wind_from_deg/180.0);

( no need anymore for checking if lon is >0, this was due to the previous 
error )

I even wonder how this worked my side without errors, and even behaved good...

I posted the correct version  to 
www.bentha.net/fgfs/ridge-lift/ridge-lift-in-environment.zip

Hopefully this was the culpript, and there is no other...

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Erik Hofman


gerard robin wrote:
> Yes it is difficult to trap these nan  which are coming ( + or - 
> randomly ? ? ? , though,  getting trouble with carrier) ), and when we get it 
> the system is closed to be frozen , with black screen, and command line  
> overflowed with messages.
> And when i tried with GDB i did not got any  NAN  "?"

You might want to try to comment out line 66 of src/Main/bootstrap.cxx 
in such case. It'll then throw an exception and a core dump which could 
be analysed:

static void
initFPE ()
{
 fpu_control_t fpe_flags = 0;
 _FPU_GETCW(fpe_flags);
fpe_flags &= ~_FPU_MASK_IM;  // invalid operation
// fpe_flags &= ~_FPU_MASK_DM;  // denormalized operand
// fpe_flags &= ~_FPU_MASK_ZM;  // zero-divide
// fpe_flags &= ~_FPU_MASK_OM;  // overflow
// fpe_flags &= ~_FPU_MASK_UM;  // underflow
// fpe_flags &= ~_FPU_MASK_PM;  // precision (inexact result)
 _FPU_SETCW(fpe_flags);
 signal(SIGFPE, handleFPE);
}

Erik

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread gerard robin
On jeudi 23 avril 2009, Martin Spott wrote:
> Stuart Buchanan wrote:
> > I've been seeing this every time I load on Ubuntu Hardy. I'm 90% sure
> > that the ridge-lift enhancement is the root cause - it's the only
> > source change that went in when I rebuilt last.
>
> We've occasionally seen lots of NaN's before addition of the ridge-lift
> as well and they had never been adresses substantially. I don't mean to
> blame anyone, instead I'd like to revive the idea that the ridge-lift
> is probably just triggering a long-standing 'feature'   not that I
> claim to have the slightest clue which one it would be,
>
>   Martin.

Just built CVS, tested around KHAF, nothing wrong.

Yes it is difficult to trap these nan  which are coming ( + or - 
randomly ? ? ? , though,  getting trouble with carrier) ), and when we get it 
the system is closed to be frozen , with black screen, and command line  
overflowed with messages.
And when i tried with GDB i did not got any  NAN  "?"

I did/do build FG with OSG 2.8 ( stable).
I do use now  the following linux system/configuration:
OpenSuse 11.1 (last stable) , ATHLON 64bits  dual core  2X3200  
4 GB mem 
NVIDIA 9600 GT  

-- 
Gérard
http://pagesperso-orange.fr/GRTux/

J'ai décidé d'être heureux parce que c'est bon pour la santé. 
Voltaire


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Martin Spott
Stuart Buchanan wrote:

> I've been seeing this every time I load on Ubuntu Hardy. I'm 90% sure
> that the ridge-lift enhancement is the root cause - it's the only
> source change that went in when I rebuilt last.

We've occasionally seen lots of NaN's before addition of the ridge-lift
as well and they had never been adresses substantially. I don't mean to
blame anyone, instead I'd like to revive the idea that the ridge-lift
is probably just triggering a long-standing 'feature'   not that I
claim to have the slightest clue which one it would be,

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Stuart Buchanan

Patrice Poly wrote:

> 
> I'm a bit at lost for now, as I really don't see any NaN anymore here, and 
> don't have another platform to test on.
> 
> I would be interested to see on which platforms / configuration this happens, 
> maybe when more feedback comes in ??

I've been seeing this every time I load on Ubuntu Hardy. I'm 90% sure that the 
ridge-lift enhancement is the root cause - it's the only source change that 
went in when I rebuilt last.

I think they are generated by OpenSceneGraph, and later versions may suppress 
the messages.

I'm away from my FG machine right now, but from memory I'm currently using OSG 
2.7.X. I'm in the process of rebuilding to 2.8.1rc2 to see if that hides the 
messages.

However, even if the messages are being hidden, I think it would be worth 
tracking down the root cause.

-Stuart



  

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel