baywolf-studios / BudgetBadger

GNU Affero General Public License v3.0
17 stars 2 forks source link

Crash on Month Change #84

Closed dougiep77 closed 2 years ago

dougiep77 commented 2 years ago

Describe the bug When changing months (forward or backward) the app crashes.

To Reproduce Steps to reproduce the behavior:

  1. Open the app and navigate to the 'envelopes' screen
  2. Click either arrow next to the current month
  3. The app crashes

Expected behavior I would expect to change to either the prior or next month's budget/envelopes.

Screenshots The app crashes to quickly to get a screen shot.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context The same crash occurs on both my iPhone and my Windows PC

matthewpritchett commented 2 years ago

Did it happen with a fresh install on both devices? I don’t experience crashing when changing months on any of my test devices so it’s definitely puzzling. I’m wondering if maybe some data got into a bad state causing the crash is my first thought. I’ll have to try to recreate it and see if I can get it to happen.

dougiep77 commented 2 years ago

Interesting... Yeah, I installed it last night on my iPhone but didn't try changing months. I then installed it today on my PC and that is when I had my first crash. So, I went back to my iPhone app and noticed it did the same thing. I have only added a few accounts and setup the Drop Box sync. Maybe it has something to do with that? I turned it off, but it still crashes. I'll try my Android out later tonight.

dougiep77 commented 2 years ago

I tried it on my Android tablet and it switched months just fine. Then I realized that I wasn’t connected to the internet. Once I connected the app started crashing when changing months. On Sep 15, 2022, 2:55 PM -0400, Matthew Pritchett @.***>, wrote:

Did it happen with a fresh install on both devices? I don’t experience crashing when changing months on any of my test devices so it’s definitely puzzling. I’m wondering if maybe some data got into a bad state causing the crash is my first thought. I’ll have to try to recreate it and see if I can get it to happen. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

matthewpritchett commented 2 years ago

Definitely sounds like some bad data then. Which is so weird as I have stuff in place to prevent stuff like this. Unfortunately the quickest for you is likely to uninstall and delete the folder in Dropbox, then reinstall it all if you aren’t too far in. I’ll try to break some of mine with bad data in the meantime.

dougiep77 commented 2 years ago

I must have messed up something when I started entering my data. I followed the steps you gave and it’s working now. Thanks so much for your help! I really appreciate it!

Doug On Sep 15, 2022, 5:54 PM -0400, Matthew Pritchett @.***>, wrote:

Definitely sounds like some bad data then. Which is so weird as I have stuff in place to prevent stuff like this. Unfortunately the quickest for you is likely to uninstall and delete the folder in Dropbox, then reinstall it all if you aren’t too far in. I’ll try to break some of mine with bad data in the meantime. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dougiep77 commented 2 years ago

Got it working on all my devices, entered my accounts and now it started crashing again like before. So weird… On Sep 15, 2022, 6:23 PM -0400, Doug Pancoast @.***>, wrote:

I must have messed up something when I started entering my data. I followed the steps you gave and it’s working now. Thanks so much for your help! I really appreciate it!

Doug On Sep 15, 2022, 5:54 PM -0400, Matthew Pritchett @.***>, wrote:

Definitely sounds like some bad data then. Which is so weird as I have stuff in place to prevent stuff like this. Unfortunately the quickest for you is likely to uninstall and delete the folder in Dropbox, then reinstall it all if you aren’t too far in. I’ll try to break some of mine with bad data in the meantime. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

matthewpritchett commented 2 years ago

If you’re comfortable, could you email me the file that’s in the Dropbox folder for Budget Badger? I’d be able to debug the issue. Totally understandable if you don’t want to though. Maybe you could rename or clear out the amounts before sending if that was a concern. I unfortunately can’t really replicate it on my stuff so far. I’m guessing something unique in your setup is causing it.

support@budgetbadger.io

dougiep77 commented 2 years ago

Yeah, must have something to do with that. I just sent the file. Thanks! On Sep 15, 2022, 7:18 PM -0400, Matthew Pritchett @.***>, wrote:

If you’re comfortable, could you email me the file that’s in the Dropbox folder for Budget Badger? I’d be able to debug the issue. Totally understandable if you don’t want to though. Maybe you could rename or clear out the amounts before sending if that was a concern. I unfortunately can’t really replicate it on my stuff so far. I’m guessing something unique in your setup is causing it. @. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

matthewpritchett commented 2 years ago

Thank you! Found the issue and got a fix building. Will let you know once it's submitted to the various app stores.

dougiep77 commented 2 years ago

That’s great! Thanks for your help! On Sep 17, 2022, 2:24 PM -0400, Matthew Pritchett @.***>, wrote:

Closed #84 as completed via #85. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dougiep77 commented 2 years ago

I got the latest apps and they are all working well. I tried starting over and deleted by cloud sync file and reinstalling. My ios app opens with no data, but the android app seems to be keeping a local copy of my data. It's not setup to sync but its still showing data even after the reinstall. Any idea why? Thanks! On Sep 17, 2022, 1:09 PM -0400, Matthew Pritchett @.***>, wrote:

Thank you! Found the issue and got a fix building. Will let you know once it's submitted to the various app stores. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

matthewpritchett commented 2 years ago

I’m not entirely sure on how Android handles uninstalls but I’m guessing either there’s a google backup or the actual application data doesn’t get cleared on an uninstall due to some setting. If all else fails, you should be able to delete all the transactions in accounts, hide the accounts and payees, then delete them if you wanted to. Unfortunately I haven’t got a reset function in the app as I assumed it would handle that on uninstall like it does for iOS.

I logged a feature #86 to capture that idea.

dougiep77 commented 1 year ago
Got it to work. Thanks again! From: Matthew PritchettSent: Sunday, September 18, 2022 10:27 AMTo: baywolf-studios/BudgetBadgerCc: dougiep77; AuthorSubject: Re: [baywolf-studios/BudgetBadger] Crash on Month Change (Issue #84) I’m not entirely sure on how Android handles uninstalls but I’m guessing either there’s a google backup or the actual application data doesn’t get cleared on an uninstall due to some setting. If all else fails, you should be able to delete all the transactions in accounts, hide the accounts and payees, then delete them if you wanted to. Unfortunately I haven’t got a reset function in the app as I assumed it would handle that on uninstall like it does for iOS.I logged a feature #86 to capture that idea.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
dougiep77 commented 1 year ago

I noticed on my iPhone that I can move forward and then backwards to the current month (Sept - where my data starts) without it crashing but if I go back to August, where I don’t have any data, it crashes. On Sep 15, 2022, 7:33 PM -0400, Doug Pancoast @.***>, wrote:

Yeah, must have something to do with that. I just sent the file. Thanks! On Sep 15, 2022, 7:18 PM -0400, Matthew Pritchett @.***>, wrote:

If you’re comfortable, could you email me the file that’s in the Dropbox folder for Budget Badger? I’d be able to debug the issue. Totally understandable if you don’t want to though. Maybe you could rename or clear out the amounts before sending if that was a concern. I unfortunately can’t really replicate it on my stuff so far. I’m guessing something unique in your setup is causing it. @. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

matthewpritchett commented 1 year ago

Sorry for late reply, that’s super strange as the fix I had done should have fixed that but I have your file you sent still so I’ll try to play around and reproduce it and see. I’m assuming it doesn’t cause issues with using since there isn’t any data in those months anyway? Thanks!

dougiep77 commented 1 year ago

Hi Matthew,

Everything works fine on my side. Thanks again for your help! On Oct 26, 2022, 12:44 PM -0400, Matthew Pritchett @.***>, wrote:

Sorry for late reply, that’s super strange as the fix I had done should have fixed that but I have your file you sent still so I’ll try to play around and reproduce it and see. I’m assuming it doesn’t cause issues with using since there isn’t any data in those months anyway? Thanks! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>