[Bug] Environment check: Intel GPU detection fails — xpu-smi JSON unmarshal error (memory_physical_size_byte type mismatch)
Mantenedores costumam responder em até 1 dia
@wanghe-fit2cloud já está trabalhando nisso.
Desde 16/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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)
- Linguagem predominante
- Go
- Estrelas
- 37.4k
- Forks
- 3.4k
- Merge médio
- 8h 53min
- PRs com merge (30d)
- 179
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de 1Panel-dev/1Panel
-
type: optimization
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
1Panel-dev/1Panel#14456 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
[Bug] GPU Monitoring Not DetectedTalvez já em andamento @wanghe-fit2cloud assumiu hoje. Abertatype: question
1Panel-dev/1Panel#14454 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Bug] Requests beyond the concurrency limit fail immediately instead of entering the queue (concurrency: 1, queue size: 50)Talvez já em andamento @wanghe-fit2cloud assumiu há 1 dia. Abertatype: ai-gateway
1Panel-dev/1Panel#14452 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Feature] Optimize Network and Disk Configuration When Creating a Virtual MachineTalvez já em andamento @wanghe-fit2cloud assumiu há 4 dias. Abertatype: optimization
1Panel-dev/1Panel#14439 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Bug] In the toolbox's disk management, disks in exFAT format cannot be mounted.Talvez já em andamento @wanghe-fit2cloud assumiu há 4 dias. Abertatype: to-be-verified
1Panel-dev/1Panel#14438 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de 1Panel-dev/1Panel
Issues semelhantes
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
v2fly/domain-list-community#4307 ·
Mantenedores costumam responder em até 1 dia
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
mattabate/life-distributable#232 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
projectdiscovery/cdncheck#554 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
openbao/openbao-plugins#170 ·
Mantenedores costumam responder em até 1 dia