FORUM ARCHIVED

Linux 64-bit Desura + DoD 1.09 -> loading save game crashes DoD

Discussion in 'Bugs' started by Darksoul71, Dec 23, 2011.

  1. Darksoul71

    Darksoul71 Member

    Hi there,

    I just upgraded DoD to patch 1.09 via Desura and started my save game from yesterday evening (saved with 1.08). Then I played a while, saved again with v1.09 and now DoD dies when I try to load this specific game.

    The console error message does not really tell much:
    ./desura_launch_Play.sh: line 21: 19755 Segmentation fault LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIB_PATH $BIN_PATH $ARGS $@

    Doh, this is absolutely uncool....esp. since I have holidays now and the time to play DoD.

    Happy x-mas to you all by the way !

    Can anyone help ?

    Oh yes, my Linux box is a Xubuntu 11.10 x64 running on an AMD E350 with 8GB RAM and a GeForce 9500 with the lastest NVidia blob (if this is of interest).
    Let me know if more informations are required.

    TIA,
    D$

    P.S.: If someone tells me where the savegames are stored (I could not localize them at a quick view), I can attach them to my post
     
  2. Doomicide

    Doomicide Member

  3. sorlok_reaves

    sorlok_reaves Member

    I'm experiencing the same issue, on 32-bit Linux Mint (also using Desura). I've tried to narrow it down:
    1) Creating a new game, saving, and then reloading works.
    2) Creating a new game, exploring a bit on floor 1, then saving/reloading works.
    3) Creating a new game, descending to floor 2, then saving/reloading does NOT work, even if you go back to floor 1 to save.

    Hope this is helpful!
     
  4. Darksoul71

    Darksoul71 Member

    @Doomicide: Thanks for your reply ! Yes, I've seen their blog posting yesterday right after writing my bug report. Unfortunately they just released patches for Win and Mac.

    @sorlok_reaves: This bug seems to be related only to save games created with version 1.08.

    Next time I will do a working copy of my DoD folder prior making an update in Desura :)

    anyway, all this does not hurt really much anyway since we have christmas now and everyone should rather spent some few hours with his beloved rather than sitting in front of the PC. :D
     
  5. postfuturist

    postfuturist Member

    It also crashes for me when I load any save game, except for very new games, saved on the first level. I seem to be able to load those. Play for any length of time and then save the game, and try to load it: crash. Linux 64 bit. 1.0.9 on Desura
     
  6. Darksoul71

    Darksoul71 Member

    Hi there,

    just a little update here:
    The latest patch on Desura didn't change anything for me. 1.0.9b still crashes when I try to load my savegame (attached to this post). The issue seems to be Linux specific. Since I was setting up my Windows gaming PC anyway I just grabbed the DoD bundle over at steam for around 3.70€ (would be nice if Desura users see similar bundles here plus identical release dates :rolleyes: ). After copying over the Windows version from my steam folder and moving my Linux save games to the right position I am able to play my old save game....

    Hurrahhhhh....:D

    Let me know if you need further help for bug fixing.
    I am off now playing DoD under WINE.

    Cheers,
    D$
     

    Attached Files:

  7. Doomicide

    Doomicide Member

    @Darksoul: All my savegames load fine since the patch; also on Linux 64bit. And yeah It'd be awesome if desura and steam release-dates would be identical. (Still waiting for ROTDG) ;)
     
  8. Darksoul71

    Darksoul71 Member

    @Doomicide: Thanks for your reply ! I do not know about your savegames but the one I attached to my previous post still makes DoD "explode" when I load it. From the console output I can see that various things are loaded / generated from the savegame and then DoD segfaults... :-(

    May be I have something specific in this save game but honestly I do not care too much anymore.
    The Windows version from Steam loads my savegames nicely and I continued to play yesterday for another three hours.

    Happy new year to everyone celebrating it,
    D$
     
  9. cyb3rkn19ht

    cyb3rkn19ht Member

    I have a similar problem.

    @Darksoul Could you please tell me where the saved games are located? I would love to try loading your saved game and see if I get a similar disassemble.

    I can't load a save on Floor 2. Also one save over wrote another one.

    When I try to load the floor 2 save I get a seg fault.

    I am playing Dredmor 1.0.9 with Desura on Ubuntu 11.10. I tried to find a log but was unable to locate any.

    Here is a gdb backtrace and disassemble of the seg fault.

    Code:
    (gdb) bt
    #0  0x080af9d3 in Level::Load(_IO_FILE*) ()
    #1  0x080c2f02 in LoadGame(char const*) ()
    #2  0x080f0342 in PlayGameWithLoadFilename(std::string) ()
    #3  0x080f2cff in main ()
    (gdb) disassemble 0x080af9d1,+40
    Dump of assembler code from 0x80af9d1 to 0x80af9f9:
      0x080af9d1 <_ZN5Level4LoadEP8_IO_FILE+913>:    pop    %esi
      0x080af9d2 <_ZN5Level4LoadEP8_IO_FILE+914>:    inc    %esp
    => 0x080af9d3 <_ZN5Level4LoadEP8_IO_FILE+915>:    mov    0x48(%edx),%eax
      0x080af9d6 <_ZN5Level4LoadEP8_IO_FILE+918>:    imul  0x40(%esi),%ebx
      0x080af9da <_ZN5Level4LoadEP8_IO_FILE+922>:    mov    %eax,0x48(%esi)
      0x080af9dd <_ZN5Level4LoadEP8_IO_FILE+925>:    imul  $0xb,%ebx,%eax
      0x080af9e0 <_ZN5Level4LoadEP8_IO_FILE+928>:    lea    0x4(,%eax,4),%eax
      0x080af9e7 <_ZN5Level4LoadEP8_IO_FILE+935>:    mov    %eax,(%esp)
      0x080af9ea <_ZN5Level4LoadEP8_IO_FILE+938>:    call  0x804bfdc <_Znaj@plt>
      0x080af9ef <_ZN5Level4LoadEP8_IO_FILE+943>:    lea    0x4(%eax),%edi
      0x080af9f2 <_ZN5Level4LoadEP8_IO_FILE+946>:    xor    %edx,%edx
      0x080af9f4 <_ZN5Level4LoadEP8_IO_FILE+948>:    mov    %ebx,(%eax)
      0x080af9f6 <_ZN5Level4LoadEP8_IO_FILE+950>:    mov    %edi,%eax
      0x080af9f8 <_ZN5Level4LoadEP8_IO_FILE+952>:    cmp    %edx,%ebx
    End of assembler dump.
    
     
  10. Darksoul71

    Darksoul71 Member

    @cyb3rkn19ht: Yeah, for shure....

    It took me quite a while to locate them :)

    They are stored here:
    ~/.local/share/Dredmor

    ~ means of course your home directory.

    If you like I could try to "convert" your save game with my Windows version of DoD ?
    Loading your savegame and saving it again with my Win version from Steam is really easy-peasy. Hopefully the folks from Gaslamp will both fix this Linux bug and also release the Realms of the Diggle Gods on Desura.

    For now I will continue gaming under WINE using the version I bought from Steam as bundle with ROTDG.
     
  11. cyb3rkn19ht

    cyb3rkn19ht Member

    I copied the save in but it would not show up in the load game menu. I think you also have to edit loadsave.dat.

    What do you mean by converting the save? I also have wine. If I copy the saves to a wine install of DoD will I be able to play them. Can I then move them back to Linux?

    Thanks
     
  12. Darksoul71

    Darksoul71 Member

    Ops, sorry....the loadsave.dat seems to keep the reference here.

    I have tared my whole dredmor folder including my version of the loadsave.dat. I copied all those file in the corresponding save game folder under Windows / WINE and it works perfectly with the version from Steam.

    As for open & saving your game under a working version of DoD under WINE:
    I think that the save games opened by the 1.09 under WINE will also work (again) under Linux. We could simply try it out although my version is a bit different since I have also ROTDG included which means different items (e.g. bolts of a higher quality level) but as long as I only open up your save game and save&close directly after this it should propably work nicely with your Desura version.
     

    Attached Files:

  13. imabug

    imabug Member

    I was able to grab a 1.09BR version from Desura this morning that has fixed the problems I was having with loading save games
     
  14. Darksoul71

    Darksoul71 Member

    Yeaaaaahhh....DoD working again :D

    ..but anyway...I will stay with my Steam version under WINE. Esp. since my save games now have also items from ROTDG.