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

Terminate path finding if execution times out #20

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

laverdet
Copy link
Contributor

@laverdet laverdet commented Mar 7, 2018

I was thinking about it and it's possible a user could misuse the path finder to raise that assertion error you were seeing. isolated-vm will wait for up to 200ms after requesting v8 to terminate the isolate before it raises that error. It seems like a pretty good amount because v8 should in theory terminate execution immediately. The path finder currently doesn't check that flag, but it should. If the user set ops very high while requesting an impossible path or was doing recursive path finder operations from their roomCallback I think they might be able to cause the error.

@artch artch merged commit 052d8e4 into screeps:master Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants