You know, where you should use the standard lock files they sure have been the leading Linux PITA for people, I have been temped to compile the RXTX driver without them. Or like you did with them in a place most users have access to, I guess it could still get ugly if someone fires up a different app and starts accessing the port...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.)
Ubuntu 9.10 x64 hanging (possible java issue ?)
Moderator: 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 ?)
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
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
-
- 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 ?)
The problem is that not all apps use a lock, so even if i were to put the lock in the right place, there's still the risk of an issue.LT401Vette wrote:You know, where you should use the standard lock files they sure have been the leading Linux PITA for people, I have been temped to compile the RXTX driver without them. Or like you did with them in a place most users have access to, I guess it could still get ugly if someone fires up a different app and starts accessing the port...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
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
-
- 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 ?)
Agreed. I think the whole lock file concept would work better if the "right" place was a place that uses had access to by default, or the distros gave rights by default. Otherwise as it is, there is a deterrent to using the "right" place and like you said, once apps don't the whole point is out the window from a cross application point.
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
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
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
so the summary is.. how do i get TS workin ?
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
##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
-
- 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 ?)
I don't think you ever confirmed your user is 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
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
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
your right ! /etc/group for ubuntu.. what am i specifically looking for ?
i ADDED quantime just then.. to no avail.. am i spose to reload it somehow ? i figured it would be auto... ideas ?
-----
EDIT
-----
OK.. it now loads.. BUT wont detect the USB dongle.. Cant select TTYUSB0 for some reason.. tunix still works fine.. Something about stale lock ? What did i do wrong ? James has
maybe thats an issue ? should i do it to reflect his ?
Code: Select all
uucp:x:10:quantime
-----
EDIT
-----
OK.. it now loads.. BUT wont detect the USB dongle.. Cant select TTYUSB0 for some reason.. tunix still works fine.. Something about stale lock ? What did i do wrong ? James has
Code: Select all
uucp:x:14:uucp,jsm
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
##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
-
- 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 ?)
Ok, what is the file size of the serial so file in the lib subdir?
Are you starting it using the TunerStudio.sh file?
Are you starting from a trminal that is set to TunerStudio's install dir?
Are you starting it using the TunerStudio.sh file?
Are you starting from a trminal that is set to TunerStudio's install dir?
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
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
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
Code: Select all
-rw-r--r-- 1 quantime quantime 30882 2005-09-23 17:01 libLinuxSerialParallel.so
-rw-r--r-- 1 quantime quantime 326432 2006-03-02 05:34 librxtxSerial.jnilib
-rw-r--r-- 1 quantime quantime 138573 2010-01-08 14:04 librxtxSerial.so
Code: Select all
sh TunerStudio.sh
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
##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
-
- 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 ?)
Hmm...
Well we could fall to another option..
Install RXTX through your package manager.
Then try to start the app with this command:
java -jar TunerStudioMS.jar
I'm not sure what is up. There are quite a few people running on the 64 bit Linux, so it should work as it is?
That looks like the 64 bit driver138573 2010-01-08 14:04 librxtxSerial.so
Well we could fall to another option..
Install RXTX through your package manager.
Then try to start the app with this command:
java -jar TunerStudioMS.jar
I'm not sure what is up. There are quite a few people running on the 64 bit Linux, so it should work as it is?
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
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
-
- Experienced MS/Extra'er
- Posts: 193
- Joined: Wed Nov 11, 2009 11:35 am
- Location: Berlin, Germany
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
Hi,
i have TunerStudio on my 64-Bit-Debian since several months. Everything runs fine in the 32bit-chroot-jail, but if i try to run it in full 64-bit-mode i get hangups or errors pointing on the rxtx topic. If i change the serial-port to an invalid value in the ini-file it starts up fine (without any serial connection). I will try to find rxtx in the debian repositories and report what happens...
For me the solution with a 32-bit-chroot-jail is acceptable as i need it for other applications too. The additional ~100MB of diskspace shouldn't be a real problem for a machine modern enough to run 64Bits
Regarding the java-version i tried at least 1.6.0_15 to 1.6.0_17 without any noticable differences.
MegaLogViewer is running fine and it felt at least 20x faster than on my 32-Bit Notebook when doing VE-Analyze on a logfile of around 7 hours
Regards, Mario
i have TunerStudio on my 64-Bit-Debian since several months. Everything runs fine in the 32bit-chroot-jail, but if i try to run it in full 64-bit-mode i get hangups or errors pointing on the rxtx topic. If i change the serial-port to an invalid value in the ini-file it starts up fine (without any serial connection). I will try to find rxtx in the debian repositories and report what happens...
For me the solution with a 32-bit-chroot-jail is acceptable as i need it for other applications too. The additional ~100MB of diskspace shouldn't be a real problem for a machine modern enough to run 64Bits
Regarding the java-version i tried at least 1.6.0_15 to 1.6.0_17 without any noticable differences.
MegaLogViewer is running fine and it felt at least 20x faster than on my 32-Bit Notebook when doing VE-Analyze on a logfile of around 7 hours
Regards, Mario
Peugeot 106 Sergio_Tacchini, 1124cm³, MS2/Extra pre3.3alpah15, E85
Citroen AX, 954cm³, MS2/Extra pre3.3alpha15, E85
Peugeot 106 Rallye, 1298cm³ ... waiting for ITBs and full sequential injection
Citroen AX, 954cm³, MS2/Extra pre3.3alpha15, E85
Peugeot 106 Rallye, 1298cm³ ... waiting for ITBs and full sequential injection
-
- 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 ?)
Now that is interesting... Maybe there is a problem with RXTX on 64 bit, at least with the way I have RXTX setup? I don't actually have a 64 bit Linux here to try it out on, maybe I need to remedy that. I think the 64 bit installs I have seen working were AMD processors. I don't know if that makes a difference here.
Mario, if you are analyzing 7 hour log files and are using speed density, give this beta a shot:
http://www.efianalytics.com/MegaLogViewer/beta/
That goes 15 times faster on a 20 minute log and the bigger the log the better the improvement as the current MLV slows down and takes more memory as it goes through the log, this one doesn't. I'll bet you get at least a 25-30 x speed improvement. The results will be identical.
Mario, if you are analyzing 7 hour log files and are using speed density, give this beta a shot:
http://www.efianalytics.com/MegaLogViewer/beta/
That goes 15 times faster on a 20 minute log and the bigger the log the better the improvement as the current MLV slows down and takes more memory as it goes through the log, this one doesn't. I'll bet you get at least a 25-30 x speed improvement. The results will be identical.
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
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
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
RXTX is installed, and still getting the same error
Code: Select all
TunerStudio$ java -jar TunerStudioMS.jar
Jar Name:TunerStudioMS.jar
Experimental: JNI_OnLoad called.
RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyUSB0
RXTX Error: Unable to remove stale lock file: /var/lock/LCK..ttyUSB0
[code]
any other options ?
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
##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
-
- 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 ?)
I did a quick search on rxtx and ubuntu 64 bit.
I found quite a few people having problems, and 1 person that claimed to get it working..
They claimed the beta 2.2 driver fixed it?
Try replacing your [TunerStudioInstallDir]/lib/librxtxSerial.so
with this one:
http://www.efianalytics.com/TunerStudio ... linux-gnu/
Then cross your fingers
I found quite a few people having problems, and 1 person that claimed to get it working..
They claimed the beta 2.2 driver fixed it?
Try replacing your [TunerStudioInstallDir]/lib/librxtxSerial.so
with this one:
http://www.efianalytics.com/TunerStudio ... linux-gnu/
Then cross your fingers
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
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
-
- 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 ?)
do this:Quan-Time wrote:RXTX is installed, and still getting the same errorany other options ?Code: Select all
TunerStudio$ java -jar TunerStudioMS.jar Jar Name:TunerStudioMS.jar Experimental: JNI_OnLoad called. RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyUSB0 RXTX Error: Unable to remove stale lock file: /var/lock/LCK..ttyUSB0
Code: Select all
ls -la /var/lock
ls -la /var/lock/LCK..ttyUSB0
If there's a file there, run
Code: Select all
sudo rm -f /var/lock/LCK.ttyUSB0
Code: Select all
dave@shrapnel:~$ minicom
Lockfile is stale. Overriding it..
Cannot create lockfile. Sorry.
dave@shrapnel:~$
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
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
-
- Experienced MS/Extra'er
- Posts: 193
- Joined: Wed Nov 11, 2009 11:35 am
- Location: Berlin, Germany
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
I gave rxtx in version 2.2 a try and it worked correctly on my machine. (something is wrong with the link, i used the file from here: rxtx.qbang.org... ) From my experience at work i know about differences between AMD and Intel regarding task-switches under heavy parallel load. In combination with gcc and -O3 this can lead to uninteded behaviour, which can only be seen on one of both architectures. (and often but not always has its causes in missing semaphores) I don't think we will see big differences here, as the serial communication should be far away from multithreading...
I can also see these errors about stale lock-files when i hit Communications->Settings while i am connected to the MS. They don't occur when i just start TunerStudio and i can't find anything left in /var/lock/ when i close TunerStudio. (the files appear as they should when running TS)
As Phil told us, the beta-version of MLV runs VE Analyze much faster than the stable version with standard memory-settings. On the other hand i could really see a huge difference between my Notebook (1GB of RAM, MLV may get a half of it) and the bigger machine using 64 bits (where MLV was allowed to consume 2GB alone). This seemed much more than just the difference in the raw computing power to me.
I can also see these errors about stale lock-files when i hit Communications->Settings while i am connected to the MS. They don't occur when i just start TunerStudio and i can't find anything left in /var/lock/ when i close TunerStudio. (the files appear as they should when running TS)
As Phil told us, the beta-version of MLV runs VE Analyze much faster than the stable version with standard memory-settings. On the other hand i could really see a huge difference between my Notebook (1GB of RAM, MLV may get a half of it) and the bigger machine using 64 bits (where MLV was allowed to consume 2GB alone). This seemed much more than just the difference in the raw computing power to me.
Last edited by mariob on Wed Jan 13, 2010 10:07 am, edited 1 time in total.
Peugeot 106 Sergio_Tacchini, 1124cm³, MS2/Extra pre3.3alpah15, E85
Citroen AX, 954cm³, MS2/Extra pre3.3alpha15, E85
Peugeot 106 Rallye, 1298cm³ ... waiting for ITBs and full sequential injection
Citroen AX, 954cm³, MS2/Extra pre3.3alpha15, E85
Peugeot 106 Rallye, 1298cm³ ... waiting for ITBs and full sequential injection
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
tried DJs idea, it was able to load, and in "communications" i had a lot more things show up. Soon as i clicked on port settings, flicked it to TTYUSB0, instantly dumped out again. Tried also "auto detect ECU" and same thing. Auto dumps out, and creates a lock file.
ill try that new file later.. got a few things to take care of, so give me a day or two..
Cheers everyone for the help.
ill try that new file later.. got a few things to take care of, so give me a day or two..
Cheers everyone for the help.
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
##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
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
whats the best way to install / use that rxtx update ? ive yet to make it work.. 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
##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
-
- 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 ?)
It may be worth trying the latest 64 bit tar onmy site. I put the newer driver in that.
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
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
Re: Ubuntu 9.10 x64 hanging (possible java issue ?)
Code: Select all
quantime@allenkey:~/TunerStudio$ sh TunerStudio.sh
Jar Name:TunerStudioMS.jar
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyUSB0: File exists
quantime@allenkey:~/TunerStudio$ ls /var/lock/
quantime@allenkey:~/TunerStudio$
When it worked, this is what i had
Code: Select all
quantime@allenkey:~/TunerStudio$ sh TunerStudio.sh
Jar Name:TunerStudioMS.jar
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..OM1: File exists
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..OM1: File exists
quantime@allenkey:~/TunerStudio$ ls /var/lock/
LCK..OM1
I feel that we are working in the right direction tho..
-----
EDIT
-----
all workin sweet now. cheers heaps. twas my fault ! i didnt select the correct baud rate.. oops. it was defaulting to 9600, soon as i selected the correct speed, worked fine.. Maybe make the default different ?
Also, is there a way to edit the spark tables in a table format, rather than the 3d spinny view thing ?. Id like to just see the X - Y axis graph.. split into cells. Is that an option ? i cant find it.
Anyway. cheers heaps for your help.. Its been appreciated.
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
##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