Validation workaround `leak-cleanup`: leaked textures/Draco state between tests
Maintainers usually reply within 1 day
@bkaradzic-microsoft is already working on this.
Since Nov 3, 2026.
Assessment
This issue has not been assessed yet.
Description
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.
- Dominant language
- C++
- Stars
- 931
- Forks
- 169
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 66
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BabylonJS/BabylonNative
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
BabylonJS/BabylonNative#2138 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BabylonJS/BabylonNative#2042 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
BabylonJS/BabylonNative#2052 ·
Maintainers usually reply within 1 day
-
testing
Difficulty 4/5 3-5 days Newbie friendliness 45/100
BabylonJS/BabylonNative#2136 ·
Maintainers usually reply within 1 day
-
Support useNDCHalfZRange (half-range NDC depth) so Babylon.js half-range depth visual tests can runOpen
Difficulty 4/5 3-5 days Newbie friendliness 48/100
BabylonJS/BabylonNative#2134 ·
Maintainers usually reply within 1 day
All issues in BabylonJS/BabylonNative
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gofractally/psibase#2379 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
simnJS/AnyPS5#735 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-format
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Niko1221/Strata#7719 · 1 comment ·
Maintainers usually reply within 4 days