Re: [Flightgear-devel] Crash on Windows

2010-10-29 Thread Frederic Bouvier

- Frederic Bouvier a écrit :

 I am tracking a crash when selecting the c172p. Not sure it is related
 to the other crash already seen, but anyway :
 
 In JSBSim.cxx, line 147 :
 
 fdmex = new FGFDMExec( (FGPropertyManager*)globals-get_props() );
 
 in FGFDMExec.cpp, line 99:
 
 FGFDMExec::FGFDMExec(FGPropertyManager* root) : Root(root)
 
 in FGFDMExec.cpp, line 199:
 
  delete Root;
 
 So one can see that FGFDMExec.cpp is deleting the global property
 tree, that is a smart pointer, not a real pointer by the way !
 
 Of course, it crash at the next use of the property tree.

I committed a temporary fix. An ideal fix would be that JSBSim use a 
SGPropertyNode_ptr instead of doing unsafe cast from SGPropertyNode to 
FGPropertyManager

Regards,
-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
http://www.youtube.com/user/fgfred64   Videos


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Crash on Windows

2010-10-29 Thread Erik Hofman
On Fri, 2010-10-29 at 09:03 +0200, Frederic Bouvier wrote:
 I committed a temporary fix. An ideal fix would be that JSBSim use a 
 SGPropertyNode_ptr instead of doing unsafe cast from SGPropertyNode to 
 FGPropertyManager

Thanks for catching this, it's partly my fault for committing the
current JSBSim version since Jon is in the process of rethinking that
part of the code. But I wanted to get the CVS version in git prior to FS
Weekend in Lelystad because it fixes a number of important issues.

Erik


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [BUG] Nearly all aircrafts suddenly broken with latest GIT by nasal error

2010-10-29 Thread Frederic Bouvier
Hi James,

- James Turner a écrit :

 On 28 Oct 2010, at 10:05, James Turner wrote:
 
  Looking at the code now, both in gui.nas and NasalSys.cxx, I can
 make a more specific guess: the 'directory exists' check seems to be
 failing, which means we return naNil, which doesn't have a .size
 property - of course.
  
  If someone could see what kind of paths are being passed in, and if
 they're confusing simgear::Dir::exists() on Windows, that would be
 great. Livery selection (which is what this code implements) works
 fine on POSIX - it's what I used to exercise the Nasal routines when
 making the change.
 
 Vivian has basically confirmed this hypothesis - simgear::Dir::exists
 is not working right on Win32. I won't be able to dig into this until
 much later this evening, if anyone else fancies setting some
 breakpoints in the code and seeing where the logic is borked, that
 would be much appreciated.
 
 James

stat returns an error when directory path ends with a / (sg_path.cxx, line 215)

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
http://www.youtube.com/user/fgfred64   Videos


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [BUG] Nearly all aircrafts suddenly broken with latest GIT by nasal error

2010-10-29 Thread James Turner

On 29 Oct 2010, at 08:29, Frederic Bouvier wrote:

 Vivian has basically confirmed this hypothesis - simgear::Dir::exists
 is not working right on Win32. I won't be able to dig into this until
 much later this evening, if anyone else fancies setting some
 breakpoints in the code and seeing where the logic is borked, that
 would be much appreciated.
 
 James
 
 stat returns an error when directory path ends with a / (sg_path.cxx, line 
 215)

Just saw you fix for this, thanks for identifying the cause.

Now we know the issue, we could clean all SGPaths passed to simgear::Dir's 
constructor, to remove trailing separators. That's fractionally neater than 
doing it before the stat(), I guess.

James


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [BUG] Nearly all aircrafts suddenly broken with latest GIT by nasal error

2010-10-29 Thread Vivian Meazza
James Turner wrote

 Sent: 29 October 2010 08:38
 To: FlightGear developers discussions
 Subject: Re: [Flightgear-devel] [BUG] Nearly all aircrafts suddenly broken
 with latest GIT by nasal error
 
 
 On 29 Oct 2010, at 08:29, Frederic Bouvier wrote:
 
  Vivian has basically confirmed this hypothesis - simgear::Dir::exists
  is not working right on Win32. I won't be able to dig into this until
  much later this evening, if anyone else fancies setting some
  breakpoints in the code and seeing where the logic is borked, that
  would be much appreciated.
 
  James
 
  stat returns an error when directory path ends with a / (sg_path.cxx,
 line 215)
 
 Just saw you fix for this, thanks for identifying the cause.
 
 Now we know the issue, we could clean all SGPaths passed to simgear::Dir's
 constructor, to remove trailing separators. That's fractionally neater
 than doing it before the stat(), I guess.
 
 James

That fixes the Nasal bug, but now exposes another one - the view runs to the
zenith and cannot be moved.

