-
Notifications
You must be signed in to change notification settings - Fork 54
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
uhm... the app just deleted everything #109
Comments
The app doesn't delete things like that, and it also keeps daily backups. It is very likely you can just restore it, as it describes on https://strlen.com/procrastitracker/ (search for |
This happened to me also on the first run (~30min), db and backups were empty. But now it runs for a few weeks and been restarted a few time - seems ok. Would be great to edit the colors, tags and see the tag's time tooltip by hovering on the graph, now it shows the total time in the status bar. |
I am regulary losing all records, like every 2-3 weeks or so. There is some database corruption issue or something like this. This should be no problem to fix nowadays I think. And manually merging databases from backup is not so straightforward, you can then unknowingly add some records twice for example. This is the only major flaw of this program. Maybe it should use real database instead of a file? Or some other mechanism, that the main database files does not get corrupted, some incremental writing or similiar technique, I dont really know about this topic. Maybe I should fork to procrastitracker-realDB :) . But I did not code or work with databases for the last 20 years, so the results would be dubious probably. EDIT: not maybe loosing all records, but a lot of them, the database file gets smaller, I dont know how much exactly I have lost, but a lot. I don't know if all of them. |
No idea what could cause that, other than rebooting in the middle of a db write or so.. and even then, the start menu should have copies. Been running this program for 15 years non-stop now without this ever occurring, and so have many others, so it is possible there is something on your system, like an anti-virus, that interferes, if it indeed happens regularly. The current database is super compact and fast, which helps with keeping this program light weight so it can always run. Even if there is a better database solution (which I am sure there is) I don't have have time to rewrite the entire app, a lot of the internal structure of the program is tied to the database format, and it is not a simple table structure either (it's a tree). |
What I'am maybe thinking could be the culprint : some filenames/programs names contain UTF-8 or some special characters, and maybe the database handling does not like this when working with those strings, for example see the attached picture, there is a filename in BOLD, also some weird program names. I think when the program comes in contact with some weird window name/filename, something gets corrupted, and not saved. Or maybe saved correctly, but not loaded correctly afterwards. Just my two cents. I think for example the file with filename |
I used your example filename of I inspected the load/saving code, and it all seems safe with regards of UTF-8 handling. I don't think there is any problem with far manager either, it parses the |
Where are the databases stored? Is it possible to manually delete database to clear all data? |
There should be a shortcut to all database files in your start menu. |
can you be more precise? this tells me absolutely nothing, i am also losing my data every couple of days, from what i have seen the maximum it can keep seems to be 5 days |
Depending on your version of Windows, your start menu should be that thing that pops up from the windows symbol in the lower left corner of your screen. Please follow these instructions: https://support.microsoft.com/en-us/windows/open-the-start-menu-4ed57ad7-ed1f-3cc9-c9e4-f329822f5aeb
No idea what would cause that.. see what you find in |
can you just tell me the folder where they're saved? |
They are somewhere in your user folder. But it will not help you, the problem , at least by my judgement, is because if storing/loading application names which have weird characters(unicode, utf, or whatever), or parsing weird characters, I don't know, I stopped using this program, which is a pity because it was the BEST solution for me. Maybe during sommer I will try to find the problem, but I'am not a good programmer. |
Would it be possible to create some protection or warning into the app when it crashes and restarts the database from zero? |
Is the .db file in this attachement corrupted? Because when I run PT, and the close it, the .db file is saved with smaller size. Either it was currupted during latest saving, or it was saved correctly, but is not loaded correctly when I open PT. Maybe it can help with debugging. |
It getting a bit smaller on save is normal, it automatically merges nodes with very little time in them. If a db loads, and you can see all the time tracked, it is not corrupted. |
@lslatr23 |
I went to check how many hours I had in a certain game and every data I have been tracking for nearly a year had just vanished? Something similar had happened once but it was just a bug with the filters, this time i tried everything and it won't come back so it's probably hopeless at this point, so i'm not really looking for a solution, just to inform people that there is not much point to using a tracking program that will just cull itself completely out of the blue.
But thanks for the one year trial I guess.
The text was updated successfully, but these errors were encountered: