[ROCm gfx1201] MiniMax H3 video: NaN audio latents, then illegal memory access / amdgpu page faults on repeated runs (0.47.0)

Open
#18,235 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

Custom Node Testing
  • I have tried disabling custom nodes and the issue persists

Not fully: the diffusion model is loaded with the native UNETLoader (Comfy-Org minimax_h3_fl2va_pruned_int8_convrot.safetensors), but the text encoder is loaded with ComfyUI-GGUF's CLIPLoaderGGUF (qwen3vl_32b_minimax_h3-Q4_K_M.gguf) because that's the only text encoder I have downloaded (the native int8 one is 27 GB). The fault happens during sampling, after text encoding. I saw the same failure pattern with the DiT loaded through ComfyUI-GGUF too (Q4_K pruned FL2VA), so it doesn't seem to be tied to one loader.

Expected Behavior

Repeated MiniMax H3 (FL2VA, pruned) video+audio generations run reliably on an RX 9070 XT (gfx1201) under ROCm.

Actual Behavior

The first generation after ComfyUI starts is always fine (10/10 across my tests). Later generations in the same process fail in one of three escalating ways:

  1. The audio latent coming out of SamplerCustomAdvanced is entirely NaN (all 32×2×T values), while the video latent is finite and the video looks fine. VAEDecodeAudio then returns an all-NaN waveform, and SaveVideo either writes a silent track or fails with av.error.ArgumentError: Invalid argument: 'avcodec_send_frame()' returned 22 (FFmpeg's AAC encoder rejects NaN input).
  2. torch.AcceleratorError: CUDA error: an illegal memory access was encountered (or once unspecified launch failure), after which the prompt worker thread dies and the server stops processing the queue.
  3. amdgpu gfxhub page faults from the ComfyUI python process (kernel log below). Once this corrupted the desktop display (other processes' GPU contexts, e.g. Firefox, were torn down) and needed a reboot.

Latest run, default settings plus --reserve-vram 3, int8_convrot DiT + turbo LoRA, 864×480, 56 frames, 8 steps:

run result
1 (i2v) OK, audio fine, 73.6 s (includes load)
2 (i2v) OK, 36.8 s
3 (t2v) OK, 42.9 s
4 (i2v) illegal memory access 7 s in (model reload: loaded partially; ... 4192.74 MB offloaded), kernel page faults

Things I tried that did not fix it (all with the GGUF DiT): --disable-dynamic-vram; --disable-smart-memory; both together (3/3 good once, then a NaN-audio run in the next batch); --disable-cuda-graphs; --disable-pinned-memory; calling comfy.model_management.unload_all_models() + soft_empty_cache() after every prompt. Restarting the ComfyUI process before each generation always avoids it.

Steps to Reproduce
  1. RX 9070 XT, ComfyUI 0.47.0 (d88d77d), torch 2.15.0+rocm10.0, default launch args + --reserve-vram 3.
  2. Load Comfy-Org minimax_h3_fl2va_pruned_int8_convrot.safetensors (UNETLoader), minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors (LoraLoaderModelOnly, 1.0), minimax_h3_video_vae_fp16 + minimax_h3_audio_vae_fp32, Qwen3-VL text encoder as above.
  3. Graph = the official video_minimax_h3_i2v template wiring: MiniMaxH3ImageToVideo (864×480, length 56) → BasicGuider → SamplerCustomAdvanced (res_multistep, BasicScheduler simple 8 steps) → VAEDecode + VAEDecodeAudio → CreateVideo (24 fps) → SaveVideo.
  4. Queue it 3–5 times in a row with different seeds without restarting ComfyUI.

API-format prompt used (one run; only the seed and first_frame/prompt changed between runs):

{
    "prompt": {
        "1": {
            "class_type": "UNETLoader",
            "inputs": {
                "unet_name": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",
                "weight_dtype": "default"
            }
        },
        "2": {
            "class_type": "CLIPLoaderGGUF",
            "inputs": {
                "clip_name": "qwen3vl_32b_minimax_h3-Q4_K_M.gguf",
                "type": "minimax"
            }
        },
        "3": {
            "class_type": "VAELoader",
            "inputs": {
                "vae_name": "minimax_h3_video_vae_fp16.safetensors"
            }
        },
        "4": {
            "class_type": "VAELoader",
            "inputs": {
                "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
            }
        },
        "20": {
            "class_type": "LoraLoaderModelOnly",
            "inputs": {
                "model": [
                    "1",
                    0
                ],
                "lora_name": "minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors",
                "strength_model": 1.0
            }
        },
        "5": {
            "class_type": "MiniMaxH3ImageToVideo",
            "inputs": {
                "clip": [
                    "2",
                    0
                ],
                "vae": [
                    "3",
                    0
                ],
                "width": 864,
                "height": 480,
                "length": 56,
                "prompt": "The cat on the windowsill slowly turns its head toward the camera and yawns. Rain taps on the glass, a soft purr, a clock ticking in the room.",
                "first_frame": [
                    "15",
                    0
                ]
            }
        },
        "6": {
            "class_type": "BasicGuider",
            "inputs": {
                "model": [
                    "20",
                    0
                ],
                "conditioning": [
                    "5",
                    0
                ]
            }
        },
        "7": {
            "class_type": "RandomNoise",
            "inputs": {
                "noise_seed": 24
            }
        },
        "8": {
            "class_type": "KSamplerSelect",
            "inputs": {
                "sampler_name": "res_multistep"
            }
        },
        "9": {
            "class_type": "BasicScheduler",
            "inputs": {
                "model": [
                    "20",
                    0
                ],
                "scheduler": "simple",
                "steps": 8,
                "denoise": 1.0
            }
        },
        "10": {
            "class_type": "SamplerCustomAdvanced",
            "inputs": {
                "noise": [
                    "7",
                    0
                ],
                "guider": [
                    "6",
                    0
                ],
                "sampler": [
                    "8",
                    0
                ],
                "sigmas": [
                    "9",
                    0
                ],
                "latent_image": [
                    "5",
                    1
                ]
            }
        },
        "11": {
            "class_type": "VAEDecode",
            "inputs": {
                "samples": [
                    "10",
                    0
                ],
                "vae": [
                    "3",
                    0
                ]
            }
        },
        "12": {
            "class_type": "VAEDecodeAudio",
            "inputs": {
                "samples": [
                    "10",
                    0
                ],
                "vae": [
                    "4",
                    0
                ]
            }
        },
        "13": {
            "class_type": "CreateVideo",
            "inputs": {
                "images": [
                    "11",
                    0
                ],
                "audio": [
                    "12",
                    0
                ],
                "fps": 24
            }
        },
        "14": {
            "class_type": "SaveVideo",
            "inputs": {
                "video": [
                    "13",
                    0
                ],
                "filename_prefix": "H3test/int8_24",
                "format": "auto",
                "codec": "auto"
            }
        },
        "15": {
            "class_type": "LoadImage",
            "inputs": {
                "image": "h3_example.png"
            }
        }
    }
}
Debug Logs

Full ComfyUI log for the 4-run session above (startup through the crash; tqdm progress lines removed, home directory replaced with ~):

Started comfyui.service - [systemd-run] ~/Apps/comfyui/venv/bin/python main.py --listen 127.0.0.1 --port 8188 --disable-auto-launch --reserve-vram 3.
[INFO] setup plugin alembic.autogenerate.schemas
[INFO] setup plugin alembic.autogenerate.tables
[INFO] setup plugin alembic.autogenerate.types
[INFO] setup plugin alembic.autogenerate.constraints
[INFO] setup plugin alembic.autogenerate.defaults
[INFO] setup plugin alembic.autogenerate.comments
[INFO] setup plugin alembic.ext.checkconstraint_byname
[INFO] Found comfy_kitchen backend cuda: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'closest_hit_on_mesh', 'closest_point_on_mesh', 'connected_components', 'convrot_w4a4_linear', 'delaunay3d', 'dequantize_convrot_w4a4_weight', 'dequantize_int8_convrot_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_simple', 'dequantize_int8_simple_dtype', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'dequantize_w4a8_int8_weight', 'edge_collapse_checks', 'fp16_conv3d', 'fp16_conv3d_out', 'fp16_linear', 'gemv_awq_w4a16', 'group_norm_silu_pad3d', 'group_norm_silu_pad3d_out', 'group_norm_stats3d', 'mesh_bvh', 'min_cut', 'na3d', 'prepare_int4_weight_for_int8_linear', 'quantize_and_rotate_rowwise', 'quantize_convrot_w4a4_weight', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'quantize_w4a8_int8_weight', 'rms_adaln', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'rotate_int8_convrot_weight', 'scaled_mm_svdquant_w4a4', 'sol_attn', 'stochastic_rounding_fp8', 'w4a8_int8_linear', 'w4a8_packed_linear', 'window_attention']}
[INFO] Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'convrot_w4a4_linear', 'dequantize_convrot_w4a4_weight', 'dequantize_int8_convrot_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_embedding', 'dequantize_int8_simple', 'dequantize_int8_simple_dtype', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'dequantize_w4a8_int8_weight', 'fp16_conv3d', 'fp16_conv3d_out', 'fp16_linear', 'gemv_awq_w4a16', 'group_norm_silu_pad3d', 'group_norm_silu_pad3d_out', 'group_norm_stats3d', 'int8_linear', 'int8_linear_modulated', 'int8_linear_rms_modulated', 'na3d', 'prepare_int4_weight_for_int8_linear', 'quantize_and_rotate_rowwise', 'quantize_convrot_w4a4_weight', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'quantize_w4a8_int8_weight', 'rms_adaln', 'rms_gated_residual', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'rotate_int8_convrot_weight', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'sol_attn', 'stochastic_rounding_fp8', 'w4a8_int8_linear', 'w4a8_packed_linear', 'window_attention']}
[INFO] Found comfy_kitchen backend triton: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'int8_linear', 'na3d', 'quantize_and_rotate_rowwise', 'quantize_int8_rowwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'rms_adaln', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'w4a8_int8_linear']}
[INFO] Found comfy_kitchen backend hip: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope1_', 'apply_rope_', 'apply_rope_split_half', 'apply_rope_split_half1', 'apply_rope_split_half1_', 'apply_rope_split_half_', 'closest_hit_on_mesh', 'closest_point_on_mesh', 'connected_components', 'convrot_w4a4_linear', 'delaunay3d', 'dequantize_convrot_w4a4_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_simple_dtype', 'dequantize_per_tensor_fp8', 'dequantize_w4a8_int8_weight', 'edge_collapse_checks', 'fp16_conv3d', 'fp16_conv3d_out', 'fp16_linear', 'gemv_awq_w4a16', 'group_norm_silu_pad3d', 'group_norm_silu_pad3d_out', 'group_norm_stats3d', 'int8_linear', 'int8_linear_modulated', 'int8_linear_rms_modulated', 'int8_linear_tiled_weight', 'mesh_bvh', 'min_cut', 'na3d', 'quantize_and_rotate_rowwise', 'quantize_convrot_w4a4_weight', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'quantize_w4a8_int8_weight', 'rms_adaln', 'rms_gated_residual', 'rms_rope', 'rms_rope1', 'rms_rope1_', 'rms_rope_', 'rms_rope_split_half', 'rms_rope_split_half1', 'rms_rope_split_half1_', 'rms_rope_split_half_', 'scaled_mm_svdquant_w4a4', 'sol_attn', 'stochastic_rounding_fp8', 'w4a8_int8_linear', 'window_attention']}
[INFO] Found comfy_kitchen backend ascend: {'available': False, 'disabled': False, 'unavailable_reason': "torch-npu is not installed: No module named 'torch_npu'", 'capabilities': []}
[INFO] Checkpoint files will always be loaded safely.
[INFO] Total VRAM 16304 MB, total RAM 124119 MB
[INFO] pytorch version: 2.15.0+rocm10.0
[INFO] Set: torch.backends.cudnn.enabled = False for better AMD performance.
[INFO] AMD arch: gfx1201
[INFO] ROCm version: (7, 15)
[INFO] Set vram state to: NORMAL_VRAM
[INFO] Device: cuda:0 AMD Radeon RX 9070 XT : native
[INFO] Using async weight offloading with 2 streams
[INFO] Enabled pinned memory 111707.0
[INFO] Using pytorch attention
[INFO] aimdo: /project/src/control.c:283:INFO:comfy-aimdo inited for GPU: AMD Radeon RX 9070 XT (VRAM: 16304 MB)
[INFO] DynamicVRAM support detected and enabled
[INFO] Python version: 3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0]
[INFO] ComfyUI version: 0.47.0
[INFO] comfy-aimdo version: 0.6.0
[INFO] comfy-kitchen version: 0.2.42
[INFO] comfyui-frontend-package version: 1.61.13
[INFO] comfyui-workflow-templates version: 0.11.126
[INFO] comfyui-embedded-docs version: 0.5.18
[INFO] comfy-aimdo version: 0.6.0
[INFO] comfy-kitchen version: 0.2.42
[INFO] [Prompt Server] web root: ~/Apps/comfyui/venv/lib/python3.14/site-packages/comfyui_frontend_package/static
[INFO] Asset seeder disabled
[INFO] No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
[INFO] ComfyUI-GGUF: Allowing full torch compile
[INFO]
Import times for custom nodes:
[INFO]    0.0 seconds: ~/Apps/comfyui/custom_nodes/websocket_image_save.py
[INFO]    0.0 seconds: ~/Apps/comfyui/custom_nodes/ComfyUI-GGUF
[INFO]
[INFO] Using RAM pressure cache.
[INFO] ComfyUI is developed by Comfy Org. We also offer commercial products to deploy ComfyUI as scalable cloud endpoints. Visit platform.comfy.org/ascii for more information.
[INFO] Starting server
[INFO] To see the GUI go to: http://127.0.0.1:8188
[INFO] got prompt
[INFO] Model storage policy: fast_disk=True paths=['~/Apps/comfyui/models/vae/minimax_h3_audio_vae_fp32.safetensors']
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.float32
[INFO] Model storage policy: fast_disk=True paths=['~/Apps/comfyui/models/vae/minimax_h3_video_vae_fp16.safetensors']
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.float16
[INFO] gguf qtypes: Q4_K (390), F32 (433), Q6_K (50), Q5_K (27), F16 (2)
[INFO] Model storage policy: fast_disk=False paths=[]
[INFO] CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
[INFO] Requested to load MiniMaxH3TEModel_
[INFO] loaded partially; 12160.80 MB usable, 11668.61 MB loaded, 3714.78 MB offloaded, 492.19 MB buffer reserved, lowvram patches: 0
[INFO] Attempting to release mmap (192)
/tmp/tmprel8syie/hip_utils.c:5:10: fatal error: Python.h: No such file or directory
    5 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
