[GH-ISSUE #2367] /api/chat and /api/generate hang if image cannot be decoded #63412

Closed
opened 2026-05-03 13:23:59 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @jmorganca on GitHub (Feb 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2367

Originally assigned to: @jmorganca on GitHub.

llama_new_context_with_model: graph splits (measure): 3
2024/02/05 21:13:46 dyn_ext_server.go:156: INFO Starting llama main loop
2024/02/05 21:13:46 dyn_ext_server.go:170: INFO loaded 1 images
clip_image_load_from_bytes: failed to decode image bytes
Originally created by @jmorganca on GitHub (Feb 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2367 Originally assigned to: @jmorganca on GitHub. ``` llama_new_context_with_model: graph splits (measure): 3 2024/02/05 21:13:46 dyn_ext_server.go:156: INFO Starting llama main loop 2024/02/05 21:13:46 dyn_ext_server.go:170: INFO loaded 1 images clip_image_load_from_bytes: failed to decode image bytes ```
GiteaMirror added the bug label 2026-05-03 13:23:59 -05:00
Author
Owner

@xycjscs commented on GitHub (Feb 7, 2024):

Same issue here.

<!-- gh-comment-id:1932360965 --> @xycjscs commented on GitHub (Feb 7, 2024): Same issue here.
Author
Owner

@ercanozer commented on GitHub (Feb 10, 2024):

Same isue, here and this is a very critical issue. We cannot run our PROD on this, in case image cannot be decoded and whole service hangs up ? Can someone please look into this.

<!-- gh-comment-id:1937014116 --> @ercanozer commented on GitHub (Feb 10, 2024): Same isue, here and this is a very critical issue. We cannot run our PROD on this, in case image cannot be decoded and whole service hangs up ? Can someone please look into this.
Author
Owner

@jmorganca commented on GitHub (Feb 11, 2024):

Sorry about hitting this error – would it be possible to share which resolution images you are sending, and how many in the request? Or even if you have an anonymous sample image that might trigger it? This will help track down why it might be crashing.

<!-- gh-comment-id:1937823185 --> @jmorganca commented on GitHub (Feb 11, 2024): Sorry about hitting this error – would it be possible to share which resolution images you are sending, and how many in the request? Or even if you have an anonymous sample image that might trigger it? This will help track down why it might be crashing.
Author
Owner

@jmorganca commented on GitHub (Feb 20, 2024):

This should be fixed as of 0.1.25. Let me know if you still encounter it!

<!-- gh-comment-id:1953451225 --> @jmorganca commented on GitHub (Feb 20, 2024): This should be fixed as of 0.1.25. Let me know if you still encounter it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63412