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

[Bug]: "Apply budget template" to future month with certain schedules causes infinite loop/crash #1913

Closed
1 task done
star-szr opened this issue Nov 16, 2023 · 2 comments · Fixed by #1917
Closed
1 task done
Labels
bug Something isn't working goal templates Related to the experimental goal templates feature

Comments

@star-szr
Copy link

star-szr commented Nov 16, 2023

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Here is a sample file which demonstrates the issue: 2023-11-16-My-Finances-2-7f4509e.zip

If you prefer, you can manually set this up from a fresh file with:

  1. Enabling goal templates
  2. Creating an account (maybe not necessary but anyway...)
  3. Creating one scheduled item set to start 2023-11-30, recur monthly, and move schedule before weekends
  4. Choose any budget category and in the notes add #template schedule test where test is the name of the schedule you set up in the previous step

Navigate to a future month in the budget and select "Apply budget template".

The CPU spikes and the app locks up. I suspect an infinite loop somewhere but haven't dug into the code to try to confirm or deny this. It seems to be some kind of edge case related to this particular schedule.

In addition to the steps and file above here is a screenshot of the schedule that triggers the bug:

IMG_4972(2)

If you:

  • Set the schedule to "after" weekend, the bug goes away.
  • Uncheck the Move schedule modifier, the bug goes away.
  • Move the start date earlier in the month, the bug goes away.

What error did you receive?

No response

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Firefox, Chrome

Operating System

Linux

@star-szr star-szr added the bug Something isn't working label Nov 16, 2023
@youngcw youngcw added the goal templates Related to the experimental goal templates feature label Nov 16, 2023
@Kidglove57
Copy link

Bug confirmed when testing in my live budget!

@shall0pass
Copy link
Contributor

Please check if this resolves it the issue: #1917

Thanks!

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

Successfully merging a pull request may close this issue.

4 participants