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

2010-10-28 Thread James Turner

On 27 Oct 2010, at 22:01, Vivian Meazza wrote:

 Happens here too. I get:
 
 Nasal runtime error: object has no size()
  at D:/Git_New/fgdata/Nasal/gui.nas, line 406
  called from: D:/Git_New/fgdata/Nasal/gui.nas, line 395
  called from: D:/Git_New/fgdata/Aircraft/Generic/formation.nas, line 46
  called from: D:/Git_New/fgdata/Nasal/globals.nas, line 100

I suspect this is a Windows problem, since everything works fine here, and for 
some other folks running Git. My guess is my handling of shell globbing in 
simgear::Dir is subtly different between POSIX and Win32, meaning that a 
directory enumeration call is failing on Windows, so the aircraft's Nasal 
scripts don't get loaded.

(A couple of days ago I switched all the remaining uses of ulDir to use 
simgear::Dir - including the one that implements the Nasal directory() helper)

I'll dig into this today, or possibly just give up on the Windows globbing code 
and do the globbing myself, but if anyone on Windows with a Git build and 
debugger wants to set a breakpoint in NasalSys.cxx, f_directory, they can 
probably see what's going wrong.

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-28 Thread James Turner

On 28 Oct 2010, at 10:00, James Turner wrote:

 I'll dig into this today, or possibly just give up on the Windows globbing 
 code and do the globbing myself, but if anyone on Windows with a Git build 
 and debugger wants to set a breakpoint in NasalSys.cxx, f_directory, they can 
 probably see what's going wrong.

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.

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] AI-manager on a GIT version

2010-10-28 Thread Durk Talsma
Hi Donn,,

Which airport did you observe this at? I did recently (mid August) some work on 
trying to fix the issues that you are describing. My fixes seem to work pretty 
well at EHAM (my main testing ground), but obviously there is a chance 
somewhere else something may have gone wrong. In any case, a nice replicable 
scenario might help.

Cheers,
Durk


On 27 Oct 2010, at 15:44, Donn Washburn wrote:

 I have also noticed that on the basic git fgdata runway some of the 
 traffic seems to land and run off the runway as it heads down the 
 runway.  It even goes sideways sometime and does very fast left or right 
 turns.
 
 This is on a week ago and 2 days old git version.
 
 -- 
 73 de Donn Washburn
 307 Savoy Street Email: n5...@comcast.net 
 Sugar Land, TX 77478 LL# 1.281.242.3256
 Ham Callsign N5XWB   HAMs :  n5...@arrl.net 
 VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg
 BMW MOA #: 4146 - Ambassador
http://counter.li.org  #279316
 
 
 --
 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


--
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] AI-manager on a GIT version

2010-10-28 Thread Donn Washburn
I was trying to get a Helicopter (as a play toy) to start its engine 
when over the top of me went a Heavy Big Jet.  It landed on the runway 
and then went down it made a right turn and then went back across the 
runway towards the tower.  It appeared to me to even be on the grass 
sideways to the runway

I will see if I can get a screen shot of it and forward if you need it

On 10/28/2010 08:23 AM, Durk Talsma wrote:
 Hi Donn,,

 Which airport did you observe this at? I did recently (mid August) some work 
 on trying to fix the issues that you are describing. My fixes seem to work 
 pretty well at EHAM (my main testing ground), but obviously there is a chance 
 somewhere else something may have gone wrong. In any case, a nice replicable 
 scenario might help.

 Cheers,
 Durk


 On 27 Oct 2010, at 15:44, Donn Washburn wrote:

 I have also noticed that on the basic git fgdata runway some of the
 traffic seems to land and run off the runway as it heads down the
 runway.  It even goes sideways sometime and does very fast left or right
 turns.

 This is on a week ago and 2 days old git version.

 -- 
 73 de Donn Washburn
 307 Savoy Street Email: n5...@comcast.net 
 Sugar Land, TX 77478 LL# 1.281.242.3256
 Ham Callsign N5XWB   HAMs :  n5...@arrl.net 
 VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg
 BMW MOA #: 4146 - Ambassador
 http://counter.li.org  #279316


 --
 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

 --
 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


-- 
73 de Donn Washburn
307 Savoy Street Email: n5...@comcast.net 
Sugar Land, TX 77478 LL# 1.281.242.3256
Ham Callsign N5XWB   HAMs :  n5...@arrl.net 
VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg
BMW MOA #: 4146 - Ambassador
http://counter.li.org  #279316


--
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] Crash on Windows

2010-10-28 Thread Frederic Bouvier
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.

$ git log src/FDM/JSBSim/FGFDMExec.cpp

commit 68f54290481701429a04cd33c06be2674fc2b3a4
Author: Erik Hofman e...@ehofman.com
Date:   Tue Oct 26 09:48:56 2010 +0200

Sync with JSBSim cvs + Anders' patch to get it working with FlightGear.

$ git show 68f5429048170

@@ -186,7 +193,17 @@ FGFDMExec::~FGFDMExec()
   try {
 checkTied( instance );
 DeAllocate();
-if (Root == 0)  delete master;
+
+if (IdFDM == 0) { // Meaning this is no child FDM
+  if(Root != 0) {
DON'T DO THAT + delete Root;
+ Root = 0;
+  }
+  if(FDMctr != 0) {
+ delete FDMctr;
+ FDMctr = 0;
+  }
+}
   } catch ( string msg ) {
 cout  Caught error:   msg  endl;
   }
.


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