This happens here with Fred's latest binary, and with a locally produced
binary including today's FG/SG fixes. It does not happen with Fred's
previous binary, not with an earlier version produced locally.

Vivian



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Announcing: FSWeekend 2010

2010-10-29 Thread Geoff McLane
Hi,

Oops, since I also plan to be there both days, I too
would be pleased to help out on the booth, for half a
day or so, Sat or Sun, if needed...

And also do not particularly need a booth holders
pass, but sorry can not assist on the Eindhoven
car pool...

Regards,

Geoff.


On Thu, 2010-10-28 at 22:55 +0200, Robin van Steenbergen wrote:
 If there is still any need, I'd be happy to help out the FlightGear 
 booth for half a day or one day at the FSWeekend.
 
 I will only need a carpool either from Eindhoven on Saturday, or back to 
 Eindhoven on Sunday. The former is preferred, and I won't need a booth 
 holders ticket per se.
 



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [BUG] Nearly all aircrafts suddenly broken with latest GIT by nasal error

2010-10-29 Thread Frederic Bouvier

- Vivian Meazza a écrit :

 That fixes the Nasal bug, but now exposes another one - the view runs
 to the zenith and cannot be moved.
 
 This happens here with Fred's latest binary, and with a locally
 produced
 binary including today's FG/SG fixes. It does not happen with Fred's
 previous binary, not with an earlier version produced locally.

I saw something similar recently and I had to disconnect my joystick.
With the mouse only, I can control the view, so I thought it was a local 
hardware problem.

It also looks like a new joystick configuration has been added to joystick.xml 
without being added to git.

Regards,
-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
http://www.youtube.com/user/fgfred64   Videos


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Build failed in Hudson: FlightGear-next #231

2010-10-29 Thread geneb
See http://flightgear.simpits.org:8080/job/FlightGear-next/231/changes

Changes:

[James Turner] Goodbye old HUD - and the archeology it depended upon in 
cockpit.cxx

--
Started by an SCM change
Building on master
Checkout:workspace / 
http://flightgear.simpits.org:8080/job/FlightGear-next/ws/ - 
hudson.remoting.localchan...@1a8b2df
Using strategy: Default
Last Built Revision: Revision 6081f24b006f6adb6d8c8320c65ccdaad1ca4f19 
(origin/next)
Checkout:workspace / 
http://flightgear.simpits.org:8080/job/FlightGear-next/ws/ - 
hudson.remoting.localchan...@1a8b2df
GitAPI created
Fetching changes from the remote Git repository
Fetching upstream changes from http://git.gitorious.org/fg/flightgear.git
[workspace] $ git fetch -t http://git.gitorious.org/fg/flightgear.git 
+refs/heads/*:refs/remotes/origin/*
[workspace] $ git ls-tree HEAD
[workspace] $ git tag -l next
[workspace] $ git rev-parse origin/next
Commencing build of Revision d1a459072132694a31ab130345bbe000573d0a93 
(origin/next)
GitAPI created
Checking out Revision d1a459072132694a31ab130345bbe000573d0a93 (origin/next)
[workspace] $ git checkout -f d1a459072132694a31ab130345bbe000573d0a93
[workspace] $ git tag -a -f -m Hudson Build #231 hudson-FlightGear-next-231
Recording changes in branch origin/next
[workspace] $ git whatchanged --no-abbrev -M --pretty=raw 
6081f24b006f6adb6d8c8320c65ccdaad1ca4f19..d1a459072132694a31ab130345bbe000573d0a93
Copied 856 artifacts from SimGear-next #126
[workspace] $ /bin/sh -xe /tmp/hudson8055145634681366553.sh
+ '[' '!' -e configure ']'
+ '[' '!' -e Makefile ']'
+ make
Making all in tests
make[1]: Entering directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/tests'
g++ -DHAVE_CONFIG_H -I. -I../src/Include   -I/usr/local/include 
-Ihttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/include
  -Os -D_REENTRANT -MT est-epsilon.o -MD -MP -MF .deps/est-epsilon.Tpo -c -o 
est-epsilon.o est-epsilon.cxx
mv -f .deps/est-epsilon.Tpo .deps/est-epsilon.Po
g++  -Os -D_REENTRANT  
-Lhttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/lib64
 
-Lhttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/lib
 -L/usr/local/lib -o est-epsilon est-epsilon.o -lGLU -lGL -lXt -lSM -lICE 
-lXext -lX11 -lrt -ldl -lm  -losgFX -losgParticle -losgSim -losgViewer -losgGA 
-losgText -losgDB -losgUtil -losg -lOpenThreads 
g++ -DHAVE_CONFIG_H -I. -I../src/Include   -I/usr/local/include 
-Ihttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/include
  -Os -D_REENTRANT -MT gl-info.o -MD -MP -MF .deps/gl-info.Tpo -c -o gl-info.o 
gl-info.cxx
mv -f .deps/gl-info.Tpo .deps/gl-info.Po
g++  -Os -D_REENTRANT  
-Lhttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/lib64
 
-Lhttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/lib
 -L/usr/local/lib -o gl-info gl-info.o -lGLU -lGL -lXt -lSM -lICE -lXext -lX11 
-lrt -ldl -lm  -losgFX -losgParticle -losgSim -losgViewer -losgGA -losgText 
-losgDB -losgUtil -losg -lOpenThreads 
g++ -DHAVE_CONFIG_H -I. -I../src/Include   -I/usr/local/include 
-Ihttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/include
  -Os -D_REENTRANT -MT test-env-map.o -MD -MP -MF .deps/test-env-map.Tpo -c -o 
test-env-map.o test-env-map.cxx
mv -f .deps/test-env-map.Tpo .deps/test-env-map.Po
g++  -Os -D_REENTRANT  
-Lhttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/lib64
 
-Lhttp://flightgear.simpits.org:8080/job/FlightGear-next/231/artifact/dist/lib
 -L/usr/local/lib -o test-env-map test-env-map.o -lGLU -lGL -lXt -lSM -lICE 
-lXext -lX11 -lrt -ldl -lm  -losgFX -losgParticle -losgSim -losgViewer -losgGA 
-losgText -losgDB -losgUtil -losg -lOpenThreads 
make[1]: Leaving directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/tests'
Making all in man
make[1]: Entering directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/man'
Making all in scripts
make[1]: Entering directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/scripts'
Making all in debug
make[2]: Entering directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/scripts/debug'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/scripts/debug'
Making all in perl
make[2]: Entering directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/scripts/perl'
Making all in examples
make[3]: Entering directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/scripts/perl/examples'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`http://flightgear.simpits.org:8080/job/FlightGear-next/ws/scripts/perl/examples'
make[3]: Entering directory 

[Flightgear-devel] Fwd: Re: Announcing: FSWeekend 2010

2010-10-29 Thread Robin van Steenbergen
  I need a carpool from Eindhoven (or somewhere halfway, like Utrecht)

because train and bus schedules to Lelystad are somewhat impractical.
The bus to the airport has an hourly or 2-hourly service IIRC, and
taking the train and bus takes me over 3 hours to get there (where it
would only take me 1,5 hours if I would travel by car).

I'll try and see if I can pull some strings and arrange a car for
Saturday, in that case, I can pick up somebody enroute.

Op 29-10-2010 13:02, Geoff McLane schreef:
  Hi,

  Oops, since I also plan to be there both days, I too
  would be pleased to help out on the booth, for half a
  day or so, Sat or Sun, if needed...

  And also do not particularly need a booth holders
  pass, but sorry can not assist on the Eindhoven
  car pool...

  Regards,

  Geoff.



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Announcing: FSWeekend 2010

2010-10-29 Thread Robin van Steenbergen
  I need a carpool from Eindhoven (or somewhere halfway, like Utrecht)

because train and bus schedules to Lelystad are somewhat impractical.
The bus to the airport has an hourly or 2-hourly service IIRC, and
taking the train and bus takes me over 3 hours to get there (where it
would only take me 1,5 hours if I would travel by car).

I'll try and see if I can pull some strings and arrange a car for
Saturday, in that case, I can pick up somebody enroute.

Op 29-10-2010 13:02, Geoff McLane schreef:
  Hi,

  Oops, since I also plan to be there both days, I too
  would be pleased to help out on the booth, for half a
  day or so, Sat or Sun, if needed...

  And also do not particularly need a booth holders
  pass, but sorry can not assist on the Eindhoven
  car pool...

  Regards,

  Geoff.



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Announcing: FSWeekend 2010

2010-10-29 Thread Robin van Steenbergen
  I need a carpool from Eindhoven (or somewhere halfway, like Utrecht) 
because train and bus schedules to Lelystad are somewhat impractical. 
The bus to the airport has an hourly or 2-hourly service IIRC, and 
taking the train and bus takes me over 3 hours to get there (where it 
would only take me 1,5 hours if I would travel by car).

I'll try and see if I can pull some strings and arrange a car for 
Saturday, in that case, I can pick up somebody enroute.

Op 29-10-2010 13:02, Geoff McLane schreef:
 Hi,

 Oops, since I also plan to be there both days, I too
 would be pleased to help out on the booth, for half a
 day or so, Sat or Sun, if needed...

 And also do not particularly need a booth holders
 pass, but sorry can not assist on the Eindhoven
 car pool...

 Regards,

 Geoff.


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Hudson build is back to normal : FlightGear-next #232

2010-10-29 Thread geneb
See http://flightgear.simpits.org:8080/job/FlightGear-next/232/changes



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel