Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erroneous time played #5277

Open
o-schneider opened this issue Jan 27, 2024 · 8 comments
Open

Erroneous time played #5277

o-schneider opened this issue Jan 27, 2024 · 8 comments

Comments

@o-schneider
Copy link

o-schneider commented Jan 27, 2024

I noticed these last months that my time played recorded by lutris is way too high compared of the time I actually played the game.

A few example, lutris says I played 44h42m at Rayman Origins, but I started playing this game one week ago (on 20/01) and it's certain that I didn't play 44h in one week between working and parenting. There's not even 44h of gameplay in this game. My real play time in the week should be around ~15h at most. Also, lutris says I played ~140h at Baldur's Gate 3 while my ingame save is at ~100h. I know there can be a discrepancy with the reloading and such, but 40h is too much. I also noticed this playing Quake (using a native source port) this summer, where a ~30 minutes session transformed into 2h+, so it affects wine and native games.

I didn't find anything relevant in the logs sadly. I have a post-exit command configured (to restart the compositor and screen saving configuration), I don't know if this can create such issues. I'd be happy to help more to debug this if I can.

@danieljohnson2
Copy link
Contributor

Are these Steam games by any chance? We've recently added a feature to pick up play time from Steam.

@o-schneider
Copy link
Author

o-schneider commented Jan 27, 2024

No, these games are not steam games (GOG games actually). Steam games had their time synchronized with steam's counter as far as I remember, but I can't test right now as I've also the #5248 bug. And I'm aware of this play time issue since at least august, so since 0.5.13.

@danieljohnson2
Copy link
Contributor

I've been thinking about this. I think the playtime timer has buggy timezone handling and could produce some crazy results if you have daylight savings time where you game; if you are gaming when the clock goes forward, it would count as extra playtime. I'll try to fix this.

But I still don't know where you can get 44 hours of extra playtime, so I don't think we've solved this.

@o-schneider
Copy link
Author

Late follow-up on this, the issue I'm experiencing is definitely not related to timezone as it happened randomly over the last six months, but great if it lead you to a possible issue! I'm sorry to not have anything more specific, I'm trying to provoke the issue (with a little bit of imagination) to no avail for now, sadly.

@strycore
Copy link
Member

Why would you ever think this is related to timezones????? ?????? (??)

The game hasn't quit properly and was left running in the background.

@danieljohnson2
Copy link
Contributor

I didn't think that; I found a time-zone bug and fixed it, but it couldn't plausibly have caused this.

It's more plausible that the game didn't quit, but if it never quit, would Lutris ever write the updated playtime back?

Maybe it does quit, but only after a quite long delay; that might add up to 44 hours, I suppose.

@strycore
Copy link
Member

The game obviously quit at some point but much latest than it should have. This has happened to me multiple time, getting over 20h of game play on games I've only played for a few minutes.

This also includes putting your machine to sleep then resuming it.

@o-schneider
Copy link
Author

Sure that looking at the code, it's hard to see any other explanation, especially as the timer is kept in memory. I have trouble to believe that I would have had lingering game processes for such a long time period as the post-exit command wouldn't have run if I read the code correctly. I don't believe I even left the computer on for so long, but it's been a few weeks already, not sure of my memory on this.

I'll let lutris run in debug for a time and see if I can find anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants