Bug (4.2.1) - Crash with .NEW save file created

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Torr
    Rookie
    • Aug 2020
    • 7

    Bug (4.2.1) - Crash with .NEW save file created

    I've experienced an odd crash that may have corrupted my save file, and even caused a new save file to be created.

    After clearing out an enormous vault on my Paladin (like 140ish items visible via Clairvoyance as soon as I arrived on the level), I finished off a dracolisk, recalled to town via a Word of Recall, and promptly crashed as the recall took effect. The crash actually took longer to occur than other crashes I've had happen, and when I attempted to load my save, I noticed a new file, with a similar name but also with a 6 digit string attached to it, in the format of a .NEW file, and which was smaller in size than my original save (72kb vs 296kb). I could not load this .NEW file, receiving an error "Savefile corrupted - Couldn't load block monsters" and then a popup stating "Broken savefile."

    Loading the other, familiar save file, I found myself in mid-battle with a monster I had already killed in a Single Combat cell (some sort of Q monster) a few minutes before the crash. After killing the monster, which had been in the vault, SC ended and I found myself south of the vault, in an area I had not explored prior to recalling, next to a bunch of ants. I also noticed that the area in the vault that the Q monster had been in was not yet cleared, telling me I had not saved before recalling.

    Working my way back, I encountered an Archlich and used SC to kill him off. SC did not end, though, and I have not been able to find a way out. I've tried using debug mode's (j)ump command to go back to the same level I was on, level 0, and a variety of other levels, only to crash every time. I've also tried Word of Recall, which seems to work despite being in my little SC cell, but as soon as the recall hits the game crashes.

    The crashing itself is odd enough, but the creation of a completely new file is something I have not been able to find any information on. Ideally I'd like to be able to complete this character - that vault had some great randarts - but maybe there is no fixing whatever broke here. I am unable to reproduce the initial bug because I cannot leave SC and none of the crashes after the first caused the creation of a new file.

    OS - Windows 10 Home, Version 1909, OS build 18363.959
    Angband version - 4.2.1 (release build)
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    A .new file is part of the saving process, but shouldn't remain - if it does, that indicates something went wrong in saving. If you can zip up your savefile (the regular one, not the .new one) - and your randart file if you're playing with randarts - and attach it to the forum I'll have a look and see what I can do.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • Torr
      Rookie
      • Aug 2020
      • 7

      #3
      Looks like the files are too big, even zipped, to save to the forum. The save itself is too large even zipped (187kb) so separating the files would not solve the problem.

      Is there a preferred alternative method to share files?

      Comment

      • Torr
        Rookie
        • Aug 2020
        • 7

        #4
        Ok, actually got the save file to a manageable size, but the randart file is 2.6 MB, compressed to 187k, which is still too big. I'll see if i can load it to another service and link it here.

        Ok try this for the randarts file.
        Attached Files

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          Originally posted by Torr
          Ok, actually got the save file to a manageable size, but the randart file is 2.6 MB, compressed to 187k, which is still too big. I'll see if i can load it to another service and link it here.

          Ok try this for the randarts file.
          https://www.dropbox.com/s/dot8wzi3nz...darts.zip?dl=0
          I have the save, but I'm afraid the randart file I need will be in the archive directory inside your user directory, and will be called randart_07365fa6.txt. Obvious, really
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • Torr
            Rookie
            • Aug 2020
            • 7

            #6
            Whoops, got it, attached here.
            Attached Files

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9634

              #7
              OK, I have your savefile, but it's going to require some surgery - I'll post it here when (and if) it is playable again.
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • Nick
                Vanilla maintainer
                • Apr 2007
                • 9634

                #8
                Try this for size - you're in the town and it will probably look different, but I think it all should work now.
                Attached Files
                One for the Dark Lord on his dark throne
                In the Land of Mordor where the Shadows lie.

                Comment

                • Torr
                  Rookie
                  • Aug 2020
                  • 7

                  #9
                  Great, looks like it works, thanks so much! Any idea on what went wrong, IE is there anything I should look out for or not do to avoid this happening in the future?

                  Comment

                  • Nick
                    Vanilla maintainer
                    • Apr 2007
                    • 9634

                    #10
                    Originally posted by Torr
                    Great, looks like it works, thanks so much! Any idea on what went wrong, IE is there anything I should look out for or not do to avoid this happening in the future?
                    There are (fairly rare) bugs in Single Combat that are probably responsible for this. It is being worked on - mostly not by me - and once it's fixed I'll likely put out a new version.
                    One for the Dark Lord on his dark throne
                    In the Land of Mordor where the Shadows lie.

                    Comment

                    • Torr
                      Rookie
                      • Aug 2020
                      • 7

                      #11
                      This bug occurred again, after using quite a lot of SC to clear an A pit. I took the stairs down, the game crashed, and I had a .NEW file in my save folder. When loading the game, I was back in a SC cell with an A monster I had already killed, and when I finished it again, I went straight for the stairs rather than attempting to SC again. The stairs ended up working, and hopefully the issue will not reoccur during my next SC use.

                      Comment

                      • Cuboideb
                        Adept
                        • May 2020
                        • 196

                        #12
                        Something like this happened to me today. In FAangband 2.0. With a grey-elf blackguard.

                        These were my previous actions:

                        1. Player (grey-elf blackguard) has a randart in the home with unknown runes. (Broad Sword of Fuinuin)
                        2. Player died.
                        3. Started a new character (cloned the previous one)
                        4. I can learn the first spells and the ability.
                        5. When I took the stairs the game crashes when saving. The same when I enter the home.

                        Its the old randart in the home?
                        Attached Files

                        Comment

                        • Nick
                          Vanilla maintainer
                          • Apr 2007
                          • 9634

                          #13
                          Originally posted by Cuboideb
                          Something like this happened to me today. In FAangband 2.0. With a grey-elf blackguard.

                          These were my previous actions:

                          1. Player (grey-elf blackguard) has a randart in the home with unknown runes. (Broad Sword of Fuinuin)
                          2. Player died.
                          3. Started a new character (cloned the previous one)
                          4. I can learn the first spells and the ability.
                          5. When I took the stairs the game crashes when saving. The same when I enter the home.

                          Its the old randart in the home?
                          Thanks for the save. I believe I have seen the problem with home contents not being cleared mentioned before (although the dizzying array of bugs in the current beta mean my memory is rather over-taxed...), and I think your diagnosis is very plausible.
                          One for the Dark Lord on his dark throne
                          In the Land of Mordor where the Shadows lie.

                          Comment

                          • Cuboideb
                            Adept
                            • May 2020
                            • 196

                            #14
                            Crash happened in save.c, line 103. Artifact without name or bad pointer. Perhaps it was partially erased and something remained in the next game.

                            Comment

                            • Nick
                              Vanilla maintainer
                              • Apr 2007
                              • 9634

                              #15
                              Originally posted by Cuboideb
                              Crash happened in save.c, line 103. Artifact without name or bad pointer. Perhaps it was partially erased and something remained in the next game.
                              My guess is that the old home contents were preserved, and that this included a randart which would not exist in the next game, because a new set of randarts are produced each game. Load code looks up name, doesn't find it, crashes.
                              One for the Dark Lord on his dark throne
                              In the Land of Mordor where the Shadows lie.

                              Comment

                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