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

Providing callback function to findShortestPathBetween crashes the server #8

Open
TracerDS opened this issue Feb 3, 2022 · 7 comments

Comments

@TracerDS
Copy link

TracerDS commented Feb 3, 2022

As in the title. Providing callback to findShortestPathBetween function crashes the server without any errors.

local id = loadPathGraph('nodes.json')

if isGraphLoaded(id) then
    iprint('Loaded graph with id: ',id)

    findShortestPathBetween(id,0,0,0,100,100,100,function(nodes)
        iprint('callback')
    end)
end

unloadPathGraph(id)
@TracerDS
Copy link
Author

TracerDS commented Feb 3, 2022

Correction: findShortestPathBetween itself crashes the server

@StiviiK
Copy link
Member

StiviiK commented Feb 3, 2022

The last build was 3 years ago, I haven't touched that library since. I guess if you would try to compile it with the latest SDK it could just work (even though i am not 100% sure).

Currently I have not really time to investigate the issue further, sorry.

@TracerDS
Copy link
Author

TracerDS commented Feb 4, 2022

Understood. Though I hope you'd come back to this.

@TracerDS TracerDS closed this as completed Feb 4, 2022
@StiviiK
Copy link
Member

StiviiK commented Feb 4, 2022

I‘ll reopen the issue, as it is not fixed.

@StiviiK StiviiK reopened this Feb 4, 2022
@StiviiK
Copy link
Member

StiviiK commented Feb 10, 2022

ml_pathfind.zip
Here is a fresh build of the module (untested). Also could you please provide me the nodes.json file you are using?

@StiviiK
Copy link
Member

StiviiK commented Feb 10, 2022

I guess I found your issue, you are trying to unload the graph while your are running the path search.

@TracerDS
Copy link
Author

I guess I found your issue, you are trying to unload the graph while your are running the path search.

both sa_nodes.json and testnodes1.json from test directory

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

No branches or pull requests

2 participants