Re: [Flightgear-devel] Nasal misbehaving badly on my machine: how to debug it?

2009-02-07 Thread Rodrigo Severo
On Fri, Feb 6, 2009 at 9:10 PM, Rodrigo Severo
rodr...@fabricadeideias.comwrote:

Unfortunately I'm having a really bad time with nasal scripts.

 I'm having all kinds of errors on the console. Some of them:

 Nasal runtime error: No such member: real_time_base
   at /usr/local/fgfs-cvs//data//Nasal/wildfire.nas, line 226
   called from: /usr/local/fgfs-cvs//data/Nasal/wildfire.nas, line 791
   called from: /usr/local/fgfs-cvs//data/Nasal/wildfire.nas, line 789
 Initializing Nasal Electrical System
 power up
 Nasal runtime error: non-objects have no members
   at /usr/local/fgfs-cvs//data/Nasal/screen.nas, line 498
   called from: /usr/local/fgfs-cvs//data/Nasal/screen.nas, line 525
   called from: /usr/local/fgfs-cvs//data/Nasal/globals.nas, line 96


After a really long debug session oriented by Jester with Jenton's help I
finally got tired enough to make the right mistake - run fgfs as root - and
find out what was wrong: permissions!

I would never think about checking permissions for the kind of errors above.
There wasn't a single access denied error shown to me all this time which
makes this whole stuff stranger.

Anyway I'm writing just to share this little peace of new knowledge:
permission problem cause nasal scripts to fail in mysterious ways.

Now I will try to fix the permissions set by Gentoo's ebuild for FlightGear.

Thanks again to all that helped.

I hope I get back with some more interesting problems in the future.


Rodrigo Severo
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Nasal misbehaving badly on my machine: how to debug it?

2009-02-06 Thread Rodrigo Severo
Hi,


This is the first message of a flight sim newbie.

After hearing that MSFS was being dismantled, I looked after X-Plane and
bought it. Then I discovered that I will probably have to wait 5 weeks to
get it by mail so I discovered FlightGear and I'm trying to use it. I
couldn't believe there was a opensource flight sim. So I went for it.
Unfortunately I'm having a really bad time with nasal scripts.

I'm having all kinds of errors on the console. Some of them:

Nasal runtime error: No such member: real_time_base
  at /usr/local/fgfs-cvs//data//Nasal/wildfire.nas, line 226
  called from: /usr/local/fgfs-cvs//data/Nasal/wildfire.nas, line 791
  called from: /usr/local/fgfs-cvs//data/Nasal/wildfire.nas, line 789
Initializing Nasal Electrical System
power up
Nasal runtime error: non-objects have no members
  at /usr/local/fgfs-cvs//data/Nasal/screen.nas, line 498
  called from: /usr/local/fgfs-cvs//data/Nasal/screen.nas, line 525
  called from: /usr/local/fgfs-cvs//data/Nasal/globals.nas, line 96

At first I thought this could be normal as I had never seem FlightGear
running before.

But as I had a completely non-working throttle axis on my joystick despite
js-demo and jstest shoing it's working fine I started doing some debuging.

Obviously me and everybody that I talked about on IRC first believed it ws
some kind of misconfiguration but after a big debug session with cptf (I
think this is his IRC handle) we got to the conclusion that nasal scripts
were misbehaving badly on my machine.

This conclusion took force when we found out that at fgfs begining, on a
foreach loop at the end of controls.nas, the engines for the Cessna 172 I'm
trying to use were being setted fine but if I try to read the same
controls.engines hash with the nasal console I got a empty []

This and the bunch of nasal errors on the console seems to be all ills from
the same source.

I writing to ask for help on how to debug this as I can't see anything else
not working as expected on my machine and I really don't know how to even
begin debuging this issue. Any ideas?


TIA,

Rodrigo Severo
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel