Windows 11 crashes with access violation 0xC0000005 when…
#141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… loading checkpoints via MultiGPU nodes.
Core Versions:
System:
ComfyUI:
MultiGPU:
Suspected HVCI (Memory Integrity) related issue. Personal testing confirms:
Hypothesis: HVCI blocks concurrent mmap access. safetensors uses mmap → MultiGPU ThreadPoolExecutor spawns threads → Access violation.
hvci_detector.py- Detection module (standalone, no deps)checkpoint_multigpu.py:Detection runs automatically on first checkpoint load. Check console logs for:
Manual test (optional):
python -c "from hvci_detector import check_hvci_enabled; print(check_hvci_enabled())"✅ Automatic & transparent
✅ Platform-aware
✅ No breaking changes
✅ Minimal code (~180 lines)
✅ Works with Windows 11 default security
✅ Verified by personal testing: Bypassing mmap fixes the crash
Files to review:
hvci_detector.py- Core detection logiccheckpoint_multigpu.py- Integration (5 small changes)Personal Testing Results:
Questions?