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

pm2 monit crashes #5577

Open
cameralis opened this issue Mar 28, 2023 · 6 comments · May be fixed by chjj/blessed#439
Open

pm2 monit crashes #5577

cameralis opened this issue Mar 28, 2023 · 6 comments · May be fixed by chjj/blessed#439

Comments

@cameralis
Copy link

What's going wrong?

I run pm2 monit while a process is running. When specific text is outputted into the log, monit crashes.

How could we reproduce this issue?

I honestly have no idea

Supporting information

TypeError: Cannot read properties of null (reading 'slice')
    at /usr/lib/node_modules/pm2/node_modules/blessed/lib/program.js:2543:35
    at Array.forEach (<anonymous>)
    at Program._attr (/usr/lib/node_modules/pm2/node_modules/blessed/lib/program.js:2542:11)
    at Box.Element._parseTags (/usr/lib/node_modules/pm2/node_modules/blessed/lib/widgets/element.js:498:26)
    at Box.Element.parseContent (/usr/lib/node_modules/pm2/node_modules/blessed/lib/widgets/element.js:393:22)
    at Box.<anonymous> (/usr/lib/node_modules/pm2/node_modules/blessed/lib/widgets/element.js:184:10)
    at Box.EventEmitter._emit (/usr/lib/node_modules/pm2/node_modules/blessed/lib/events.js:94:20)
    at Box.EventEmitter.emit (/usr/lib/node_modules/pm2/node_modules/blessed/lib/events.js:117:12)
    at emit (/usr/lib/node_modules/pm2/node_modules/blessed/lib/widgets/node.js:109:15)
    at List.Node.insert (/usr/lib/node_modules/pm2/node_modules/blessed/lib/widgets/node.js:111:5)

pm2 v5.2.2
node v16.19.1

@cameralis
Copy link
Author

Could this be an issue with blessed?

@jamie0xgitc0decat
Copy link

jamie0xgitc0decat commented Nov 29, 2023

Same here
TypeError: Cannot read properties of null (reading 'slice')
at /root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/program.js:2543:35
at Array.forEach ()
at Program._attr (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/program.js:2542:11)
at Element._parseTags (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/widgets/element.js:498:26)
at Element.parseContent (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/widgets/element.js:393:22)
at Box. (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/widgets/element.js:184:10)
at EventEmitter._emit (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/events.js:94:20)
at EventEmitter.emit (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/events.js:117:12)
at emit (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/widgets/node.js:109:15)
at Node.insert (/root/.nvm/versions/node/v18.17.0/lib/node_modules/pm2/node_modules/blessed/lib/widgets/node.js:111:5)

pm2 version: 5.3.0

@adrianhelvikspond
Copy link

Same here.

❯ pm2 monit

TypeError: Cannot read properties of null (reading 'slice')
    at /Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/program.js:2543:35
    at Array.forEach (<anonymous>)
    at Program._attr (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/program.js:2542:11)
    at Element._parseTags (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/widgets/element.js:479:26)
    at Element.parseContent (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/widgets/element.js:393:22)
    at Box.<anonymous> (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/widgets/element.js:184:10)
    at EventEmitter._emit (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/events.js:94:20)
    at EventEmitter.emit (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/events.js:117:12)
    at emit (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/widgets/node.js:109:15)
    at Node.insert (/Users/adrian.helvik/.volta/tools/image/packages/pm2/lib/node_modules/blessed/lib/widgets/node.js:111:5)

@adrianhelvikspond
Copy link

Skjermbilde 2024-03-20 kl  16 56 41

@adrianhelvikspond
Copy link

Probably an issue with blessed though. I'll see if I can determine what is causing this.

@adrianhelvik
Copy link

I submitted a PR to blessed to resolve this issue.

chjj/blessed#439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants