lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2k stars 43 forks source link

Checking for Updates, new Update Dialog reported over and over again #619

Closed alankleindev closed 1 month ago

alankleindev commented 2 months ago

When checking for the latest update, I get notified but the notification dialog keeps popping up over and over again after I click the OK button.

Then Error which I click OK to 3 times and then it closes and updated itself successfully.

image image
lukehaas commented 2 months ago

Thanks, @alankleindev. I'm not able to trigger this error myself. It's very odd that these messages came up multiple times; that shouldn't be possible. Something really strange must have happened for this to occur.

How do you usually quit the app? Had you had it running for long before triggering the update check? Any extra info about how you use the app may be useful in finding a clue to the cause.

alankleindev commented 2 months ago

I believe I had the app open always in the background. So I believe it is started automatically when I reboot my machine for updates or other reasons, if that helps. So I don't quit the app.

alankleindev commented 2 months ago

Here is some info from the runjs debug log for yesterdays timeframe:


       "[2024-04-24 08:38:03.468] [warn]  Error: The command is disabled and cannot be executed",
        "    at d.quitAndInstall (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:184435)",
        "    at Immediate._ [as _onImmediate] (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:8:122446)",
        "    at process.processImmediate (node:internal/timers:478:21)",
        "[2024-04-24 08:38:03.470] [error] Error: Error: The command is disabled and cannot be executed",
        "    at d.quitAndInstall (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:184435)",
        "    at Immediate._ [as _onImmediate] (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:8:122446)",
        "    at process.processImmediate (node:internal/timers:478:21)",
        "[2024-04-24 08:38:34.257] [warn]  Error: The command is disabled and cannot be executed",
        "    at d.quitAndInstall (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:184435)",
        "    at Immediate._ [as _onImmediate] (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:8:122446)",
        "    at process.processImmediate (node:internal/timers:478:21)",
        "[2024-04-24 08:38:34.258] [error] Error: Error: The command is disabled and cannot be executed",
        "    at d.quitAndInstall (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:184435)",
        "    at Immediate._ [as _onImmediate] (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:8:122446)",
        "    at process.processImmediate (node:internal/timers:478:21)",
        "[2024-04-24 08:38:34.345] [error] Error: Error: net::ERR_HTTP2_PROTOCOL_ERROR",
        "    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:109574)",
        "    at SimpleURLLoaderWrapper.emit (node:events:514:28)",
        "    at SimpleURLLoaderWrapper.emit (node:domain:488:12)",
        "[2024-04-24 08:38:34.345] [error] download update Error: net::ERR_HTTP2_PROTOCOL_ERROR",
        "    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:109574)",
        "    at SimpleURLLoaderWrapper.emit (node:events:514:28)",
        "    at SimpleURLLoaderWrapper.emit (node:domain:488:12)",
        "[2024-04-24 08:38:34.346] [error] Error: Error: net::ERR_HTTP2_PROTOCOL_ERROR",
        "    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:109574)",
        "    at SimpleURLLoaderWrapper.emit (node:events:514:28)",
        "    at SimpleURLLoaderWrapper.emit (node:domain:488:12)",
        "[2024-04-24 08:38:34.346] [error] download update Error: net::ERR_HTTP2_PROTOCOL_ERROR",
        "    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:109574)",
        "    at SimpleURLLoaderWrapper.emit (node:events:514:28)",
        "    at SimpleURLLoaderWrapper.emit (node:domain:488:12)",
        "[2024-04-25 14:38:19.516] [error] Unhandled TypeError: Cannot read properties of undefined (reading 'libraryDefaultDir')",
        "    at Function.resolvePathFn (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:97807)",
        "    at Function.readAllLogs (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:97314)",
        "    at click (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:8:90918)",
        "    at MenuItem.click (node:electron/js2c/browser_init:2:29559)",
        "    at a._executeCommand (node:electron/js2c/browser_init:2:34987)",
        ""
      ]
    }
  ]
}
lukehaas commented 2 months ago

Thanks, this is helpful 👍

alankleindev commented 1 month ago

The latest update worked for me :) No issues at all upgrading to Version 2.12.1 (2.12.1)

lukehaas commented 1 month ago

Thanks. I'm still not sure what caused this issue, I've not made any changes that could have fixed it. Hopefully, it was just a one-off.