nwjs/nw.js

Application crash on restart application

fgt1t5y opened this issue · 0 comments

Issue Type

Before opening an issue, please search and see if it has already been raised.

  • Bug Report

  • Feature Request

  • Successfully reproduced against the latest version of NW.js?

Please use our mailing list or Gitter chatroom to ask questions. The issue tracker is only for bugs and feature requests, in English only. Please note that issues without a repro or code snippet are less likely to be resolved.

Current/Missing Behavior

Application crash and return exit code 3221225477.

Expected/Proposed Behavior

Application successfully restart.

Additional Info

  • Operating System: Windows 11 21H2
  • NW.js Version: 0.89.0
  • Repro Link:
  • Code snippet:

Main file:

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>LitePad</title>

  <script>
    const argv = nw.App.argv
    if (argv.includes('--nw-mode=dev')) {
      nw.Window.open('http://localhost:5173', {})
    } else {
      nw.Window.open('app/index.html', {})
    }
  </script>

</html>

package.json:

{
  "name": "litepad",
  "version": "0.0.0",
  "private": true,
  "type": "module",
  "packageManager": "pnpm@9.4.0",
  "main": "startup.html",
  "window": {
    "id": "litepad-w",
    "title": "Litepad",
    "position": "center",
    "min_height": 300,
    "min_width": 400,
    "show": false
  }
}