Bug 816 - Setting the time far into the future (year 2100) crashed Workrave; now thinks that daily limit is reached from the beginning
Status:
ASSIGNED
Component:
Core
Version:
cvs
Hardware:
PC Windows XP
Importance:
P5 normal
Target Milestone:
---
Assignee:
Ray Satiro
URL:
Depends on:
Blocks:
Reported:
Feb 10 2009 20:00:30 UTC
by:
wo**@th**.de
Modified:
Feb 17 2009 04:06:39 UTC
CC List:
Ray Satiro
Rob Caelers
| Id | Who | When | Size | Type |
|---|---|---|---|---|
| 176 | %appdata%\workrave and workrave-crashlog.txt | |||
| wo**@th**.de | Feb 13 2009 10:36:28 UTC | 22359 | application/octet-stream | |
| Who | When | What | Removed | Added |
|---|---|---|---|---|
| Ray Satiro | Feb 12 2009 23:41:06 UTC | cc | Ray Satiro | |
| status | NEW | ASSIGNED | ||
| assigned_to | Rob Caelers | Ray Satiro | ||
| Rob Caelers | Feb 15 2009 18:06:49 UTC | cc | Rob Caelers |
Description
wo**@th**.de Feb 10 2009 20:00:30 UTC
I've played around with configuring the system time to a far future date: IIRC it has been the end of 2099 and then switched to 2100-01-01. I don't remember exactly when Workrave crashed during this process, maybe just when I've set the date back to 2009. However, currently Workrave thinks that the daily limit is reached when I start working already. There appear to be two issues here: 1. Workrave should not crash when the date changes like this (maybe internally a UNIX timestamp gets used; I'm on 32bit) 2. After the crash / on Workrave start the stored state should get verified, so that a daily limit is never exceeded right from the beginning. Is there a way to fix the daily limit for me now, by deleting some specific file(s) in the application data directory?!
Comment 1
Ray Satiro Feb 12 2009 23:41:06 UTC
What version are you using? You have an svn or a nightly build? Please do not delete the %appdata%\workrave files, I'll need them to help identify the issue. You can upload them to this thread.
Comment 2
wo**@th**.de Feb 13 2009 10:36:28 UTC
Created attachment 176
%appdata%\workrave and workrave-crashlog.txt
I'm using a nightly build.
I'm attaching the %appdata%\Workrave folder and a crashlog, apparently from this crash ("Crash log created on 01/01/2100 at 00:01:16.")Comment 3
Rob Caelers Feb 15 2009 18:06:49 UTC
Your crash log says: version = 1.9.0 compile date = Jul 15 2008 compile time = 20:06:24 Are you sure you are running a nightly build? Seems to be a crash in the statistics code: PC Frame Ret 77C16FA3 0023F9B0 004346B4 004346B4 0023F9F0 00434908 Statistics::update_current_day(bool) 00434908 0023FA30 0042BD9E Statistics::update() 0042BD9E 0023FA60 0040698A Core::heartbeat() 0040698A 0023FA90 00586BA7 GUI::on_timer()
Comment 4
wo**@th**.de Feb 16 2009 11:27:32 UTC
I've been using the version from http://workrave.org/download/snapshots/. The current version still says "1.9.0" (but I cannot see the build date in the About screen). I might have downgraded or not upgraded it for some time though.
Comment 5
Ray Satiro Feb 17 2009 04:06:39 UTC
Exit Workrave and then delete %appdata%\Workrave\state and that will reset the timers. As mentioned via e-mail I'd prefer you start fresh. It's possible your statistics might be corrupted.