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

Stuck at Loading Screen #65

Closed
dchokola opened this issue Mar 26, 2024 · 18 comments
Closed

Stuck at Loading Screen #65

dchokola opened this issue Mar 26, 2024 · 18 comments
Labels
bug Something isn't working

Comments

@dchokola
Copy link

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
Copy link
Contributor

braniii commented Mar 27, 2024

@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.

@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 braniii added the bug Something isn't working label Mar 27, 2024
@braniii
Copy link
Contributor

braniii commented Mar 27, 2024

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.

@braniii braniii mentioned this issue Mar 27, 2024
@constantine-fanourakis
Copy link

@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
Copy link
Contributor

braniii commented Mar 27, 2024

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

@braniii
Copy link
Contributor

braniii commented Mar 27, 2024

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
Copy link

sphars commented Mar 28, 2024

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
Copy link
Contributor

braniii commented Mar 28, 2024

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
Copy link
Contributor

braniii commented Mar 28, 2024

@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
Copy link
Author

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
Copy link
Contributor

braniii commented Mar 29, 2024

@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
Copy link

sphars commented Mar 29, 2024

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

  • Install 0.5.0 from F-Droid
  • Open app and import backup. Confirm data is showing properly
  • Upgrade to version 0.6.1 via F-Droid
  • Open app
  • See loading screen hang

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
Copy link
Contributor

braniii commented Mar 29, 2024

@sphars thank you so much for your help!

@dchokola
Copy link
Author

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

@braniii
Copy link
Contributor

braniii commented Apr 1, 2024

@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
Copy link
Contributor

braniii commented Apr 5, 2024

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
Copy link

sphars commented Apr 5, 2024

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
Copy link
Contributor

braniii commented Apr 5, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants