tiberiusteng / financisto1-holo

Financisto 1.6.8 with Holo theme and tweaks
GNU General Public License v2.0
19 stars 11 forks source link

Bug - Scheduled transactions recorded twice #36

Closed secco-online closed 3 months ago

secco-online commented 3 months ago

Hello Every scheduled transaction is generated twice with exactly the same amount, description and time. Please fix

tiberiusteng commented 3 months ago

https://stackoverflow.com/questions/50999673/workmanager-not-repeating-the-periodicworkrequest

https://i.stack.imgur.com/N6er5.jpg

I'll look into it, but I don't think there's much I can do (at least for now ...)

tiberiusteng commented 3 months ago

what's the interval you set for those transactions? are they being created/duplicated immediately after you updated the app?

secco-online commented 3 months ago

Hello. The schedule il twice per year (every 6 months) with an occurrence on March 11th. The next one will be September 11th. I'm attaching a screenshot. It happend without the update of the application, like during a normal schedule occurrence. Yesterday afternoon (after I already discovered the duplicate transactions) I updated the application to the latest version (2024-03-11). Today (march 12th) I have a set of 4 scheduled transactions that will happen in more or less 2 hours. They are also bi-yearly (interval of 6 months) so I'll let you know later what the result today. Screenshot_20240312-062256

Let me know if you need more data/screenshots for your investigation

secco-online commented 3 months ago

Today surprisingly, all 4 scheduled transactions were recorded only once. So no bug today, just yesterday :) Well, honestly, I don't know what could be done here

tiberiusteng commented 3 months ago

wow, just curious, how many scheduled transactions do you have? I heard that some have more than one screen ...

I currently have 2 known problems on scheduled transactions under investigation:

  1. it seems they will get executed whenever the app is upgraded (I have found some solutions to try on this one)
  2. the same scheduled transaction sometimes got duplicated execution on the same time (I added various checks and locks on previous versions but somehow it still happening
secco-online commented 3 months ago

Yesterday I had in total 3 transactions scheduled:

Today I had in total 4 transactions scheduled:

Yesterday after already discovering the additional transactions, I updated the application to teh latest version

secco-online commented 3 months ago

Hi. I'm closing this one. Weeks passed and I didn't have any problem with the scheduled amounts. So maybe all the work, that you dedicated to this error, helped. In case I see a problem in the future , I'll let you know. Greetings