Debugging woes: Small rollback

Announcements about major changes in Haven & Hearth.

Debugging woes: Small rollback

Postby loftar » Thu Nov 27, 2025 11:08 pm

I've been trying to shake a bug out of the server code, and I thought I would be able to do so by running the server with AddressSanitizer turned on.

AddressSanitizer however has the unfortunate effect of hard-exiting the program it's applied to instead of allowing it to crash to debugger. I had foreseen this and found the proper configuration to allow it to crash to debugger instead of exiting, and had even tried it locally to see that it really worked as intended before running it on the real server. Or so I thought. The server did crash in AddressSanitizer (I'm still debugging the issue that it crashed on), but apparently it managed to hard-exit anyway for some reason. Since it exited, I unfortunately lost the server process, so I cannot save the latest game state back.

This means that to preserve the integrity of the world, I will need to roll back to the last backed up state. Fortunately, at least, I made such a backup before starting the server, and it crashed only twenty minutes in, so that should be the extent of the rollback. I'm sorry about that, and I hope you can tolerate this relatively small of a rollback. I will examine my continued debugging options.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9075
Joined: Fri Apr 03, 2009 7:05 am

Re: Debugging woes: Small rollback

Postby Kamekono » Thu Nov 27, 2025 11:20 pm

You will be forgiven. Most people are in a good mood cause of the new world about to roll in!
Kamekono
 
Posts: 191
Joined: Sat Jan 07, 2012 5:36 pm

Re: Debugging woes: Small rollback

Postby loftar » Thu Nov 27, 2025 11:22 pm

Kamekono wrote:You will be forgiven. Most people are in a good mood cause of the new world about to roll in!

I sure am hoping to fix this bug before then!
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9075
Joined: Fri Apr 03, 2009 7:05 am

Re: Debugging woes: Small rollback

Postby dafels » Thu Nov 27, 2025 11:34 pm

GL
User avatar
dafels
 
Posts: 3056
Joined: Sun Nov 14, 2010 7:49 pm

Re: Debugging woes: Small rollback

Postby Brojnos » Thu Nov 27, 2025 11:54 pm

Dont worry Loftar we love you keep up the good work on this beautiful game, its my favorite right now
User avatar
Brojnos
 
Posts: 6
Joined: Sun Jul 27, 2025 10:23 pm

Re: Debugging woes: Small rollback

Postby _Scipio » Fri Nov 28, 2025 12:28 am

It's ok. We can just sunset W16 and have 16.1 be W17.
mizdirector89 wrote: No, their version of 'interrogating' was just saying 'speak up, you better talk' over and over while they killed our characters.

ImageWarriors of Annihilation ; The Crimson Tide
User avatar
_Scipio
 
Posts: 152
Joined: Sat Aug 29, 2015 3:22 am
Location: Interrogating your villagers.

Re: Debugging woes: Small rollback

Postby loftar » Fri Nov 28, 2025 12:30 am

Well, I caught one bug, but I'm pretty sure it wasn't the one I was looking for, so debugging continues until morale improves. At least it crashed properly avoiding rollbacks this time.

_Scipio wrote:It's ok. We can just sunset W16 and have 16.1 be W17.

Wouldn't really help anyway, would it now?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9075
Joined: Fri Apr 03, 2009 7:05 am

Re: Debugging woes: Small rollback

Postby Kamekono » Fri Nov 28, 2025 12:49 am

loftar wrote:Well, I caught one bug, but I'm pretty sure it wasn't the one I was looking for


Aaah, such a classic.

- insert Bryan Cranston replace the bulb GIF - :lol: :lol: :lol:

If I may ask, will you guys consider some of the suggestions for experiments in W16.1?
There were some interesting ones (I think in the first 20 pages?) before the thread got completely hijacked :roll:
Kamekono
 
Posts: 191
Joined: Sat Jan 07, 2012 5:36 pm

Re: Debugging woes: Small rollback

Postby loftar » Fri Nov 28, 2025 1:15 am

Welp, caught another bug that wasn't what I was looking for. Nice, but I'm looking forward to the right one. ^^

Kamekono wrote:If I may ask, will you guys consider some of the suggestions for experiments in W16.1?
There were some interesting ones (I think in the first 20 pages?) before the thread got completely hijacked :roll:

As soon as I can muster the strength to take the thread by the horns. Wasn't quite expecting the amount of traffic that it got. :P
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9075
Joined: Fri Apr 03, 2009 7:05 am

Re: Debugging woes: Small rollback

Postby Zentetsuken » Fri Nov 28, 2025 1:18 am

loftar wrote:As soon as I can muster the strength to take the thread by the horns.


Want to start with just one? ;)
      Image
      Image
JOIN THE OFFICIAL H&H DISCORD TODAY

♰ PROUD FORUM MODERATOR 02.01.2024 - 05.10.2024 ♰
User avatar
Zentetsuken
 
Posts: 2070
Joined: Sun Jun 20, 2010 4:07 pm
Location: Flavor Town

Next

Return to Announcements

Who is online

Users browsing this forum: Claude [Bot], OIchi, Python-Requests [Bot], Trendiction [Bot], _ToFu_, chust44 and 12 guests