RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 10:17 pm

All times are UTC





Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Debugging Romraider
PostPosted: Sat Sep 01, 2012 3:59 pm 
Offline
Newbie

Joined: Wed Apr 20, 2011 2:22 am
Posts: 93
Location: Kitchener, Ontario, Canada
So, I thought I'd try running romraider in the eclipse debugger today and failed. Basically I got a complaint about no line number info being available so the debugger could not stop at my breakpoint.

I found this in the build.xml:

Code:
       <!-- java compiler properties -->
        <property name="debug" value="off"/>
        <property name="optimize" value="on"/>
        <property name="deprecation" value="on"/>


Do I just need to change debug / optimize settings to get this to work?

Dan

_________________
2010 STI w/ built motor, TGV delete, TBE, KW Coil Overs.


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Mon Sep 03, 2012 4:01 am 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
This is an Eclipse problem.
I fix it by going to the RomRaider project properties and force the Line numbers OFF, close Eclipse, open Eclipse then turn the line numbers ON again. It should then rebuild and the debugger should be happy again.
You could also try a Clean and let it rebuild in the workspace.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Fri Oct 05, 2012 5:35 am 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
I have a problem when running the debugger it doesnt detect any com ports. works fine if i run the jar directly through the exe.

Any ideas?

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Wed Oct 10, 2012 2:22 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
You need to set the Debug Configuration and include the VM parameters that will allow it to locate the RXTX DLL.
i.e.: -Djava.library.path=lib/windows


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Mon Apr 01, 2013 8:58 pm 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
I cant seem to get romraider solution to run in debug or run. I can compile perfectly fine but I want to step through the code. The application does not start.

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Mon Apr 01, 2013 11:00 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
In Eclipse, try Clean project and then let it rebuild.
I've been using it so it can be made to work.


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Wed Apr 03, 2013 1:14 am 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
No still doesnt didnt work. Nothing starts up. Are there any settings i need to setup in eclipse?

1 INFO [main] - RomRaider 0.5.6 RC 5 Build: 445
2 INFO [main] - When requesting assistance at http://www.romraider.com please include the System Properties information below:
59 INFO [main] - Tuesday, April 2, 2013 10:33:38 PM CDT
65 INFO [main] - System Properties:
{java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=C:\Program Files (x86)\Java\jre7\bin
java.vm.version=23.7-b01
java.vm.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
path.separator=;
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=US
user.script=
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=Service Pack 1
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C:\Users\R705\workspace\RomRaider
java.runtime.version=1.7.0_17-b02
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=C:\Program Files (x86)\Java\jre7\lib\endorsed
os.arch=x86
java.io.tmpdir=C:\Users\R705\AppData\Local\Temp\
line.separator=

java.vm.specification.vendor=Oracle Corporation
user.variant=
os.name=Windows 7
sun.jnu.encoding=Cp1252
java.library.path=C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;
C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;
C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;
C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\eclipse;;.
java.specification.name=Java Platform API Specification
java.class.version=51.0
sun.management.compiler=HotSpot Client Compiler
os.version=6.1
user.home=C:\Users\R705
user.timezone=America/Chicago
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.7
java.class.path=C:\Users\R705\workspace\RomRaider\build\classes;
C:\Users\R705\workspace\RomRaider\lib\common\com4j.jar;
C:\Users\R705\workspace\RomRaider\lib\windows\j3dcore.jar;
C:\Users\R705\workspace\RomRaider\lib\windows\j3dutils.jar;
C:\Users\R705\workspace\RomRaider\lib\windows\vecmath.jar;
C:\Users\R705\workspace\RomRaider\lib\windows\Graph3d.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jama-1.0.2.jar;
C:\Users\R705\workspace\RomRaider\lib\common\BareBonesBrowserLaunch.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jep.jar;
C:\Users\R705\workspace\RomRaider\lib\common\Jama.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jamlab.jar;
C:\Users\R705\workspace\RomRaider\lib\common\JFontChooser.jar;
C:\Users\R705\workspace\RomRaider\lib\common\log4j-1.2.14.jar;
C:\Users\R705\workspace\RomRaider\lib\common\swing-layout-1.0.jar;
C:\Users\R705\workspace\RomRaider\lib\common\cmu_time_awb.jar;
C:\Users\R705\workspace\RomRaider\lib\common\cmu_us_kal.jar;
C:\Users\R705\workspace\RomRaider\lib\common\cmudict04.jar;
C:\Users\R705\workspace\RomRaider\lib\common\cmulex.jar;
C:\Users\R705\workspace\RomRaider\lib\common\cmutimelex.jar;
C:\Users\R705\workspace\RomRaider\lib\common\en_us.jar;
C:\Users\R705\workspace\RomRaider\lib\common\freetts.jar;
C:\Users\R705\workspace\RomRaider\lib\common\RXTXcomm.jar;
C:\Users\R705\workspace\RomRaider\lib\windows\jdic_stub.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jdic.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jfreechart-1.0.9.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jcommon-1.0.12.jar;
C:\Users\R705\workspace\RomRaider\lib\common\jna.jar;
C:\Users\R705\workspace\RomRaider\lib\common\platform.jar;
C:\Users\R705\workspace\RomRaider\lib\common\phidget21.jar
user.name=R705
java.vm.specification.version=1.7
sun.java.command=com.romraider.ECUExec
java.home=C:\Program Files (x86)\Java\jre7
sun.arch.data.model=32
user.language=en
java.specification.vendor=Oracle Corporation
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.7.0_17
java.ext.dirs=C:\Program Files (x86)\Java\jre7\lib\ext;
C:\Windows\Sun\Java\lib\ext
sun.boot.class.path=C:\Program Files (x86)\Java\jre7\lib\resources.jar;
C:\Program Files (x86)\Java\jre7\lib\rt.jar;
C:\Program Files (x86)\Java\jre7\lib\sunrsasign.jar;
C:\Program Files (x86)\Java\jre7\lib\jsse.jar;
C:\Program Files (x86)\Java\jre7\lib\jce.jar;C:\Program Files (x86)\Java\jre7\lib\charsets.jar;
C:\Program Files (x86)\Java\jre7\lib\jfr.jar;
C:\Program Files (x86)\Java\jre7\classes
java.vendor=Oracle Corporation
file.separator=\
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
sun.desktop=windows
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection(Unknown Source)
at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Wed Apr 03, 2013 3:47 am 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
Finally got it working.

Selecting JRE 1.6 like in your screen shot fixed it.

Is there a ECU tester? where I can simulate the logger connecting to a test stubbed/canned ecu messages for debugging?

49487 DEBUG [Thread-6] - Error sending init
java.lang.IllegalArgumentException: Parameter portName must not be null or empty
at com.romraider.util.ParamChecker.checkNotNullOrEmpty(ParamChecker.java:44)
at com.romraider.io.serial.connection.SerialConnectionManager.<init>(SerialConnectionManager.java:45)
at com.romraider.io.connection.ConnectionManagerFactory.manager(ConnectionManagerFactory.java:111)
at com.romraider.io.connection.ConnectionManagerFactory.getManager(ConnectionManagerFactory.java:47)
at com.romraider.logger.ecu.comms.io.connection.LoggerConnectionFactory.getConnection(LoggerConnectionFactory.java:32)
at com.romraider.logger.ecu.comms.manager.QueryManagerImpl.doEcuInit(QueryManagerImpl.java:165)
at com.romraider.logger.ecu.comms.manager.QueryManagerImpl.run(QueryManagerImpl.java:138)
at java.lang.Thread.run(Unknown Source)

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Wed Apr 03, 2013 4:13 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
You can try unchecking both the ECU and TCU items on the Logger toolbar and then only Externals will be logged.
or
if you need a simulated ECU connection go to:
com.romraider.io.serial.connection.SerialConnectionManager
and comment line 51,
un-comment line 52 to use TestSerialConnection2
Save and debug...

If you wish to change the ECU, go to TestSerialConnection2
and implement your own ECU init string of change to one of the ones that's available there already.

BTW: just confirming that the exception:
Code:
Uncaught error fetching image:
java.lang.NullPointerException
means you need to Clean the project in Eclipse and then rebuild.
Performing an Ant build deletes the RomRaider\build\classes\graphics directory from the Eclipse build environment, so the fix at the moment is to 'Clean' so Eclipse can copy over the graphics again.


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Thu Apr 04, 2013 1:55 am 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
Problem is I cannot uncheck anything the ui never appears for the logger. I tried the test connection2 path but the logger still did not show.

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Thu Apr 04, 2013 5:46 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
So is it working, or not working for you now?
Remember to do an Eclipse project Clean before running in Debug mode.


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Thu Apr 04, 2013 11:57 pm 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
It is not working. Yes, I've done a clean. The logger user interface never displays, i see alot of stuff going on in the console window of eclipse but no UI displays. Even with TestSerialConnection i still got the same ecuinit error.

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Fri Apr 05, 2013 5:43 am 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
I added -logger to my arguments for when ECUExec starts up in debug mode.

After stepping through the code when logger initialize I found the offending code preventing the logger ui from starting.

It starts with EcuLogger line 1611.
ecuLogger.setRefreshMode > refresher.setRefreshMode > refreshPortList > listSerialPorts

This is the exception that is thrown from SerialPortDiscovererImpl line 33
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver

Here is the callstack:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class gnu.io.CommPortIdentifier
at com.romraider.io.serial.port.SerialPortDiscovererImpl.listPorts(SerialPortDiscovererImpl.java:33)
at com.romraider.io.serial.port.SerialPortRefresher.listSerialPorts(SerialPortRefresher.java:78)
at com.romraider.io.serial.port.SerialPortRefresher.refreshPortList(SerialPortRefresher.java:71)
at com.romraider.io.serial.port.SerialPortRefresher.setRefreshMode(SerialPortRefresher.java:65)
at com.romraider.logger.ecu.EcuLogger.setRefreshMode(EcuLogger.java:1561)
at com.romraider.logger.ecu.EcuLogger.doCreateAndShowGui(EcuLogger.java:1622)
at com.romraider.logger.ecu.EcuLogger.access$34(EcuLogger.java:1616)
at com.romraider.logger.ecu.EcuLogger$26.run(EcuLogger.java:1611)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
106555 INFO [Thread-6] - RegOpenKeyEx error [2]

Is something off in my debug configuration? Am I missing a JAR? Or is something else preventing the SerialPort Discoverer from listing valid com ports?

I found that setting the /settings/logger/serial/@refresh attribute to false in the settings.xml allowed the UI to appear correctly. Obviously because refreshPortList is never called.

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Fri Apr 05, 2013 2:45 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
See the fourth post in this thread. Make sure your Debug config has the correct library path set in VM args.
See the run.bat file for the correct settings if you are not sure.

Also you can start the Logger without the Editor (com.romraider.logger.ecu.EcuLoggerExec) with the correct VM arguments specified in the eclipse Run/Debug configuration.


Top
 Profile  
 
 Post subject: Re: Debugging Romraider
PostPosted: Sun Apr 07, 2013 7:55 pm 
Offline
Newbie

Joined: Sun Sep 18, 2011 3:20 am
Posts: 51
Thanks, I opened up the run.bat and added the necessary lines to the VM args.

_________________
RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl