WhatBrokeToday
FAQ
Today's Trends
mediumInvestigatingBunv1.4.4+38afee6c8

Bun Heap Snapshots Leave Every Map and Set Entry Unreachable

  1. Investigating(current)
  2. Trending(upcoming)
  3. Workaround available(upcoming)
  4. Resolved(upcoming)

Executive summary

Heap snapshots in Bun leave out the edges from a Map or Set to its entries. As a result, every value held by a Map or Set appears as an unreachable node without a retainer path or retained size.

No verified workaround yet

None of the linked reports describe a mitigation. Follow this incident to hear when one appears.

Official fix
Technical root cause

Under active investigation. No report has identified a root cause yet.

Evidence

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Heap snapshots leave every Map and Set entry unreachable(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? macOS 27.0.1 arm64, and the same graph on Linux x86_64 What steps can reproduce the bug? Heap snapshots leave out the edges from a Map or Set to its entries. Every value a Map or Set holds shows up as a node that nothing reaches, so no retainer path or retained size can name the collection that keeps it. const entries = 2000; const kept = { array: Array.from({ length: entries }, (_, i) => array-${i}-.padEnd(1000,…

    by burak-bayir 0upvotes 0comments

Timeline

  1. First report on GitHub issue

    Heap snapshots leave every Map and Set entry unreachable

    Source