Re: [Flightgear-devel] fgjs segfault

2009-05-15 Thread Stefan Seifert
On Thursday, 14. May 2009, Matthew Gibson wrote:
> Sorry, I can't figure out how to reply to messages on mailing lists.
>
> But I found the issue.
>
> jssuper .h and .cxx don't assume the joystick numbers are in order. They
> use a first and last variable, as well as an activeJoysticks number of
> joysticks. I assume this is because, as with my system, the joysticks
> aren't necessarily in order.
>
> fgjs.cxx DOES assume they are in order.
>
> jss->firstJoystick();
> fstream *xfs = new fstream[ jss->getNumJoysticks() ];
>
> My first joystick is #2, my num joysticks is 1.

Well, as it's my bad, I'll have a look at it later today, when I return from 
the airfield. Many thanks for this perfect bug report.

Stefan

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing 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] fgjs segfault

2009-05-14 Thread Matthew Gibson

Sorry, I can't figure out how to reply to messages on mailing lists.

But I found the issue.

jssuper .h and .cxx don't assume the joystick numbers are in order. They use a 
first and last variable, as well as an activeJoysticks number of joysticks. I 
assume this is because, as with my system, the joysticks aren't necessarily in 
order.

fgjs.cxx DOES assume they are in order.

jss->firstJoystick();
fstream *xfs = new fstream[ jss->getNumJoysticks() ];

My first joystick is #2, my num joysticks is 1.

From: mdg...@hotmail.com
To: flightgear-devel@lists.sourceforge.net
Subject: fgjs segfault
Date: Thu, 14 May 2009 12:40:23 -0700








Hi,

I am running FreeBSD and fgjs is segfaulting.
FreeBSD 7.2, fgfs 1.9.1

Output looks like this:

Found 1 joystick(s)

Now measuring the dead band of your joystick. The dead band is the area 
where the joystick is centered and should not generate any input. Move all 
axes around in this dead zone during the ten seconds this test will take.
Press enter to continue.

10 - 9 - 8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 - 0

Joystick 2, axis 0: 2.00
Joystick 2, axis 1: 2.00
Joystick 2, axis 2: -1.00
Joystick 2, axis 3: 1.00
Joystick 2, axis 4: 1.101562
Joystick 2, axis 5: 1.390625

Dead band calibration finished. Press enter to start control assignment.

Joystick #2 "Logitech Logitech Force 3D Pro" has 6 axes
Segmentation fault: 11 (core dumped)

I have the source code, and as far as I can tell it is segfaulting on this line:
xfs[ jss->getCurrentJoystickId() ].open(filename, ios::out);
as strange as that seems.

I was wondering if you have any pointers why this might be.
One at a time or all at once? Get updates from your friends in one place.
_
Find info faster and easier with Internet Explorer 8.
http://go.microsoft.com/?linkid=9655583--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] fgjs segfault

2009-05-14 Thread Matthew Gibson

Hi,

I am running FreeBSD and fgjs is segfaulting.
FreeBSD 7.2, fgfs 1.9.1

Output looks like this:

Found 1 joystick(s)

Now measuring the dead band of your joystick. The dead band is the area 
where the joystick is centered and should not generate any input. Move all 
axes around in this dead zone during the ten seconds this test will take.
Press enter to continue.

10 - 9 - 8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 - 0

Joystick 2, axis 0: 2.00
Joystick 2, axis 1: 2.00
Joystick 2, axis 2: -1.00
Joystick 2, axis 3: 1.00
Joystick 2, axis 4: 1.101562
Joystick 2, axis 5: 1.390625

Dead band calibration finished. Press enter to start control assignment.

Joystick #2 "Logitech Logitech Force 3D Pro" has 6 axes
Segmentation fault: 11 (core dumped)

I have the source code, and as far as I can tell it is segfaulting on this line:
xfs[ jss->getCurrentJoystickId() ].open(filename, ios::out);
as strange as that seems.

I was wondering if you have any pointers why this might be.
_
One at a time or all at once? Get updates from your friends in one place.
http://go.microsoft.com/?linkid=9660827--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel