Skip to content

🐛 v2.5.0 regression memory leak / infinite loop with external config #10658

Description

@dcog989

Environment information

Details
❯ biome rage
CLI:
  Version:                      2.4.16
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:                    unset
  BIOME_LOG_PREFIX_NAME:             unset
  BIOME_LOG_LEVEL:                   unset
  BIOME_LOG_KIND:                    unset
  BIOME_CONFIG_PATH:                 unset
  BIOME_THREADS:                     unset
  BIOME_WATCHER_KIND:                unset
  BIOME_WATCHER_POLLING_INTERVAL:    unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Error:                        The configuration schema version does not match the CLI version 2.4.16
  Status:                       Loaded with errors
  Path:                         biome.json
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  true
  HTML full support enabled:    true

Workspace:
  Open Documents:               0

note: that is obviously from 2.4.16 as I have backed out from 2.5.0

What happened?

v2.5.0 Linux x64 binary suffers a severe memory leak/infinite loop upon initialization in Zed / LSP mode when opening a file located outside a project workspace root.

The binary continuously consumes RAM until it is terminated. Reverting to v2.4.16resolves it.

Steps to Reproduce

Run the binary in LSP proxy mode, targeting a configuration file residing in a non-project directory.

Actual Behavior

The process pins a CPU core and rapidly consumes all available system RAM until a crash/OOM event occurs.

Expected result

Zed / biome does not crash

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-CoreArea: coreA-LSPArea: language server protocolS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions