Heath Albritton
bc549da0f7
server : catch sampler/grammar exceptions to avoid process abort ( #1725 ) ( #1726 )
...
Wrap the two slot-level sample/accept call sites in
try/catch (std::exception). On exception: log, send_error to the
task, release the slot, continue serving. Matches the existing
try/catch around common_sampler_init in the same file.
Without this, llama_grammar_accept_token throwing
"Unexpected empty grammar stack after accepting piece: <pad> (0)"
(reproducible on Gemma 4 + json_schema + ctx_shift, see #1725 )
unwinds out of update_slots -> queue start_loop -> main, hits
std::terminate, and aborts the whole server process.
2026-05-03 08:21:09 +03:00
..
2024-08-12 15:14:32 +02:00
2026-02-13 19:04:55 +01:00
2026-02-13 19:04:55 +01:00
2024-07-27 07:55:01 +02:00
2026-04-23 09:05:39 +02:00
2026-02-13 19:04:55 +01:00
2026-02-13 19:04:55 +01:00
2024-07-27 07:55:01 +02:00
2026-02-13 19:04:55 +01:00
2026-02-13 19:04:55 +01:00
2025-07-02 08:49:42 +02:00
2026-03-09 11:03:33 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2026-03-02 08:43:47 +01:00
2026-02-13 19:04:55 +01:00
2026-03-13 17:57:38 +01:00
2026-02-13 19:04:55 +01:00
2024-06-13 00:41:52 +01:00
2026-04-16 08:54:44 +02:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2025-06-19 10:24:53 +03:00
2026-02-13 19:04:55 +01:00
2026-02-13 19:04:55 +01:00
2026-03-09 11:03:33 +01:00
2024-07-27 07:55:01 +02:00
2026-04-16 17:26:31 +02:00
2026-02-13 19:04:55 +01:00
2026-04-22 10:04:13 +02:00
2026-02-13 19:04:55 +01:00
2026-05-02 16:08:49 +03:00
2026-04-23 09:05:39 +02:00
2026-04-23 09:05:39 +02:00
2026-02-13 19:04:55 +01:00
2025-12-15 08:27:20 +01:00
2026-02-26 06:51:18 +01:00
2026-05-03 08:21:09 +03:00
2026-02-13 19:04:55 +01:00
2026-04-22 10:04:13 +02:00
2026-03-24 07:49:40 +01:00
2024-08-12 15:14:32 +02:00
2026-02-13 19:04:55 +01:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2025-09-27 08:45:29 +02:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2026-04-22 10:04:13 +02:00
2024-01-23 08:51:27 +02:00
2023-08-30 09:50:55 +03:00
2024-06-13 00:41:52 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2024-06-13 00:41:52 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2024-06-13 00:41:52 +01:00
2024-04-12 19:43:38 +01:00