Skip to content

Simulation interrupted: -1: Could not insert V2X message into network #306

Answered by kschrab
SafrasIqbal asked this question in Q&A
Discussion options

You must be logged in to vote

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 the sample 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 the checkDataAndSendCam method.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@schwepmo
Comment options

schwepmo Apr 4, 2023
Collaborator

@SafrasIqbal
Comment options

@schwepmo
Comment options

schwepmo Apr 4, 2023
Collaborator

@kschrab
Comment options

Answer selected by SafrasIqbal
@SafrasIqbal
Comment options

@kschrab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants