New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulation crashes when vehicles exits #5
Comments
I have found a fix for this issue. In BasicNodeManager.h the following line needs to be added: and In BasicNodeManager.cc the following lines need to be added: In initialize: In removeVehicle: |
This solution is not a complete fix. It also gives a segfault when finish() is called after the last vehicle exits. I cannot find why though given that the steps added are the same as those carried out by a normal veins simulation which presumably does not give this behavior. |
This fixes issue #5 reported by EmilyBourne Change-Id: I96b26db1ab24d8a152ffc1e9867a78f10035a20f
Thank you for reporting this issue. It is fixed in the current master branch. |
When running a simulations, a segfault occurs when a vehicle exits. Backtrace shows that the problem is in :
Veins::ChannelAccess::calculatePropagationDelay
Presumably the simulation continues to attempt to pass messages to/from the vehicle after it has been deleted, resulting in an invalid pointer.
Bug is quickly reproducible by running the example provided with only 5 cars (change 195 to 5 in /extern/veins/examples/veings/erlangen.rou.xml, this allows the bug to appear after around 10 seconds. The full simulation is much slower)
The text was updated successfully, but these errors were encountered: