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 after rerouting and losing a stop #13190

Closed
Sirius-1110 opened this issue May 5, 2023 · 13 comments
Closed

crash after rerouting and losing a stop #13190

Sirius-1110 opened this issue May 5, 2023 · 13 comments

Comments

@Sirius-1110
Copy link

Sirius-1110 commented May 5, 2023

Hi !
I have created a bidi road, like

    <edge id="-E22" from="J2" to="J33" priority="-1" spreadType="center" bidi="E22">
        <lane id="-E22_0" index="0" speed="13.89" length="144.30" width="10.00" shape="113.83,107.61 -30.26,99.79"/>
    </edge>
    <edge id="E22" from="J33" to="J2" priority="-1" spreadType="center" bidi="-E22">
        <lane id="E22_0" index="0" disallow="pedestrian" speed="13.89" length="144.30" width="10.00" shape="-30.26,99.79 113.83,107.61"/>
    </edge>

Then I created a loop route, the vehicles depart from E22 and leave on -E22.
When multi-vehicles meet on E22, SUMO crashed without raising any Error.
sumo crash
However, it seems the crash would not happen when there are only 2 vehicles meet on bidi road. Like,
image
The sumo configuration file is as follows:

<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-05-04 09:05:01 by Eclipse SUMO sumo Version 1.16.0
-->

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">

    <input>
        <net-file value="../multi-leg%20intersection/daye.net.xml"/>
        <route-files value="../multi-leg%20intersection/daye_flow.rou.xml"/>
        <additional-files value="../multi-leg%20intersection/daye.add.xml"/>
    </input>
    <processing>
        <lateral-resolution value="0.3"/>
        <collision.action value="warn"/>
        <default.speeddev value="0"/>
        <pedestrian.model value="striping"/>
    </processing>

</configuration>

How can I solve this problem? Thanks.

@Sirius-1110 Sirius-1110 changed the title BUG:SUMO crashes when multi-vehicle meet on a bidi road BUG:SUMO crashes when multiple vehicles meet on a bidi road May 5, 2023
@Sirius-1110
Copy link
Author

Probably not the cause of the bidi. In the following scenario, sumo also crashes without throwing an error.
image

@Sirius-1110
Copy link
Author

Sirius-1110 commented May 5, 2023

Related Information

CPU:11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
RAM:32.0 GB (31.7 GB available)
Windows Version: Windows 10 professional 21H2

sumo Version: 1.16.0
Build features: Windows-10.0.17763 AMD64 MSVC 19.29.30133.0 Release FMI Proj GUI Intl SWIG

@Sirius-1110
Copy link
Author

image
In fact, it is because of some errors when drawing the intersection in Netedit, this error will cause sumo to crash when the vehicle passes through the intersection.

@namdre
Copy link
Contributor

namdre commented May 5, 2023

Please provide the input files to make sumo crash because this needs to be fixed.

@namdre namdre reopened this May 5, 2023
@Sirius-1110
Copy link
Author

Sirius-1110 commented May 5, 2023

Please provide the input files to make sumo crash because this needs to be fixed.


Sorry, the bug has been fixed before I closed this issue.
I just tried to reproduce this bug, but it didn't work.
I must finish the task of simulation this week, so I'll try to reproduce the bug at a later time (maybe this Sunday).
And my guess is that when I use the "set custom junction shape" of netedit, there are some unreasonable operations.Maybe J24 is too close to J2.

image

multi-leg intersection.zip

@Sirius-1110
Copy link
Author

Sirius-1110 commented May 5, 2023

Hello, namdre !
To solve #13192 ,I increased the width of roads E22 and -E22, and changed the lateral-resolution value to 0.1.
The car will still be stuck in the road for a while, but there will be many warning messages

Warning: Vehicle 'flowCrushing14'; frontal collision with vehicle 'flowCrushing11', lane='E3_0', gap=-9.85', latGap=-0.20, time=51.00 stage=move.
Warning: Vehicle 'flowCrushing11'; frontal collision with vehicle 'flowCrushing14', lane='-E3_0', gap=-9.85', latGap=-0.20, time=51.00 stage=move.
Warning: Vehicle 'flowCrushing12'; frontal collision with vehicle 'flowCrushing14', lane='E7_0', gap=-7.83', latGap=-1.80, time=55.00 stage=move.
Warning: Vehicle 'flowCrushing14'; frontal collision with vehicle 'flowCrushing12', lane='-E7_0', gap=-7.83', latGap=-1.80, time=55.00 stage=move.

Then I referd to #9402 and increased the length of all vehicles, the bug occurs again!

@namdre
Copy link
Contributor

namdre commented May 5, 2023

when you talking about SUMO crashing, are you referring to the collision warnings are do you mean that the application itself aborts and stops working?

@Sirius-1110
Copy link
Author

when you talking about SUMO crashing, are you referring to the collision warnings are do you mean that the application itself aborts and stops working?

Sorry, I mean that application itself aborts and stops working.
And here are the input files.
multi-leg intersection.zip

@Sirius-1110
Copy link
Author

when you talking about SUMO crashing, are you referring to the collision warnings are do you mean that the application itself aborts and stops working?

Sorry, I mean that application itself aborts and stops working. And here are the input files. multi-leg intersection.zip

the confiuration file is day.sumocfg

@Sirius-1110
Copy link
Author

Sirius-1110 commented May 5, 2023

"set custom junction shape" of netedit

It is worth mentioning that I didn't use the "set custom junction shape" of netedit this time, so I'm not sure what causes the bug

@namdre namdre self-assigned this May 5, 2023
@namdre namdre changed the title BUG:SUMO crashes when multiple vehicles meet on a bidi road crash after rerouting and losing a stop May 5, 2023
namdre added a commit that referenced this issue May 5, 2023
@namdre namdre closed this as completed in 868cdb6 May 5, 2023
namdre added a commit that referenced this issue May 5, 2023
@namdre
Copy link
Contributor

namdre commented May 5, 2023

Thank you for the error example!

By the way: custom junction shapes should rarely be responsible for such problems

@namdre
Copy link
Contributor

namdre commented May 5, 2023

note, that your vehicles "lose" their stops on rerouting if the new route doesn't pass the original parkingArea. You could avoid this by defining stops as child elements of the routes which are assigned by the rerouters.

@Sirius-1110
Copy link
Author

Sirius-1110 commented May 6, 2023

note, that your vehicles "lose" their stops on rerouting if the new route doesn't pass the original parkingArea. You could avoid this by defining stops as child elements of the routes which are assigned by the rerouters.

I decided to assign parking areas with traci instead of setting parking areas in the route, and this bug didn't happen again.
Thanks again for your kindness help!

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