-
-
Notifications
You must be signed in to change notification settings - Fork 930
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]: RangeError: Maximum call stack size exceeded. when openning the application #2387
Comments
Linking to closed issue due missing information: #2241 |
Ok, so it took me quite a while to get to the bottom of this. The crux of the problem is - transactions created WAYYYY in the past cause issues with budget table calculations. The simple fix for you would be - don't import transactions from 1980. Use the last few years. To proper patch this we need to refactor topological sorting from a recursive implementation to an iterative one.
|
Yeah, I imagined the problem was that. It's better to have this kind of lock cuz I see this as critical bug. The file is exported from the bank that way. If you don't pay enough attention when doing it, you just lose your instance or have to edit the database file by hand. |
Out of curiosity, I tried to see how far back we have to go to break the current code: This creates a interesting bug (hardly able to see by us): If I starting using actual today, it will fail to load at 19/03/2120. lol |
This would be the workaround I was thinking about. I didn't try to run this code, I just forked and tried pinpoint where should be the change I suggested. Since actual has syncing features for offline use, I can imagine there is a better/another place to make the same change. |
Verified issue does not already exist?
Is this related to GoCardless, Simplefin or another bank-sync provider?
What happened?
Imported some OFX with no problems, then I imported an CSV, categorized its transactions. Tried to go to budget, this error starts happening. Now I'm unable to open the application at all.
What error did you receive?
graph-data-structure.ts:79 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at ep (graph-data-structure.ts:79:13)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
at ep (graph-data-structure.ts:85:9)
Where are you hosting Actual?
Docker
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Operating System
Windows 11
The text was updated successfully, but these errors were encountered: