Skip to content

FreeBuff unexpectedly exits with a "MaxListenersExceededWarning" #1768

Backlog

Description

@jsoques

What happened

Executed "FreeBuff" in an empty folder. It displays it's stuff then exits immediately with this warning:

MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 data listeners added to [ReadStream]. MaxListeners is undefined. Use events.setMaxListeners() to increase limit
 emitter: ReadStream {
  [Symbol(kFs)]: [Object ...],
  fd: 0,
  path: "/home/jsoques/temp/sample",
  flags: "r",
  mode: 438,
  start: undefined,
  end: Infinity,
  pos: undefined,
  bytesRead: 0,
  [Symbol(kReadStreamFastPath)]: false,
  _events: [Object ...],
  _readableState: [Object ...],
  _maxListeners: undefined,
  [Symbol(kCapture)]: false,
  _eventsCount: NaN,
  isRaw: true,
  isTTY: true,
  on: [Function],
  addListener: [Function],
  ref: [Function],
  unref: [Function],
  pause: [Function],
  resume: [Function],
  _read: [Function: triggerRead],
  setRawMode: [Function],
  autoClose: [Getter/Setter],
  open: [Function: open],
  _construct: [Function: streamConstruct],
  _destroy: [Function],
  close: [Function],
  pending: [Getter],
  pipe: [Function],
  destroy: [Function: destroy],
  _undestroy: [Function: undestroy],
  push: [Function],
  unshift: [Function],
  isPaused: [Function],
  setEncoding: [Function],
  read: [Function],
  unpipe: [Function],
  removeListener: [Function],
  off: [Function],
  removeAllListeners: [Function],
  wrap: [Function],
  iterator: [Function],
  readable: [Getter/Setter],
  readableDidRead: [Getter],
  readableAborted: [Getter],
  readableHighWaterMark: [Getter],
  readableBuffer: [Getter],
  readableFlowing: [Getter/Setter],
  readableLength: [Getter],
  readableObjectMode: [Getter],
  readableEncoding: [Getter],
  errored: [Getter],
  closed: [Getter],
  destroyed: [Getter/Setter],
  readableEnded: [Getter],
  drop: [Function],
  filter: [Function],
  flatMap: [Function],
  map: [Function],
  take: [Function],
  compose: [Function],
  every: [Function],
  forEach: [Function],
  reduce: [Function],
  toArray: [Function],
  some: [Function],
  find: [Function],
  [Symbol(nodejs.rejection)]: [Function],
  [Symbol(Symbol.asyncDispose)]: [Function],
  [Symbol(Symbol.asyncIterator)]: [Function],
  eventNames: [Function: eventNames],
},
    type: "data",
   count: 11,

      at overflowWarning (node:events:185:19)
      at addListener (node:events:158:22)
      at <anonymous> (internal:streams/readable:519:38)
      at <anonymous> (/home/jsoques/.agents/hooks/gsd-windsurf-pre-command.js:263:15)

MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 end listeners added to [ReadStream]. MaxListeners is undefined. Use events.setMaxListeners() to increase limit
 emitter: ReadStream {
  [Symbol(kFs)]: [Object ...],
  fd: 0,
  path: "/home/jsoques/temp/sample",
  flags: "r",
  mode: 438,
  start: undefined,
  end: Infinity,
  pos: undefined,
  bytesRead: 0,
  [Symbol(kReadStreamFastPath)]: false,
  _events: [Object ...],
  _readableState: [Object ...],
  _maxListeners: undefined,
  [Symbol(kCapture)]: false,
  _eventsCount: NaN,
  isRaw: true,
  isTTY: true,
  on: [Function],
  addListener: [Function],
  ref: [Function],
  unref: [Function],
  pause: [Function],
  resume: [Function],
  _read: [Function: triggerRead],
  setRawMode: [Function],
  autoClose: [Getter/Setter],
  open: [Function: open],
  _construct: [Function: streamConstruct],
  _destroy: [Function],
  close: [Function],
  pending: [Getter],
  pipe: [Function],
  destroy: [Function: destroy],
  _undestroy: [Function: undestroy],
  push: [Function],
  unshift: [Function],
  isPaused: [Function],
  setEncoding: [Function],
  read: [Function],
  unpipe: [Function],
  removeListener: [Function],
  off: [Function],
  removeAllListeners: [Function],
  wrap: [Function],
  iterator: [Function],
  readable: [Getter/Setter],
  readableDidRead: [Getter],
  readableAborted: [Getter],
  readableHighWaterMark: [Getter],
  readableBuffer: [Getter],
  readableFlowing: [Getter/Setter],
  readableLength: [Getter],
  readableObjectMode: [Getter],
  readableEncoding: [Getter],
  errored: [Getter],
  closed: [Getter],
  destroyed: [Getter/Setter],
  readableEnded: [Getter],
  drop: [Function],
  filter: [Function],
  flatMap: [Function],
  map: [Function],
  take: [Function],
  compose: [Function],
  every: [Function],
  forEach: [Function],
  reduce: [Function],
  toArray: [Function],
  some: [Function],
  find: [Function],
  [Symbol(nodejs.rejection)]: [Function],
  [Symbol(Symbol.asyncDispose)]: [Function],
  [Symbol(Symbol.asyncIterator)]: [Function],
  eventNames: [Function: eventNames],
},
    type: "end",
   count: 11,

      at overflowWarning (node:events:185:19)
      at addListener (node:events:158:22)
      at <anonymous> (internal:streams/readable:519:38)
      at <anonymous> (/home/jsoques/.agents/hooks/gsd-windsurf-pre-write.js:107:15)


To continue this session later, run:
freebuff --continue 2026-11-30T17-47-56.641Z

Steps to reproduce

execute freebuff cli

Where does this happen?

CLI (terminal client)

Operating system

Linux

Version

Ubuntu 26.04.1 LTS

Model

No response

Logs or screenshots

Activity

  1. added
    type:bug
    on Nov 30, 2026
  2. added
    area:cli
    bot:triaged
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibot:triagedtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions