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

Year-End crash #2978

Closed
DorpsGek opened this issue Jun 12, 2009 · 12 comments
Closed

Year-End crash #2978

DorpsGek opened this issue Jun 12, 2009 · 12 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Haakon opened the ticket and wrote:

During year change 1907/1908, on the 31st of desember 1907, the game chrashed.

At the time, I had the replace vehicle window open. This window went bananas.

The top left part contained only the name of the engine I was replacing, 4-6-10 wheeler (steam) but not the counter, and the rigt part was empty. I was playing with the American renewal grf.

All other windows were OK.

I included an earlier savegame, if that would help you.

Håkon

Reported version: 0.7.1
Operating system: Windows


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

Yexo wrote:

Uploading the savegame failed somewhere. If you have it, can you also upload crash.dmp / crash.log?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6199

@DorpsGek
Copy link
Member Author

Haakon wrote:

I've tried two times adding all files, but they dont seem to get there. Any idea why not? By the way, it seems impossible to reproduce the error.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6200

@DorpsGek
Copy link
Member Author

Haakon wrote:

I made it!

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6201

@DorpsGek
Copy link
Member Author

SmatZ wrote:

What AI are you using? Can you upload it?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6203

@DorpsGek
Copy link
Member Author

SmatZ wrote:

So you could "play" for few ticks after the autoreplace window broke?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6204

@DorpsGek
Copy link
Member Author

Haakon wrote:

I installed 0.7.1 and the mentioned grf, nothing else. No AIs (I get an error message once in a while statin no suitable AI), and I don't know if I could play a few ticks, since I was not at the computer when it crashed. Some windows were open, and when I returned with a fresh cup of coffee, program had chrashed, and nothing could be done. I expect it to have chrashed immediately, since no year-end savegame had been made, presuming it chrashed on 31st of december.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6215

@DorpsGek
Copy link
Member Author

SmatZ wrote:

Maybe a race condition between the "saving" thread and sprite loader (both threads are reading files)?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6216

@DorpsGek
Copy link
Member Author

Haakon wrote:

I dont think this is save related. As I said, I had the "Replace train" window open, as I had quite a few other windows, like trains and industries viewports, maybe even a town or two, but the only indication of something wrong was missing and wrongly formatted trains in the top left table of "Replace train". Counters were missing, train names were right aligned, and one train was missing from the list. The train had not expired! It should have been there. I will keep an eye out for further sympthoms if this occurs again.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6218

@DorpsGek
Copy link
Member Author

SmatZ wrote:

How much system memory do you have? Is it possible all of the physical memory was used by other processes?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6225

@DorpsGek
Copy link
Member Author

Haakon wrote:

I doubt memory is the problem. My computer has 2Gb memory, and was restarted not too long before the crash, no other big programs were running. But sure, it's Windows, so who could tell? Game had been running about one hour when the crash occured. But another thing indicate memory might be involved. Whenever I exit OTTD, it seems like all desktop icons must reload graphics, even after just a short game. My playing field is 512 X 1024. That should not bee to much? I noticed that stack had been wrongly set to 1kb, and now has been set to default 1 mb. Could the problem be related?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6237

@DorpsGek
Copy link
Member Author

Rubidium wrote:

Setting the stack to 1 MB (first incorrectly to 1 kB) likely 'solves this bug' (read: work around something stupid in Windows).

It seems to be the same http://apocryph.org/2008/06/01/visual_c_apps_crashing_chkstk_under_load/ which says that under some circumstances Windows cannot provide more memory for the stack, which causes applications to crash when needing that extra memory on the stack.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2978#comment6240

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r16589


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
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

1 participant