<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to debug Module LLM Kit when it silently dies?]]></title><description><![CDATA[<p dir="auto">Hi, I've just got Module LLM Kit and got started with CoreS3 Lite by running some examples.</p>
<p dir="auto">TextAssistant works well:<br />
<a href="https://github.com/m5stack/M5Module-LLM/blob/main/examples/TextAssistant/TextAssistant.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Module-LLM/blob/main/examples/TextAssistant/TextAssistant.ino</a></p>
<p dir="auto">However, TTS never works. It keeps sending the text to TTS module but no audio sounds:<br />
<a href="https://github.com/m5stack/M5Module-LLM/blob/main/examples/TTS/TTS.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Module-LLM/blob/main/examples/TTS/TTS.ino</a></p>
<p dir="auto">I installed many apt packages but nothing changed. So, I tried <code>strace</code> because I don't know where the log output is and realized that <code>llm-sys</code> restarted once it receives a message. I couldn't spot the exact message yet but the last message was something like this:</p>
<pre><code>[pid  3285] write(1, "W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\n\33[1;30;33m[W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys\33[0m\nllm_sys will be exit!\n", 1526) = 1526
</code></pre>
<p dir="auto">Q: Is there anyway to debug more on the LLM Kit side?</p>
<p dir="auto">Update:</p>
<p dir="auto">I realized they are systemd services. So, these are the logs:</p>
<p dir="auto"><code>llm-tts.service</code></p>
<pre><code>root@m5stack-LLM:~# journalctl -u llm-tts -f
Oct 01 03:34:11 m5stack-LLM systemd[1]: Started llm-tts Service.
Oct 01 03:34:45 m5stack-LLM llm_tts-1.6[10412]: [I][operator()][ 189]: serial_zmq_url:ipc:///tmp/llm/5556.sock
Oct 01 03:34:45 m5stack-LLM llm_tts-1.6[10412]: [W][__sigint][  24]: llm_sys will be exit!
Oct 01 03:34:45 m5stack-LLM systemd[1]: Stopping llm-tts Service...
Oct 01 03:34:45 m5stack-LLM systemd[1]: llm-tts.service: Deactivated successfully.
Oct 01 03:34:45 m5stack-LLM systemd[1]: Stopped llm-tts Service.
Oct 01 03:34:45 m5stack-LLM systemd[1]: Started llm-tts Service.
</code></pre>
<p dir="auto"><code>llm-sys.service</code></p>
<pre><code>Oct 01 03:34:10 m5stack-LLM systemd[1]: Started llm-sys Service.
Oct 01 03:34:45 m5stack-LLM systemd[1]: Stopping llm-sys Service...
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: server listen on port 10001, listenfd=18 ...
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: [W][zmq_bus_publisher_push][ 171]: zmq_bus_publisher_push failed, not have work_id:sys
Oct 01 03:34:45 m5stack-LLM llm_sys-1.6[10266]: llm_sys will be exit!
Oct 01 03:34:45 m5stack-LLM systemd[1]: llm-sys.service: Deactivated successfully.
Oct 01 03:34:45 m5stack-LLM systemd[1]: Stopped llm-sys Service.
Oct 01 03:34:45 m5stack-LLM systemd[1]: Started llm-sys Service.
</code></pre>
<hr />
<p dir="auto">My environment:</p>
<ul>
<li>M5Stack CoreS3 Lite
<ul>
<li>PlatformIO
<ul>
<li>pioarduino stable</li>
<li>lib_deps = M5Unified, M5Module-LLM</li>
</ul>
</li>
</ul>
</li>
<li>Module LLM Kit
<ul>
<li><code>apt update</code> and <code>apt upgrade</code></li>
<li><code>apt list | grep llm | grep installed</code> is below:</li>
</ul>
</li>
</ul>
<pre><code>lib-llm/stable,now 1.8 arm64 [installed]
llm-asr/stable,now 1.7 arm64 [installed]
llm-audio-en-us/now 0.2 arm64 [installed,local]
llm-audio-zh-cn/now 0.2 arm64 [installed,local]
llm-audio/stable,now 1.6 arm64 [installed]
llm-camera/stable,now 1.9 arm64 [installed]
llm-kws/stable,now 1.9 arm64 [installed]
llm-llm/stable,now 1.9 arm64 [installed]
llm-melotts-zh-cn/now 0.2 arm64 [installed,local]
llm-melotts/stable,now 1.9 arm64 [installed]
llm-model-melotts-en-default/stable,now 0.6 arm64 [installed]
llm-model-melotts-en-us/stable,now 0.6 arm64 [installed]
llm-model-melotts-ja-jp/stable,now 0.6 arm64 [installed]
llm-model-qwen2.5-0.5b-prefill-20e/stable,now 0.2 arm64 [installed]
llm-model-qwen3-0.6b-ax630c/stable,now 0.4 arm64 [installed]
llm-model-sherpa-onnx-kws-zipformer-gigaspeech-3.3m-2024-01-01/stable,now 0.3 arm64 [installed]
llm-model-silero-vad/stable,now 0.4 arm64 [installed]
llm-model-smolvlm-500m-ax630c/stable,now 0.4 arm64 [installed]
llm-model-whisper-tiny/stable,now 0.4 arm64 [installed]
llm-openai-api/stable,now 1.7 arm64 [installed]
llm-sherpa-ncnn-streaming-zipformer-20m-2023-02-17/now 0.2 arm64 [installed,local]
llm-sherpa-ncnn-streaming-zipformer-zh-14m-2023-02-23/now 0.2 arm64 [installed,local]
llm-sherpa-onnx-kws-zipformer-wenetspeech-3.3m-2024-01-01/now 0.2 arm64 [installed,local]
llm-single-speaker-english-fast/now 0.2 arm64 [installed,local]
llm-single-speaker-fast/now 0.2 arm64 [installed,local]
llm-skel/stable,now 1.5 arm64 [installed]
llm-sys/stable,now 1.6 arm64 [installed]
llm-tts/stable,now 1.6 arm64 [installed]
llm-vad/stable,now 1.8 arm64 [installed]
llm-vlm/stable,now 1.9 arm64 [installed]
llm-whisper/stable,now 1.8 arm64 [installed]
llm-yolo11n-pose/now 0.2 arm64 [installed,local]
llm-yolo11n-seg/now 0.2 arm64 [installed,local]
llm-yolo11n/now 0.2 arm64 [installed,local]
llm-yolo/stable,now 1.9 arm64 [installed]
</code></pre>
]]></description><link>https://community.m5stack.com/topic/7838/how-to-debug-module-llm-kit-when-it-silently-dies</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 00:06:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7838.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Sep 2025 19:28:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to debug Module LLM Kit when it silently dies? on Wed, 01 Oct 2025 05:24:17 GMT]]></title><description><![CDATA[<p dir="auto">Ok, it worked finally. At least, I needed to use <code>module_llm.melotts</code> instead of <code>module_llm.tts</code>.</p>
<p dir="auto">The model specification in <code>tts_config</code> doesn't matter for my case. It picks <code>melotts-en-default</code> somehow automatically even though the default value is <code>melotts_zh-cn</code>.</p>
<p dir="auto">The module is very unstable when the controller is powered on. It requires several clicks of the reset button until it finally speaks. (The return value of <code>melotts.inference</code> is <code>-97</code> when it's successful.)</p>
]]></description><link>https://community.m5stack.com/post/30019</link><guid isPermaLink="true">https://community.m5stack.com/post/30019</guid><dc:creator><![CDATA[riywo]]></dc:creator><pubDate>Wed, 01 Oct 2025 05:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to debug Module LLM Kit when it silently dies? on Wed, 01 Oct 2025 03:24:19 GMT]]></title><description><![CDATA[<p dir="auto">Update 3:</p>
<p dir="auto">Captured this log sometime:</p>
<pre><code>Oct 01 11:18:51 m5stack-LLM systemd[1]: llm-tts.service: Main process exited, code=killed, status=11/SEGV
Oct 01 11:18:51 m5stack-LLM systemd[1]: llm-tts.service: Failed with result 'signal'.
Oct 01 11:18:52 m5stack-LLM systemd[1]: llm-tts.service: Scheduled restart job, restart counter is at 1.
Oct 01 11:18:52 m5stack-LLM systemd[1]: Stopped llm-tts Service.
Oct 01 11:18:52 m5stack-LLM systemd[1]: Started llm-tts Service.
</code></pre>
]]></description><link>https://community.m5stack.com/post/30018</link><guid isPermaLink="true">https://community.m5stack.com/post/30018</guid><dc:creator><![CDATA[riywo]]></dc:creator><pubDate>Wed, 01 Oct 2025 03:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to debug Module LLM Kit when it silently dies? on Wed, 01 Oct 2025 03:05:50 GMT]]></title><description><![CDATA[<p dir="auto">Update 2:</p>
<p dir="auto">I confirmed TTS itself is working if it is used through OpenAI API server: <a href="https://docs.m5stack.com/en/stackflow/openai_api/text_to_speech" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/stackflow/openai_api/text_to_speech</a></p>
]]></description><link>https://community.m5stack.com/post/30017</link><guid isPermaLink="true">https://community.m5stack.com/post/30017</guid><dc:creator><![CDATA[riywo]]></dc:creator><pubDate>Wed, 01 Oct 2025 03:05:50 GMT</pubDate></item></channel></rss>