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

Assertion error on loading old game #5232

Closed
DorpsGek opened this issue Jul 5, 2012 · 4 comments
Closed

Assertion error on loading old game #5232

DorpsGek opened this issue Jul 5, 2012 · 4 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jul 5, 2012

Moriarty opened the ticket and wrote:

I have a (very?) old OTTD game that I'm trying to load. I can understand if OTTD can't load it, however it actually crashes out whenever I try and do this one.
I get an assertion error:
Line 103, "...build-dir\ottd-nightly-w64bit\src\core/pool_type.hpp: index < this->first_unused.

r24375

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/5232
@DorpsGek
Copy link
Member Author

DorpsGek commented Jul 5, 2012

frosch wrote:

Afterload() calls UpdateHousesAndTowns()->RebuildTownCaches()->RebuildSubsidisedSourceAndDestinationCache() quite early, way before the subsidy conversion code for savegame version 125.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5232#comment11307

@DorpsGek
Copy link
Member Author

DorpsGek commented Jul 5, 2012

frosch wrote:

Broken in r24180 when RebuildSubsidisedSourceAndDestinationCache() as added to RebuildTownCaches() resp. UpdateHousesAndTowns().
Commenting out that call makes the savegame load.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5232#comment11308

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Fixed

in r24482


This comment was imported from FlySpray: https://bugs.openttd.org/task/5232

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
@James103
Copy link
Contributor

The savegame "Tax Fiddlers Anonymous, 31st Jul 2056.sav" crashes on load with this log on 20190516-master-g24493548da with Assertion failed at line 433 of d:\a\1\s\src\core\kdtree.hpp: this->Count() > 0. When I tried to do the emergency savegame, it turned out empty and a Windows-style "OpenTTD has stopped working" message appeared twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

2 participants