Skip to content

bug: UnhandledPromiseRejectionWarning on launch #1502

@Shalm0n

Description

@Shalm0n

Describe the bug
When starting the app from the terminal with ./grid-editor --trace-warnings gives me the following log:

./grid-editor --trace-warnings
10:12:45.516 › NAME:  Grid Editor  VERSION:  1.6.5
10:12:45.519 › App starting...
10:12:45.519 › BUILD ENVS: {
  VITE_BUILD_ENV: 'production',
  VITE_BRANCH_NAME: 'stable',
  BASE_URL: '/',
  MODE: 'production',
  DEV: false,
  PROD: true,
  SSR: false
}
(node:10119) UnhandledPromiseRejectionWarning: TypeError: First argument is not an instance of SetIntervalAsyncTimer
    at Object.clearIntervalAsync (/home/shalmon/Programms/GridEditor/resources/app.asar/node_modules/set-interval-async/dist/clear-interval-async.cjs:12:15)
    at restartSerialCheckInterval (/home/shalmon/Programms/GridEditor/resources/app.asar/dist/main/index.js:46:20)
    at Object.<anonymous> (/home/shalmon/Programms/GridEditor/resources/app.asar/dist/main/index.js:52:1)
    at Module._compile (node:internal/modules/cjs/loader:1738:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1904:10)
    at Module.load (node:internal/modules/cjs/loader:1472:32)
    at Module._load (node:internal/modules/cjs/loader:1289:12)
    at c._load (node:electron/js2c/node_init:2:17950)
    at node:electron/js2c/browser_init:2:134875
    at node:electron/js2c/browser_init:2:135084
    at emitUnhandledRejectionWarning (node:internal/process/promises:301:15)
    at warnWithErrorCodeUnhandledRejectionsMode (node:internal/process/promises:409:5)
    at processPromiseRejections (node:internal/process/promises:475:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:106:32)
(node:10119) TypeError: First argument is not an instance of SetIntervalAsyncTimer
    at Object.clearIntervalAsync (/home/shalmon/Programms/GridEditor/resources/app.asar/node_modules/set-interval-async/dist/clear-interval-async.cjs:12:15)
    at restartSerialCheckInterval (/home/shalmon/Programms/GridEditor/resources/app.asar/dist/main/index.js:46:20)
    at Object.<anonymous> (/home/shalmon/Programms/GridEditor/resources/app.asar/dist/main/index.js:52:1)
    at Module._compile (node:internal/modules/cjs/loader:1738:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1904:10)
    at Module.load (node:internal/modules/cjs/loader:1472:32)
    at Module._load (node:internal/modules/cjs/loader:1289:12)
    at c._load (node:electron/js2c/node_init:2:17950)
    at node:electron/js2c/browser_init:2:134875
    at node:electron/js2c/browser_init:2:135084
10:12:46.071 › checkForUpdatesAndNotify --->  BULD_ENV:  production disableAutoUpdate:  false
here what is VITE_BUILD_ENV: production
10:12:46.071 › Production Mode! file:///home/shalmon/Programms/GridEditor/resources/app.asar/dist/renderer/index.html
10:12:46.604 › attempt to store.. { packagesDataStorage: {} }
10:12:46.608 › attempt to store.. { enabledPackages: [] }
10:12:46.613 › attempt to store.. { githubPackages: {} }
10:12:46.617 › attempt to store.. { localPackages: {} }
10:12:46.619 › attempt to store.. { authUser: {} }
10:12:46.760 › attempt to store.. { lastVersion: '1.6.5' }
10:12:46.762 › attempt to store.. { profileFolder: '/home/shalmon/Documents/grid-userdata' }
(node:10119) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [WebContents]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at _addListener (node:events:592:17)
    at WebContents.addListener (node:events:610:10)
    at WebContents.once (node:events:654:8)
    at node:electron/js2c/browser_init:2:78586
    at new Promise (<anonymous>)
    at waitTillCanExecuteJavaScript (node:electron/js2c/browser_init:2:78573)
    at _.executeJavaScript (node:electron/js2c/browser_init:2:80239)
    at log.transports.renderer (/home/shalmon/Programms/GridEditor/resources/app.asar/dist/main/index.js:698:30)
10:12:46.764 › attempt to store.. { presetFolder: '/home/shalmon/Documents/grid-userdata' }
10:12:46.766 › attempt to store.. { packagesDataStorage: {} }
10:12:46.768 › attempt to store.. { enabledPackages: [ 'debug-monitor', 'midi-monitor' ] }
10:12:46.770 › attempt to store.. { githubPackages: {} }
10:12:46.772 › attempt to store.. { localPackages: {} }
10:12:46.773 › attempt to store.. { authUser: {} }
10:12:46.775 › attempt to store.. { analyticsEnabled: true }
10:12:46.777 › attempt to store.. { firstLaunch: false }
10:12:46.779 › attempt to store.. { lastActiveVersion: '1.6.5' }
accessing the web... https://raw.githubusercontent.com/intechstudio/grid-editor/stable/firmware.json
accessing the web... https://raw.githubusercontent.com/intechstudio/grid-editor/stable/notification.json
Serial port connect request timed out!
[10119:0531/101247.850820:ERROR:device_event_log_impl.cc(202)] [10:12:47.850] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101248.523374:ERROR:device_event_log_impl.cc(202)] [10:12:48.523] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101249.524326:ERROR:device_event_log_impl.cc(202)] [10:12:49.524] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101250.526423:ERROR:device_event_log_impl.cc(202)] [10:12:50.526] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101251.520150:ERROR:device_event_log_impl.cc(202)] [10:12:51.520] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101252.526277:ERROR:device_event_log_impl.cc(202)] [10:12:52.525] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101253.527121:ERROR:device_event_log_impl.cc(202)] [10:12:53.526] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
10:12:53.966 › attempt to store.. { enabledPackages: [ 'debug-monitor', 'midi-monitor' ] }
[10119:0531/101254.528460:ERROR:device_event_log_impl.cc(202)] [10:12:54.528] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
[10119:0531/101255.523778:ERROR:device_event_log_impl.cc(202)] [10:12:55.523] Serial: serial_io_handler.cc:147 Failed to open serial port: FILE_ERROR_ACCESS_DENIED
10:12:55.597 › before-quit evt {}

To Reproduce
Steps to reproduce the behavior:

  1. Download the Linux Version of Grid Editor
  2. Run the AppImage (I had to appimage-extract and chmod/chown chrome-sandbox to get it to work)
  3. See error

Expected behavior
App starting normal

Environment (please complete the following information):

  • OS: Kubuntu 26.04 LTS
  • Editor version: 1.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions