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

オープン
#2,010 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@bkaradzic-microsoft がすでに取り組んでいます。

2026年11月3日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
C++
スター
931
フォーク
169
平均マージ
2日 17時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BabylonJS/BabylonNative のほかの issue

BabylonJS/BabylonNative の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。