Skip to content

pm2 monit crashes #5577

@cameralis

Description

@cameralis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions