This error started occurring after upgrading to 0.72.1. I believe it's related to the fix added for window reopening 406 751
I observe this error running the AppImage on NixOS and Ubuntu 22.04. I also observe the error with the debian package on Ubuntu 22.04.
Steps to recreate:
- Open Buckets.
- Create a new Budget or open an existing one.
- Close Buckets
- Attempt to reopen (Fails with error in console, but no output to user)
- Attempt a second time and Buckets opens the open/wizard screen
This error has been occurring almost every initial start of buckets, but when I try to recreate the issue reliably it seems to occur less.
Possible solutions without being able to see the code:
- Save the window state immediately after successful launch
- Address the string value of null being appended to the end of the filename
- Upon error default to the Accounts window
- Upon error default to the open/wizard dialog
Error log output:
[14:23:49.610] [info] (m.app) DEBUG Done opening budget file
[14:23:49.626] [info] (m.files) SQLite: 3.39.4
[9796:0124/142349.644811:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[14:23:49.678] [info] (m.rpc) awaiting renderers key=1...
[14:23:49.679] [info] (m.files) opening new window to /budget/index.htmlnull
[14:23:49.696] [info] (m.drm) Will nag starting 2024-07-24T00:00:00+00:00
[14:23:49.697] [info] (m.main) Checking for updates...
[14:23:49.780] [error] (m.main) Window failed to load: -6 ERR_FILE_NOT_FOUND buckets://budget-1/budget/index.htmlnull
(node:9758) electron: Failed to load URL: buckets://budget-1/budget/index.htmlnull with error: ERR_FILE_NOT_FOUND
(Use buckets --trace-warnings ... to show where the warning was created)
[14:23:49.782] [error] (m.main) Error getting URL to close wizard
[14:23:49.783] [error] (m.main) uncaughtException name=undefined message=TypeError: Object has been destroyed stack=[object Promise]
Error while trying to report unhandled error: TypeError: Object has been destroyed
[14:23:49.784] [info] (m.main) window_map {}
[14:23:49.784] [info] (m.main) saving last_opened_windows []
This error started occurring after upgrading to 0.72.1. I believe it's related to the fix added for window reopening 406 751
I observe this error running the AppImage on NixOS and Ubuntu 22.04. I also observe the error with the debian package on Ubuntu 22.04.
Steps to recreate:
This error has been occurring almost every initial start of buckets, but when I try to recreate the issue reliably it seems to occur less.
Possible solutions without being able to see the code:
Error log output:
[14:23:49.610] [info] (m.app) DEBUG Done opening budget file
[14:23:49.626] [info] (m.files) SQLite: 3.39.4
[9796:0124/142349.644811:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[14:23:49.678] [info] (m.rpc) awaiting renderers key=1...
[14:23:49.679] [info] (m.files) opening new window to /budget/index.htmlnull
[14:23:49.696] [info] (m.drm) Will nag starting 2024-07-24T00:00:00+00:00
[14:23:49.697] [info] (m.main) Checking for updates...
[14:23:49.780] [error] (m.main) Window failed to load: -6 ERR_FILE_NOT_FOUND buckets://budget-1/budget/index.htmlnull
(node:9758) electron: Failed to load URL: buckets://budget-1/budget/index.htmlnull with error: ERR_FILE_NOT_FOUND
(Use
buckets --trace-warnings ...to show where the warning was created)[14:23:49.782] [error] (m.main) Error getting URL to close wizard
[14:23:49.783] [error] (m.main) uncaughtException name=undefined message=TypeError: Object has been destroyed stack=[object Promise]
Error while trying to report unhandled error: TypeError: Object has been destroyed
[14:23:49.784] [info] (m.main) window_map {}
[14:23:49.784] [info] (m.main) saving last_opened_windows []