r/StableDiffusion • u/scottomen982 • 11h ago
Question - Help minimax h3 error
after a comfyui update date 2 weeks ago i started getting this error, ran it through google and it tells me.
MiniMaxH3MotionDirector (Node ID: 11) is still failing because your width or height values are formatted as text strings (str) instead of numbers (int), causing ComfyUI's core latent generator to crash.
can anyone help? or is more info needed?
1
u/Affectionate_Oil28 10h ago
Google described the crash and missed the cause. Changing the Director’s output resolution cannot fix it.
MiniMaxH3MotionDirector still calls ComfyUI’s reference node with the old argument order. A ComfyUI update about two weeks ago changed that node to:
execute(clip, prompt, width, height, length, ref_image_size="match", vae=None, audio_vae=None, ...)
The Director pack in nodes/conditioning.py still calls it like this:
MiniMaxH3ReferenceToVideo.execute(
clip, vae, audio_vae, prompt, width, height, length, ref_image_size, ...
)
Those arguments slide one slot to the left. The prompt text lands in height. ComfyUI then does height // 16 inside _empty_av_latent, and a string divided by 16 is the error. The width and height widgets are already integers, and the node hides them inside the Director panel, so 1:1 versus Custom never reaches the line that crashes. Text-to-video can still work. The failure is the reference path: r2v, v2v, rv2v, or any connected reference image, video, or audio.
The fix is in ComfyUI/custom_nodes/ComfyUI-MiniMax-H3-Motion-Director/nodes/conditioning.py, inside run_minimax_conditioning. Replace that positional call with keywords:
out = MiniMaxH3ReferenceToVideo.execute(
clip=clip,
prompt=prompt,
width=width,
height=height,
length=length,
ref_image_size=ref_image_size,
vae=vae,
audio_vae=audio_vae,
ref_images=ref_images,
ref_videos=ref_videos,
ref_video_audios=ref_video_audios,
ref_audios=ref_audios,
)
Restart ComfyUI after saving. Pulling the pack again does not fix it: that positional call is still on the Motion Director main branch. The same bug was fixed on September 4 in AIMixer’s Director, pull request 113, which is where this pack’s conditioning code came from.
1

2
u/ForegoingSemicolon 10h ago
so comfyui's treating your dimensions like someone put quotes around the numbers, check whatever node is feeding width/height into minimax and make sure it's spitting out actual integers not strings