[GH-ISSUE #61] hostbuf_file_reader_read failed with all mixed precision quantized video models on RTX 5090 Laptop #17

Open
opened 2026-10-26 22:23:38 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @bit-ba on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-aimdo/issues/61

System Information

  • ComfyUI Version: 0.24.0
  • comfy-aimdo Version: 0.4.8
  • PyTorch Version: 2.12.0+cu130
  • GPU: NVIDIA GeForce RTX 5090 Laptop GPU (24GB VRAM)
  • OS: Windows 11
  • Python: 3.13.12

Problem

All mixed precision quantized video models fail with the same error:
RuntimeError: hostbuf_file_reader_read failed

Affected Models

  • LTX-2.3 22B Dev FP8
  • Wan2.2 T2V (low noise and high noise)
  • Wan2.1 I2V 480P

Error Location

File: comfy_aimdo/host_buffer.py, line 71, in read_file_to_device

Notes

  • Image generation (Flux.1) works perfectly fine
  • All video models that contain quantization metadata trigger this error
  • The error occurs consistently after "Model Initializing" phase
  • Downgrading comfy-aimdo to 0.4.8 did not fix the issue
Originally created by @bit-ba on GitHub (Jun 8, 2026). Original GitHub issue: https://github.com/Comfy-Org/comfy-aimdo/issues/61 ## System Information - ComfyUI Version: 0.24.0 - comfy-aimdo Version: 0.4.8 - PyTorch Version: 2.12.0+cu130 - GPU: NVIDIA GeForce RTX 5090 Laptop GPU (24GB VRAM) - OS: Windows 11 - Python: 3.13.12 ## Problem All mixed precision quantized video models fail with the same error: RuntimeError: hostbuf_file_reader_read failed ## Affected Models - LTX-2.3 22B Dev FP8 - Wan2.2 T2V (low noise and high noise) - Wan2.1 I2V 480P ## Error Location File: comfy_aimdo/host_buffer.py, line 71, in read_file_to_device ## Notes - Image generation (Flux.1) works perfectly fine - All video models that contain quantization metadata trigger this error - The error occurs consistently after "Model Initializing" phase - Downgrading comfy-aimdo to 0.4.8 did not fix the issue
Author
Owner

@rattus128 commented on GitHub (Jun 11, 2026):

send stack trace

<!-- gh-comment-id:4677761299 --> @rattus128 commented on GitHub (Jun 11, 2026): send stack trace
Author
Owner

@Hz198111 commented on GitHub (Aug 7, 2026):

Same error here, with a MiniMax H3 quantized video model on Windows 10. I dug into it and have some findings that may help you reproduce.

Environment

  • OS: Windows 10 (10.0.19045.6456) — note the README lists "Windows 11+" support
  • GPU: RTX 2080 Ti 22 GB (cudaMallocAsync)
  • ComfyUI 0.30.2, PyTorch 2.12.1+cu130
  • comfy-aimdo 0.4.11, upgraded to 0.4.13 — still crashes

Model / workflow

  • minimax_h3_fl2va_int8_convrot.safetensors (34 GB, mixed-precision quantized: native int8_convrot/int8_tensorwise, emulated mxfp8/nvfp4/fp8)
  • Crashes on the very first sampling step (0/10) at the first prefetch_queue_pop:
    cast_modules_with_vbar(..., None, device, None, True) → cast_to_gathered → read_tensor_file_slice_into (destination=None, direct file→GPU path) → hostbuf_file_reader_read returns false → RuntimeError: hostbuf_file_reader_read failed

What I ruled out / verified

  1. Model file is not corrupt: parsed the safetensors header (1035 tensors); the last tensor ends exactly at EOF (0-byte gap, nothing beyond).
  2. Upgrading 0.4.11 → 0.4.13 changed nothing.
  3. With 0.4.13's new error logging, no ERROR-level lines are emitted before the crash — only the usual INFO lines at startup (hooks installed, NVML pressure, WDDM adapter match, init OK).

Where the failure actually is (from reading the 0.4.13 source)
Every return false path in hostbuf_file_reader_read logs at AIMDO_LOG_ERROR except the ones inside hostbuf_file_reader_retire_active() / hostbuf_file_reader_next() — those use CHECK_CU, which logs at VVERBOSE/DEBUG only. The Python callback (_native_log in control.py) maps native levels 5/6/7 to logging.DEBUG, which ComfyUI's default INFO-level logging swallows. So the failing call is one of:

  • cuEventCreate / cuEventRecord in retire_active()
  • cuEventSynchronize / cuEventDestroy / cuMemAllocHost in next()

i.e. the CUDA event/slot machinery of the multi-stream file reader — the file read itself and the cuMemcpyHtoDAsync are fine (both would log at ERROR and neither fired).

Workarounds confirmed working on this machine

  • --disable-async-offload (NUM_STREAMS=0 → prefetch never runs → no crash; video generates successfully, just slower)
  • --disable-dynamic-vram (aimdo not initialized at all → no crash; but the model then loads fully into RAM, so you need a big pagefile — hit os error 1455 with a 3.3 GB pagefile, fixed by adding a 32 GB one)

Suspicion: since the failing calls are CUDA event operations on the offload streams and this is Windows 10 (unsupported per the README), a Win10/WDDM-specific issue with events on those streams seems plausible.

Happy to re-run with --verbose and paste the DEBUG-level CUDA API FAILED (...) lines if that would help pinpoint it.

<!-- gh-comment-id:5219941623 --> @Hz198111 commented on GitHub (Aug 7, 2026): Same error here, with a MiniMax H3 quantized video model on Windows 10. I dug into it and have some findings that may help you reproduce. **Environment** - OS: Windows 10 (10.0.19045.6456) — note the README lists "Windows 11+" support - GPU: RTX 2080 Ti 22 GB (cudaMallocAsync) - ComfyUI 0.30.2, PyTorch 2.12.1+cu130 - comfy-aimdo 0.4.11, upgraded to 0.4.13 — **still crashes** **Model / workflow** - `minimax_h3_fl2va_int8_convrot.safetensors` (34 GB, mixed-precision quantized: native `int8_convrot`/`int8_tensorwise`, emulated `mxfp8`/`nvfp4`/`fp8`) - Crashes on the very first sampling step (0/10) at the first `prefetch_queue_pop`: `cast_modules_with_vbar(..., None, device, None, True)` → `cast_to_gathered` → `read_tensor_file_slice_into` (destination=None, direct file→GPU path) → `hostbuf_file_reader_read` returns false → `RuntimeError: hostbuf_file_reader_read failed` **What I ruled out / verified** 1. Model file is **not** corrupt: parsed the safetensors header (1035 tensors); the last tensor ends exactly at EOF (0-byte gap, nothing beyond). 2. Upgrading 0.4.11 → 0.4.13 changed nothing. 3. With 0.4.13's new error logging, **no ERROR-level lines are emitted** before the crash — only the usual INFO lines at startup (hooks installed, NVML pressure, WDDM adapter match, init OK). **Where the failure actually is (from reading the 0.4.13 source)** Every `return false` path in `hostbuf_file_reader_read` logs at `AIMDO_LOG_ERROR` **except** the ones inside `hostbuf_file_reader_retire_active()` / `hostbuf_file_reader_next()` — those use `CHECK_CU`, which logs at `VVERBOSE`/`DEBUG` only. The Python callback (`_native_log` in `control.py`) maps native levels 5/6/7 to `logging.DEBUG`, which ComfyUI's default INFO-level logging swallows. So the failing call is one of: - `cuEventCreate` / `cuEventRecord` in `retire_active()` - `cuEventSynchronize` / `cuEventDestroy` / `cuMemAllocHost` in `next()` i.e. the CUDA event/slot machinery of the multi-stream file reader — the file read itself and the `cuMemcpyHtoDAsync` are fine (both would log at ERROR and neither fired). **Workarounds confirmed working on this machine** - `--disable-async-offload` (NUM_STREAMS=0 → prefetch never runs → no crash; video generates successfully, just slower) - `--disable-dynamic-vram` (aimdo not initialized at all → no crash; but the model then loads fully into RAM, so you need a big pagefile — hit os error 1455 with a 3.3 GB pagefile, fixed by adding a 32 GB one) **Suspicion:** since the failing calls are CUDA event operations on the offload streams and this is Windows 10 (unsupported per the README), a Win10/WDDM-specific issue with events on those streams seems plausible. Happy to re-run with `--verbose` and paste the DEBUG-level `CUDA API FAILED (...)` lines if that would help pinpoint it.
Author
Owner

@linesss commented on GitHub (Aug 13, 2026):

comfy-aimdo: HostBuffer.read_file_slice failed on MiniMax H3 (RTX 5090, Windows)

Replying to: https://github.com/Comfy-Org/comfy-aimdo/issues/61

Environment

  • OS: Windows 11 (running inside WSL2 for agent control; ComfyUI itself is a native Windows process, not running in WSL)
  • GPU: NVIDIA GeForce RTX 5090 32GB (WDDM, cudaMallocAsync)
  • ComfyUI: v0.32.0 → updated to master b323a345b (latest, incl. WSL DynamicVRAM fix 6b30dc206)
  • comfy-aimdo: 0.4.10 → upgraded to 0.4.13 — still crashes
  • PyTorch: 2.8.0+cu129 (G:\ComfyUI-aki-v2\python, Python 3.12.10)
  • comfy-kitchen: 0.2.30 → upgraded to 0.2.31

Model / workflow

  • minimax_h3_fl2va_pruned_int8_convrot.safetensors (21 GB, mixed-precision quantized: native int8_convrot)
  • qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors (15.6 GB text encoder)
  • MiniMaxH3ImageToVideo (I2V) via ComfyUI native MiniMaxH3ImageToVideo node
  • Resolution 768x1344 / 480x864, 4-step lightx2v turbo LoRA, 10s / 243 frames

Error

Intermittent failure at the very start of a run (during text-encoder load or first sampling prefetch):

[ERROR] aimdo: src-win/xfer-file-plat.c:43:ERROR:xfer_file_read_at: GetOverlappedResult failed error=1450 handle=0000000000001774 offset=11673711531 size=2097152
[ERROR] aimdo: src-win/xfer-file-plat.c:43:ERROR:xfer_file_read_at: GetOverlappedResult failed error=1450 handle=0000000000001774 offset=11688391595 size=2097152
...
RuntimeError: HostBuffer.read_file_slice failed
  File "comfy\ops.py", line 219, in cast_maybe_lowvram_patch
  File "comfy\model_management.py", line 1508, in cast_to_gathered
  File "comfy\memory_management.py", line 70, in read_tensor_file_slice_into
  File "comfy_aimdo\host_buffer.py", line 109, in read_file_slice

Key observations from the logs:

  1. error=1450 = ERROR_NO_SYSTEM_RESOURCES on GetOverlappedResult in xfer_file_read_at.
  2. All failing reads are size=2097152 (2 MB) at offset ≈ 11.67–11.72 GB on the same file handle — this is inside the 15.6 GB text encoder file.
  3. Fails during cast_maybe_lowvram_patch / prefetch_queue_pop → read_tensor_file_slice_into → hostbuf.read_file_slice.
  4. Intermittent: a task right after a ComfyUI restart almost always succeeds; a second consecutive task (after DynamicVRAM re-stages weights) almost always fails with this error. This strongly matches the CUDA event / multi-stream file-reader path described in issue #61 (only DEBUG-level CHECK_CU lines fire, swallowed by INFO logging).

Workarounds tested (all fail on this machine)

Attempt Result
--disable-async-offload Still crashes — read_file_slice (hostbuf path) is not covered by this flag
--disable-dynamic-vram (± --lowvram) Windows fatal exception: access violation in load_unet (torch storage.py __getitem__); 40 GB pagefile present, but still crashes
--disable-mmap Still crashes with the same read_file_slice error
aimdo 0.4.10 → 0.4.13 No change
ComfyUI master (incl. WSL DynamicVRAM fix) No change to this error

Only reliable workaround found

Restart ComfyUI before each single generation. After a restart the weights are first loaded via the normal file-read path (no aimdo CUDA-event multi-stream machinery), so the first task succeeds. Once DynamicVRAM re-stages weights, the second task hits read_file_slice and crashes. So: one generation per process lifetime.

Additional data

  • Same error reproduced with minimax_h3_fl2va_pruned_int8_convrot (native int8) AND minimax_h3_fl2va_pruned_w4a8_mixed.
  • Image generation (other models) works fine.
  • Offset 11.6–11.7 GB consistently — suggests the failing region is a specific set of tensor slices inside the text encoder, not a random file position.

Happy to run with --verbose / DEBUG logging and paste the CUDA API FAILED (...) lines to help pinpoint whether it's cuEventCreate/cuEventRecord/cuEventSynchronize as in issue #61.

<!-- gh-comment-id:5278762626 --> @linesss commented on GitHub (Aug 13, 2026): # comfy-aimdo: HostBuffer.read_file_slice failed on MiniMax H3 (RTX 5090, Windows) Replying to: https://github.com/Comfy-Org/comfy-aimdo/issues/61 ## Environment - **OS**: Windows 11 (running inside WSL2 for agent control; ComfyUI itself is a native Windows process, not running in WSL) - **GPU**: NVIDIA GeForce RTX 5090 32GB (WDDM, cudaMallocAsync) - **ComfyUI**: v0.32.0 → updated to master `b323a345b` (latest, incl. WSL DynamicVRAM fix `6b30dc206`) - **comfy-aimdo**: 0.4.10 → upgraded to 0.4.13 — **still crashes** - **PyTorch**: 2.8.0+cu129 (`G:\ComfyUI-aki-v2\python`, Python 3.12.10) - **comfy-kitchen**: 0.2.30 → upgraded to 0.2.31 ## Model / workflow - `minimax_h3_fl2va_pruned_int8_convrot.safetensors` (21 GB, mixed-precision quantized: native int8_convrot) - `qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors` (15.6 GB text encoder) - MiniMaxH3ImageToVideo (I2V) via ComfyUI native `MiniMaxH3ImageToVideo` node - Resolution 768x1344 / 480x864, 4-step lightx2v turbo LoRA, 10s / 243 frames ## Error Intermittent failure at the very start of a run (during text-encoder load or first sampling prefetch): ``` [ERROR] aimdo: src-win/xfer-file-plat.c:43:ERROR:xfer_file_read_at: GetOverlappedResult failed error=1450 handle=0000000000001774 offset=11673711531 size=2097152 [ERROR] aimdo: src-win/xfer-file-plat.c:43:ERROR:xfer_file_read_at: GetOverlappedResult failed error=1450 handle=0000000000001774 offset=11688391595 size=2097152 ... RuntimeError: HostBuffer.read_file_slice failed File "comfy\ops.py", line 219, in cast_maybe_lowvram_patch File "comfy\model_management.py", line 1508, in cast_to_gathered File "comfy\memory_management.py", line 70, in read_tensor_file_slice_into File "comfy_aimdo\host_buffer.py", line 109, in read_file_slice ``` Key observations from the logs: 1. **error=1450 = ERROR_NO_SYSTEM_RESOURCES** on `GetOverlappedResult` in `xfer_file_read_at`. 2. All failing reads are **size=2097152 (2 MB)** at **offset ≈ 11.67–11.72 GB** on the same file handle — this is inside the 15.6 GB text encoder file. 3. Fails during `cast_maybe_lowvram_patch` / `prefetch_queue_pop` → `read_tensor_file_slice_into` → `hostbuf.read_file_slice`. 4. **Intermittent**: a task right after a ComfyUI restart almost always succeeds; a second consecutive task (after DynamicVRAM re-stages weights) almost always fails with this error. This strongly matches the CUDA event / multi-stream file-reader path described in issue #61 (only DEBUG-level `CHECK_CU` lines fire, swallowed by INFO logging). ## Workarounds tested (all fail on this machine) | Attempt | Result | |---|---| | `--disable-async-offload` | Still crashes — `read_file_slice` (hostbuf path) is not covered by this flag | | `--disable-dynamic-vram` (± `--lowvram`) | `Windows fatal exception: access violation` in `load_unet` (torch `storage.py __getitem__`); 40 GB pagefile present, but still crashes | | `--disable-mmap` | Still crashes with the same `read_file_slice` error | | aimdo 0.4.10 → 0.4.13 | No change | | ComfyUI master (incl. WSL DynamicVRAM fix) | No change to this error | ## Only reliable workaround found **Restart ComfyUI before each single generation.** After a restart the weights are first loaded via the normal file-read path (no aimdo CUDA-event multi-stream machinery), so the first task succeeds. Once DynamicVRAM re-stages weights, the second task hits `read_file_slice` and crashes. So: one generation per process lifetime. ## Additional data - Same error reproduced with `minimax_h3_fl2va_pruned_int8_convrot` (native int8) AND `minimax_h3_fl2va_pruned_w4a8_mixed`. - Image generation (other models) works fine. - Offset 11.6–11.7 GB consistently — suggests the failing region is a specific set of tensor slices inside the text encoder, not a random file position. Happy to run with `--verbose` / DEBUG logging and paste the `CUDA API FAILED (...)` lines to help pinpoint whether it's `cuEventCreate`/`cuEventRecord`/`cuEventSynchronize` as in issue #61.
Author
Owner

@linesss commented on GitHub (Aug 16, 2026):

@rattus128 Here is the full stack trace you asked for. The failure is on the text-encoder load path (not the sampling path), reproducing on RTX 5090 32GB, Windows 11, ComfyUI master b323a345b, comfy-aimdo 0.4.13.

The read fails at → (ERROR_NO_SYSTEM_RESOURCES), reading 2MB chunks at a fixed ~11.6–11.7 GB offset inside the 15.6 GB text encoder ().

Traceback (text-encoder load path):

Also a second, rarer failure mode at → during .

Key observations:

  • Both and do NOT fix it (the hostbuf path is not covered by those flags).
  • instead hits in (torch ).
  • Reliable workaround: restart ComfyUI before each generation (first load uses the normal file path; the re-stage path then hits this bug).

This matches @Hz198111's finding that the CUDA event/slot machinery is the likely culprit. Happy to run with / DEBUG logging and paste lines if that helps pinpoint.

<!-- gh-comment-id:5305737059 --> @linesss commented on GitHub (Aug 16, 2026): @rattus128 Here is the full stack trace you asked for. The failure is on the text-encoder load path (not the sampling path), reproducing on RTX 5090 32GB, Windows 11, ComfyUI master b323a345b, comfy-aimdo 0.4.13. The read fails at → (ERROR_NO_SYSTEM_RESOURCES), reading 2MB chunks at a fixed ~11.6–11.7 GB offset inside the 15.6 GB text encoder (). Traceback (text-encoder load path): Also a second, rarer failure mode at → during . Key observations: - Both and do NOT fix it (the hostbuf path is not covered by those flags). - instead hits in (torch ). - Reliable workaround: restart ComfyUI before each generation (first load uses the normal file path; the re-stage path then hits this bug). This matches @Hz198111's finding that the CUDA event/slot machinery is the likely culprit. Happy to run with / DEBUG logging and paste lines if that helps pinpoint.
Author
Owner

@caninereason commented on GitHub (Sep 24, 2026):

Tried everything to solve this, until I updated gfx and torch- problem solved, better gen times and stability now, just update torch and gfx drivers.

<!-- gh-comment-id:5819235936 --> @caninereason commented on GitHub (Sep 24, 2026): Tried everything to solve this, until I updated gfx and torch- problem solved, better gen times and stability now, just update torch and gfx drivers.
Author
Owner

@whartons commented on GitHub (Oct 16, 2026):

Still happening on the latest release here: comfy-aimdo 0.5.6 with ComfyUI 0.40.0 (Windows 11, RTX 5090 32 GB, PyTorch 2.10.0+cu130, ComfyUI Desktop).

It's the same text-encoder load path @linesss described above. Loading FLUX.2 dev's bf16 text encoder (mistral_3_small_flux2_bf16.safetensors, 35.6 GB) partway through a session, while other models are still staged, fails with Windows error 1450 (ERROR_NO_SYSTEM_RESOURCES) and RuntimeError: HostBuffer.read_file_slice failed.

A workaround that has been reliable for us: send POST /free with {"unload_models": true, "free_memory": true} before queueing the FLUX.2 job. The same job then loads and runs, so it seems to depend on what is already staged rather than on the file itself.

<!-- gh-comment-id:6216680056 --> @whartons commented on GitHub (Oct 16, 2026): Still happening on the latest release here: comfy-aimdo 0.5.6 with ComfyUI 0.40.0 (Windows 11, RTX 5090 32 GB, PyTorch 2.10.0+cu130, ComfyUI Desktop). It's the same text-encoder load path @linesss described above. Loading FLUX.2 dev's bf16 text encoder (`mistral_3_small_flux2_bf16.safetensors`, 35.6 GB) partway through a session, while other models are still staged, fails with Windows error 1450 (`ERROR_NO_SYSTEM_RESOURCES`) and `RuntimeError: HostBuffer.read_file_slice failed`. A workaround that has been reliable for us: send `POST /free` with `{"unload_models": true, "free_memory": true}` before queueing the FLUX.2 job. The same job then loads and runs, so it seems to depend on what is already staged rather than on the file itself.
Author
Owner

@wu-yang-8888 commented on GitHub (Oct 22, 2026):

Confirming the same failure with MiniMax H3 on a 12GB card — and reporting one extra data point:
0.6.0 changes the failure mode but does not fix it.

Environment

  • GPU: RTX 3060 12GB (sm_86), Windows 11 22000, 32GB RAM
  • ComfyUI 0.41.3 (Mie 2026 V8.0), Python 3.13.11, PyTorch 2.13.0+cu132
  • comfy-aimdo 0.6.0, comfy-kitchen 0.2.40 (both installed from the PyPI wheels
    cp39-abi3-win_amd64 / cp312-abi3-win_amd64)
  • Pagefile is a fixed 40GB, commit limit 71.8GB — commit is not the limit here
  • Launched exactly like the vendor launcher:
    python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

Model

  • UNET: minimax_h3_fl2va_pruned_int8_convrot.safetensors (20.9GB, int8_convrot + comfy_quant)
  • Text encoder: qwen3vl_32b_minimax_h3_int8_convrot.safetensors (27.1GB)

What succeeds

  • #2 [CLIPLoader]: 2.12s — encoder loads
  • Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 259 patches attached.
  • KSampler starts: 0/4 ... Model Initializing

Where it dies
RuntimeError: hostbuf_file_reader_read failed
comfy/memory_management.py:21 read_tensor_file_slice_into
-> raised inside KSampler (node 9)

Comparison with 0.5.6
On 0.5.6 (with a hand-typed main.py invocation, i.e. without --windows-standalone-build)
the same graph died earlier and harder: Windows fatal exception: access violation at
torch/storage.py getitem -> comfy/utils.py load_torch_file -> comfy/sd.py load_clip,
process killed (exit 139). With the correct launcher flags plus the 0.6.0 / 0.2.40 upgrade
the encoder now loads and sampling starts, so something did improve — but the hostbuf read
still fails at the first sampling step.

On the suggested workaround
--disable-dynamic-vram is not testable here with comfy-kitchen 0.2.40: the server exits
during start_comfyui and nothing ever listens on the port, so the workflow cannot be submitted.

Happy to run any debug build or extra logging you want on this box.

<!-- gh-comment-id:6341855132 --> @wu-yang-8888 commented on GitHub (Oct 22, 2026): Confirming the same failure with MiniMax H3 on a 12GB card — and reporting one extra data point: 0.6.0 changes the failure mode but does not fix it. Environment - GPU: RTX 3060 12GB (sm_86), Windows 11 22000, 32GB RAM - ComfyUI 0.41.3 (Mie 2026 V8.0), Python 3.13.11, PyTorch 2.13.0+cu132 - comfy-aimdo 0.6.0, comfy-kitchen 0.2.40 (both installed from the PyPI wheels cp39-abi3-win_amd64 / cp312-abi3-win_amd64) - Pagefile is a fixed 40GB, commit limit 71.8GB — commit is not the limit here - Launched exactly like the vendor launcher: python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build Model - UNET: minimax_h3_fl2va_pruned_int8_convrot.safetensors (20.9GB, int8_convrot + comfy_quant) - Text encoder: qwen3vl_32b_minimax_h3_int8_convrot.safetensors (27.1GB) What succeeds - #2 [CLIPLoader]: 2.12s — encoder loads - Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 259 patches attached. - KSampler starts: 0/4 ... Model Initializing Where it dies RuntimeError: hostbuf_file_reader_read failed comfy/memory_management.py:21 read_tensor_file_slice_into -> raised inside KSampler (node 9) Comparison with 0.5.6 On 0.5.6 (with a hand-typed `main.py` invocation, i.e. without --windows-standalone-build) the same graph died earlier and harder: `Windows fatal exception: access violation` at torch/storage.py __getitem__ -> comfy/utils.py load_torch_file -> comfy/sd.py load_clip, process killed (exit 139). With the correct launcher flags plus the 0.6.0 / 0.2.40 upgrade the encoder now loads and sampling starts, so something did improve — but the hostbuf read still fails at the first sampling step. On the suggested workaround `--disable-dynamic-vram` is not testable here with comfy-kitchen 0.2.40: the server exits during start_comfyui and nothing ever listens on the port, so the workflow cannot be submitted. Happy to run any debug build or extra logging you want on this box.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/comfy-aimdo#17
No description provided.