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

Crash by AI #2935

Closed
DorpsGek opened this issue May 31, 2009 · 4 comments
Closed

Crash by AI #2935

DorpsGek opened this issue May 31, 2009 · 4 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

fanioz opened the ticket and wrote:

Run this code on :
- Windows XP with OpenTTD 0.7.0. RC2 give this crash file
- Ubuntu Hardy 8.0.4 it just said "Segmentation fault"

History :
- Before using this kind of code, there are some one report on TransAI thread that it make the game slow.
- I decided to make such a task manager, and try to implement it in this way.
- When I run (start_ai) it give the crash.
- Ask this to forum : http://www.tt-forums.net/viewtopic.php?f=65&t=43746

I have no idea whats wrong here, if its not kind of a bug, just forgive me.
Run this code on :
- Windows XP with OpenTTD 0.7.0. RC2 give this crash file
- Ubuntu Hardy 8.0.4 it just said "Segmentation fault"

History :
- Before using this kind of code, there are some one report on TransAI thread that it make the game slow.
- I decided to make such a task manager, and try to implement it in this way.
- When I run (start_ai) it give the crash.
- Ask this to forum : http://www.tt-forums.net/viewtopic.php?f=65&t=43746

I have no idea whats wrong here, if its not kind of a bug, just forgive me.

Attachments

Reported version: 0.7.1-RC2
Operating system: All


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

Rubidium wrote:

Somehow it goes horribly wrong on 'acall' (line 127)


This comment was imported from FlySpray: https://bugs.openttd.org/task/2935#comment6138

@DorpsGek
Copy link
Member Author

fanioz wrote:

When I marked line 127 as comment and The same crash happened with "call" (line 128)


This comment was imported from FlySpray: https://bugs.openttd.org/task/2935#comment6139

@DorpsGek
Copy link
Member Author

DorpsGek commented Jun 1, 2009

Yexo wrote:

Smallest code to reproduce the problem. The crash is caused because SQVM::Execute is not reentrant (due to our suspension code), but the call/acall function can cause it to be re-entered.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2935#comment6142

@DorpsGek
Copy link
Member Author

DorpsGek commented Jun 2, 2009

Yexo closed the ticket.

Reason for closing: Fixed

In 16502.


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

@DorpsGek DorpsGek closed this as completed Jun 2, 2009
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant