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

Lockups within the first 20 turns, ever start #1290

Open
JimRoker opened this issue Nov 6, 2022 · 2 comments
Open

Lockups within the first 20 turns, ever start #1290

JimRoker opened this issue Nov 6, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JimRoker
Copy link

JimRoker commented Nov 6, 2022

I see a couple of specific lockup issues, but mine seem random.

@ldicker83 ldicker83 self-assigned this Nov 17, 2022
@ldicker83
Copy link
Collaborator

Hmm. I'll look into it. If you're able to find any way to reliably reproduce the issue it would be helpful.

@ldicker83
Copy link
Collaborator

ldicker83 commented Apr 27, 2023

So I have a sneaking suspicion that this reported crashing is related to this one reported on the forums: https://forum.outpost2.net/index.php/topic,5718.msg89551.html#msg89551

What I've found so far is that some structure (so far the Nursery and Red Light District, need to check for others) are incorrectly marked as Mine Facility and Residential, respectively. This leads to bad casts in Xcode and heap corruption on Windows (hence the crashing).

I have a pretty good idea of where to look in the code but this highlights that there should be some sort of sanity checking when instantiating new structures to check that the type received is the type requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants