Skip to content

[Bug]Crash immediately after startup panel on QEMU Virtual CPU + Debian 12 x86_64 #5095

@Bear3853

Description

@Bear3853

What happened / 发生了什么

Hello, thank you so much for developing and maintaining AstrBot!

I'm running the bot with Docker on Debian 12 x86_64, and it keeps crashing.
My CPU is QEMU Virtual CPU version 2.5+, which does not support the X86_V2 instruction set.

When I use the official Docker image, it fails to start because numpy 2.x requires X86_V2.
After I manually installed numpy 1.26.4 and the missing library libegl1, the X86_V2 error is gone and the startup panel can show up.

However, the program still crashes right after the startup panel, and cannot run normally.

I have tried:

  • Recreating the Docker container
  • Using privileged mode
  • Mounting correct time and timezone
  • Reinstalling all dependencies

But the crash after the startup panel still happens.
The problem seems to be related to numpy, faiss or the vector database.

I hope you can add support for older x86_64 CPUs, especially QEMU virtual CPUs without X86_V2 support, and fix the crash after the startup panel.

Thank you very much for your help!

Reproduce / 如何复现?

1. Deploy AstrBot with Docker on Debian 12 x86_64.

2. CPU is QEMU Virtual CPU version 2.5+, which does not support X86_V2.

3. Start with the official latest image, crash due to numpy 2.x.

4. After manually installing numpy 1.26.4 and libegl1, the panel shows but still crashes.

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

  • AstrBot version: Latest
  • Deployment: Docker
  • Provider: Cloud server (virtualized environment, CPU shows as QEMU Virtual CPU)
  • Platform: QQ, Telegram
  • OS: Debian 12 x86_64

OS

Linux

Logs / 报错日志

1.{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2026-02-13T19:02:07.254696545Z"}
{"log":" File "/AstrBot/main.py", line 14, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.254807104Z"}
{"log":" from astrbot.core.initial_loader import InitialLoader # noqa: E402\n","stream":"stderr","time":"2026-02-13T19:02:07.254967768Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2026-02-13T19:02:07.255105287Z"}
{"log":" File "/AstrBot/astrbot/core/initial_loader.py", line 12, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.255113934Z"}
{"log":" from astrbot.core.core_lifecycle import AstrBotCoreLifecycle\n","stream":"stderr","time":"2026-02-13T19:02:07.255261002Z"}
{"log":" File "/AstrBot/astrbot/core/core_lifecycle.py", line 19, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.255325674Z"}
{"log":" from astrbot.api import logger, sp\n","stream":"stderr","time":"2026-02-13T19:02:07.255454087Z"}
{"log":" File "/AstrBot/astrbot/api/init.py", line 6, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.255511805Z"}
{"log":" from astrbot.core.star.register import register_agent as agent\n","stream":"stderr","time":"2026-02-13T19:02:07.255618687Z"}
{"log":" File "/AstrBot/astrbot/core/star/init.py", line 3, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.255716692Z"}
{"log":" from astrbot.core.star.star_tools import StarTools\n","stream":"stderr","time":"2026-02-13T19:02:07.255840116Z"}
{"log":" File "/AstrBot/astrbot/core/star/star_tools.py", line 37, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.255855865Z"}
{"log":" from astrbot.core.star.context import Context\n","stream":"stderr","time":"2026-02-13T19:02:07.256033822Z"}
{"log":" File "/AstrBot/astrbot/core/star/context.py", line 17, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.256079007Z"}
{"log":" from astrbot.core.knowledge_base.kb_mgr import KnowledgeBaseManager\n","stream":"stderr","time":"2026-02-13T19:02:07.256205666Z"}
{"log":" File "/AstrBot/astrbot/core/knowledge_base/kb_mgr.py", line 9, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.256267133Z"}
{"log":" from .kb_db_sqlite import KBSQLiteDatabase\n","stream":"stderr","time":"2026-02-13T19:02:07.256430712Z"}
{"log":" File "/AstrBot/astrbot/core/knowledge_base/kb_db_sqlite.py", line 9, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.256445269Z"}
{"log":" from astrbot.core.db.vec_db.faiss_impl import FaissVecDB\n","stream":"stderr","time":"2026-02-13T19:02:07.256615782Z"}
{"log":" File "/AstrBot/astrbot/core/db/vec_db/faiss_impl/init.py", line 1, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.256692467Z"}
{"log":" from .vec_db import FaissVecDB\n","stream":"stderr","time":"2026-02-13T19:02:07.256791213Z"}
{"log":" File "/AstrBot/astrbot/core/db/vec_db/faiss_impl/vec_db.py", line 4, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.256868028Z"}
{"log":" import numpy as np\n","stream":"stderr","time":"2026-02-13T19:02:07.256976944Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/init.py", line 112, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.257148127Z"}
{"log":" from numpy.config import show_config\n","stream":"stderr","time":"2026-02-13T19:02:07.25744614Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/config.py", line 4, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.257459946Z"}
{"log":" from numpy._core._multiarray_umath import (\n","stream":"stderr","time":"2026-02-13T19:02:07.257582017Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/_core/init.py", line 24, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.257721471Z"}
{"log":" from . import multiarray\n","stream":"stderr","time":"2026-02-13T19:02:07.257884538Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/_core/multiarray.py", line 11, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:07.258018973Z"}
{"log":" from . import _multiarray_umath, overrides\n","stream":"stderr","time":"2026-02-13T19:02:07.258179556Z"}
{"log":"RuntimeError: NumPy was built with baseline optimizations: \n","stream":"stderr","time":"2026-02-13T19:02:07.258299062Z"}
{"log":"(X86_V2) but your machine doesn't support:\n","stream":"stderr","time":"2026-02-13T19:02:07.258305584Z"}
{"log":"(X86_V2).\n","stream":"stderr","time":"2026-02-13T19:02:07.258357352Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2026-02-13T19:02:21.72804122Z"}
{"log":" File "/AstrBot/main.py", line 14, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728177948Z"}
{"log":" from astrbot.core.initial_loader import InitialLoader # noqa: E402\n","stream":"stderr","time":"2026-02-13T19:02:21.728183208Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2026-02-13T19:02:21.728186795Z"}
{"log":" File "/AstrBot/astrbot/core/initial_loader.py", line 12, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728190001Z"}
{"log":" from astrbot.core.core_lifecycle import AstrBotCoreLifecycle\n","stream":"stderr","time":"2026-02-13T19:02:21.728193467Z"}
{"log":" File "/AstrBot/astrbot/core/core_lifecycle.py", line 19, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728196324Z"}
{"log":" from astrbot.api import logger, sp\n","stream":"stderr","time":"2026-02-13T19:02:21.728200021Z"}
{"log":" File "/AstrBot/astrbot/api/init.py", line 6, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728203407Z"}
{"log":" from astrbot.core.star.register import register_agent as agent\n","stream":"stderr","time":"2026-02-13T19:02:21.728207124Z"}
{"log":" File "/AstrBot/astrbot/core/star/init.py", line 3, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.72821025Z"}
{"log":" from astrbot.core.star.star_tools import StarTools\n","stream":"stderr","time":"2026-02-13T19:02:21.728213796Z"}
{"log":" File "/AstrBot/astrbot/core/star/star_tools.py", line 37, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728217233Z"}
{"log":" from astrbot.core.star.context import Context\n","stream":"stderr","time":"2026-02-13T19:02:21.728220509Z"}
{"log":" File "/AstrBot/astrbot/core/star/context.py", line 17, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728239134Z"}
{"log":" from astrbot.core.knowledge_base.kb_mgr import KnowledgeBaseManager\n","stream":"stderr","time":"2026-02-13T19:02:21.728242691Z"}
{"log":" File "/AstrBot/astrbot/core/knowledge_base/kb_mgr.py", line 9, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728245666Z"}
{"log":" from .kb_db_sqlite import KBSQLiteDatabase\n","stream":"stderr","time":"2026-02-13T19:02:21.728248752Z"}
{"log":" File "/AstrBot/astrbot/core/knowledge_base/kb_db_sqlite.py", line 9, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728251617Z"}
{"log":" from astrbot.core.db.vec_db.faiss_impl import FaissVecDB\n","stream":"stderr","time":"2026-02-13T19:02:21.728255094Z"}
{"log":" File "/AstrBot/astrbot/core/db/vec_db/faiss_impl/init.py", line 1, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728257929Z"}
{"log":" from .vec_db import FaissVecDB\n","stream":"stderr","time":"2026-02-13T19:02:21.728260985Z"}
{"log":" File "/AstrBot/astrbot/core/db/vec_db/faiss_impl/vec_db.py", line 4, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.72826373Z"}
{"log":" import numpy as np\n","stream":"stderr","time":"2026-02-13T19:02:21.728266867Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/init.py", line 112, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728269552Z"}
{"log":" from numpy.config import show_config\n","stream":"stderr","time":"2026-02-13T19:02:21.728296723Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/config.py", line 4, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728299688Z"}
{"log":" from numpy._core._multiarray_umath import (\n","stream":"stderr","time":"2026-02-13T19:02:21.728302894Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/_core/init.py", line 24, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728318394Z"}
{"log":" from . import multiarray\n","stream":"stderr","time":"2026-02-13T19:02:21.72832176Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/_core/multiarray.py", line 11, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:21.728324465Z"}
{"log":" from . import _multiarray_umath, overrides\n","stream":"stderr","time":"2026-02-13T19:02:21.728327701Z"}
{"log":"RuntimeError: NumPy was built with baseline optimizations: \n","stream":"stderr","time":"2026-02-13T19:02:21.728333352Z"}
{"log":"(X86_V2) but your machine doesn't support:\n","stream":"stderr","time":"2026-02-13T19:02:21.728336137Z"}
{"log":"(X86_V2).\n","stream":"stderr","time":"2026-02-13T19:02:21.728338803Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2026-02-13T19:02:33.124378733Z"}
{"log":" File "/AstrBot/main.py", line 14, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124552913Z"}
{"log":" from astrbot.core.initial_loader import InitialLoader # noqa: E402\n","stream":"stderr","time":"2026-02-13T19:02:33.124559816Z"}
{"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2026-02-13T19:02:33.124563312Z"}
{"log":" File "/AstrBot/astrbot/core/initial_loader.py", line 12, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124566799Z"}
{"log":" from astrbot.core.core_lifecycle import AstrBotCoreLifecycle\n","stream":"stderr","time":"2026-02-13T19:02:33.124570446Z"}
{"log":" File "/AstrBot/astrbot/core/core_lifecycle.py", line 19, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124573562Z"}
{"log":" from astrbot.api import logger, sp\n","stream":"stderr","time":"2026-02-13T19:02:33.124576838Z"}
{"log":" File "/AstrBot/astrbot/api/init.py", line 6, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124579703Z"}
{"log":" from astrbot.core.star.register import register_agent as agent\n","stream":"stderr","time":"2026-02-13T19:02:33.124582869Z"}
{"log":" File "/AstrBot/astrbot/core/star/init.py", line 3, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124585764Z"}
{"log":" from astrbot.core.star.star_tools import StarTools\n","stream":"stderr","time":"2026-02-13T19:02:33.12458889Z"}
{"log":" File "/AstrBot/astrbot/core/star/star_tools.py", line 37, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124591816Z"}
{"log":" from astrbot.core.star.context import Context\n","stream":"stderr","time":"2026-02-13T19:02:33.124595182Z"}
{"log":" File "/AstrBot/astrbot/core/star/context.py", line 17, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124597997Z"}
{"log":" from astrbot.core.knowledge_base.kb_mgr import KnowledgeBaseManager\n","stream":"stderr","time":"2026-02-13T19:02:33.124601504Z"}
{"log":" File "/AstrBot/astrbot/core/knowledge_base/kb_mgr.py", line 9, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.12471561Z"}
{"log":" from .kb_db_sqlite import KBSQLiteDatabase\n","stream":"stderr","time":"2026-02-13T19:02:33.124719297Z"}
{"log":" File "/AstrBot/astrbot/core/knowledge_base/kb_db_sqlite.py", line 9, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124722192Z"}
{"log":" from astrbot.core.db.vec_db.faiss_impl import FaissVecDB\n","stream":"stderr","time":"2026-02-13T19:02:33.124725348Z"}
{"log":" File "/AstrBot/astrbot/core/db/vec_db/faiss_impl/init.py", line 1, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124728304Z"}
{"log":" from .vec_db import FaissVecDB\n","stream":"stderr","time":"2026-02-13T19:02:33.124749764Z"}
{"log":" File "/AstrBot/astrbot/core/db/vec_db/faiss_impl/vec_db.py", line 4, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124752811Z"}
{"log":" import numpy as np\n","stream":"stderr","time":"2026-02-13T19:02:33.124755917Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/init.py", line 112, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124817652Z"}
{"log":" from numpy.config import show_config\n","stream":"stderr","time":"2026-02-13T19:02:33.124822461Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/config.py", line 4, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124826039Z"}
{"log":" from numpy._core._multiarray_umath import (\n","stream":"stderr","time":"2026-02-13T19:02:33.124829265Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/_core/init.py", line 24, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124832251Z"}
{"log":" from . import multiarray\n","stream":"stderr","time":"2026-02-13T19:02:33.124835677Z"}
{"log":" File "/usr/local/lib/python3.12/site-packages/numpy/_core/multiarray.py", line 11, in \u003cmodule\u003e\n","stream":"stderr","time":"2026-02-13T19:02:33.124838372Z"}
{"log":" from . import _multiarray_umath, overrides\n","stream":"stderr","time":"2026-02-13T19:02:33.124856837Z"}
{"log":"RuntimeError: NumPy was built with baseline optimizations: \n","stream":"stderr","time":"2026-02-13T19:02:33.124861385Z"}
{"log":"(X86_V2) but your machine doesn't support:\n","stream":"stderr","time":"2026-02-13T19:02:33.124864501Z"}
{"log":"(X86_V2).\n","stream":"stderr","time":"2026-02-13T19:02:33.124867176Z"}
2.RuntimeError: NumPy was built with baseline optimizations: (X86_V2) but your machine doesn't support: X86_V2.

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendbugSomething isn't workingfeature:knowledge-baseThe bug / feature is about knowledge basepriority: p0will fix asap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions