Ubuntu 9.10 x64 hanging (possible java issue ?)

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

Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

Read the other thread, to no avail, cant figure out whats going on.

Code: Select all

$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
All the sun packages are installed and on, but i cant seem to make them the active ones.

Ideas ?
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by LT401Vette »

That looks like the right java.

What is it doing? Hanging on start up?

Check in the TunerStudioLogFile.txt What are the last lines before it hangs?
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
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

Code: Select all

=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
8/01/10 2:04:29 PM :Info: Initialized comm driver: 174ms.
8/01/10 2:04:29 PM :Debug: Running speed test
splash loads, but it just hangs and does nothing else...

-----
EDIT
-----

Code: Select all

=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
8/01/10 3:29:15 PM :Info: Initialized comm driver: 125ms.
8/01/10 3:29:15 PM :Warning: Unable toset Main cluster for title:
No check, last update check=Fri Jan 08 15:25:40 CST 2010
I can get it to load now, but when i try to detect ECU version, it dumps out.. I cant set anything via "communications" either. its all grey'd out. I CAN play with mini-terminal, but thats all.. Cant do anythnig in there either.

Code: Select all

=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
8/01/10 3:31:52 PM :Info: Initialized comm driver: 124ms.
8/01/10 3:31:52 PM :Warning: Unable toset Main cluster for title:
No check, last update check=Fri Jan 08 15:25:40 CST 2010
8/01/10 3:40:32 PM :Debug: MS2Extra Rel 2.1.0p
8/01/10 3:40:32 PM :Debug: Loaded Config in : 96ms.
8/01/10 3:40:32 PM :Debug: Adding Configuration: MyCar
If i manually select ECU, it lets me choose some variables (degF or degC, etc..) and then it bombs out again with this at the end of the log file.
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by jsmcortina »

Not sure if this applies to Ubuntu, but on Fedora I had to add my userid to the "uucp" group:

/etc/groups
...
uucp:x:14:uucp,jsm
...

Prior to that I had been struggling to get serial comms to function. They would work if I logged in as root, but not a normal user.

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".
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

Code: Select all

$ sudo sh TunerStudio.sh
Jar Name:TunerStudioMS.jar
Experimental:  JNI_OnLoad called.
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9e435f9733, pid=8789, tid=140317716125968
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.1-b02 mixed mode linux-amd64 )
# Problematic frame:
# C  [librxtxSerial.so+0x7733]  Java_gnu_io_RXTXPort_nativeDrain+0xc3
#
# An error report file with more information is saved as:
# /home/quantime/TunerStudio/hs_err_pid8789.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
Normally i dont get anything, but cos i did sudo, i got that,, any clue ?
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by LT401Vette »

Check the date on your computer, delete user.properties then try to start it.
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
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

nope, same problem.

If i run it with sudo, i get to choosing firmware, without sudo, it just hangs at the splash. Anything else i can try ?
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by LT401Vette »

Let me see a new log snippet. The one above showed you date at Aug 2010, so now we may be on to new 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
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

Code: Select all

=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
9/01/10 4:27:30 PM :Info: Initialized comm driver: 96ms.
9/01/10 4:27:30 PM :Debug: Running speed test
TunerStudio 0.989.7d started on Sat Jan 09 16:27:45 CST 2010
JRE 1.6.0_15, Linux 2.6.31-17-generic, amd64
java.library.path=lib
TunerStudioMS.jar
Look:Metal, ClassName:'javax.swing.plaf.metal.MetalLookAndFeel'
Look:Nimbus, ClassName:'com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel'
Look:CDE/Motif, ClassName:'com.sun.java.swing.plaf.motif.MotifLookAndFeel'
Look:GTK+, ClassName:'com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
9/01/10 4:27:46 PM :Info: Initialized comm driver: 183ms.
9/01/10 4:27:46 PM :Debug: Running speed test
9/01/10 4:27:48 PM :Warning: Unable toset Main cluster for title:
9/01/10 4:28:06 PM :Debug: MS2Extra Rel 2.1.0p
9/01/10 4:28:06 PM :Debug: Loaded Config in : 120ms.
9/01/10 4:28:06 PM :Debug: Adding Configuration: MyCar
One without sudo, one with..

As for the date.. I think you will find i follow the world standard of time and date formatting, as does most of the world.. dd/mm/yy :), i guarantee you my date says saturday jan 9th.
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by LT401Vette »

I think you will find i follow the world standard of time and date formatting, as does most of the world.. dd/mm/yy
Ah... My bad assumed in US format :)

I'm not quite understanding the why sudo is doing anything for you. Where is the app installed? Is it and your project in a place where you would have write permissions without sudo?

Permissions can come into place for using the serial port, but even without those rights the app should be coming up.
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
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

its in my home directory, so it shouldnt have any problems. copied / pasted to a new dir.. Bingo it works..

BUT im getting

Code: Select all

RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
RXTX Error:  Unable to 					remove stale lock file: /var/lock/LCK..ttyUSB0
Ideas ?

Code: Select all

TunerStudio$ lsusb
Bus 002 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Ill try rebooting it,, prolly fix it right up..

-----
EDIT
-----
OK, back to the "splash screen, try to detect ECU it dumps out" routine.. BUT i got a new log file.. For some reason it wouldnt create a proper log file.. dunno why.. anyawy, ive attached it for you to look at.
Output was

Code: Select all

Jar Name:TunerStudioMS.jar
Experimental:  JNI_OnLoad called.
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f66a8b4a733, pid=2286, tid=140078907345168
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.1-b02 mixed mode linux-amd64 )
# Problematic frame:
# C  [librxtxSerial.so+0x7733]  Java_gnu_io_RXTXPort_nativeDrain+0xc3
#
# An error report file with more information is saved as:
# /home/quantime/Documents/TunerStudio/hs_err_pid2286.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by LT401Vette »

Now that looks more like some type of RXTX error, so would either be the wrong driver, but the error doesn't seem that way, or permissions. Is your user in uucp?
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
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by 24c »

LT401Vette wrote:Now that looks more like some type of RXTX error, so would be a wrong driver
Agreed, and it sniffs a bit like my OSX 10.6 errors. Have you, Quan-Time, looked at SunSpot stuff on Linux and other serial driver stuff for 64bit?

There might be something here?
http://forums.reprap.org/read.php?12,23 ... 98,quote=1
http://rxtx.qbang.org/wiki/index.php/In ... n_on_Linux
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by djandruczyk »

I looked at his machine, megatunix runs fine there and can talk to the ECU, so it's not a permissions issue. perhaps RXTX isn't 64 bit safe?
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

as dj said, i can run megatunix without issue. It would point to some sort of other issue ? whats this about rxtx.. maybe that could be a clue ?

-----
EDIT
-----
Just realised i DONT have uucp installed in my synaptic package manager.. relevant ?
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by djandruczyk »

Quan-Time wrote:as dj said, i can run megatunix without issue. It would point to some sort of other issue ? whats this about rxtx.. maybe that could be a clue ?

-----
EDIT
-----
Just realised i DONT have uucp installed in my synaptic package manager.. relevant ?
NO re: uucp. He's talking about a permissions thing. Typicaly serial ports are owned by either:
root:dialout or root:uucp. (that's "user:group"),

On my machine I get this by default for my PL2303 adapter:

Code: Select all

dave@shrapnel:~/cvs/MegaTunix/src$ ls -l /dev/ttyUSB0 
crw-rw---- 1 root dialout 188, 0 2010-01-09 21:08 /dev/ttyUSB0
This means only the "root" user and other users in the "dialout" group can use this port with Read/write access. those threee dashes at the end of hte permissions block crw-rw---- are for "world", which means "everyone else". hence no one else is allowed. If you weren't in the dialout group (or whatever group owns your serial port/adapter), you wouldn't be able to use the serial port, and thus megatunix, megatune or tunerstudio would NOT work, since megatunix works, we know it is not permissions but a Tunerstudio/Java issue.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

Code: Select all

quantime@allenkey:~$ megatunix
quantime@allenkey:~$ ls -l /dev/ttyUSB0 
crw-rw---- 1 root dialout 188, 0 2010-01-10 12:24 /dev/ttyUSB0
hmm.. well, id still like this resolved.. If only for the sake of learning whats going on... cheers for the help thus far everyone.
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
LT401Vette
Super MS/Extra'er
Posts: 12732
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by LT401Vette »

Does MegaTunix use lock files?
I believe that is where the problem starts. I have seen other apps able to use the port, but RXTX couldn't with the lock files until it had the right permissions.
From what I understand the RXTX 2.2 that is coming is supposed to be a bit less PITA about this, we'll see.

You should be ok with the 64 bit kernal, RXTX has a 64 bit linux driver. That is actually the only difference in the 64 bit version I have for download, the 64 bit driver is in place.

Dave, thanks for helping out. I'm pretty sure you know linux better than me!
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
Quan-Time
Helpful MS/Extra'er
Posts: 130
Joined: Sat Feb 02, 2008 9:21 pm

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by Quan-Time »

we all chat on IRC a fair bit. I helped him with the windows ports of the program (i dual boot) and often he helps me with linux :) Im sure we can figure something out. Im not sure about lock files either, im fairly sure he doesnt.. But ill let him answer it.
join the (non official) Megasquirt IRC chat channel
##megasquirt @ irc.freenode.net
http://webchat.freenode.net/?channels=% ... irt&uio=d4 - click here to join live via java web-client, its instant !
http://www.msefi.com/viewtopic.php?f=92 ... de#p204682
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Ubuntu 9.10 x64 hanging (possible java issue ?)

Post by djandruczyk »

LT401Vette wrote:Does MegaTunix use lock files?
I believe that is where the problem starts. I have seen other apps able to use the port, but RXTX couldn't with the lock files until it had the right permissions.
From what I understand the RXTX 2.2 that is coming is supposed to be a bit less PITA about this, we'll see.

You should be ok with the 64 bit kernal, RXTX has a 64 bit linux driver. That is actually the only difference in the 64 bit version I have for download, the 64 bit driver is in place.

Dave, thanks for helping out. I'm pretty sure you know linux better than me!
MegaTunix DOES use lock files, but not the semi-std one that some other comms programs use. (It probably should use the std one, but,at the time i didn't know the right info about it when i coded that feature. current MegaTunix creates its lock files in /tmp.)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
Post Reply