TheSHEEEP / godotdetour

A GDNative implementation of the detour/detourcrowd library for Godot.
MIT License
120 stars 20 forks source link

(Windows) Agent & obstacle creation causes crash #2

Closed TheSHEEEP closed 4 years ago

TheSHEEEP commented 4 years ago

On Windows, creating an agent or obstacle causes a crash.

Investigating a bit, this line is the culprit (at least for the agent case, likely similar for the others as well): https://github.com/TheSHEEEP/godotdetour/blob/master/src/detournavigation.cpp#L394

So far it is unknown why this line produces an invalid Null instance on Windows which then naturally goes on to cause crashes when being used. While it produces a valid instance on Linux that can be used normally.

TheSHEEEP commented 4 years ago

This was the issue bringing this to my attention: https://github.com/TheSHEEEP/godotdetour/issues/1

TheSHEEEP commented 4 years ago

Turns out this is a known Windows-issue on godot-cpp. A fix is known but hasn't been mergen in many months. Makes me a bit speechless, tbh.

I added the "solution" to this to the build part of the readme.

@Limonado This should also resolve your problems.