zaimoni / Cataclysm

A post-apocalyptic roguelike. New features relative to C:Whales are scheduled for after 0.2.0, the savefile breaking release.
http://www.bay12forums.com/smf/index.php?topic=174897
Other
27 stars 3 forks source link

Consistent segfaults in Ubuntu 24.04 #173

Open ryanfantus opened 1 week ago

ryanfantus commented 1 week ago

Hey there. I'd really like to try this game out. I am pumped that you're working to bugfix it!

I think I have a somewhat unique use case - I plan to run this as a BBS door. I currently have CDDA running that way and it mostly works, but I would prefer the (more or less) original Cataclysm.

More specifically, I need this to run in terminal/ascii mode, 80x25. The good news is that this currently (July 8 2024) does build and run. The bad news is that I get segfaults constantly. And I'm not sure where to begin troubleshooting.

  1. New game -> Template character -> "No templates found" message -> Press 'enter' -> segfault
  2. Randomly while walking around the map
  3. It does tend to freeze occasionally while walking around inexplicably

How can I help troubleshoot this? What would be valuable for you?

Alternatively is there a more stable linux version I should be using?

Additionally there are some graphical/display issues. Happy to report those here as well, but not sure if you prefer bug reports here or in the forums. Thanks!

zaimoni commented 1 week ago

Sorry, I'm only set up for Windows builds. I'll take a formal look at your first issue "shortly".

The second and third "feel like" the same issue (the way incremental map generation works is memory-intensive, and I haven't properly checked the map generation for formal issues).

zaimoni commented 1 week ago

Your first point, is partially formal-fixed by 0aa24d770a3b0d06909790959c368e88b6f6c179 . (I think we need a popup so that the error is clearly seen; the simulated ESC key by itself may be processed too fast.)

"No savegames" had the same problem, as "No templates".

ryanfantus commented 1 week ago

Thanks! That commit does fix the 'template character' crashing issue. I appreciate the speedy turnaround, that was fast! One thing to mention is that the "No templates found" message doesn't seem to appear at all, it's obfuscated by the menu text.

zaimoni commented 1 week ago

As I said, partial fix. I want to do a follow-up commit, to make the message show properly.