save game serialization fails with an exception sometimes [RESOLVED]

Report specific bugs in Daggerfall Unity. Please read guidelines before posting.
User avatar
Nystul
Posts: 548
Joined: Mon Mar 23, 2015 8:31 am

save game serialization fails with an exception sometimes [RESOLVED]

Postby Nystul » Tue Aug 16, 2016 8:36 pm

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
User avatar
Interkarma
Posts: 1161
Joined: Sun Mar 22, 2015 1:51 am

Re: save game serialization fails with an exception sometimes

Postby Interkarma » Tue Aug 16, 2016 10:47 pm

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.
User avatar
Nystul
Posts: 548
Joined: Mon Mar 23, 2015 8:31 am

Re: save game serialization fails with an exception sometimes

Postby Nystul » Wed Aug 17, 2016 6:39 am

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
User avatar
Nystul
Posts: 548
Joined: Mon Mar 23, 2015 8:31 am

Re: save game serialization fails with an exception sometimes

Postby Nystul » Wed Aug 17, 2016 10:42 am

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
User avatar
Interkarma
Posts: 1161
Joined: Sun Mar 22, 2015 1:51 am

Re: save game serialization fails with an exception sometimes

Postby Interkarma » Wed Aug 17, 2016 12:32 pm

Perfect, thanks. :)

Will dive into this one when I can.
User avatar
Xaphir
Posts: 85
Joined: Sat Jul 16, 2016 12:55 pm

Re: save game serialization fails with an exception sometimes

Postby Xaphir » Thu Aug 18, 2016 1:50 am

Is this happening under doze or linux?
User avatar
Interkarma
Posts: 1161
Joined: Sun Mar 22, 2015 1:51 am

Re: save game serialization fails with an exception sometimes

Postby Interkarma » Thu Aug 18, 2016 3:21 am

I'm assuming this will affect all platforms. Will do a deep dive on this to fix ahead of stable release.
User avatar
Interkarma
Posts: 1161
Joined: Sun Mar 22, 2015 1:51 am

Re: save game serialization fails with an exception sometimes

Postby Interkarma » Thu Aug 18, 2016 8:30 am

This is fixed now and will be in next build.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest