[Bug] Environment check: Intel GPU detection fails — xpu-smi JSON unmarshal error (memory_physical_size_byte type mismatch)
Los mantenedores suelen responder en 1 día
@wanghe-fit2cloud ya está trabajando en esto.
Desde el 16/11/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Contact Information
No response
Product
1Panel
Version
v2.5.1
Problem Description
Intel GPU 环境检测失败。xpu-smi 已正确安装且 CLI 可正常输出设备信息,但 1Panel 环境检查(Environment Check)解析 xpu-smi --output json 输出时,discoveryDevice struct 中 memory_physical_size_byte 字段定义为 string 类型,而 xpu-smi 实际输出为 JSON number,导致 unmarshal 失败,检测状态显示为"检测失败"(红色)。
Steps to Reproduce
-
在装有 Intel iGPU(Intel Core Ultra 7 265K / Arrow Lake-S)的机器上安装 xpu-smi:
sudo add-apt-repository ppa:kobuk-team/intel-graphics sudo apt install xpu-smi -
确认 xpu-smi CLI 正常:
$ xpu-smi | 0 Intel(R) Graphics Off | 0000:00:02.0 Off | Disabled | | N/A N/A N/A | 26242MiB / 7797MiB | 0% Default | -
打开 1Panel → 环境检查 → 点击"重新检测"
-
"Intel · 驱动与设备管理工具" 显示 检测失败(红色标记)
The expected correct result
环境检查应正确解析 xpu-smi JSON 输出,Intel GPU 显示为"正常"状态(类似 NVIDIA 的展示方式:驱动版本 + 显存信息)。
Related log output
Intel · 驱动与设备管理工具: 无法通过 xpu-smi 读取设备信息,请检查驱动状态。
xpu-smi device 0 output: json: cannot unmarshal number into Go struct field discoveryDevice.memory_physical_size_byte of type string
Additional Information
- 1Panel 版本:v2.5.1(最新)
- OS:Ubuntu 26.04
- CPU:Intel Core Ultra 7 265K(Arrow Lake-S,含 Arc iGPU)
- xpu-smi 版本:v2.3.0(Intel 官方 PPA 安装)
- NVIDIA 部分:正常(驱动 595.99.02,RTX 5090)
- 根因:xpu-smi JSON 输出中
memory_physical_size_byte为整数(如7990848512),1PaneldiscoveryDevicestruct 定义为string,类型不匹配 - 修复建议:将该字段类型从
string改为uint64/int64,或做兼容处理(同时接受 string 和 number)
- Lenguaje dominante
- Go
- Estrellas
- 37.4k
- Forks
- 3.4k
- Merge medio
- 8 h 53 min
- PR fusionados (30 d)
- 179
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de 1Panel-dev/1Panel
-
type: optimization
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
1Panel-dev/1Panel#14456 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug] GPU Monitoring Not DetectedPosiblemente ocupada @wanghe-fit2cloud la tomó hoy. Abiertotype: question
1Panel-dev/1Panel#14454 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug] Requests beyond the concurrency limit fail immediately instead of entering the queue (concurrency: 1, queue size: 50)Posiblemente ocupada @wanghe-fit2cloud la tomó hace 1 día. Abiertotype: ai-gateway
1Panel-dev/1Panel#14452 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Feature] Optimize Network and Disk Configuration When Creating a Virtual MachinePosiblemente ocupada @wanghe-fit2cloud la tomó hace 4 días. Abiertotype: optimization
1Panel-dev/1Panel#14439 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug] In the toolbox's disk management, disks in exFAT format cannot be mounted.Posiblemente ocupada @wanghe-fit2cloud la tomó hace 4 días. Abiertotype: to-be-verified
1Panel-dev/1Panel#14438 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de 1Panel-dev/1Panel
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
trufflesecurity/trufflehog#5573 ·
Los mantenedores suelen responder en 1 día
-
Type/Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
OpenNSW/nsw-srilanka#1259 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
katzenpost/katzenpost#1287 ·
Los mantenedores suelen responder en 2 días
-
C-bug O-community X-blathers-untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
cockroachdb/cockroach#176245 · 1 comentario ·