TunerStudio crashes when trying to load MS3/MS2-ex project

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
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

TunerStudio crashes when trying to load MS3/MS2-ex project

Post by Laminar »

Hello all,

I was able to get my desktop PC (Win7 X64) connected up to my newly-built MS3 V3.0/MS3X setup and create a new project, load a tune, play with values, etc.

With no Megasquirt connected, I then installed TunerStudio v2.6.12 on my laptop (Win7 X86, Java 8 v25) but upon trying to load my project (stored in a Dropbox folder synced between computers), TunerStudio crashed, giving me the error message "Java (TM) Platform SE Binary has stopped working".

I then noticed that if I opened up the MS3 or MS2-extra sample projects that came with TunerStudio, the same crash would happen, but if I open up any of the other three sample projects (MS1_BG_3.0, MS1_extra_example, or MSII_BG_2.905_Example), that the project would load without any issue and I could play around.

Any idea what would cause TS to crash like this? I wiped and reinstalled Java to no avail. I tried finding my TunerStudioLogFile.txt but it was not in my Documents\TunerStudioProjects folder, nor was it in the folder with my own self-created project. If there is any more info I can provide please let me know and I'll do what I can.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by LT401Vette »

It sounds like it is trying to open a port that Windows doesn't want it to.

What Com Port devices are on the computer?
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
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

Thanks for the reply!

Device Manager currently shows no COM ports (only the LPT1 printer port). I happen to have a Moxa UPort 1150 USB-to-serial adapter for work. Should I plug that in just so Windows will create a COM port and see what happens?
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by LT401Vette »

Interesting, it shouldn't have a problem if there are no com ports.
It should just just log an invalid port error and move along.

The TunerStudioAppDebug.txt really should be in the same dir as your Project folder unless TS doesn't have rights to write there.

I would be interesting to see if it makes a difference to put a COM Port on the computer, but it really shouldn't matter.
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
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

So I just double-checked the directory and apparently it created the Debug.txt file yesterday!
Last edited by Laminar on Wed Jan 21, 2015 5:58 pm, edited 1 time in total.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by LT401Vette »

It looks like it does not like COM3, that is where TS died immediately after:

Code: Select all

1/21/15 4:53:31 AM :Info: !!! Loaded config in 812
1/21/15 4:53:31 AM :Info: Opening port: COM3

With the Sample projects using COM29 and COM1, it did as expected and ignores the error and keeps going.

Code: Select all

1/21/15 6:37:32 PM :Info: !!! Loaded config in 506
1/21/15 6:37:32 PM :Info: Opening port: COM1
1/21/15 6:37:32 PM :Debug: Error opeing port, ignoring and monitoring anyway.
1/21/15 6:37:32 PM :Debug: Started new CommThread for MS1_Extra_Example
1/21/15 6:37:32 PM :Info: Comm Manager for MS1_Extra_Example Started
...

Code: Select all

1/21/15 2:45:30 PM :Info: !!! Loaded config in 722
1/21/15 2:45:30 PM :Info: Opening port: COM29
1/21/15 2:45:30 PM :Debug: Error opeing port, ignoring and monitoring anyway.
1/21/15 2:45:30 PM :Debug: Started new CommThread for MSII_BG_2.905_Example
1/21/15 2:45:30 PM :Info: Comm Manager for MSII_BG_2.905_Example Started
...
I would try changing the com port on your PC, let it replicate back to the laptop with a new com port, then try opening the project again.

I really need to make the COM port more specific to the pc for dropbox project replication.
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
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

Glad you were able to see what went wrong! Unfortunately my MS3 and desktop PC are about 5100 miles away, which is why I'm trying to run disconnected to play with the setup :). I think that my USB-to-serial typically presents as COM3 when it's plugged in, maybe I'll try and attach that and reassign to see if that doesn't clear up my issue.

Thanks again!
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

I attached the Moxa and configured it as COM3, but when I try and open the MS3 example project it crashes after trying to open COM8:

Code: Select all

TunerStudio 2.6.12 started on Thu Jan 22 11:33:51 YAKT 2015
JRE 1.8.0_25, Windows 7 6.1, x86
java.library.path=./lib
TunerStudioMS.jar
Look:Metal, ClassName:'javax.swing.plaf.metal.MetalLookAndFeel'
Look:Nimbus, ClassName:'javax.swing.plaf.nimbus.NimbusLookAndFeel'
Look:CDE/Motif, ClassName:'com.sun.java.swing.plaf.motif.MotifLookAndFeel'
Look:Windows, ClassName:'com.sun.java.swing.plaf.windows.WindowsLookAndFeel'
Look:Windows Classic, ClassName:'com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel'
Setting Look & Feel to:javax.swing.plaf.metal.MetalLookAndFeel
1/22/15 11:34:20 AM :Debug: Command Non-VolatileBytes for F resolved to: x46                                                                   F
1/22/15 11:34:20 AM :Debug: Command Non-VolatileBytes for I resolved to: x49                                                                   I
1/22/15 11:34:20 AM :Debug: Command Non-VolatileBytes for f resolved to: x66                                                                   f
1/22/15 11:34:20 AM :Debug: App Name:TunerStudio, appEdition:MS Lite!
1/22/15 11:34:23 AM :Debug: Time to retreive font name list: 553 ms.
WARNING:  RXTX Version mismatch
	Jar version = RXTX-2.2pre1
	native lib Version = RXTX-2.1-7
1/22/15 11:34:23 AM :Info: Initialized RXTX driver: 176ms.
No check, last update check=Wed Jan 21 04:42:03 YAKT 2015
MSmain: No check, last update check=Wed Jan 21 04:41:59 YAKT 2015
MSad: No check, last update check=Wed Jan 21 04:42:13 YAKT 2015
1/22/15 11:34:27 AM :Debug: Directory Changed:
..........
1/22/15 11:34:33 AM :Info: Parsed and validated ini "ms3_1.2_WueAnalyzeMap.ecu" in : 44ms.
1/22/15 11:34:33 AM :Debug: Adding Configuration: MS3-Example_Project
1/22/15 11:34:36 AM :Info: Tune opened, 15104 bytes updated. File:C:\Users\MGustafson\Documents\TunerStudioProjects\MS3-Example_Project\CurrentTune.msq
1/22/15 11:34:36 AM :Debug: Flush lasted: 0ms.
1/22/15 11:34:36 AM :Info: !!! Loaded config in 5786
1/22/15 11:34:36 AM :Info: Opening port: COM8
----end of file----
Maybe this is unrelated, but I have a similar issue on this laptop with the Arduino software, which is also Java-based. It is extremely slow and likes to crash whenever I try and establish communication with the Arduino. I've wiped Java using JavaRa and reinstalled a couple of times but no change noticed.
Last edited by Laminar on Mon Jan 26, 2015 9:15 pm, edited 1 time in total.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by LT401Vette »

I saw that in the log you posted, there was a crash on COM8 there too. But COM1 and COM29 seemed fine?

If you try to open COM8 or COM3 with a terminal program like TeraTerm what is the result?
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
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

TeraTerm doesn't let me choose COM3, just 2, 4, 5, 6, 8-17.

If I try and open COM8 it tries to connect then gives me an error "Cannot open COM8"
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

I got it working - if I assign my Moxa to COM3 I see an error in Device Manager telling me that the device was unable to start. However, if I reboot with the Moxa plugged in, it retains the COM3 assignment, this time without any error. I'm then able to load my own project with a COM3 assignment. However, if I try and change the COM port in the project once it's loaded, I get the same crash with the Java error message.

Device manager tells me that COM2 and 4-16 are "in use", and that COM3 is "current". TS allows me to change the COM port to COM2-17. However, making any change (including to COM17 which Device Manager doesn't believe is in use), causes the TS crash.

So for now, if I want to play around with my tune in TS, I have to plug in the Moxa and do a reboot so that it's recognized as COM3.

I tried killing my bluetooth adapter for fear that it was hogging some COM ports but that didn't do anything. All of this is after a fresh reboot with no extra applications running beyond what launches at boot.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by LT401Vette »

What if you change the Moxa to use a COM Port outside the range of used ports? Make it COM 30 or something.

Any idea what is using all those ports?
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
Fueler
Helpful MS/Extra'er
Posts: 72
Joined: Tue Oct 25, 2011 6:50 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Fueler »

Too many ports possibility.
I purchased a class 1 AZIO usb Bluetooth. It came with some software. I installed it.
It was designed with what looked like early 2000 Toshiba software suite intended to hookup to anything (well duh) and had way too many useless features.
Two things happened.
It loaded up 12 USB ports ahead of time AND caused TS and logware all kinds of grief, including logware not starting at all.. Overall it slowed the computer also.
This happened to both my 64 and 32 bit Win7 machines.
Got the updated driver software suite. Same issues

I uninstalled the Bluetooth software with extreme prejudice using Revo uninstaller.
Ran CrapCleaner to clean the registry of any leftovers.
Rebooted and let windows load whatever driver it desired.
End of that grief.

Notes: I have not tried this particular USB with an actual signal from an ECU yet. Will know if it actually works this weekend.
My other usb/BT adapter does not fire up any ports until something is signaling it. Now that I uninstalled this software this new one does not either.
They both do show in Device manager under the bluetooth radio heading.
Laminar
Master MS/Extra'er
Posts: 644
Joined: Wed Aug 06, 2014 7:45 am

Re: TunerStudio crashes when trying to load MS3/MS2-ex proje

Post by Laminar »

Weird.

Set the Moxa to COM30. With Device Manager saying COM3 is "in use", my own project set to COM3 loads. Even with the Moxa unplugged, my project loads now.

But the MS3 and MS2-ex projects lock it up. No clue what's going on.

This is my work laptop and I do industrial controls (hence the Moxa), so it's possible our proprietary software is capturing some COM ports, though none of that software is running.
Post Reply