Skip to content
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

crash when using arrivalEdge and rerouting #10276

Closed
Inspire71 opened this issue Mar 3, 2022 · 4 comments
Closed

crash when using arrivalEdge and rerouting #10276

Inspire71 opened this issue Mar 3, 2022 · 4 comments
Assignees

Comments

@Inspire71
Copy link

I have applied the closingLaneReroute to a single lane of an edge with two lanes in the same direction. I have located the rerouter signage on the previous edge so that the vehicles have a rerouting behavior (R). When I run the simulation the vehicles stop at the entrance of the lane and are not rerouted. Subsequently, I equipped all vehicles with a reroutingDevice (--device.rerouting.probability 1), and run the simulation again, then the simulation is interrupted by 263 seconds (the simulation period is 3600s and starts at 46800s). I have done the same with closingReroute and it works perfectly (without a reroutingDevice). This is my additional file to close a lane

In case it has anything to do with the problem, the following attributes are defined in the routes file: departLane="best", departPos="free" and departSpeed="max"

Thanks in advance

**SUMO-version: nightly-extra version (January 12, 2022)

**operating system: windows 11

@namdre namdre self-assigned this Mar 3, 2022
@namdre
Copy link
Contributor

namdre commented Mar 3, 2022

please zip up all necessary files for reproducing the behavior and attach them to this issue

@Inspire71
Copy link
Author

The zip contains all the basic files to reproduce the error. I have included 3 sumo configuration files (.sumocfg) with the following cases:

  • the first (osm_PT.sumocfg) is the base file without the closure of the lane, including vehicle routes and public transport routes. This works correctly in the simulation
  • the second (osm_closelane_PT.sumocfg) is the same previous configuration file with the addiotional file with the rerouter closing lane, and includes the --device.rerouting.probability 1 argument. This file where the simulation is interrupted in the second 47063 and sumo-gui is closed.
  • the third file (osm_closelane.sumocfg), includes the rerouter with the closing of the lane and includes the --device.rerouting.probability 1 argument, but I have removed the public transport routes and additional PT files, and the simulation works correctly again and vehicle rerouting is executed with the lane closed properly

I need to included the PT in the simulation

could be the problem with the association of a device.rerouting to buses?

thanks namdre

10276_test.zip

@namdre
Copy link
Contributor

namdre commented Mar 4, 2022

Thank you for the test input!

The crash was caused by the 'arrivaEdge' attribute in the public transport vehicles. Rerouting may shorten their routes so that the old arrivalEdge is no longer applicable (now this gives a warning instead of a crash).
I'd suggest to disable rerouting for public transport (only) by modifying their type like this

<vType id="bus" vClass="bus">
   <param key="has.rerouting.devicel" value="false"/>
</vType>

While running your simuation I noticed multiple warnings (i.e. collisions) caused by unsafe right-of-way rules at motorway on-ramps. It seems that you set attribute pass=true to compensate for lack of acceleration lanes.
You may wish to add those lanes to your network by re-processing it with
netconvert -s map.net.xml --ramps.guess -o map2.net.xml
An alternative (though probably a bit less realistic) solution would be to change the junction type where an on-ramp enters the motorway to 'zipper' so that the rightmost motorway lane and the on-ramp merge smoothly without collisions.

@Inspire71
Copy link
Author

Inspire71 commented Mar 4, 2022 via email

@namdre namdre changed the title simulation is interrupted when using closingLaneReroute crash when using closingLaneReroute Mar 7, 2022
@namdre namdre changed the title crash when using closingLaneReroute crash when using arrivalEdge and rerouting Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants