Serial problem on Linux

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Serial problem on Linux

Post by jsmcortina »

I use a USB-Serial adapter. It works ok as I can communicate with MS2 through it by using my can-scan program (distributed with MS2/Extra)
can-scan /dev/ttyUSB0

However, tuner Studio gives me a lot of errors when it tries to lock the port.

[jsm@jsm2 ts]$ ./TunerStudio.sh
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xc26767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xc26831]
#2 /usr/lib/libX11.so.6(_XReply+0x244) [0xb42f64]
#3 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb559464e]
#4 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb5572f97]
#5 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb5573248]
#6 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb557354f]
#7 [0xb5eb966e]
etc.
[jsm@jsm2 ts]$ ./TunerStudio.sh
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xc26767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xc26831]
#2 /usr/lib/libX11.so.6(_XReply+0x244) [0xb42f64]
#3 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb559464e]
#4 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb5572f97]
#5 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb5573248]
#6 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb557354f]
#7 [0xb5eb966e]

I still can't get serial to work even if I run TS as root.

This is on Fedora core 9

Any thoughts?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Serial problem on Linux

Post by LT401Vette »

James, with that error is the app actually coming up and working other than serial, or is it just not coming up correctly?
That error is related to the core JRE. In a google on it, it appears to be video drivers and the JRE use of openGL.
I have seen several references to Matrox drivers specifically having this type of error.
Do you have a Matrox video card?

Here is a site with a work around for what sounds like the problem, no specific Fedora though:
http://forum.tuxx-home.at/viewtopic.php?f=10&t=565

I'll see what else I can find.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Serial problem on Linux

Post by jsmcortina »

The application comes up ok, but serial doesn't work. When I go to miniterminal, the serial port box is empty - if I select Open then the application crashes.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Serial problem on Linux

Post by LT401Vette »

James,
send me the TunerStudioLogFile.txt, that might give me more info. The error above is related to UI, so it can't be the root problem.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Serial problem on Linux

Post by LT401Vette »

James,
This may be worth a shot. Go to your package manager and install RXTX.
Then try running the app from a terminal with this command:
java -jar TunerStudioMS.jar

The reason you normally need to start with the shell script is because I bundle the comm drivers (RXTX) in the install and then need to set the lib dir so it finds them. I do this just to minimize the dependencies. But maybe.... it will work if you are running with a normally installed RXTX. Starting with the above command will let it use the system installed rxtx.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Serial problem on Linux

Post by jsmcortina »

I installed the rxtx apparently ok, but now it hangs at "initialising serial drivers"

[root@jsm2 ts]# java -jar TunerStudioMS.jar
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xc26767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xc26831]
#2 /usr/lib/libX11.so.6(_XReply+0x244) [0xb42f64]
#3 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb56d464e]
#4 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb56b2f97]
#5 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb56b3248]
#6 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb56b354f]
#7 [0xb5ff966e]
#8 [0xb5ff1edd]
#9 [0xb5ff1edd]
#10 [0xb5fef243]
#11 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x620bc6d]
#12 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x630a828]
#13 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x620bb00]
#14 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
#15 /usr/java/jre1.6.0_03/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb800a96d]
#16 [0xb5ff966e]
#17 [0xb5ff1d77]
#18 [0xb5fef243]
#19 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x620bc6d]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xc26767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xc2690e]
#2 /usr/lib/libX11.so.6 [0xb42109]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb381f6]
#4 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb56b2249]
#5 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb56b2495]
#6 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so [0xb56b32f9]
#7 /usr/java/jre1.6.0_03/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb56b354f]
#8 [0xb5ff966e]
#9 [0xb5ff1edd]
#10 [0xb5ff1edd]
#11 [0xb5fef243]
#12 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x620bc6d]
#13 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x630a828]
#14 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so [0x620bb00]
#15 /usr/java/jre1.6.0_03/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
#16 /usr/java/jre1.6.0_03/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb800a96d]
#17 [0xb5ff966e]
#18 [0xb5ff1d77]
#19 [0xb5fef243]


James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Serial problem on Linux

Post by LT401Vette »

James,
If it is hanging at initializing drivers, I'll bet there is an exception in the TunerStudioLogFile.txt.
If can_scan is working, it seems your usb cable is working, have you tried opening a terminal and sending a query command?

I downloaded the Fedora Core 9 install. I am going to try putting it on a T40 I have here that has ubuntu on it now. I have one usb serial cable here that doesn't work on ubuntu, but it won't work from a terminal either.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Post Reply