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

MovePath crash #143

Closed
WoutProvost opened this issue Apr 2, 2018 · 3 comments
Closed

MovePath crash #143

WoutProvost opened this issue Apr 2, 2018 · 3 comments

Comments

@WoutProvost
Copy link
Contributor

WoutProvost commented Apr 2, 2018

The server crashes when using multiple movepaths. Caused by commit c337580. Maybe related to #124.

While performing the movepath my NPCs can be stopped with FCNPC_Stop or can start moving somewhere else with FCNPC_GoTo(Player). Maybe that has something to do with it, not sure.

I'm trying to isolate and reproduce the problem, but I haven't succeeded yet.

@ziggi
Copy link
Owner

ziggi commented Sep 18, 2018

Seems to be fixed

@ziggi ziggi closed this as completed Sep 18, 2018
@ziggi ziggi reopened this Oct 6, 2018
@WoutProvost
Copy link
Contributor Author

WoutProvost commented Oct 6, 2018

I'm able to reproduce the problem. See this gist and the following output.

Console input: loadfs test2
[06/10/2018 18:19:11] ON_FILTER_SCRIPT_INIT
[06/10/2018 18:19:11] CREATE: 0, ID: 0, VALID: 1
[06/10/2018 18:19:11] CREATE: 1, ID: 1, VALID: 1
[06/10/2018 18:19:11] CREATE: 2, ID: 2, VALID: 1
[06/10/2018 18:19:11] CREATE: 3, ID: 3, VALID: 1
[06/10/2018 18:19:11] CREATE: 4, ID: 4, VALID: 1
[06/10/2018 18:19:11] CREATE: 5, ID: 5, VALID: 1
[06/10/2018 18:19:11] CREATE: 6, ID: 6, VALID: 1
[06/10/2018 18:19:11] CREATE: 7, ID: 7, VALID: 1
[06/10/2018 18:19:11] CREATE: 8, ID: 8, VALID: 1
[06/10/2018 18:19:11] CREATE: 9, ID: 9, VALID: 1
[06/10/2018 18:19:11]   Filterscript 'test2.amx' loaded.

Console input: unloadfs test2
[06/10/2018 18:19:20] ON_FILTER_SCRIPT_EXIT
[06/10/2018 18:19:20] DESTROY: 0, VALID: 0, SUCCESS: 1
[06/10/2018 18:19:20] DESTROY: 1, VALID: 1, SUCCESS: 1
[06/10/2018 18:19:20] DESTROY: 2, VALID: 0, SUCCESS: 0
[06/10/2018 18:19:20] DESTROY: 3, VALID: 1, SUCCESS: 1
[06/10/2018 18:19:20] DESTROY: 4, VALID: 1, SUCCESS: 1
[06/10/2018 18:19:20] DESTROY: 5, VALID: 0, SUCCESS: 0
==> CRASH!

Note that just after creating each movepath, the plugin correctly returns that they are valid. After that however, the valid check has a pretty random outcome. Destroying a path seems to have a pretty random success rate as well, regardless of the outcome of the valid check.

ziggi added a commit that referenced this issue Oct 7, 2018
@ziggi
Copy link
Owner

ziggi commented Oct 7, 2018

Fixed.

@ziggi ziggi closed this as completed Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants