Author Topic: Desync error since update 7.009  (Read 3432 times)

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Desync error since update 7.009
« on: August 03, 2013, 10:02:35 pm »
Hey,

I've got a desync with a friend since we updated the game. It happened twice after a variable length of time (around an hour into the game). We haven't seen any kind of event that would trigger it either.
The first save was when the error happened and the other one is the save we started from.

Thanks for looking into it!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #1 on: August 04, 2013, 12:12:55 am »
Thanks for letting us know, sorry to hear about the desyncs.

So they're not really predictable at all?  How long between each one?  Are we talking minutes, hours, days?

Thanks :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Re: Desync error since update 7.009
« Reply #2 on: August 04, 2013, 02:01:15 am »
Well, the first time we played, it happened after a bit more than an hour. Then, we started again, and it took a little less than an hour.
Also, just thought of mentioning that, we had that bug where we got free hacking unlocks, because we wanted to see what the response was below 0 hacking progress, than loaded a previous save, and we still had the ships.

Offline TechSY730

  • Core Member Mark V
  • *****
  • Posts: 4,570
Re: Desync error since update 7.009
« Reply #3 on: August 04, 2013, 03:04:36 am »
Well, the first time we played, it happened after a bit more than an hour. Then, we started again, and it took a little less than an hour.
Also, just thought of mentioning that, we had that bug where we got free hacking unlocks, because we wanted to see what the response was below 0 hacking progress, than loaded a previous save, and we still had the ships.

Hmm, potential save game state "leak"?

Isn't that usually a sure fire sign of something that is very likely to cause a desync?

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Re: Desync error since update 7.009
« Reply #4 on: August 04, 2013, 09:47:40 am »
Well, we wanted to continue the game, and we played many many hours after we got that bug (and after the bug was resolved, I read the wiki).

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #5 on: August 04, 2013, 11:39:44 am »
Ah, a failure of clearing the save state definitely can cause desyncs, though I'm not sure that's what's happening in 7.009.  To clarify: were all these desyncs in 7.009?
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Re: Desync error since update 7.009
« Reply #6 on: August 04, 2013, 01:43:26 pm »
Yes.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #7 on: August 05, 2013, 11:14:14 am »
Just looked at the saves to confirm that the state "leaking" across save/load no longer happens, and that does seem resolved.

Trying to isolate the cause of the desync, which is notoriously difficult... how much did you play these games in 7.007 (7.008 only being the "current" version for a pretty brief time)?  In other words, how confident are you that the desync issue was introduced in 7.008 or 7.009?
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #8 on: August 05, 2013, 11:25:06 am »
Btw, do you have any error log files in the RuntimeData directory in your AIWar directory?  On either player's machine?  Specifically things like:

ArcenDebugLog.txt
UnhandledErrors.txt
ErrorsReportedByEngine.txt
(anything with the word "desync' in it)

Thanks :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Re: Desync error since update 7.009
« Reply #9 on: August 05, 2013, 11:26:08 am »
Just looked at the saves, and we played 7 hours at 7.001, then 3 hours at 7.005, and 3 hours at 7.007. And then that last hour or so at 7.009.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #10 on: August 05, 2013, 11:27:13 am »
Hmm, ok; thanks.  Does seem like it happened after 7.007, or at least after 7.005.  Looking through the code diffs; not a whole lot changed but I did do some architectural rearrangement of hacking logic to make adding new types faster.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Re: Desync error since update 7.009
« Reply #11 on: August 05, 2013, 11:30:06 am »
And here's the Desync log (and others). You'll notice we also were the one with that odd desync with carriers from some time ago, haha.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #12 on: August 05, 2013, 11:30:59 am »
Another thing: if you can make sure that each time you play together you've both just started the program (and haven't started or loaded any other game since that run of AIWar.exe) that will eliminate desyncs caused by state "leaking" across save/load.  If you continue getting desyncs while observing that precaution let me know as that narrows down the sorts of things that could be going on (at least for one cause of the problem).
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Zebreu

  • Newbie Mark II
  • *
  • Posts: 12
Re: Desync error since update 7.009
« Reply #13 on: August 05, 2013, 11:32:51 am »
I am fairly sure that for those two desyncs we just got, we indeed started the program and loaded one save only, we generally just do that.

(Edited: But yeah, except for that one time where there was this leaking)
« Last Edit: August 05, 2013, 11:35:35 am by Zebreu »

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Desync error since update 7.009
« Reply #14 on: August 05, 2013, 11:37:41 am »
I am fairly sure that for those two desyncs we just got, we indeed started the program and loaded one save only, we generally just do that.

(Edited: But yeah, except for that one time where there was this leaking)
Ok.

Is the problem ongoing as you continue trying to play that game?  I'll keep hunting but it is helpful to know the frequency of occurrence to actually expect (for attempts to reproduce the problem).
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!