sonrisesoftware / project-dashboard

Project Dashboard for Ubuntu Touch
GNU General Public License v3.0
25 stars 4 forks source link

Data changes are not saved on my Nexus 4 but on the PC #93

Open nikwen opened 10 years ago

nikwen commented 10 years ago

After closing the app on my Nexus 4, all changes to the data are gone. Is it due to some data incompatibility with one of the first versions?

Nothing suspicious can be found in the logs.

Version: 0.4.2, but I've been having this issue for quite some time now (it worked initially).

nikwen commented 10 years ago

Reinstalling the app and deleting the data folder of the app did not work.

iBelieve commented 10 years ago

Oh no, now this is quite the critical bug. Since you're able to look at the logs, can you see if you the text Saving... in the log, followed the times it took to save each of your projects?

I'm wondering if this is because onDestruction() isn't being called properly

nikwen commented 10 years ago

Yes, this is probably the most critical bug at all. :(

Just got an idea when you mentioned onDestruction(). If I quit the app using the HUD, everything is fine, but if I (as I usually do) kill it through the apps scope, it's literally killed and does not save any data. The logs reflect that assumption (one time it contains Saving... and if I do it the latter way, it does not).

As you once mentioned you're using U1db, what's about saving after every change? Should work in my opinion.

iBelieve commented 10 years ago

Cool, so it sounds like a Apps Scope/Unity 8 bug. (Obviously it's still a problem, but because it's in Ubuntu Touch it won't be held against me during judging). I asked on IRC and it seems to be a known problem.

I'd like to be able to save after every change, and I think I'll implement it where I can, but there are certain cases where it won't work, since a lot of data comes from online services like GitHub or Travis CI and I have no easy way of knowing if its been changed or not.

nikwen commented 10 years ago

Ok, great. :+1:

iBelieve commented 10 years ago

Filed this upstream in the Click Scope as LP #1304034.

nikwen commented 10 years ago

And I didn't even have the time to confirm it...

nikwen commented 9 years ago

Ok, a fix for the upstream bug has made it into today's devel-proposed build.

Btw: Have you stopped working on this project? Or will you continue to do so in the future?