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

AI's enter an unexpected zombie state when ::Save() fails. #3134

Closed
DorpsGek opened this issue Aug 20, 2009 · 1 comment
Closed

AI's enter an unexpected zombie state when ::Save() fails. #3134

DorpsGek opened this issue Aug 20, 2009 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Dustin opened the ticket and wrote:

Background:
When an AI has an crash in the Save() routine a crash is reported to the window, but it keeps running. This behavior seems reasonable, because save isn't critical.

ERROR:
However, at this point the game considers that the AI never left the Save() routine and starts complaining "You are not allowed to call sleep during Save(), Load(), and any Valuator."

REPRO STEPS:
Create the test AI from http://wiki.openttd.org/AI:TestAI . Change the Save() function to read TestAI::Save() {throw("save error.");}
Load the AI in a game, and call save. Notice the crash report. Hit the fast forward

EXPECTED RESULTS:
The AI should crash completely and be dead.
OR
The failed save should be terminated and the AI should continue on.

ACTUAL:
The AI is still running, but the game thinks it's still running the Save() routine.

Attachments

Reported version: 0.7.2
Operating system: All


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

Yexo closed the ticket.

Reason for closing: Fixed

In r17231.


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

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