Skip to content

Propagate resource import failures after draining loading jobs - #1

Open
nvhumper wants to merge 3 commits into
memory-statisticsfrom
friendly-resource-errors
Open

nvhumper wants to merge 3 commits into
memory-statisticsfrom
friendly-resource-errors

Conversation

@nvhumper

Copy link
Copy Markdown
Owner

Scope

This focused dependency topic is based on the validated memory-statistics branch so the allocation work remains independently reviewable at NVIDIA-RTX#49. It does not change the general ThreadPool API or exception policy.

  • Capture model and nested texture task exceptions and rethrow their original type, code and path on the loading caller after draining.
  • Drain already submitted jobs on caller-side failures; reject incomplete referenced models.
  • Keep cgltf cleanup safe by containing VFS callback exceptions until its temporary allocations are released.
  • Preserve optional texture return/warning behavior; document explicit texture-cache checks and application-owned replacement staging.

Validation

Focused no-mistakes run 01M3831Z4K47XXAE1WQMT9HC3M passed review, native tests, documentation and lint at c7fa384293df8dc71a90786053d0b53f9985b7a6. Native Debug D3D11 WARP raw/validation import fixtures cover model, buffer, file/inline texture exceptions, draining, reset/retry, valid imports, optional failures and repeated-import allocation cleanup. Positive D3D11/D3D12 raw/validation memory regressions also passed.

The gate found and fixed a missed cgltf temporary-path leak (8 failed buffer reads retained 176 bytes before the fix), and strengthened the regression coverage. Test CRT settings are process-local and assertions remain failures. No rendered application launches, pre-fix abort controls or global crash-policy changes were used. No CI or rendered acceptance is claimed; RTXPT application integration is validated separately.

Published normally to the existing fork after validation; no history rewrite or merge requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant