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

Errors at startup: [UnhandledPromiseRejectionWarning: Error: 'objectPathValue' is not accessible using discriminant 'kind' of type 'DbusValue'] #755

Closed
kaddkaka opened this issue May 15, 2022 · 2 comments
Labels
bug Things that prevent or seriously impede people from doing their budget. included in next release The work is done, it's just waiting to be released.

Comments

@kaddkaka
Copy link

I just downloaded and started the application on Linux Ubuntu 22.04 and got errors in the terminal output (The application seem to start and work anyway). Not sure if the errors are a problem, but they give a bad first impression:

❯ buckets
(persistent) Loading persistent state...
[21:54:36.064] [info] (main)

STARTING v0.66.3

[21:54:36.065] [info] (main)  Log level: silly
[21:54:36.066] [info] (main) Local date: 2022-05-15
[21:54:36.066] [info] (main) Local time: 2022-05-15 21:54:36+02:00
[21:54:36.067] [info] (main)   UTC time: 2022-05-15T19:54:36Z
[21:54:36.067] [info] (main)   NODE_ENV: undefined
[21:54:36.067] [info] (main)        pid: 7826
[21:54:36.128] [info] (buckets-node) ProcessBackend starting...
[21:54:36.128] [info] (buckets-node) ProcessBackend executable: /opt/Buckets/resources/app.asar.unpacked/node_modules/buckets-node/dist/bin/x64/Buckets
[21:54:36.141] [info] locale set to: en
[21:54:36.141] [info] number format set: {"thousands":",","decimal":".","decimal_places":2}
[21:54:36.144] [info] (i18n) date format set
[21:54:36.168] [info] (main) Checking for updates...
(node:7826) UnhandledPromiseRejectionWarning: Error: 'objectPathValue' is not accessible using discriminant 'kind' of type 'DbusValue'
    at BucketsBackendRPCWrap.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:128:40)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:4:12)
    at BucketsBackendRPCWrap.rpcResultReceived (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:119:16)
    at BucketsBackendRPCWrap.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:112:26)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:4:12)
    at BucketsBackendRPCWrap.handleSingleBackendMessage (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:104:16)
    at BucketsBackendRPCWrap.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:97:56)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:4:12)
    at BucketsBackendRPCWrap.handleBackendOutput (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:82:16)
    at NetstringParser.handler (/opt/Buckets/resources/app.asar/node_modules/buckets-node/dist/main.js:223:35)
(node:7826) UnhandledPromiseRejectionWarning: Error: 'objectPathValue' is not accessible using discriminant 'kind' of type 'DbusValue'
    at BucketsBackendRPCWrap.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:128:40)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:4:12)
    at BucketsBackendRPCWrap.rpcResultReceived (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:119:16)
    at BucketsBackendRPCWrap.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:112:26)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:4:12)
    at BucketsBackendRPCWrap.handleSingleBackendMessage (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:104:16)
    at BucketsBackendRPCWrap.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:97:56)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:4:12)
    at BucketsBackendRPCWrap.handleBackendOutput (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/backend-base.js:82:16)
    at NetstringParser.handler (/opt/Buckets/resources/app.asar/node_modules/buckets-node/dist/main.js:223:35)
(node:7826) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7826) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7826) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:7826) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[21:54:36.186] [info] (core) INFO (bucketsproc) started
[21:54:36.186] [info] (core) INFO Piping notification to RPC
[21:54:36.186] [info] (core) INFO (bucketsproc) ready for input
[21:54:36.186] [info] (core) INFO (dbpatch) start
[21:54:36.186] [info] (core) INFO (dbpatch) applying patch: 0001-initial
[21:54:36.186] [info] (core) INFO (dbpatch) end
[21:54:36.187] [info] (core) INFO (sharing) generating keypair
[21:54:36.187] [info] (core) ERROR (appwide) keyring.getPassword failed: 'objectPathValue' is not accessible using discriminant 'kind' of type 'DbusValue'
[21:54:36.187] [info] (core) ERROR (sharing) encrypting seckey failed: 'objectPathValue' is not accessible using discriminant 'kind' of type 'DbusValue'
[21:54:36.187] [info] (core) ERROR (peddler) error creating peddler 'objectPathValue' is not accessible using discriminant 'kind' of type 'DbusValue'
[21:54:36.189] [info] (drm) Will nag starting 2022-11-15T21:54:36+01:00
[21:54:36.202] [info] (main) window opened to file:///opt/Buckets/resources/app.asar/src/wwwroot/misc/wizard.html
[21:55:31.079] [info] (files) opening /home/david/Documents/miljon.buckets
[21:55:31.086] [info] (core) INFO Opening file /home/david/Documents/miljon.buckets
[21:55:31.087] [info] (core) INFO (dbpatch) start
[21:55:31.088] [info] (core) INFO (dbpatch) applying patch: 0001-initial
[21:55:31.101] [info] (core) INFO (dbpatch) applying patch: 0002-import_balance
[21:55:31.101] [info] (core) INFO (dbpatch) applying patch: 0003-deletetrans
[21:55:31.101] [info] (core) INFO (dbpatch) applying patch: 0004-dearhacker
[21:55:31.101] [info] (core) INFO (dbpatch) applying patch: 0005-bankmacro
[21:55:31.101] [info] (core) INFO (dbpatch) applying patch: 0006-closeaccount
[21:55:31.102] [info] (core) INFO (dbpatch) applying patch: 0007-notes
[21:55:31.103] [info] (core) INFO (dbpatch) applying patch: 0008-csvimport
[21:55:31.106] [info] (core) INFO (dbpatch) applying patch: 0009-triggercontrol-andundo
[21:55:31.108] [info] (core) INFO (dbpatch) applying patch: 0010-postedtolocal
[21:55:31.110] [info] (core) INFO (dbpatch) applying patch: 0011-nullamounttriggers
[21:55:31.112] [info] (core) INFO (dbpatch) applying patch: 0012-settings
[21:55:31.114] [info] (core) INFO (dbpatch) applying patch: 0013-offbudget
[21:55:31.116] [info] (core) INFO (dbpatch) applying patch: 0014-cleared
[21:55:31.117] [info] (core) INFO (dbpatch) applying patch: 0015-debt-accounts
[21:55:31.120] [info] (core) INFO (dbpatch) applying patch: 0016-null_general_cat_cleanup
[21:55:31.122] [info] (core) INFO (dbpatch) applying patch: 0017-transaction_linked_id_posted_index
[21:55:31.124] [info] (core) INFO (dbpatch) applying patch: 0018-file_import_mapping
[21:55:31.126] [info] (core) INFO (dbpatch) applying patch: 0019-+unknown_account.ignore
[21:55:31.129] [info] (core) INFO (dbpatch) applying patch: 0020-fix_i744_wrong_btrans_posted
[21:55:31.131] [info] (core) INFO (dbpatch) end
[21:55:31.131] [info] (core) INFO Touched local budget file: 1
[21:55:31.134] [info] (core) DEBUG initializing undo...
[21:55:31.134] [info] (core) DEBUG initializing events...
[21:55:31.135] [info] (core) DEBUG enabling undo...
[21:55:31.137] [info] (core) DEBUG enabling events...
[21:55:31.143] [info] (core) DEBUG Done opening budget file
[21:55:31.159] [info] (files) SQLite: 3.35.0
[21:55:31.259] [info] (rpc) awaiting renderers key=1...
[21:55:31.260] [info] (files) opening new window to /budget/index.html
[21:55:31.304] [info] (main) window opened to buckets://budget-1/budget/index.html
[21:55:31.892] [info] (i18n) date format set
[21:55:31.892] [info] (budget.r)        Local date: 2022-05-15
[21:55:31.893] [info] (budget.r)        Local time: 2022-05-15 21:55:31+02:00
[21:55:31.893] [info] (budget.r)          UTC time: 2022-05-15T19:55:31+00:00
[21:55:31.893] [info] (budget.r)          toString: Sun May 15 2022 21:55:31 GMT+0200 (Central European Summer Time)
[21:55:31.899] [info] (budget.r)    toLocaleString: 5/15/2022, 9:55:31 PM
[21:55:31.899] [info] (budget.r) getTimezoneOffset: -120
[21:55:31.900] [info] (budget.r)      dayjs.locale: en
[21:55:31.900] [info] (budget.r) Faint cents enabled: false
[21:55:31.900] [info] (rpc.r) renderer joining main on key=1
[21:55:31.900] [info] (rpc) renderer joined onto main events, key=1, wc.id=2
[21:55:31.928] [info] (budget.r) today 2022-05-15
[21:55:31.929] [info] (budget.r) appstate.month 5
[21:55:31.929] [info] (budget.r) appstate.year 2022
[21:55:31.929] [info] (budget.r) Redirect to /y2022m5/accounts
[21:55:31.930] [info] (budget.r) window.location.hash = #/y2022m5/accounts
^C[21:55:45.142] [info] (core) SIGINT: Interrupted by Ctrl-C.
[21:55:45.144] [info] (main) saving last_opened_windows [{"filename":"/home/david/Documents/miljon.buckets","windows":[{"path":"/budget/index.html#/y2022m5/accounts","bounds":{"x":530,"y":89,"width":964,"height":649},"focused":false}]}]
[21:55:45.145] [info] (files) Closing budget: /home/david/Documents/miljon.buckets
[21:55:45.152] [error] (main) uncaughtException Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:83:16)
[21:55:45.163] [info] (buckets-node) ProcessBackend exit 1 null
[21:55:45.163] [error] (core) Error: BucketsLib bin died: 1/null
    at ChildProcess.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-node/dist/main.js:251:44)
    at ChildProcess.emit (events.js:200:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

(node:7826) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'appEvents' of undefined
    at ProgState.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:150:33)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:4:12)
    at ProgState.disconnect (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:148:16)
    at Object.listener (/opt/Buckets/resources/app.asar/src/bucketsapp.ts:61:23)
    at EventSource.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:68:54)
    at step (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:31:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:12:53)
    at /opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:6:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:2:12)
    at /opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:62:68
    at Array.forEach (<anonymous>)
    at EventSource.emit (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:62:36)
    at ChildProcess.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-node/dist/main.js:262:35)
    at ChildProcess.emit (events.js:200:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
(node:7826) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'appEvents' of undefined
    at ProgState.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:150:33)
    at step (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:33:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:14:53)
    at /opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:4:12)
    at ProgState.disconnect (/opt/Buckets/resources/app.asar/node_modules/buckets-common/dist/src/progstate.js:148:16)
    at Object.listener (/opt/Buckets/resources/app.asar/src/bucketsapp.ts:61:23)
    at EventSource.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:68:54)
    at step (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:31:23)
    at Object.next (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:12:53)
    at /opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:6:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:2:12)
    at /opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:62:68
    at Array.forEach (<anonymous>)
    at EventSource.emit (/opt/Buckets/resources/app.asar/node_modules/@iffycan/events/dist/events.js:62:36)
    at ChildProcess.<anonymous> (/opt/Buckets/resources/app.asar/node_modules/buckets-node/dist/main.js:262:35)
    at ChildProcess.emit (events.js:200:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
(node:7826) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:7826) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
[21:55:45.182] [info] (buckets-node) ProcessBackend close 1 null
@iffy iffy added the bug Things that prevent or seriously impede people from doing their budget. label May 16, 2022
@iffy
Copy link
Contributor

iffy commented May 16, 2022

Thank you for filing this -- it's odd to me that this error is raised. I'll investigate.

If you have a chance to check, do you get the same error with v0.66.0? https://github.com/buckets/application/releases/tag/v0.66.0

@iffy iffy added the included in next release The work is done, it's just waiting to be released. label Jul 16, 2022
@iffy
Copy link
Contributor

iffy commented Jul 18, 2022

Included in v0.67.0 release (AUTOMATED COMMENT)

@iffy iffy closed this as completed Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that prevent or seriously impede people from doing their budget. included in next release The work is done, it's just waiting to be released.
Projects
None yet
Development

No branches or pull requests

2 participants