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

Game crash on selling the last car of a train #2265

Open
Lev135 opened this issue Jan 22, 2024 · 1 comment
Open

Game crash on selling the last car of a train #2265

Lev135 opened this issue Jan 22, 2024 · 1 comment
Labels
investigate Not sure what the problem is yet

Comments

@Lev135
Copy link

Lev135 commented Jan 22, 2024

Version information:

  • Platform: Windows 10
  • Version: 24.01.1
  • Build/commit: 839d396

Describe the bug
I was selling my train cars to update them. When I moved the last car to the trash the game crashed.

selling the last car of train and BUILD TRAINS window is open

3b844efb-4714-4469-9a7f-865d56b1fdca(OpenLoco, v24.01.1 (839d3960 on master)).dmp

To Reproduce
I don't know, how to reproduce the bug, but I think that something went wrong with "build trains" window, since its behaviour is sometimes strange: it can say that "no compatible vehicles available to add to ..." when this is not true. Maybe these two bugs are somehow related.

Expected behaviour
I don't want the game to crush :)

@AaronVanGeffen AaronVanGeffen added the investigate Not sure what the problem is yet label Jan 22, 2024
@AaronVanGeffen AaronVanGeffen added this to the v24.01.1+ milestone Feb 3, 2024
@ilmoro93
Copy link
Contributor

ilmoro93 commented Feb 4, 2024

By looking at the dump file it seems crashing in OpenLoco::Drawing::Impl::clear when calling std::fill_n(ptr, w, fill);.

@LeftofZen LeftofZen changed the title Game crush on selling the last car of a train Game crash on selling the last car of a train Feb 5, 2024
@AaronVanGeffen AaronVanGeffen removed this from the v24.01.1+ milestone Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Not sure what the problem is yet
Projects
None yet
Development

No branches or pull requests

3 participants