Validation workaround `leak-cleanup`: leaked textures/Draco state between tests

Aperta
#2,010 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@bkaradzic-microsoft ci sta già lavorando.

Dal 3/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Affected tests (7)

  • Node Geometry - Building generator
  • Draco Mesh Compression (decodeMeshAsync, numWorkers = 1)
  • Draco Mesh Compression (decodeMeshToGeometryAsync, numWorkers = 0)
  • Draco Mesh Compression (decodeMeshToGeometryAsync, numWorkers = 1)
  • Draco Mesh Compression (fallback)
  • Draco Decoder
  • GLTF Serializer KHR gpu instancing

What the workaround does

After the test, releases textures still alive and resets Draco decoder/encoder state. Without it, these tests leak resources into following tests (the browser gets a fresh page per test, BN reuses one engine). Introduced in #1830 / #1838.

Recommended fix

Make cleanup unconditional in the harness between tests (dispose all textures owned by the disposed scene, reset DracoDecoder.Default/DracoEncoder.Default), which matches browser per-test isolation; or fix the examples to dispose what they create. Also check whether scene.dispose() should release these in Babylon.js (genuine leak).


Workaround implementations live in Apps/Playground/Scripts/validation_native.js (WORKAROUNDS map); tests opt in via the workarounds array in Apps/Playground/Scripts/config.json. See Documentation/AddingNewValidationTests.md.

Lingua principale
C++
Stelle
931
Fork
169
Merge medio
2g 17h
PR unite (30g)
66

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BabylonJS/BabylonNative

Tutte le issue di BabylonJS/BabylonNative

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.