Skip to content

Buckets fails to open first time after opening a budget file on Linux #965

@kmogged

Description

@kmogged

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:

  1. Open Buckets.
  2. Create a new Budget or open an existing one.
  3. Close Buckets
  4. Attempt to reopen (Fails with error in console, but no output to user)
  5. 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:

  1. Save the window state immediately after successful launch
  2. Address the string value of null being appended to the end of the filename
  3. Upon error default to the Accounts window
  4. 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 []

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThings that prevent or seriously impede people from doing their budget.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions