IT
OmnvertImage • Document • Network
Apr 10, 2026stl · worker · stability · performance

Memory Leak Fixed in STL Generation

We fixed a retention issue in the conversion worker that could increase memory usage during long batch sessions and abort-heavy traffic.

Root cause

  • An abort path kept references to large ArrayBuffers (image rasters + intermediate mesh buffers) longer than needed.
  • Some streaming responses weren’t releasing back-pressure queues promptly when the client disconnected.

Fix

  • Explicit cleanup on abort: intermediate buffers are nulled and GC-friendly within the same tick.
  • Stream finalization hardening: we close/tear down streams on disconnect to prevent queued chunks from piling up.
  • More aggressive timeouts for hung conversions (without impacting successful long-running jobs).
Operational note
- If you batch-convert many PNGs to STL, keep the tab open until downloads finish.
- If you cancel conversions frequently, this update prevents memory from creeping over time.
- We also improved abort handling to return faster and free resources sooner.
text
Recommended workflow

For stable results in long sessions, start from a single high-quality PNG, validate scale/thickness, then repeat with new inputs.

Convert here: PNG / SVG → STL converter.

Related