QuantumPhysique / trale

trale – a simple body weight diary app respecting your privacy
GNU Affero General Public License v3.0
60 stars 8 forks source link

Stuck at Loading Screen #65

Closed dchokola closed 2 months ago

dchokola commented 3 months ago

Upgraded to 0.6.1 through FDroid and was not able to get past the loading screen.

Unfortunately, I was not able to downgrade without first uninstalling and lost all my progress. It seems user data is not stored in a user folder which persists between installs.

Now, with no saved data, 0.6.1 works fine.

braniii commented 3 months ago

@dchokola thx for opening this issue. I am very sorry to hear that you lost your measurements :grimacing: Downgrading is prohibited by Android, but next time (hopefully there is no next issue :see_no_evil: ) please open the issue before erasing your data. Then, we can compile you the old version with higher version code to allow reverting the change.

@gwosd was facing a similar issue when upgrading to v0.6.0. This is why we have withdrawn this version and pushed a fix in v0.6.1. Using a clean installation of v0.5.0 creating some measurements and then upgrading to v0.6.1 works fine for me. So I have no idea what went wrong. Did you change some settings, set a target weight, changed the unit? And how many measurements did you had?

braniii commented 3 months ago

And regarding the user data. I have to check how this can be implemented, so that it persists between installations. For now it is recommended to regularly backup the measurements via the settings.

constantine-fanourakis commented 3 months ago

@braniii I am in the same situation, but haven't uninstalled the app. I would like to keep my data if possible. As far as changes to the settings, I have changed the unit.

braniii commented 3 months ago

@constantine-fanourakis a version for downgrade is running at 5de43fabac0211fec3465f54dfe48ac4ec67c980. I will upload it here in 10min, once it is done.

braniii commented 3 months ago

app-arm64-v8a-release.zip

Here, is the apk taken from https://github.com/QuantumPhysique/trale/actions/runs/8458590626. Sorry, needed to zip it because github does not allow to upload executable files. Can you please try to install it and tell me if it helped to downgrade?

sphars commented 3 months ago

app-arm64-v8a-release.zip

Thanks, I was able to install the app from this action and pull a backup.

I was not able import the backup into 0.6.1, but I was able to do so with the release app above (but only after reset option from within the app). There was a mild crash when changing the interpolation setting, had to switch back and forth. May make another issue for some minor things I've noticed. Edit: the mild crash with interpolation is the same as reported in #25, so looks like that may still be an issue.

braniii commented 3 months ago

app-arm64-v8a-release.zip

Thanks, I was able to install the app from this action and pull a backup.

I was not able import the backup into 0.6.1, but I was able to do so with the release app above (but only after reset option from within the app). There was a mild crash when changing the interpolation setting, had to switch back and forth. May make another issue for some minor things I've noticed. Edit: the mild crash with interpolation is the same as reported in #25, so looks like that may still be an issue.

Hi, I am sorry for all the inconvenience. I am glad to hear that you manage to backup your data. The provided apk is simply version 0.5.0 with increased version number to 0.6.2 so to allow downgrades. Therefore, all fixed issues persist. Whould it be possible to share your backup, so that we can find the bug? You can make a private issue under the privacy tab as "Private vulnerability reporting".

braniii commented 3 months ago

@sphars if you do not want to share your private weight measurements, you can also simply create new measurements in the old version, backup and then upgrade. As long as this fails, it would be of great help to find the bug.

Which unit and interpolation are you using?

dchokola commented 3 months ago

Thanks for the quick response.

@dchokola thx for opening this issue. I am very sorry to hear that you lost your measurements 😬 Downgrading is prohibited by Android, but next time (hopefully there is no next issue 🙈 ) please open the issue before erasing your data. Then, we can compile you the old version with higher version code to allow reverting the change.

Lesson learned! I will export my data before allowing F-Droid to upgrade next time.

@gwosd was facing a similar issue when upgrading to v0.6.0. This is why we have withdrawn this version and pushed a fix in v0.6.1. Using a clean installation of v0.5.0 creating some measurements and then upgrading to v0.6.1 works fine for me. So I have no idea what went wrong. Did you change some settings, set a target weight, changed the unit? And how many measurements did you had?

I entered a target weight, changed units to lbs., changed default interpolation, and had about a month to 40 days of daily measurements entered.

I'm glad to see others have the same issue and are able to provide data to drive this bug to closure.

braniii commented 3 months ago

@dchokola @sphars @constantine-fanourakis I have played around a bit with the app and still didn't manage to reproduce the error. Could you please tell me which Android Version you are using?

sphars commented 3 months ago

Here's how I am able to reproduce the loading screen hang error on v0.6.1:

If I proceed install 0.6.2 from the post above, with no other changes from my steps, the app loads again and data is showing as expected. I'll make a private issue with my backup data for you.

I've been using lbs originally, though my backup file is set to kg. Interpolation is the default option (3rd)

Pixel 8, Android 14

If it helps, I can try and capture a logcat when I have access to my PC later

braniii commented 3 months ago

@sphars thank you so much for your help!

dchokola commented 3 months ago

Seems @sphars has much more quality debugging data than me, but FWIW, I'm on Android 11.

braniii commented 3 months ago

@sphars so using your data it worked fine for me. But thx #70 I guess that the issue is dependent on the time of the day.

braniii commented 3 months ago

I've tried to fix #70 and uploaded there an apk in my latest comment. Since I am still unable to reproduce this issue, it would be of great help if anyone with could check if it solves this issue here as well.

sphars commented 3 months ago

Downloaded the APK in your comment and did an upgrade from 0.5.0 to this one. It looks like it worked, both upgrading directly and with a clean install and import of data. The app does report its version is 0.6.2, but it looks right. So I think we're good now?

braniii commented 2 months ago

I've released a new version to github. So either I recommend to wait with upgrading from v0.5.0 until v0.6.2 is on fdroid, or updating from github release directly.

damoasda commented 2 months ago

I got v0.6.2 via fdroid and it works again for me, the issue is fixed.