Simulation interrupted: -1: Could not insert V2X message into network #306
-
Hello Everyone. Need help fixing an issue in my simulation. The simulation is stopped halfway with this error message
It seems vehicle get removed when its reached the destination before the simulation ends. Therefore, V2X message expected to delivered to the vehicle not in the network, this cause the critical error. I don't know how to resolve this. Thank you in advance for the help on this. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello, Vehicles are indeed removed from simulation once they finish their routes. You won't be able to address a vehicle once it finishes its route. |
Beta Was this translation helpful? Give feedback.
I guess this could also be just a problem of how the
VehicleCamSendingApp
/AbstractCamSendingApp
is implemented. The application periodically tries to send a CAM message. In thesample
method it also checks if the vehicle is already removed from the simulation (isTornDown
). However, it then adds an event to call another method in the future (checkDataAndSendCam
) where the actual sending takes place. This method, however, does not check if the vehicle is still alive. So maybe here lies the problem.You could also fix this by yourself by adding a
if (isTornDown()) { return; }
at the beginning of thecheckDataAndSendCam
method.