Open reyespinr opened 2 years ago
I have the exact same error message with the latest tag carma-simulation-1.0.1
The error is raised at TraciClient.java:97
:
So I assume that sumoServerSocket
is null
and if so, it is an error from AbstractSumoAmbassador.java:428
that send socket
without checking that it is not null
While digging into the problem I've found two additional "mistakes" regarding the logs, as can be seen in the output:
======================================================================wn)
| SUMO will now be started in GUI Mode. |
| Please make sure you have started Eclipse MOSAIC with "-w 0" |
| Start the simulation manually in SUMO-GUI. |
======================================================================
There is a missing new line (\n
) and an unaligned printing.
The missing newLine
is at AbstractTimeManagement.java
lines 168+231.
The code need to be changed from:
To:
progressLogger.info("Simulating: {}ns ({}s) - {}%" + newLine,
And from:
To:
progressLogger.info("Simulating: {}ns ({}s / {}s) - {}% (RTF:{}, ETC:{})" + newLine,
And the unaligned "box" is at LogStatements.java:64
, the repeat value is 7 and not 14:
The code need to be changed from:
To:
System.out.println("| Please make sure you have started Eclipse MOSAIC with \"-w 0\"" + StringUtils.repeat(" ", 7) + "|");
I have this same issue running everything on a native linux machine (ubuntu 20.04). Is there a fix for this issue?
Thank you.
We recently released a new version 4.4.3, you can pull the docker image from dockerhub. Run the image by docker run --rm -it --gpus all --net=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e QT_X11_NO_MITSHM=1 --user=carma usdotfhwastol/cdasim:carma-system-4.4.3 /bin/bash
. Once you get into the container, run ./mosaic.sh -s Town04_20
Types of Issue
Descriptive summary
Launching carma simulation using the current version gives a null pointer exception. Log files report that MOSAIC seems to be the issue.
Carma version where this issue was discovered
carma-simulation-1.0.1
Expected behavior
Town04_20 should launch successfully
Actual behavior
We receive a null pointer exception and the docker container closes. Our machine is running Ubuntu 20.04 running rootless docker.
Steps to reproduce the actual behavior
or (for HelloWorld scenario)
Log output
MOSAIC.log
(Town04_20)console output (Town04_20):
MOSAIC.log
(HelloWorld)Related work