Skip to content

Memory Leak Warning #22422

@crazythinking

Description

@crazythinking

Description

Memory leak warning:

MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 event listeners added to [EventEmitter]. MaxListeners is undefined. Use events.setMaxListeners() to increase limit
emitter: EventEmitter {
_events: [Object ...],
_eventsCount: 1,
_maxListeners: undefined,
[Symbol(kCapture)]: false,
setMaxListeners: [Function: setMaxListeners],
getMaxListeners: [Function: getMaxListeners],
emit: [Function: emit],
addListener: [Function: addListener],
on: [Function: addListener],
prependListener: [Function: prependListener],
once: [Function: once],
prependOnceListener: [Function: prependOnceListener],
removeListener: [Function: removeListener],
off: [Function: removeListener],
removeAllListeners: [Function: removeAllListeners],
listeners: [Function: listeners],
rawListeners: [Function: rawListeners],
listenerCount: [Function: listenerCount],
eventNames: [Function: eventNames],
},
type: "event",
count: 11,

  at overflowWarning (node:events:185:14)
  at addListener (node:events:158:22)
  at <anonymous> (/$bunfs/root/src/index.js:405957:19)
  at <anonymous> (/$bunfs/root/src/index.js:405881:29)
  at <anonymous> (/$bunfs/root/src/index.js:363267:13)
  at streamSSE (/$bunfs/root/src/index.js:363296:7)
  at streamEvents (/$bunfs/root/src/index.js:405855:19)
  at <anonymous> (/$bunfs/root/src/index.js:405953:24)
  at dispatch (/$bunfs/root/src/index.js:348752:30)
  at <anonymous> (/$bunfs/root/src/index.js:348670:16)
  at dispatch (/$bunfs/root/src/index.js:348752:30)
  at dispatch (/$bunfs/root/src/index.js:348752:30)
  at cors2 (/$bunfs/root/src/index.js:350434:16)
  at async dispatch (/$bunfs/root/src/index.js:348752:30)
  at async <anonymous> (/$bunfs/root/src/index.js:410158:20)
  at async dispatch (/$bunfs/root/src/index.js:348752:30)
  at async dispatch (/$bunfs/root/src/index.js:348752:30)
  at async <anonymous> (/$bunfs/root/src/index.js:349377:40)

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)perfIndicates a performance issue or need for optimization

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions