Page 1 of 1

save game serialization fails with an exception sometimes [RESOLVED]

Posted: Tue Aug 16, 2016 8:36 pm
by Nystul
I managed to make the save game serialization fail with an exception somehow, see this screenshot:

Image

I am not sure how I did it - I did a dungeon run (entered a random dungeon and cleared it a bit) and then I wanted to save and got the exception and no new save game was created. I tried to debug into it, it seems to happen in line 532 of SaveLoadManager.cs coming from line 983 before.

bad news: have not found a way to reproduce it - I just wanted to let you know there might be an issue hidden somewhere

Re: save game serialization fails with an exception sometimes

Posted: Tue Aug 16, 2016 10:47 pm
by Interkarma
Cheers. Not sure on this one. Looking at the call stack, exception happened several calls deep into the guts of FullSerializer trying to convert a UInt64 to an Int64 value. SaveLoadManager line 532 is just invoking the serializer.

It will be sadly hard to diagnose without the live state, and could still be an issue with FullSerializer itself. I do a lot of saving in my tests, will keep eye open for it.

Re: save game serialization fails with an exception sometimes

Posted: Wed Aug 17, 2016 6:39 am
by Nystul
Yeah I agree - will be hard to diagnose. We should just keep in mind that when someone encounters a situation where a save action won't result in a save game this issue could be responsible for it

Re: save game serialization fails with an exception sometimes

Posted: Wed Aug 17, 2016 10:42 am
by Nystul
ok I think I have found a spot where it can be reproduced. Seems to have to do with clicking switches/levers and saving afterwards...
things to do to reproduce:
  • goto location "Isle of Balfiera/The Mausoleum of Darkivaron"
  • enter the dungeon
  • click the wheel on the left side of the entrance to the staircase
  • try to save

Re: save game serialization fails with an exception sometimes

Posted: Wed Aug 17, 2016 12:32 pm
by Interkarma
Perfect, thanks. :)

Will dive into this one when I can.

Re: save game serialization fails with an exception sometimes

Posted: Thu Aug 18, 2016 1:50 am
by Xaphir
Is this happening under doze or linux?

Re: save game serialization fails with an exception sometimes

Posted: Thu Aug 18, 2016 3:21 am
by Interkarma
I'm assuming this will affect all platforms. Will do a deep dive on this to fix ahead of stable release.

Re: save game serialization fails with an exception sometimes

Posted: Thu Aug 18, 2016 8:30 am
by Interkarma
This is fixed now and will be in next build.