TheTumultuousUnicornOfDarkness / CPU-X

CPU-X is a Free software that gathers information on CPU, motherboard and more
https://thetumultuousunicornofdarkness.github.io/CPU-X
GNU General Public License v3.0
2.05k stars 134 forks source link

[GUI] GPU name too long breaks GUI on Fedora 41 #356

Closed nelsonhef closed 1 month ago

nelsonhef commented 1 month ago

Describe the bug/Expected behavior On Fedora 41 Beta, the 3rd Gen Intel HD Graphics GPU name is too long and causes the text to wrap around. Related to #334 GTK Ncurses

Additional information

usuario@fedora:/run/media/usuario/1GB$ ./CPU-X-5.1.0-x86_64.AppImage --dump
failed to call vkCreateInstance (VK_ERROR_EXTENSION_NOT_PRESENT)
VK_KHR_get_physical_device_properties2 is not supported
  >>>>>>>>>> CPU <<<<<<<<<<

    ***** Clocks *****
      Core Speed: 3392 MHz
      Multiplier: 
       Bus Speed: 
           Usage:   1,74 %

    ####### #0 general #######
    ***** Processor *****
          Vendor: Intel
       Code Name: Ivy Bridge (Core i3)
         Package: LGA 1155
      Technology: 22 nm
         Voltage: 
   Specification: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz
          Family: 0x6
    Disp. Family: 0x6
           Model: 0xA
     Disp. Model: 0x3A
        Stepping: 9
           Temp.: 36,00°C
    Instructions: HT, MMX, SSE(1, 2, 3, 3S, 4.1, 4.2), AVX(1), CLMUL, VT-x, x86-64

    ***** Caches *****
         L1 Data:  2 x   32 kB,  8-way
        L1 Inst.:  2 x   32 kB,  8-way
         Level 2:  2 x  256 kB,  8-way
         Level 3: 3 MB, 12-way

    ***** Count *****
           Cores: 2
         Threads: 4

  >>>>>>>>>> Caches <<<<<<<<<<

    ####### #0 general #######
    ***** L1 Cache *****
            Size:  2 x   32 kB,  8-way associative, 64-bytes line size
           Speed: 101495,10 MB/s

    ***** L2 Cache *****
            Size:  2 x  256 kB,  8-way associative, 64-bytes line size
           Speed: 49546,00 MB/s

    ***** L3 Cache *****
            Size: 3 MB, 12-way associative, 64-bytes line size
           Speed: 30297,80 MB/s

  >>>>>>>>>> Motherboard <<<<<<<<<<

    ***** Motherboard *****
    Manufacturer: ASRock
           Model: H61M-VG3
        Revision: 

    ***** BIOS *****
           Brand: American Megatrends Inc.
         Version: P1.90
            Date: 07/11/2013
        ROM Size: 
          EFI PK: 

    ***** Chipset *****
          Vendor: Intel Corporation
           Model: H61 Express Chipset LPC Controller

  >>>>>>>>>> System <<<<<<<<<<

    ***** Operating System *****
            Name: Fedora Linux 41 (Workstation Edition Prerelease)
          Kernel: Linux 6.11.2-300.fc41.x86_64
        Hostname: fedora
          Uptime: 0 days, 1 hours, 4 minutes, 46 seconds

    ***** Memory *****
            Used: 1,29 GB / 3,70 GB
         Buffers: 0,01 GB / 3,70 GB
          Cached: 1,65 GB / 3,70 GB
            Free: 0,75 GB / 3,70 GB
            Swap: 0,00 GB / 3,70 GB

  >>>>>>>>>> Graphics <<<<<<<<<<

    ***** Card 0 *****
          Vendor: Intel
          Driver: i915
     UMD Version: Mesa 24.2.4
           Model: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
    Compute Unit: 
       Device ID: 0x8086:0x0152
   VBIOS Version: 
       Interface: PCIe Gen0x0 (current) / Gen0x0 (max)
     Temperature: 
           Usage: 
    Core Voltage: 
       Power Avg: 
      Core Clock: 350 MHz
    Memory Clock: 
     Memory Used: 
   Resizable BAR: 
       Vulkan RT: 
  OpenGL Version: 4.20
  Vulkan Version: 
  OpenCL Version: 
TheTumultuousUnicornOfDarkness commented 1 month ago

I am surprised because there are 2 labels that are supposed to have 2 lines in UI:

Both should have the same behavior, but it seems the max-width-chars property is wrong for the second label, and the last time I changed it was 3 years ago in 4ecc94bd2f6742675078f5bc87f52cf488822a55.

I think when I worked on 2ee65addef4371c36c95f7f496a43c4272d19514, I did a mistake and something was not properly committed. I am sorry for the inconvenience and that the bug is still present in v5.1.0 while I thought this version fixed it...

nelsonhef commented 1 month ago

Thanks! The commit ba28152 fixed the issue.

GTK

TheTumultuousUnicornOfDarkness commented 1 month ago

Thank you @nelsonhef for your quick feedback. I also notice that the PCIe speed is Gen0x0: it is also a bug, this label should be empty for an iGPU. Fixed in 243c3b4407a4ed025574a010e791566656542151.

nelsonhef commented 1 month ago

Thank you! Confirmed. After 243c3b4 the Interface value is now empty instead of PCIe Gen0x0