Skip to content

linter: Out of memory with JS plugins on some Linux distros #20331

Description

@mo36924

What version of Oxlint are you using?

1.55.0

What command did you run?

oxlint

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

{
  "$schema": "node_modules/oxlint/configuration_schema.json",
  "jsPlugins": ["./js-plugin.ts"]
}

What happened?

When I run oxlint with jsPlugin enabled in the github actions ubuntu-slim, an error occurs.

It is unclear whether the memory is 5GB or the execution environment is a container, but an error occurs.
Changing the github action runner to ubuntu-latest succeeds.

Run npx oxlint

thread 'tokio-rt-worker' (287) panicked at crates/oxc_allocator/src/pool/fixed_size.rs:112:67:
called `Result::unwrap()` on an `Err` value: ()
stack backtrace:
   0:     0x7f4ae9d1db52 - <unknown>
   1:     0x7f4ae9d3094a - <unknown>
   2:     0x7f4ae9cf1c46 - <unknown>
   3:     0x7f4ae9d014a6 - <unknown>
   4:     0x7f4ae9d01306 - <unknown>
   5:     0x7f4ae9d016eb - <unknown>
   6:     0x7f4ae9d01568 - <unknown>
   7:     0x7f4ae9cfc709 - <unknown>
   8:     0x7f4ae9ce5dad - <unknown>
   9:     0x7f4ae941c80c - <unknown>
  10:     0x7f4ae941c4e2 - <unknown>
  11:     0x7f4ae9cc5fec - <unknown>
  12:     0x7f4ae98228c2 - <unknown>
  13:     0x7f4ae973cb1f - <unknown>
  14:     0x7f4ae9589295 - <unknown>
  15:     0x7f4ae953ff7b - <unknown>
  16:     0x7f4ae9552d30 - <unknown>
  17:     0x7f4ae96ab066 - <unknown>
  18:     0x7f4ae96a91bb - <unknown>
  19:     0x7f4ae96a26bb - <unknown>
  20:     0x7f4ae969ee36 - <unknown>
  21:     0x7f4ae969f6b5 - <unknown>
  22:     0x7f4ae9cf7eef - <unknown>
  23:     0x7f4b291caaa4 - <unknown>
  24:     0x7f4b29257c6c - <unknown>
  25:                0x0 - <unknown>
Aborted
Error: Process completed with exit code 134.

ref #19395 #19480 #19918 #19395 (comment)

node -v
v24.14.0

package.json

{
  "type": "module",
  "devDependencies": {
    "@oxlint/plugins": "1.55.0",
    "oxlint": "1.55.0"
  }
}

.oxlintrc.json

{
  "$schema": "node_modules/oxlint/configuration_schema.json",
  "jsPlugins": ["./js-plugin.ts"]
}

js-plugin.ts

import { eslintCompatPlugin } from "@oxlint/plugins";

export default eslintCompatPlugin({
  meta: { name: "js-plugin" },
  rules: {},
});

.github/workflows/ci.yml

name: ci

on: [push]

jobs:
  ci:
    runs-on: ubuntu-slim
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-node@v6
        with:
          node-version: 24
      - run: npm ci
      - run: npx oxlint
        env:
          RUST_BACKTRACE: full

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions