Skip to content

Node.js encountered a crash code (3221226505) in a specific scenario on the Windows platform, which appeared to be a stack overflow. #5119

@CodingMoeButa

Description

@CodingMoeButa

Node.js Version

v22.21.1

NPM Version

10.9.4

Operating System

Windows 11 25H2

Subsystem

Other

Description

Related issue: adonisjs/logger#71 (comment)

Vite uses Rollup as its packaging tool; however, Rollup has some platform-specific binaries that can cause stack overflows in Node.js on Windows, which in turn can cause AdonisJS's HMR development server to crash silently.

I used the command $env:NODE_DEBUG="*"; node ace serve --hmr *> debug.log to output the complete Node.js debug log, but I only got the exit code 3221226505, and I couldn't see any other useful information.

I'd like to know if there's a way to get deeper levels of the crash logs for debugging purposes.

Similar Issues:

Minimal Reproduction

No response

Output

...
ESM 25388: async addJobsToDependencyGraph() file:///C:/Users/user/Desktop/helloworld/node_modules/vite/dist/node/index.js ModuleJob {
  importAttributes: [Object: null prototype] {},
  isMain: false,
  inspectBrk: false,
  url: 'node:path',
  modulePromise: Promise { ModuleWrap { url: 'node:path' } },
  linked: Promise { [Array(0): null prototype] [] },
  instantiated: Promise { undefined },
  module: ModuleWrap { url: 'node:path' }
}
ESM 25388: Loading CJSModule file:///C:/Users/user/Desktop/helloworld/node_modules/rollup/dist/native.js
MODULE 25388: looking for "C:\\Users\\user\\Desktop\\helloworld\\node_modules\\rollup\\dist\\native.js" in ["C:\\Users\\user\\.node_modules","C:\\Users\\user\\.node_libraries","C:\\nvm4w\\nodejs\\lib\\node"]
MODULE 25388: load "C:\\Users\\user\\Desktop\\helloworld\\node_modules\\rollup\\dist\\native.js" for module "C:\\Users\\user\\Desktop\\helloworld\\node_modules\\rollup\\dist\\native.js"
MODULE 25388: Module._load REQUEST node:fs parent: C:\Users\user\Desktop\helloworld\node_modules\rollup\dist\native.js
MODULE 25388: load built-in module fs
MODULE_TIMER 25388 [C:\Users\user\Desktop\helloworld\node_modules\rollup\dist\native.js] [node:fs]: 0.153ms
MODULE 25388: Module._load REQUEST node:path parent: C:\Users\user\Desktop\helloworld\node_modules\rollup\dist\native.js
MODULE 25388: load built-in module path
MODULE_TIMER 25388 [C:\Users\user\Desktop\helloworld\node_modules\rollup\dist\native.js] [node:path]: 0.192ms
MODULE 25388: Module._load REQUEST node:process parent: C:\Users\user\Desktop\helloworld\node_modules\rollup\dist\native.js
MODULE 25388: load built-in module process
MODULE_TIMER 25388 [C:\Users\user\Desktop\helloworld\node_modules\rollup\dist\native.js] [node:process]: 0.129ms
[15:17:02.185] [0] ✘ Command failed with exit code 3221226505: bin/server.js
[15:17:02.186] [0] ✘ (done in 3.8s)
ADONISJS:APP 24300: terminating app
POPPINSS:HOOKS 24300: running hooks

debug0-part.log

Before You Submit

  • I have looked for issues that already exist before submitting this
  • My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions