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 map load on linux #124

Closed Midnoclose closed 2 years ago

Midnoclose commented 2 years ago

When running unmodified on linux, I get a crash when loading a map.

Midnoclose commented 2 years ago

I reverted to this commit and I was able to run the binaries just fine.

SamVanheer commented 2 years ago

This is probably caused by problems with the particle manager library. I'm in the process of fixing that, see #122. If the issue persists once that's been fixed, let me know.

SamVanheer commented 2 years ago

I've committed the fixes concerning the particle manager. Try now to see if it works.

Midnoclose commented 2 years ago

It still crashes on map load.

SamVanheer commented 2 years ago

Which distro are you using, which version of GCC are you using, which map are you loading?

Midnoclose commented 2 years ago

Kubuntu 20.04, GCC 9.3.0, c0a0 and t0a0

SamVanheer commented 2 years ago

Try running the game under a debugger. There's a tutorial here you can use to set that up: https://twhl.info/wiki/page/Half-Life_Programming_-_Debugging#h6017c5e17e550

When the game crashes you should be able to get a backtrace showing where the problem is coming from. Use the backtrace command to get a backtrace, then post the complete results of that. Also show the error that caused the crash, usually a segmentation fault but it could be something else.

Midnoclose commented 2 years ago

The map loads on the latest commit, for some reason when I was running git pull the remote and branch weren't set and I never noticed. After running git pull origin master and compiling the maps loaded just fine. Thank you for all your help.