Skip to content

mtmd: fix hanging with specific video-vision mtmd in Windows - #27500

Open
craftingmod wants to merge 3 commits into
ggml-org:masterfrom
craftingmod:fix-windows-mtmd-hang
Open

mtmd: fix hanging with specific video-vision mtmd in Windows#27500
craftingmod wants to merge 3 commits into
ggml-org:masterfrom
craftingmod:fix-windows-mtmd-hang

Conversation

@craftingmod

Copy link
Copy Markdown

Overview

This PR fixes hanging while using some specific video-vision in Windows, ensure closing handle whatever alive is true or false.
This commit ensures hStdInput is closed before feeder.join(), so the blocked write in the feeder can fail and return.

Related issue: #24429 (Not sure about faststart, but same hanging with video.)

Additional information

Regression test is on tools/mtmd/tests/mtmd-hang-test with README.

tested on llama.cpp CLI CPU build.

Requirements

  • I have read and agree with the contributing guidelines: YES
  • AI usage disclosure: YES, for validating, researching and fixing the issue. (regression test is manually designed and coded.)

…ting `feeder.join()` forever in `subprocess_handle`

Assisted-by: Codex (GPT 5.6 Luna)

Related: ggml-org#24429

Reference: warshanks@30939e8
@craftingmod
craftingmod requested a review from a team as a code owner August 21, 2026 12:09
@github-actions github-actions Bot added documentation Improvements or additions to documentation mtmd Related to multimodal functionality (video/image/audio) labels Aug 21, 2026
@craftingmod

Copy link
Copy Markdown
Author

Well It's not documentation PR.

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

Labels

documentation Improvements or additions to documentation mtmd Related to multimodal functionality (video/image/audio)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant