Alright, so i've been modifying RomRaider Logger for a while now in order to work with a few custom external plugins. I've made an Plugin Hub with an Arduino Nano which works great to convert 5V analog inputs to RomRaider, that way I can log fuel pressure, wb02, oil pressure.. all the goodies that the stock ECU doesn't have from the factory.
Now for the issue. After installing RomRaider 0.7.2, it works randomly the first hour. Then it doesn't connect to the ECU at all, it doesn't even try.
If I close/open it a few times, it may work again. But it gets to a point where it doesn't connect anymore. The logger doesn't even try to connect to the ECU, ECUINIT doesn't happen.
So while I had Eclipse open, I added a few Debug outputs to the log file, in order to see where it's stopping...
after digging a little bit, right below the init method, I found out that the Settings.getLoggerPort() returns a NULL, and it prevents the EcuInit, since it's a null.
In QueryManagerImpl class:
Code:
if(target == null || settings.getLoggerPort() == null ) {
notifyStopped();
if (settings.getLoggerPort() == null ) {
LOGGER.debug("QueryManager logger port is null.");
messageListener.reportMessage(rb.getString("LOGGERPORT_IS_NULL"));
}
...
Right below it there's another null check:
Code:
if (!settings.isLogExternalsOnly() && (target != null && settings.getLoggerPort() != null && doEcuInit(target))) {
I tried removing the null check just for diagnostics but it would return another null pointer in the doEcuInit method, so no go.
Well so I almost gave up, until I decided to rollback to 0.7.0, and boom, it works, flawlessly. So I downloaded the 0.7.0 source and modified it, and it works great.
The problem seems to happen in 0.7.2 only.