Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Vulkan: driver name of a previous device is concatenated on multi-GPU systems

Chiusa Adatta ai principianti
#2,619 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c
Ambito
cli

Direzione di ricerca

Inizia da src/detection/vulkan/vulkan.c, leggendo detectVulkan e applyDriverName insieme al commento esistente sulla sovrascrittura. Riproduci il problema con fastfetch -s vulkan --pipe -l none su un sistema con più GPU, quindi verifica che il nome del driver visualizzato sia solo quello del dispositivo con la versione API più alta e non sia concatenato al nome di un dispositivo precedente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

  • I have checked the FAQ but the issue is not covered
Description

On a system with two Vulkan devices, the Vulkan module prints the driver names of both devices glued together:

$ fastfetch -s vulkan --pipe -l none
Vulkan  1.4.354 - NVIDIA [615.71.09]radv [Mesa 26.2.2-arch1.1]

Expected: radv [Mesa 26.2.2-arch1.1], the driver of the device with the highest API version.

In detectVulkan (src/detection/vulkan/vulkan.c), the comment says the driver name should be overwritten whenever a device with a higher API version is found:

// If the device api version is higher than the current highest device api version, overwrite it
// In this case, also use the current device driver name as the shown driver name

However, applyDriverName only appends to result with ffStrbufAppendS and never clears it first. The NVIDIA device is enumerated first and sets the name. The RADV device comes second with a higher API version, and its name is appended to the NVIDIA one instead of replacing it.

As far as I can tell this has been the case since the Vulkan module was added. It only shows up when the device with the highest API version is not the first one enumerated.

A PR with the fix follows: it clears the buffer at the start of applyDriverName.

Version used: fastfetch 2.68.1 (Arch package); also reproduced on dev @ 9801d89 built from source
Bug prevalence: Always
Regression: No
Installation: Package manager
Package manager: pacman

System information
OS      Arch Linux (rolling), kernel 6.18.52-1-lts, x86_64
GPU 1   AMD Raphael [Integrated]   (Vulkan driver: radv, Mesa 26.2.2)
GPU 2   NVIDIA GeForce RTX 5060 [Discrete]   (Vulkan driver: NVIDIA 615.71.09, nvidia-open)
Lingua principale
C
Stelle
24.7k
Fork
895
Merge medio
22h 43m
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fastfetch-cli/fastfetch

Tutte le issue di fastfetch-cli/fastfetch

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.