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

stop locations placed directly on the tracks don't match the inputs #9228

Open
eckter opened this issue Oct 7, 2024 · 3 comments
Open

stop locations placed directly on the tracks don't match the inputs #9228

eckter opened this issue Oct 7, 2024 · 3 comments
Labels
area:front Work on Standard OSRD Interface modules kind:bug Something isn't working severity:minor Minor severity bug

Comments

@eckter
Copy link
Contributor

eckter commented Oct 7, 2024

What happened?

When placing stops just before signals, the output actually moves stops around. The stops are not placed before the signals when running the simulations (according to "VISA" speed limits)

Path that's being displayed after the pathfinding request:

image

Path that's being displayed when I click on "edit this train":

image

Notice that the middle stop has moved. The second version seems to be used for the simulation, despite being different from what you'd expect (i.e. it's not just the prefilled path in the path edition that's wrong)

What did you expect to happen?

The stop shouldn't move like that. Requesting a stop before a signal should make the train stop before a signal.

How can we reproduce it (as minimally and precisely as possible)?

  1. Turn on the signal layer
  2. Find a path at the track level, with one intermediate stop right before a signal
  3. Add a train
  4. Edit this new train, notice that the stop has moved

On which environments the bug occurs?

Local

On which browser the bug occurs?

Firefox

OSRD version (top right corner Account button > Informations)

e0152b0

@eckter eckter added kind:bug Something isn't working severity:major Major severity bug labels Oct 7, 2024
@eckter eckter self-assigned this Oct 7, 2024
@eckter eckter added severity:minor Minor severity bug area:front Work on Standard OSRD Interface modules and removed severity:major Major severity bug labels Oct 17, 2024
@eckter
Copy link
Contributor Author

eckter commented Oct 17, 2024

After some investigation:

  • It only happens when the track geography doesn't match the track lengths. This makes it a non-issue on real infra, it's only relevant in debug scenarios. I'm lowering the severity.
  • The payloads seem to not have any issue, meaning that the bug is located in the front-end.

@eckter eckter removed their assignment Oct 17, 2024
@eckter
Copy link
Contributor Author

eckter commented Oct 17, 2024

Actually it's not just "front-end is broken", it's an issue with how our APIs aren't robust to geo data anomalies.

The front-end only receives geo data over the whole path. When track lengths don't match their geo lengths, it's impossible to mitigate any kind of error. They'll inevitably accumulate over the whole path and we can't normalize them.

@bougue-pe
Copy link
Contributor

bougue-pe commented Feb 6, 2025

This bug is probably fixed by #10515 (to be verified).

But after discussions in #9372 (comment), the plan is to change the fix by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules kind:bug Something isn't working severity:minor Minor severity bug
Projects
None yet
Development

No branches or pull requests

2 participants