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

Numerical habits with target value 0 cause app to crash #903

Closed
3 tasks done
mahdi1234 opened this issue May 11, 2021 · 4 comments
Closed
3 tasks done

Numerical habits with target value 0 cause app to crash #903

mahdi1234 opened this issue May 11, 2021 · 4 comments
Labels
bug Something is not behaving as the developers expected confirmed The developers have been able to confirm that the issue is valid
Milestone

Comments

@mahdi1234
Copy link

mahdi1234 commented May 11, 2021

Pre-submission checklist

  • I am submitting a bug report, not a feature request.
  • I am running the latest version of Loop Habit Tracker.
  • I have have searched for similar issues, but did not find any matches.

Description

I couldn't install 2.0.1 over 2.0.0 so I first removed 2.0.0. and then installed loop-2.0.1-debug.apk and imported backup.

It crashed during restore and crashes on start-up.

Removing 2.0.1 and switching back to 2.0.0 it can be restored fine.

Crash report here - https://del.dog/cenguxipoc.txt

If you need backup to reproduce please contact me via PM I don't want to post it publicly.

@iSoron
Copy link
Owner

iSoron commented May 12, 2021

Thank you for the bug report, @mahdi1234. If we had a copy of your backup file, it would indeed be much easier for us to reproduce this bug. Please feel free to send it to dev@loophabits.org. I won't share it with anyone.

@iSoron iSoron added bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices labels May 12, 2021
@mahdi1234
Copy link
Author

Backup sent over email fyi @iSoron

@iSoron iSoron added confirmed The developers have been able to confirm that the issue is valid and removed cant-reproduce The developers cannot replicate the issue on their own devices labels May 16, 2021
@iSoron iSoron changed the title 2.0.1 crashes/won't start importing 2.0.0 backup Numerical habits with target value 0 cause app to crash May 16, 2021
@iSoron
Copy link
Owner

iSoron commented May 16, 2021

Thank you for the backup, @mahdi1234. I was able to reproduce the issue. This will be fixed in Loop 2.0.2. The problem was that the app was not correctly handling numerical habits with target value of zero.

A workaround for importing your data into Loop 2.0.1 is changing all target values to something other than zero.

iSoron added a commit that referenced this issue May 16, 2021
@iSoron
Copy link
Owner

iSoron commented May 22, 2021

FIxed in branch hotfix/2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not behaving as the developers expected confirmed The developers have been able to confirm that the issue is valid
Projects
None yet
Development

No branches or pull requests

2 participants