[GH-ISSUE #9864] gemma3:4b analyzing multiple images causes segmentation fault #68517

Closed
opened 2026-05-04 14:15:56 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @jagauthier on GitHub (Mar 18, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9864

What is the issue?

I am using Home Assistant and LLM vision. I am able to take a snapshot and send it to ollama and get results with gemma3:4b. However, when multiple images are sent the logs show there was a segmentation fault.

Relevant log output

time=2025-03-18T18:40:08.080Z level=DEBUG source=routes.go:1521 msg="chat request" images=2 prompt="<start_of_turn>user\n[img-0]side frame 0:\n\n[img-1]side frame 1:\n\nThe attached images are frames from a live camera feed. Summariz
e the events based on a series of images captured at short intervals. Focus only on moving subjects such as people, vehicles, and other active elements. Ignore static objects and scenery. Provide a clear and concise account of moveme
nts and interactions. Do not mention or imply the existence of images—present the information as if directly observing the events. If no movement is detected, respond with: 'No activity observed.'<end_of_turn>\n<start_of_turn>model\n
"
time=2025-03-18T18:40:08.098Z level=DEBUG source=process_text_spm.go:94 msg=fragments frags="[{value:<start_of_turn> ids:[105]} {value:user\n ids:[]}]"
time=2025-03-18T18:40:08.098Z level=DEBUG source=process_text_spm.go:212 msg="adding bos token to prompt" id=2
time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:94 msg=fragments frags="[{value:side frame 0:\n\n ids:[]}]"
time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[58]} {p:0 n:2 runes:[10]} {p:1 n:3 runes:[10]}]"
time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:0}"
time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[10]}" right="{p:1 n:3 runes:[10]}"
time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:1 runes:[58]} {p:0 n:3 runes:[10 10]} {p:1 n:3 runes:[]}]"
time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:94 msg=fragments frags="[{value:side frame 1:\n\nThe attached images are frames from a live camera feed. Summarize the events based on a series of images captured a
t short intervals. Focus only on moving subjects such as people, vehicles, and other active elements. Ignore static objects and scenery. Provide a clear and concise account of movements and interactions. Do not mention or imply the e
xistence of images—present the information as if directly observing the events. If no movement is detected, respond with: 'No activity observed.' ids:[]} {value:<end_of_turn> ids:[106]} {value:\n ids:[]} {value:<start_of_turn> ids:[1
05]} {value:model\n ids:[]}]"
time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[58]} {p:0 n:2 runes:[10]} {p:1 n:3 runes:[10]}]"
time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:0}"
time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[10]}" right="{p:1 n:3 runes:[10]}"
time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:1 runes:[58]} {p:0 n:3 runes:[10 10]} {p:1 n:3 runes:[]}]"
time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[9601]} {p:0 n:2 runes:[83]} {p:1 n:3 runes:[117]} {p:2 n:4 runes:[109]} {p:3 n:5 runes:[109]} {p:4 n:6 runes:[97]} {p:5
n:7 runes:[114]} {p:6 n:8 runes:[105]} {p:7 n:9 runes:[122]} {p:8 n:10 runes:[101]}]"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:5 b:6 score:-22}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:0 b:1 score:-61}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:7 b:8 score:-191}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:2 b:3 score:-103}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:6 b:7 score:-110}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:4 b:5 score:-347}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:3 b:4 score:-3457}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:8 b:9 score:-1440}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:-4047}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:6 runes:[97]}" right="{p:5 n:7 runes:[114]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:1 runes:[9601]}" right="{p:0 n:2 runes:[83]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:3 runes:[117]}" right="{p:2 n:4 runes:[109]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:5 n:7 runes:[]}" right="{p:5 n:8 runes:[105]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:5 n:8 runes:[105]}" right="{p:7 n:9 runes:[122]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:5 runes:[109]}" right="{p:4 n:7 runes:[97 114]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:9 runes:[105 122]}" right="{p:7 n:10 runes:[101]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:7 runes:[]}" right="{p:4 n:10 runes:[105 122 101]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:7 n:9 runes:[]}" right="{p:7 n:10 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:2 runes:[9601 83]}" right="{p:0 n:4 runes:[117 109]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:4 runes:[]}" right="{p:0 n:7 runes:[109 97 114]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[]}" right="{p:0 n:4 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:7 runes:[109 97 114]}" right="{p:4 n:7 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:4 runes:[9601 83 117 109]}" right="{p:0 n:4 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:4 runes:[]}" right="{p:0 n:7 runes:[109 97 114]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:4 runes:[9601 83 117 109]}" right="{p:0 n:7 runes:[109 97 114]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:7 runes:[9601 83 117 109 109 97 114]} {p:0 n:2 runes:[]} {p:0 n:4 runes:[]} {p:2 n:4 runes:[]} {p:0 n:7 runes:[]} {p:4 n:7 runes:[]}
 {p:5 n:7 runes:[]} {p:0 n:10 runes:[105 122 101]} {p:7 n:9 runes:[]} {p:7 n:10 runes:[]}]"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[8212]} {p:0 n:2 runes:[112]} {p:1 n:3 runes:[114]} {p:2 n:4 runes:[101]} {p:3 n:5 runes:[115]} {p:4 n:6 runes:[101]} {p:
5 n:7 runes:[110]} {p:6 n:8 runes:[116]}]"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:2 b:3 score:-6}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:5 b:6 score:-7}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:3 b:4 score:-13}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:4 b:5 score:-67}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:6 b:7 score:-172}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:-478}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:1 n:3 runes:[114]}" right="{p:2 n:4 runes:[101]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:6 runes:[101]}" right="{p:5 n:7 runes:[110]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:4 runes:[]}" right="{p:2 n:5 runes:[115]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:7 runes:[101 110]}" right="{p:5 n:8 runes:[116]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:5 runes:[115]}" right="{p:4 n:8 runes:[101 110 116]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:1 n:4 runes:[114 101]}" right="{p:2 n:8 runes:[115 101 110 116]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:5 n:7 runes:[]}" right="{p:5 n:8 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[112]}" right="{p:1 n:8 runes:[114 101 115 101 110 116]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:8 runes:[112 114 101 115 101 110 116]}" right="{p:1 n:8 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:1 n:8 runes:[]}" right="{p:2 n:8 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:8 runes:[]}" right="{p:4 n:8 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:8 runes:[112 114 101 115 101 110 116]}" right="{p:1 n:8 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:8 runes:[]}" right="{p:4 n:8 runes:[]}"
time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:1 runes:[8212]} {p:0 n:8 runes:[112 114 101 115 101 110 116]} {p:1 n:8 runes:[]} {p:2 n:4 runes:[]} {p:2 n:8 runes:[]} {p:4 n:8 runes:[]} {p:5 n:7 runes:[]} {p:5 n:8 runes:[]}]"
time=2025-03-18T18:40:08.246Z level=DEBUG source=cache.go:134 msg="loading cache slot" id=0 cache=0 prompt=634 used=0 remaining=634
//ml/backend/ggml/ggml/src/ggml-cuda/im2col.cu:72: GGML_ASSERT(src1->type == GGML_TYPE_F32) failed
SIGSEGV: segmentation violation
PC=0x7f7318decc57 m=375 sigcode=1 addr=0x2048039ac
signal arrived during cgo execution

goroutine 10 gp=0xc000102c40 m=375 mp=0xc04cd65008 [syscall]:
runtime.cgocall(0x555abf1241e0, 0xc000119b00)
        runtime/cgocall.go:167 +0x4b fp=0xc000119ad8 sp=0xc000119aa0 pc=0x555abe2f060b
github.com/ollama/ollama/ml/backend/ggml._Cfunc_ggml_backend_sched_graph_compute_async(0x7f6fe800a140, 0x7f6ea1bfa2c0)
        _cgo_gotypes.go:485 +0x4a fp=0xc000119b00 sp=0xc000119ad8 pc=0x555abe6db8ca
github.com/ollama/ollama/ml/backend/ggml.Context.Compute.func1(...)
        github.com/ollama/ollama/ml/backend/ggml/ggml.go:497
github.com/ollama/ollama/ml/backend/ggml.Context.Compute({0xc0002e0180, 0x7f7308c25260, 0x7f6ea1bfa2c0, 0x0, 0x2000}, {0xc0f4b7cd00, 0x1, 0x555abf5df550?})
        github.com/ollama/ollama/ml/backend/ggml/ggml.go:497 +0xbd fp=0xc000119b90 sp=0xc000119b00 pc=0x555abe6e419d
github.com/ollama/ollama/ml/backend/ggml.(*Context).Compute(0xc0f5fbd290?, {0xc0f4b7cd00?, 0x80?, 0xc000544180?})
        <autogenerated>:1 +0x72 fp=0xc000119c08 sp=0xc000119b90 pc=0x555abe6e9c12
github.com/ollama/ollama/model.Forward({0x555abf5d6f40, 0xc0f5fbd290}, {0x555abf5ce610, 0xc000328070}, {{0xc0df0a5a00, 0x7a, 0x80}, {0xc000544180, 0x10, 0x10}, ...})
        github.com/ollama/ollama/model/model.go:305 +0x218 fp=0xc000119cf0 sp=0xc000119c08 pc=0x555abe710e38
github.com/ollama/ollama/runner/ollamarunner.(*Server).processBatch(0xc000559440)
        github.com/ollama/ollama/runner/ollamarunner/runner.go:395 +0x3bb fp=0xc000119f98 sp=0xc000119cf0 pc=0x555abe77f27b
github.com/ollama/ollama/runner/ollamarunner.(*Server).run(0xc000559440, {0x555abf5cf940, 0xc0000f2eb0})
        github.com/ollama/ollama/runner/ollamarunner/runner.go:321 +0x4e fp=0xc000119fb8 sp=0xc000119f98 pc=0x555abe77ee6e
github.com/ollama/ollama/runner/ollamarunner.Execute.gowrap2()
        github.com/ollama/ollama/runner/ollamarunner/runner.go:860 +0x28 fp=0xc000119fe0 sp=0xc000119fb8 pc=0x555abe7830e8
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000119fe8 sp=0xc000119fe0 pc=0x555abe2fb021
created by github.com/ollama/ollama/runner/ollamarunner.Execute in goroutine 1
        github.com/ollama/ollama/runner/ollamarunner/runner.go:860 +0xa9c
oroutine 1 gp=0xc000002380 m=nil [IO wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:435 +0xce fp=0xc00011b648 sp=0xc00011b628 pc=0x555abe2f38ee
runtime.netpollblock(0xc00011b698?, 0xbe28d226?, 0x5a?)
        runtime/netpoll.go:575 +0xf7 fp=0xc00011b680 sp=0xc00011b648 pc=0x555abe2b86f7
internal/poll.runtime_pollWait(0x7f73301b7eb0, 0x72)
        runtime/netpoll.go:351 +0x85 fp=0xc00011b6a0 sp=0xc00011b680 pc=0x555abe2f2b05
internal/poll.(*pollDesc).wait(0xc00059da00?, 0x900296cfe?, 0x0)
        internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc00011b6c8 sp=0xc00011b6a0 pc=0x555abe379f87
internal/poll.(*pollDesc).waitRead(...)
        internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc00059da00)
        internal/poll/fd_unix.go:620 +0x295 fp=0xc00011b770 sp=0xc00011b6c8 pc=0x555abe37f355
net.(*netFD).accept(0xc00059da00)
        net/fd_unix.go:172 +0x29 fp=0xc00011b828 sp=0xc00011b770 pc=0x555abe3f2169
net.(*TCPListener).accept(0xc0002e0240)
        net/tcpsock_posix.go:159 +0x1b fp=0xc00011b878 sp=0xc00011b828 pc=0x555abe407b1b
net.(*TCPListener).Accept(0xc0002e0240)
        net/tcpsock.go:380 +0x30 fp=0xc00011b8a8 sp=0xc00011b878 pc=0x555abe4069d0
net/http.(*onceCloseListener).Accept(0xc000236090?)
        <autogenerated>:1 +0x24 fp=0xc00011b8c0 sp=0xc00011b8a8 pc=0x555abe61e004
net/http.(*Server).Serve(0xc00050f400, {0x555abf5cd678, 0xc0002e0240})
        net/http/server.go:3424 +0x30c fp=0xc00011b9f0 sp=0xc00011b8c0 pc=0x555abe5f58cc
github.com/ollama/ollama/runner/ollamarunner.Execute({0xc000034150, 0xf, 0xf})
        github.com/ollama/ollama/runner/ollamarunner/runner.go:884 +0xe29 fp=0xc00011bd08 sp=0xc00011b9f0 pc=0x555abe782e29
github.com/ollama/ollama/runner.Execute({0xc000034130?, 0x0?, 0x0?})
        github.com/ollama/ollama/runner/runner.go:20 +0xc9 fp=0xc00011bd30 sp=0xc00011bd08 pc=0x555abe783909
github.com/ollama/ollama/cmd.NewCLI.func2(0xc00050f000?, {0x555abf13f054?, 0x4?, 0x555abf13f058?})
        github.com/ollama/ollama/cmd/cmd.go:1327 +0x45 fp=0xc00011bd58 sp=0xc00011bd30 pc=0x555abeef48a5
github.com/spf13/cobra.(*Command).execute(0xc0004bcf08, {0xc00050f200, 0x10, 0x10})
        github.com/spf13/cobra@v1.7.0/command.go:940 +0x85c fp=0xc00011be78 sp=0xc00011bd58 pc=0x555abe46b7bc
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004a6908)
        github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 fp=0xc00011bf30 sp=0xc00011be78 pc=0x555abe46c005
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.7.0/command.go:992
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        github.com/spf13/cobra@v1.7.0/command.go:985
main.main()
        github.com/ollama/ollama/main.go:12 +0x4d fp=0xc00011bf50 sp=0xc00011bf30 pc=0x555abeef4c0d
runtime.main()
        runtime/proc.go:283 +0x29d fp=0xc00011bfe0 sp=0xc00011bf50 pc=0x555abe2bfcfd
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00011bfe8 sp=0xc00011bfe0 pc=0x555abe2fb021

goroutine 2 gp=0xc000002e00 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:435 +0xce fp=0xc000072fa8 sp=0xc000072f88 pc=0x555abe2f38ee
runtime.goparkunlock(...)
        runtime/proc.go:441
runtime.forcegchelper()
        runtime/proc.go:348 +0xb8 fp=0xc000072fe0 sp=0xc000072fa8 pc=0x555abe2c0038
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000072fe8 sp=0xc000072fe0 pc=0x555abe2fb021
created by runtime.init.7 in goroutine 1
        runtime/proc.go:336 +0x1a

goroutine 3 gp=0xc000003340 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @jagauthier on GitHub (Mar 18, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9864 ### What is the issue? I am using Home Assistant and LLM vision. I am able to take a snapshot and send it to ollama and get results with gemma3:4b. However, when multiple images are sent the logs show there was a segmentation fault. ### Relevant log output ```shell time=2025-03-18T18:40:08.080Z level=DEBUG source=routes.go:1521 msg="chat request" images=2 prompt="<start_of_turn>user\n[img-0]side frame 0:\n\n[img-1]side frame 1:\n\nThe attached images are frames from a live camera feed. Summariz e the events based on a series of images captured at short intervals. Focus only on moving subjects such as people, vehicles, and other active elements. Ignore static objects and scenery. Provide a clear and concise account of moveme nts and interactions. Do not mention or imply the existence of images—present the information as if directly observing the events. If no movement is detected, respond with: 'No activity observed.'<end_of_turn>\n<start_of_turn>model\n " time=2025-03-18T18:40:08.098Z level=DEBUG source=process_text_spm.go:94 msg=fragments frags="[{value:<start_of_turn> ids:[105]} {value:user\n ids:[]}]" time=2025-03-18T18:40:08.098Z level=DEBUG source=process_text_spm.go:212 msg="adding bos token to prompt" id=2 time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:94 msg=fragments frags="[{value:side frame 0:\n\n ids:[]}]" time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[58]} {p:0 n:2 runes:[10]} {p:1 n:3 runes:[10]}]" time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:0}" time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[10]}" right="{p:1 n:3 runes:[10]}" time=2025-03-18T18:40:08.172Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:1 runes:[58]} {p:0 n:3 runes:[10 10]} {p:1 n:3 runes:[]}]" time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:94 msg=fragments frags="[{value:side frame 1:\n\nThe attached images are frames from a live camera feed. Summarize the events based on a series of images captured a t short intervals. Focus only on moving subjects such as people, vehicles, and other active elements. Ignore static objects and scenery. Provide a clear and concise account of movements and interactions. Do not mention or imply the e xistence of images—present the information as if directly observing the events. If no movement is detected, respond with: 'No activity observed.' ids:[]} {value:<end_of_turn> ids:[106]} {value:\n ids:[]} {value:<start_of_turn> ids:[1 05]} {value:model\n ids:[]}]" time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[58]} {p:0 n:2 runes:[10]} {p:1 n:3 runes:[10]}]" time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:0}" time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[10]}" right="{p:1 n:3 runes:[10]}" time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:1 runes:[58]} {p:0 n:3 runes:[10 10]} {p:1 n:3 runes:[]}]" time=2025-03-18T18:40:08.245Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[9601]} {p:0 n:2 runes:[83]} {p:1 n:3 runes:[117]} {p:2 n:4 runes:[109]} {p:3 n:5 runes:[109]} {p:4 n:6 runes:[97]} {p:5 n:7 runes:[114]} {p:6 n:8 runes:[105]} {p:7 n:9 runes:[122]} {p:8 n:10 runes:[101]}]" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:5 b:6 score:-22}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:0 b:1 score:-61}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:7 b:8 score:-191}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:2 b:3 score:-103}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:6 b:7 score:-110}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:4 b:5 score:-347}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:3 b:4 score:-3457}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:8 b:9 score:-1440}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:-4047}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:6 runes:[97]}" right="{p:5 n:7 runes:[114]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:1 runes:[9601]}" right="{p:0 n:2 runes:[83]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:3 runes:[117]}" right="{p:2 n:4 runes:[109]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:5 n:7 runes:[]}" right="{p:5 n:8 runes:[105]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:5 n:8 runes:[105]}" right="{p:7 n:9 runes:[122]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:5 runes:[109]}" right="{p:4 n:7 runes:[97 114]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:9 runes:[105 122]}" right="{p:7 n:10 runes:[101]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:7 runes:[]}" right="{p:4 n:10 runes:[105 122 101]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:7 n:9 runes:[]}" right="{p:7 n:10 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:2 runes:[9601 83]}" right="{p:0 n:4 runes:[117 109]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:4 runes:[]}" right="{p:0 n:7 runes:[109 97 114]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[]}" right="{p:0 n:4 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:7 runes:[109 97 114]}" right="{p:4 n:7 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:4 runes:[9601 83 117 109]}" right="{p:0 n:4 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:4 runes:[]}" right="{p:0 n:7 runes:[109 97 114]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:-1 n:4 runes:[9601 83 117 109]}" right="{p:0 n:7 runes:[109 97 114]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:7 runes:[9601 83 117 109 109 97 114]} {p:0 n:2 runes:[]} {p:0 n:4 runes:[]} {p:2 n:4 runes:[]} {p:0 n:7 runes:[]} {p:4 n:7 runes:[]} {p:5 n:7 runes:[]} {p:0 n:10 runes:[105 122 101]} {p:7 n:9 runes:[]} {p:7 n:10 runes:[]}]" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:132 msg=tokenizer merges="[{p:-1 n:1 runes:[8212]} {p:0 n:2 runes:[112]} {p:1 n:3 runes:[114]} {p:2 n:4 runes:[101]} {p:3 n:5 runes:[115]} {p:4 n:6 runes:[101]} {p: 5 n:7 runes:[110]} {p:6 n:8 runes:[116]}]" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:2 b:3 score:-6}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:5 b:6 score:-7}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:3 b:4 score:-13}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:4 b:5 score:-67}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:6 b:7 score:-172}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:159 msg=candidate candidate="&{a:1 b:2 score:-478}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:1 n:3 runes:[114]}" right="{p:2 n:4 runes:[101]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:6 runes:[101]}" right="{p:5 n:7 runes:[110]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:4 runes:[]}" right="{p:2 n:5 runes:[115]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:4 n:7 runes:[101 110]}" right="{p:5 n:8 runes:[116]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:5 runes:[115]}" right="{p:4 n:8 runes:[101 110 116]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:1 n:4 runes:[114 101]}" right="{p:2 n:8 runes:[115 101 110 116]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:5 n:7 runes:[]}" right="{p:5 n:8 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:2 runes:[112]}" right="{p:1 n:8 runes:[114 101 115 101 110 116]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:8 runes:[112 114 101 115 101 110 116]}" right="{p:1 n:8 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:1 n:8 runes:[]}" right="{p:2 n:8 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:8 runes:[]}" right="{p:4 n:8 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:0 n:8 runes:[112 114 101 115 101 110 116]}" right="{p:1 n:8 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:167 msg=pair left="{p:2 n:8 runes:[]}" right="{p:4 n:8 runes:[]}" time=2025-03-18T18:40:08.246Z level=DEBUG source=process_text_spm.go:192 msg=merges merges="[{p:-1 n:1 runes:[8212]} {p:0 n:8 runes:[112 114 101 115 101 110 116]} {p:1 n:8 runes:[]} {p:2 n:4 runes:[]} {p:2 n:8 runes:[]} {p:4 n:8 runes:[]} {p:5 n:7 runes:[]} {p:5 n:8 runes:[]}]" time=2025-03-18T18:40:08.246Z level=DEBUG source=cache.go:134 msg="loading cache slot" id=0 cache=0 prompt=634 used=0 remaining=634 //ml/backend/ggml/ggml/src/ggml-cuda/im2col.cu:72: GGML_ASSERT(src1->type == GGML_TYPE_F32) failed SIGSEGV: segmentation violation PC=0x7f7318decc57 m=375 sigcode=1 addr=0x2048039ac signal arrived during cgo execution goroutine 10 gp=0xc000102c40 m=375 mp=0xc04cd65008 [syscall]: runtime.cgocall(0x555abf1241e0, 0xc000119b00) runtime/cgocall.go:167 +0x4b fp=0xc000119ad8 sp=0xc000119aa0 pc=0x555abe2f060b github.com/ollama/ollama/ml/backend/ggml._Cfunc_ggml_backend_sched_graph_compute_async(0x7f6fe800a140, 0x7f6ea1bfa2c0) _cgo_gotypes.go:485 +0x4a fp=0xc000119b00 sp=0xc000119ad8 pc=0x555abe6db8ca github.com/ollama/ollama/ml/backend/ggml.Context.Compute.func1(...) github.com/ollama/ollama/ml/backend/ggml/ggml.go:497 github.com/ollama/ollama/ml/backend/ggml.Context.Compute({0xc0002e0180, 0x7f7308c25260, 0x7f6ea1bfa2c0, 0x0, 0x2000}, {0xc0f4b7cd00, 0x1, 0x555abf5df550?}) github.com/ollama/ollama/ml/backend/ggml/ggml.go:497 +0xbd fp=0xc000119b90 sp=0xc000119b00 pc=0x555abe6e419d github.com/ollama/ollama/ml/backend/ggml.(*Context).Compute(0xc0f5fbd290?, {0xc0f4b7cd00?, 0x80?, 0xc000544180?}) <autogenerated>:1 +0x72 fp=0xc000119c08 sp=0xc000119b90 pc=0x555abe6e9c12 github.com/ollama/ollama/model.Forward({0x555abf5d6f40, 0xc0f5fbd290}, {0x555abf5ce610, 0xc000328070}, {{0xc0df0a5a00, 0x7a, 0x80}, {0xc000544180, 0x10, 0x10}, ...}) github.com/ollama/ollama/model/model.go:305 +0x218 fp=0xc000119cf0 sp=0xc000119c08 pc=0x555abe710e38 github.com/ollama/ollama/runner/ollamarunner.(*Server).processBatch(0xc000559440) github.com/ollama/ollama/runner/ollamarunner/runner.go:395 +0x3bb fp=0xc000119f98 sp=0xc000119cf0 pc=0x555abe77f27b github.com/ollama/ollama/runner/ollamarunner.(*Server).run(0xc000559440, {0x555abf5cf940, 0xc0000f2eb0}) github.com/ollama/ollama/runner/ollamarunner/runner.go:321 +0x4e fp=0xc000119fb8 sp=0xc000119f98 pc=0x555abe77ee6e github.com/ollama/ollama/runner/ollamarunner.Execute.gowrap2() github.com/ollama/ollama/runner/ollamarunner/runner.go:860 +0x28 fp=0xc000119fe0 sp=0xc000119fb8 pc=0x555abe7830e8 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc000119fe8 sp=0xc000119fe0 pc=0x555abe2fb021 created by github.com/ollama/ollama/runner/ollamarunner.Execute in goroutine 1 github.com/ollama/ollama/runner/ollamarunner/runner.go:860 +0xa9c oroutine 1 gp=0xc000002380 m=nil [IO wait]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:435 +0xce fp=0xc00011b648 sp=0xc00011b628 pc=0x555abe2f38ee runtime.netpollblock(0xc00011b698?, 0xbe28d226?, 0x5a?) runtime/netpoll.go:575 +0xf7 fp=0xc00011b680 sp=0xc00011b648 pc=0x555abe2b86f7 internal/poll.runtime_pollWait(0x7f73301b7eb0, 0x72) runtime/netpoll.go:351 +0x85 fp=0xc00011b6a0 sp=0xc00011b680 pc=0x555abe2f2b05 internal/poll.(*pollDesc).wait(0xc00059da00?, 0x900296cfe?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc00011b6c8 sp=0xc00011b6a0 pc=0x555abe379f87 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc00059da00) internal/poll/fd_unix.go:620 +0x295 fp=0xc00011b770 sp=0xc00011b6c8 pc=0x555abe37f355 net.(*netFD).accept(0xc00059da00) net/fd_unix.go:172 +0x29 fp=0xc00011b828 sp=0xc00011b770 pc=0x555abe3f2169 net.(*TCPListener).accept(0xc0002e0240) net/tcpsock_posix.go:159 +0x1b fp=0xc00011b878 sp=0xc00011b828 pc=0x555abe407b1b net.(*TCPListener).Accept(0xc0002e0240) net/tcpsock.go:380 +0x30 fp=0xc00011b8a8 sp=0xc00011b878 pc=0x555abe4069d0 net/http.(*onceCloseListener).Accept(0xc000236090?) <autogenerated>:1 +0x24 fp=0xc00011b8c0 sp=0xc00011b8a8 pc=0x555abe61e004 net/http.(*Server).Serve(0xc00050f400, {0x555abf5cd678, 0xc0002e0240}) net/http/server.go:3424 +0x30c fp=0xc00011b9f0 sp=0xc00011b8c0 pc=0x555abe5f58cc github.com/ollama/ollama/runner/ollamarunner.Execute({0xc000034150, 0xf, 0xf}) github.com/ollama/ollama/runner/ollamarunner/runner.go:884 +0xe29 fp=0xc00011bd08 sp=0xc00011b9f0 pc=0x555abe782e29 github.com/ollama/ollama/runner.Execute({0xc000034130?, 0x0?, 0x0?}) github.com/ollama/ollama/runner/runner.go:20 +0xc9 fp=0xc00011bd30 sp=0xc00011bd08 pc=0x555abe783909 github.com/ollama/ollama/cmd.NewCLI.func2(0xc00050f000?, {0x555abf13f054?, 0x4?, 0x555abf13f058?}) github.com/ollama/ollama/cmd/cmd.go:1327 +0x45 fp=0xc00011bd58 sp=0xc00011bd30 pc=0x555abeef48a5 github.com/spf13/cobra.(*Command).execute(0xc0004bcf08, {0xc00050f200, 0x10, 0x10}) github.com/spf13/cobra@v1.7.0/command.go:940 +0x85c fp=0xc00011be78 sp=0xc00011bd58 pc=0x555abe46b7bc github.com/spf13/cobra.(*Command).ExecuteC(0xc0004a6908) github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 fp=0xc00011bf30 sp=0xc00011be78 pc=0x555abe46c005 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.7.0/command.go:992 github.com/spf13/cobra.(*Command).ExecuteContext(...) github.com/spf13/cobra@v1.7.0/command.go:985 main.main() github.com/ollama/ollama/main.go:12 +0x4d fp=0xc00011bf50 sp=0xc00011bf30 pc=0x555abeef4c0d runtime.main() runtime/proc.go:283 +0x29d fp=0xc00011bfe0 sp=0xc00011bf50 pc=0x555abe2bfcfd runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc00011bfe8 sp=0xc00011bfe0 pc=0x555abe2fb021 goroutine 2 gp=0xc000002e00 m=nil [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:435 +0xce fp=0xc000072fa8 sp=0xc000072f88 pc=0x555abe2f38ee runtime.goparkunlock(...) runtime/proc.go:441 runtime.forcegchelper() runtime/proc.go:348 +0xb8 fp=0xc000072fe0 sp=0xc000072fa8 pc=0x555abe2c0038 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc000072fe8 sp=0xc000072fe0 pc=0x555abe2fb021 created by runtime.init.7 in goroutine 1 runtime/proc.go:336 +0x1a goroutine 3 gp=0xc000003340 m=nil [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-05-04 14:15:56 -05:00
Author
Owner

@jessegross commented on GitHub (Mar 18, 2025):

What version is this?

<!-- gh-comment-id:2734558520 --> @jessegross commented on GitHub (Mar 18, 2025): What version is this?
Author
Owner

@jagauthier commented on GitHub (Mar 18, 2025):

$ docker exec ollama ollama -v
ollama version is 0.6.1

<!-- gh-comment-id:2734566812 --> @jagauthier commented on GitHub (Mar 18, 2025): `$ docker exec ollama ollama -v` `ollama version is 0.6.1`
Author
Owner

@jessegross commented on GitHub (Mar 18, 2025):

Please upgrade to the recently released 0.6.2 - that addresses issues with multiple images.

<!-- gh-comment-id:2734618628 --> @jessegross commented on GitHub (Mar 18, 2025): Please upgrade to the recently released 0.6.2 - that addresses issues with multiple images.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68517