[PR #4322] [MERGED] Fix hard crash when closing budget thats synced to cloud file #5320

Closed
opened 2026-02-28 21:10:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4322
Author: @MikesGlitch
Created: 2/6/2025
Status: Merged
Merged: 2/6/2025
Merged by: @MikesGlitch

Base: masterHead: fix/hard-crash-when-closing-budget-electron


📝 Commits (2)

  • 237038d fix hard crash when closing budget thats synced to cloud file
  • 5404011 release notes

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 packages/desktop-client/src/components/App.tsx (+3 -1)
upcoming-release-notes/4322.md (+6 -0)

📄 Description

The hard crash was introduced here: https://github.com/actualbudget/actual/pull/4124

Cause:
When you close a cloud budget the useEffect that calls init is triggered because of the cloudFileId. The init triggers a load budget call - so we're loading the budget while we're closing it, causing the app to crash. It was crashing trying to get the global spreadsheet when it was unloaded.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/4322 **Author:** [@MikesGlitch](https://github.com/MikesGlitch) **Created:** 2/6/2025 **Status:** ✅ Merged **Merged:** 2/6/2025 **Merged by:** [@MikesGlitch](https://github.com/MikesGlitch) **Base:** `master` ← **Head:** `fix/hard-crash-when-closing-budget-electron` --- ### 📝 Commits (2) - [`237038d`](https://github.com/actualbudget/actual/commit/237038d3b267e4a1049043950e3999389f3b1cc0) fix hard crash when closing budget thats synced to cloud file - [`5404011`](https://github.com/actualbudget/actual/commit/5404011cf48a9eec87e2c7bd7b2fc194665289ec) release notes ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/App.tsx` (+3 -1) ➕ `upcoming-release-notes/4322.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> The hard crash was introduced here: https://github.com/actualbudget/actual/pull/4124 **Cause:** When you close a cloud budget the useEffect that calls ```init``` is triggered because of the cloudFileId. The init triggers a load budget call - so we're loading the budget while we're closing it, causing the app to crash. It was crashing trying to get the global spreadsheet when it was unloaded. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:10:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5320