[INFO] Requested to load MiniMaxH3VideoVAE
[INFO] Unloaded partially: 3791.00 MB freed, 7877.62 MB remains loaded, 492.19 MB buffer reserved, lowvram patches: 0
[INFO] Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 4965MB Staged. 0 patches attached. Force pre-loaded 128 weights: 352 KB.
[INFO] Found quantization metadata version 1
[INFO] Detected mixed precision quantization
[INFO] Using mixed precision operations
[INFO] Native ops: asym_w4a8_int8, w3a8_int8, w5a8_int8, w6a8_int8, convrot_w4a4, int8_tensorwise, float8_e5m2, float8_e4m3fn , emulated ops: mxfp8, nvfp4
[INFO] model weight dtype torch.bfloat16, manual cast: torch.bfloat16
[INFO] model_type FLOW_AV
[INFO] Model storage policy: fast_disk=True paths=['~/Apps/comfyui/models/diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors']
[INFO] Requested to load MiniMaxH3
[INFO] Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 208 patches attached. Force pre-loaded 210 weights: 1175 KB.

100%|██████████| 8/8 [00:29<00:00,  3.64s/it]
100%|██████████| 8/8 [00:29<00:00,  3.65s/it]
[INFO] Comfy model compiler graph breaks: 0, rogues: 0
[INFO] Requested to load MiniMaxH3AudioVAE
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3AudioVAE prepared for dynamic VRAM loading. 576MB Staged. 0 patches attached. Force pre-loaded 401 weights: 539 KB.
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 4965MB Staged. 0 patches attached. Force pre-loaded 128 weights: 352 KB.
[INFO] Prompt executed in 73.61 seconds
[INFO] ComfyUI is developed by Comfy Org. We also offer commercial products to deploy ComfyUI as scalable cloud endpoints. Visit platform.comfy.org/ascii-job for more information.
[INFO] got prompt
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 208 patches attached. Force pre-loaded 210 weights: 1175 KB.

100%|██████████| 8/8 [00:29<00:00,  3.66s/it]
100%|██████████| 8/8 [00:29<00:00,  3.65s/it]
[INFO] Comfy model compiler graph breaks: 0, rogues: 0
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3AudioVAE prepared for dynamic VRAM loading. 576MB Staged. 0 patches attached. Force pre-loaded 401 weights: 539 KB.
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 4965MB Staged. 0 patches attached. Force pre-loaded 128 weights: 352 KB.
[INFO] Prompt executed in 36.81 seconds
[INFO] got prompt
[INFO] Requested to load MiniMaxH3TEModel_
[INFO] loaded partially; 11685.36 MB usable, 11193.17 MB loaded, 4190.19 MB offloaded, 492.19 MB buffer reserved, lowvram patches: 0
[INFO] Requested to load MiniMaxH3
[INFO] Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 208 patches attached. Force pre-loaded 210 weights: 1175 KB.

100%|██████████| 8/8 [00:25<00:00,  3.23s/it]
100%|██████████| 8/8 [00:25<00:00,  3.22s/it]
[INFO] Comfy model compiler graph breaks: 0, rogues: 0
[INFO] Requested to load MiniMaxH3AudioVAE
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3AudioVAE prepared for dynamic VRAM loading. 576MB Staged. 0 patches attached. Force pre-loaded 401 weights: 539 KB.
[INFO] Requested to load MiniMaxH3VideoVAE
[INFO] 0 models unloaded.
[INFO] Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 4965MB Staged. 0 patches attached. Force pre-loaded 128 weights: 352 KB.
[INFO] Prompt executed in 42.94 seconds
[INFO] got prompt
[INFO] Requested to load MiniMaxH3TEModel_
[INFO] loaded partially; 11683.36 MB usable, 11191.17 MB loaded, 4192.74 MB offloaded, 492.19 MB buffer reserved, lowvram patches: 0
~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/_tensor.py:1542: UserWarning: uncheckedSetDevice() ignoring error: CUDA error: an illegal memory access was encountered
Search for `hipErrorIllegalAddress' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Device-side assertion tracking was not enabled by user.
Exception raised from SetDevice at /__w/pytorch/pytorch/c10/hip/HIPFunctions.cpp:334 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x9d (0x74a5f055c13d in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0x1402d (0x74a60ce8702d in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libc10_hip.so)
frame #2: c10::cuda::SetDevice(signed char, bool) + 0x65 (0x74a60ced4a65 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libc10_hip.so)
frame #3: <unknown function> + 0xe5e09b (0x74a60de5e09b in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_hip.so)
frame #4: <unknown function> + 0x1ce21dc (0x74a60ece21dc in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_hip.so)
frame #5: <unknown function> + 0x1d7e29e (0x74a62997e29e in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #6: at::native::copy_(at::Tensor&, at::Tensor const&, bool) + 0x30 (0x74a629980840 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #7: at::_ops::copy_::call(at::Tensor&, at::Tensor const&, bool) + 0x142 (0x74a62a80b562 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #8: at::native::_to_copy(at::Tensor const&, std::optional<c10::ScalarType>, std::optional<c10::Layout>, std::optional<c10::Device>, std::optional<bool>, bool, std::optional<c10::MemoryFormat>) + 0x16ca (0x74a629d7e21a in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #9: <unknown function> + 0x30b27ac (0x74a62acb27ac in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #10: at::_ops::_to_copy::redispatch(c10::DispatchKeySet, at::Tensor const&, std::optional<c10::ScalarType>, std::optional<c10::Layout>, std::optional<c10::Device>, std::optional<bool>, bool, std::optional<c10::MemoryFormat>) + 0xe2 (0x74a62a2c5362 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #11: <unknown function> + 0x2e1ec0b (0x74a62aa1ec0b in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #12: at::_ops::_to_copy::call(at::Tensor const&, std::optional<c10::ScalarType>, std::optional<c10::Layout>, std::optional<c10::Device>, std::optional<bool>, bool, std::optional<c10::MemoryFormat>) + 0x1e4 (0x74a62a373564 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #13: at::native::to(at::Tensor const&, std::optional<c10::ScalarType>, std::optional<c10::Layout>, std::optional<c10::Device>, std::optional<bool>, bool, bool, std::optional<c10::MemoryFormat>) + 0xc4 (0x74a629d66954 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #14: <unknown function> + 0x31fcbf2 (0x74a62adfcbf2 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #15: at::_ops::to_dtype_layout::redispatch(c10::DispatchKeySet, at::Tensor const&, std::optional<c10::ScalarType>, std::optional<c10::Layout>, std::optional<c10::Device>, std::optional<bool>, bool, bool, std::optional<c10::MemoryFormat>) + 0x109 (0x74a62a4e4e59 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #16: <unknown function> + 0x2e1eae5 (0x74a62aa1eae5 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #17: at::_ops::to_dtype_layout::call(at::Tensor const&, std::optional<c10::ScalarType>, std::optional<c10::Layout>, std::optional<c10::Device>, std::optional<bool>, bool, bool, std::optional<c10::MemoryFormat>) + 0x200 (0x74a62a522200 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_cpu.so)
frame #18: <unknown function> + 0x45a9ab (0x74a63d45a9ab in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_python.so)
frame #19: <unknown function> + 0x4bc917 (0x74a63d4bc917 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_python.so)
frame #20: ~/Apps/comfyui/venv/bin/python() [0x583c28]
frame #21: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #22: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #23: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #24: ~/Apps/comfyui/venv/bin/python() [0x576c5f]
frame #25: PyObject_CallFunctionObjArgs + 0xa0 (0x576b40 in ~/Apps/comfyui/venv/bin/python)
frame #26: <unknown function> + 0xe73441 (0x74a63de73441 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_python.so)
frame #27: torch::handle_torch_function_no_python_arg_parser(c10::ArrayRef<_object*>, _object*, _object*, char const*, _object*, char const*, torch::TorchFunctionName) + 0x16 (0x74a63de75106 in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_python.so)
frame #28: <unknown function> + 0xe7579f (0x74a63de7579f in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_python.so)
frame #29: <unknown function> + 0x4bc5da (0x74a63d4bc5da in ~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/lib/libtorch_python.so)
frame #30: ~/Apps/comfyui/venv/bin/python() [0x5776db]
frame #31: ~/Apps/comfyui/venv/bin/python() [0x5a5883]
frame #32: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #33: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #34: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #35: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #36: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #37: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #38: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #39: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #40: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #41: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #42: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #43: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #44: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #45: ~/Apps/comfyui/venv/bin/python() [0x536aaf]
frame #46: ~/Apps/comfyui/venv/bin/python() [0x63705a]
frame #47: _PyObject_MakeTpCall + 0x36c (0x52f70c in ~/Apps/comfyui/venv/bin/python)
frame #48: _PyEval_EvalFrameDefault + 0xd98 (0x54db68 in ~/Apps/comfyui/venv/bin/python)
frame #49: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #50: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #51: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #52: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #53: ~/Apps/comfyui/venv/bin/python() [0x5edd80]
frame #54: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
frame #55: ~/Apps/comfyui/venv/bin/python() [0x536aaf]
frame #56: ~/Apps/comfyui/venv/bin/python() [0x63705a]
frame #57: _PyObject_MakeTpCall + 0x36c (0x52f70c in ~/Apps/comfyui/venv/bin/python)
frame #58: _PyEval_EvalFrameDefault + 0xd98 (0x54db68 in ~/Apps/comfyui/venv/bin/python)
frame #59: ~/Apps/comfyui/venv/bin/python() [0x58cce4]
frame #60: ~/Apps/comfyui/venv/bin/python() [0x5eddeb]
frame #61: ~/Apps/comfyui/venv/bin/python() [0x5a58fd]
frame #62: _PyEval_EvalFrameDefault + 0x47ec (0x5515bc in ~/Apps/comfyui/venv/bin/python)
 (Triggered internally at /__w/pytorch/pytorch/c10/hip/impl/HIPGuardImpl.h:70.)
  ret = func(*args, **kwargs)
[ERROR] !!! Exception during processing !!! CUDA error: an illegal memory access was encountered
Search for `hipErrorIllegalAddress' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Device-side assertion tracking was not enabled by user.
[ERROR] Traceback (most recent call last):
  File "~/Apps/comfyui/execution.py", line 570, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/execution.py", line 353, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/execution.py", line 327, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "~/Apps/comfyui/execution.py", line 315, in process_inputs
    result = f(**inputs)
  File "~/Apps/comfyui/comfy_api/internal/__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)
  File "~/Apps/comfyui/comfy_api/latest/_io.py", line 2226, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)
  File "~/Apps/comfyui/comfy_extras/nodes_minimax_h3.py", line 174, in execute
    cond = clip.encode_from_tokens_scheduled(tokens)
  File "~/Apps/comfyui/comfy/sd.py", line 357, in encode_from_tokens_scheduled
    pooled_dict = self.encode_from_tokens(tokens, return_pooled=return_pooled, return_dict=True)
  File "~/Apps/comfyui/comfy/sd.py", line 428, in encode_from_tokens
    o = self.cond_stage_model.encode_token_weights(tokens)
  File "~/Apps/comfyui/comfy/sd1_clip.py", line 751, in encode_token_weights
    out = getattr(self, self.clip).encode_token_weights(token_weight_pairs)
  File "~/Apps/comfyui/comfy/text_encoders/minimax.py", line 142, in encode_token_weights
    out = super().encode_token_weights(token_weight_pairs)
  File "~/Apps/comfyui/comfy/sd1_clip.py", line 46, in encode_token_weights
    o = self.encode(to_encode)
  File "~/Apps/comfyui/comfy/sd1_clip.py", line 310, in encode
    return self(tokens)
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1787, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1798, in _call_impl
    return forward_call(*args, **kwargs)
  File "~/Apps/comfyui/comfy/sd1_clip.py", line 283, in forward
    outputs = self.transformer(None, attention_mask_model, embeds=embeds, num_tokens=num_tokens, intermediate_output=intermediate_output, final_layer_norm_intermediate=self.layer_norm_hidden_state, dtype=torch.float32, embeds_info=embeds_info)
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1787, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1798, in _call_impl
    return forward_call(*args, **kwargs)
  File "~/Apps/comfyui/comfy/text_encoders/minimax.py", line 94, in forward
    return super().forward(input_ids, attention_mask=attention_mask, embeds=embeds,
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           num_tokens=num_tokens, intermediate_output=intermediate_output,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           final_layer_norm_intermediate=final_layer_norm_intermediate,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           dtype=dtype, embeds_info=embeds_info, **kwargs)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/comfy/text_encoders/qwen3vl.py", line 101, in forward
    return self.model(
           ~~~~~~~~~~^
        input_ids,
        ^^^^^^^^^^
    ...<10 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1787, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1798, in _call_impl
    return forward_call(*args, **kwargs)
  File "~/Apps/comfyui/comfy/text_encoders/llama.py", line 1169, in forward
    comfy.model_prefetch.prefetch_queue_pop(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        prefetch_queue, x.device, layer, x.dtype, core=core, enable_graph=enable_graph,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        malloc_scope="block"
        ^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "~/Apps/comfyui/comfy/model_prefetch.py", line 253, in prefetch_queue_pop
    core()
    ~~~~^^
  File "~/Apps/comfyui/comfy/text_encoders/llama.py", line 1155, in core
    output, current_kv = layer(
                         ~~~~~^
        x=x,
        ^^^^
    ...<3 lines>...
        past_key_value=past_kv,
        ^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1787, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1798, in _call_impl
    return forward_call(*args, **kwargs)
  File "~/Apps/comfyui/comfy/text_encoders/llama.py", line 924, in forward
    x = self.mlp(x)
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1787, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1798, in _call_impl
    return forward_call(*args, **kwargs)
  File "~/Apps/comfyui/comfy/text_encoders/llama.py", line 890, in forward
    return self.down_proj(self.activation(self.gate_proj(x)) * self.up_proj(x))
                                          ~~~~~~~~~~~~~~^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1787, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/nn/modules/module.py", line 1798, in _call_impl
    return forward_call(*args, **kwargs)
  File "~/Apps/comfyui/comfy/ops.py", line 657, in forward
    return self.forward_comfy_cast_weights(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/custom_nodes/ComfyUI-GGUF/ops.py", line 215, in forward_comfy_cast_weights
    out = self.forward_ggml_cast_weights(input, *args, **kwargs)
  File "~/Apps/comfyui/custom_nodes/ComfyUI-GGUF/ops.py", line 243, in forward_ggml_cast_weights
    weight, bias = self.cast_bias_weight(input)
                   ~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "~/Apps/comfyui/custom_nodes/ComfyUI-GGUF/ops.py", line 209, in cast_bias_weight
    weight = s.get_weight(s.weight.to(device), dtype)
                          ~~~~~~~~~~~^^^^^^^^
  File "~/Apps/comfyui/custom_nodes/ComfyUI-GGUF/ops.py", line 58, in to
    new = super().to(*args, **kwargs)
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/_tensor.py", line 1542, in __torch_function__
    ret = func(*args, **kwargs)
torch.AcceleratorError: CUDA error: an illegal memory access was encountered
Search for `hipErrorIllegalAddress' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Device-side assertion tracking was not enabled by user.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "~/Apps/comfyui/execution.py", line 576, in execute
    comfy.model_management.reset_cast_buffers()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "~/Apps/comfyui/comfy/model_management.py", line 1520, in reset_cast_buffers
    offload_stream.synchronize()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/cuda/streams.py", line 108, in synchronize
    super().synchronize()
    ~~~~~~~~~~~~~~~~~~~^^
torch.AcceleratorError: CUDA error: an illegal memory access was encountered
Search for `hipErrorIllegalAddress' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Device-side assertion tracking was not enabled by user.
[INFO] Prompt executed in 7.36 seconds
Exception in thread Thread-1 (prompt_worker):
Traceback (most recent call last):
  File "/usr/lib/python3.14/threading.py", line 1082, in _bootstrap_inner
    self._context.run(self.run)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.14/threading.py", line 1024, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/main.py", line 436, in prompt_worker
    comfy.model_management.soft_empty_cache()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "~/Apps/comfyui/comfy/model_management.py", line 2261, in soft_empty_cache
    torch.cuda.synchronize()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/cuda/__init__.py", line 1370, in synchronize
    with torch.cuda.device(device):
         ~~~~~~~~~~~~~~~~~^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/cuda/__init__.py", line 738, in __init__
    self.idx = _get_device_index(device, optional=True)
               ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/cuda/_utils.py", line 660, in _get_device_index
    return _torch_get_device_index(device, optional, allow_cpu)
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/_utils.py", line 918, in _get_device_index
    device_idx = _get_current_device_index()
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/_utils.py", line 855, in _get_current_device_index
    return _get_device_attr(lambda m: m.current_device())
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/_utils.py", line 840, in _get_device_attr
    return get_member(torch.cuda)
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/_utils.py", line 855, in <lambda>
    return _get_device_attr(lambda m: m.current_device())
                                      ~~~~~~~~~~~~~~~~^^
  File "~/Apps/comfyui/venv/lib/python3.14/site-packages/torch/cuda/__init__.py", line 1358, in current_device
    return torch._C._cuda_getDevice()
           ~~~~~~~~~~~~~~~~~~~~~~~~^^
torch.AcceleratorError: CUDA error: an illegal memory access was encountered
Search for `hipErrorIllegalAddress' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Device-side assertion tracking was not enabled by user.
Stopping comfyui.service - [systemd-run] ~/Apps/comfyui/venv/bin/python main.py --listen 127.0.0.1 --port 8188 --disable-auto-launch --reserve-vram 3...
/usr/lib/python3.14/multiprocessing/resource_tracker.py:396: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown: {'/mp-lgnjenyg'}
  warnings.warn(
Stopped comfyui.service - [systemd-run] ~/Apps/comfyui/venv/bin/python main.py --listen 127.0.0.1 --port 8188 --disable-auto-launch --reserve-vram 3.
comfyui.service: Consumed 5min 57.619s CPU time over 2min 53.316s wall clock time, 45.3G memory peak.

Kernel log at the moment of the crash (journalctl -k):

kernel: amdgpu 0000:03:00.0: [gfxhub] page fault (src_id:0 ring:157 vmid:8 pasid:132)
kernel: amdgpu 0000:03:00.0:  Process python pid 15397 thread python pid 15397
kernel: amdgpu 0000:03:00.0:   in page starting at address 0x0000749fc3c01000 from client 10
kernel: amdgpu 0000:03:00.0: [gfxhub] page fault (src_id:0 ring:157 vmid:8 pasid:132)
kernel: amdgpu 0000:03:00.0:  Process python pid 15397 thread python pid 15397
kernel: amdgpu 0000:03:00.0:   in page starting at address 0x0000749fc3c01000 from client 10
Other
  • GPU: RX 9070 XT 16 GB (gfx1201), plus a Granite Ridge iGPU hidden with HIP_VISIBLE_DEVICES=0. 124 GB RAM. Linux 7.0.0-44-generic (Ubuntu), Python 3.14.4, comfy-aimdo 0.6.0, comfy-kitchen 0.2.42 (hip backend enabled), PyAV 19.0.2.
  • MiniMax H3-Image (image model, same text encoder) has been stable across many runs. Only the video+audio model shows this.
  • Possibly related: #10997 (HIP illegal memory access on gfx1201 with Z-Image-Turbo).
  • Happy to run a debug build or try specific flags/env vars.
Dominant language
Python
Stars
150k
Forks
17.9k
Avg merge
1d 1h
Merged PRs (30d)
181

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Comfy-Org/ComfyUI

All issues in Comfy-Org/ComfyUI

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.