twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

Crash on c2a3d #150

Closed BryanHaley closed 2 years ago

BryanHaley commented 2 years ago

Let me know if you can replicate this. c2a3d crashes after 2-3 seconds when the DLLs are built with the "Debug" configuration. The issue does not seem to happen in the "Release" configuration.

Steps to replicate:

Build latest with Debug configuration
Launch mod (I use -console -dev, unknown if it matters)
"map c2a3d" in console
Wait 2-3 seconds

Pausing the debugger while it's frozen seems to indicate it gets stuck somewhere inside hl.exe rather than any of the DLL code.

BryanHaley commented 2 years ago

Actually, it does seem to happen with the release configuration as well. Not sure why it didn't before, but maybe I forgot to copy the DLL or something.

BryanHaley commented 2 years ago

Turns out it was just the nodegraph taking a long time to generate. No issue.

SamVanheer commented 2 years ago

Yeah i've been thinking about reworking the logging code to avoid spamming output so much it freezes the game.

You should be able to stop it by running with developer 0 since it uses aiconsole logging.