fastfetch icon indicating copy to clipboard operation
fastfetch copied to clipboard

[BUG] fastfetch breaks tty when reading the "Display" variable

Open NGSpace opened this issue 1 year ago • 3 comments

General description of bug:

  • What happened: at first it will work fine, it will print the log, the os' name, the kernel version, etc. but when it's time to print the "Display" variable, nothing is printed and instead the screen goes black with no input until I switch to another tty. after that I would need to go into another tty and then back to the tty it was ran on for it to work.
  • What should happen: it should NOT make my screen black
  • Fastfetch version used: 2.15.0 (x86_64)
  • Did it work in an older version: no
  • Where did you get the binary: dnf install fastfetch
  • Does this issue still occur in the latest dev build? No

Often helpful information:

Screenshot: You can see in the video that for a split second the screen does show half the fastfetch output before going black https://github.com/fastfetch-cli/fastfetch/assets/71827944/dcf030b6-685c-42e6-b52b-67bba5e03473

The content of the configuration file you use (if any): there isn't any.

Output of fastfetch -c ci.jsonc --format json:

[
  {
    "type": "Title",
    "result": {
      "userName": "computer",
      "hostName": "fedora",
      "homeDir": "/home/computer/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/bin/bash",
      "pageSize": 4096
    },
    "stat": 0
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "",
      "id": "fedora",
      "idLike": "",
      "name": "Fedora Linux",
      "prettyName": "Fedora Linux 40 (KDE Plasma)",
      "variant": "KDE Plasma",
      "variantID": "kde",
      "version": "40 (KDE Plasma)",
      "versionID": "40"
    },
    "stat": 0
  },
  {
    "type": "Host",
    "result": {
      "family": "",
      "name": "Z370 AORUS Gaming K3",
      "version": "",
      "sku": "",
      "vendor": "Gigabyte Technology Co., Ltd.",
      "serial": "",
      "uuid": ""
    },
    "stat": 1
  },
  {
    "type": "Bios",
    "result": {
      "date": "04/03/2018",
      "release": "5.12",
      "vendor": "American Megatrends Inc.",
      "version": "F6",
      "type": "UEFI"
    },
    "stat": 0
  },
  {
    "type": "Bootmgr",
    "result": {
      "name": "Fedora",
      "firmware": "\\EFI\\FEDORA\\SHIMX64.EFI",
      "secureBoot": false
    },
    "stat": 3
  },
  {
    "type": "Board",
    "result": {
      "name": "Z370 AORUS Gaming K3-CF",
      "vendor": "Gigabyte Technology Co., Ltd.",
      "version": "x.x",
      "serial": ""
    },
    "stat": 0
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Desktop",
      "vendor": "",
      "version": "",
      "serial": ""
    },
    "stat": 1
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.8.11-300.fc40.x86_64",
      "version": "#1 SMP PREEMPT_DYNAMIC Mon May 27 14:53:33 UTC 2024",
      "displayVersion": ""
    },
    "stat": 0
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "255.7-1.fc40",
      "pid": 1
    },
    "stat": 26
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 3885510,
      "bootTime": "2024-06-16T17:22:39.495+0300"
    },
    "stat": 0
  },
  {
    "type": "Loadavg",
    "result": [
      0.62060546875,
      1.16064453125,
      1.96240234375
    ],
    "stat": 0
  },
  {
    "type": "Processes",
    "result": 403,
    "stat": 1
  },
  {
    "type": "Packages",
    "result": {
      "all": 3063,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 0,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 35,
      "flatpakUser": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "pacman": 0,
      "paludis": 0,
      "pkg": 0,
      "pkgtool": 0,
      "macports": 0,
      "rpm": 3012,
      "scoop": 0,
      "snap": 16,
      "winget": 0,
      "xbps": 0,
      "opkg": 0,
      "am": 0,
      "sorcery": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "pacmanBranch": ""
    },
    "stat": 8
  },
  {
    "type": "Shell",
    "result": {
      "exe": "/bin/bash",
      "exeName": "bash",
      "exePath": "/usr/bin/bash",
      "pid": 14647,
      "ppid": 14635,
      "processName": "bash",
      "prettyName": "bash",
      "version": "5.2.26",
      "tty": 1
    },
    "stat": 2
  },
  {
    "type": "Editor",
    "result": {
      "name": "/usr/bin/nano",
      "path": "/usr/bin/nano",
      "exe": "nano",
      "version": "7.2"
    },
    "stat": 4
  },
  {
    "type": "Display",
    "result": [
      {
        "width": 2560,
        "height": 1440,
        "id": 0,
        "name": "XG27WQ",
        "primary": true,
        "refreshRate": 164.83555828346377,
        "rotation": 0,
        "scaledHeight": 1440,
        "scaledWidth": 2560,
        "type": "Unknown"
      }
    ],
    "stat": 1
  },
  {
    "type": "Brightness",
    "result": [
      {
        "name": "XG27WQ",
        "max": 100.0,
        "min": 0.0,
        "current": 70.0
      }
    ],
    "stat": 1167
  },
  {
    "type": "Monitor",
    "result": [
      {
        "hdrCompatible": true,
        "name": "XG27WQ",
        "resolution": {
          "width": 2560,
          "height": 1440
        },
        "physical": {
          "height": 336,
          "width": 597
        },
        "manufactureDate": {
          "year": 2021,
          "week": 17
        },
        "serial": 16843009
      }
    ],
    "stat": 1
  },
  {
    "type": "LM",
    "result": {
      "service": "sddm",
      "type": "X11",
      "version": "0.21.0"
    },
    "stat": 1
  },
  {
    "type": "DE",
    "result": {
      "processName": "plasmashell",
      "prettyName": "KDE Plasma",
      "version": "6.0.5"
    },
    "stat": 0
  },
  {
    "type": "WM",
    "result": {
      "processName": "KWin",
      "prettyName": "KWin",
      "protocolName": "X11",
      "pluginName": ""
    },
    "stat": 0
  },
  {
    "type": "WMTheme",
    "result": "Breeze",
    "stat": 0
  },
  {
    "type": "Theme",
    "result": {
      "theme1": "kvantum (BreezeDarkClone) [QT]",
      "theme2": "Breeze [GTK3/4]"
    },
    "stat": 1
  },
  {
    "type": "Icons",
    "result": {
      "icons1": "BeautyLine [QT]",
      "icons2": "BeautyLine [GTK3/4]"
    },
    "stat": 0
  },
  {
    "type": "Font",
    "result": {
      "display": "Arial (10pt) [QT], Arial (10pt) [GTK3/4]",
      "fonts": [
        "Arial (10pt)",
        "",
        "Arial (10pt)",
        "Arial (10pt)"
      ]
    },
    "stat": 0
  },
  {
    "type": "Cursor",
    "result": {
      "theme": "breeze_cursors",
      "size": "24"
    },
    "stat": 0
  },
  {
    "type": "Wallpaper",
    "result": "/home/computer/Pictures/Wallpaper Attempts/23942.jpg",
    "stat": 0
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "konsole",
      "exe": "/usr/bin/konsole",
      "exeName": "konsole",
      "exePath": "/usr/bin/konsole",
      "pid": 14635,
      "ppid": 1922,
      "prettyName": "konsole",
      "version": "24.5.0",
      "tty": "/dev/pts/1"
    },
    "stat": 1
  },
  {
    "type": "TerminalFont",
    "result": {
      "font": {
        "name": "Consolas",
        "size": "11",
        "styles": [
          "Bold"
        ],
        "pretty": "Consolas (11pt, Bold)"
      },
      "fallback": {
        "name": "",
        "size": "",
        "styles": [],
        "pretty": ""
      }
    },
    "stat": 0
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 144,
      "rows": 38,
      "width": 1155,
      "height": 689
    },
    "stat": 0
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 255,
        "g": 255,
        "b": 255,
        "dark": false
      },
      "bg": {
        "r": 0,
        "g": 0,
        "b": 0,
        "dark": true
      }
    },
    "stat": 0
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Intel(R) Core(TM) i7-8700K",
      "vendor": "GenuineIntel",
      "cores": {
        "physical": 6,
        "logical": 12,
        "online": 12
      },
      "frequency": {
        "base": 3.7,
        "max": 4.7,
        "min": 0.8,
        "biosLimit": null
      },
      "coreTypes": [
        {
          "count": 12,
          "freq": 3700000
        }
      ],
      "temperature": 36.0
    },
    "stat": 3
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 262144,
          "num": 6,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 12582912,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 11
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      5.0,
      0.0,
      0.0,
      0.0
    ],
    "stat": 200
  },
  {
    "type": "GPU",
    "result": [
      {
        "coreCount": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          }
        },
        "driver": "nvidia 550.90.07",
        "name": "GeForce GTX 1070 Ti",
        "temperature": 60.0,
        "type": "Discrete",
        "vendor": "NVIDIA",
        "platformApi": "DRM (card1)",
        "frequency": 1.911
      }
    ],
    "stat": 53
  },
  {
    "type": "Memory",
    "result": {
      "total": 16701816832,
      "used": 6157791232
    },
    "stat": 0
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0
  },
  {
    "type": "Swap",
    "result": {
      "total": 8589930496,
      "used": 1048576
    },
    "stat": 0
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 160656777216,
          "free": 171410972672,
          "total": 210241560576,
          "used": 38830587904
        },
        "files": {
          "total": 13107200,
          "used": 434036
        },
        "filesystem": "ext4",
        "mountpoint": "/",
        "mountFrom": "/dev/sdc4",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-06-09T22:49:10.000+0300"
      },
      {
        "bytes": {
          "available": 631373824,
          "free": 701837312,
          "total": 1020702720,
          "used": 318865408
        },
        "files": {
          "total": 65536,
          "used": 37
        },
        "filesystem": "ext4",
        "mountpoint": "/boot",
        "mountFrom": "/dev/sdc3",
        "name": "",
        "volumeType": [
          "Hidden"
        ],
        "createTime": "2024-06-09T22:49:18.000+0300"
      },
      {
        "bytes": {
          "available": 370275758080,
          "free": 389969514496,
          "total": 429687242752,
          "used": 39717728256
        },
        "files": {
          "total": 26722304,
          "used": 234148
        },
        "filesystem": "ext4",
        "mountpoint": "/home",
        "mountFrom": "/dev/sdc5",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-06-09T22:49:16.000+0300"
      },
      {
        "bytes": {
          "available": 246273708032,
          "free": 246273708032,
          "total": 335544315904,
          "used": 89270607872
        },
        "files": {
          "total": 240599972,
          "used": 69887
        },
        "filesystem": "fuseblk",
        "mountpoint": "/mnt/datassd",
        "mountFrom": "/dev/sdc6",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": null
      }
    ],
    "stat": 1
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0
  },
  {
    "type": "Player",
    "result": {
      "player": "Spotify",
      "playerId": "spotify",
      "url": "https://open.spotify.com/track/11GiOH1246s7AFyGRGIrqs"
    },
    "stat": 4
  },
  {
    "type": "Media",
    "result": {
      "song": "No Motivation",
      "artist": "Ryan K. Hudson",
      "album": "No Motivation",
      "status": ""
    },
    "stat": 0
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "the.numbers.mason.what.do.they.mean",
      "location": "Somewhere shitty."
    },
    "stat": 0
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "defaultRoute": true,
        "ipv4": "192.168.1.123/24",
        "ipv6": "2a0d:6fc2:49b0:c500:61ff:dae4:50ba:811f/64",
        "mac": "e0:d5:5e:2f:7e:87",
        "name": "enp0s31f6"
      }
    ],
    "stat": 0
  },
  {
    "type": "Wifi",
    "result": [],
    "stat": 20
  },
  {
    "type": "DateTime",
    "result": "2024-06-16T16:17:55.464+0300",
    "stat": 0
  },
  {
    "type": "Locale",
    "result": "en_US.UTF-8",
    "stat": 0
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "1.3.277",
      "conformanceVersion": "1.3.2",
      "driver": "NVIDIA [550.90.07]",
      "gpus": [
        {
          "type": "Discrete",
          "vendor": "NVIDIA",
          "name": "NVIDIA GeForce GTX 1070 Ti",
          "driver": "550.90.07",
          "platformApi": "Vulkan 1.3.277",
          "memory": {
            "dedicated": {
              "total": 8847884288,
              "used": null
            },
            "shared": {
              "total": 12526362624,
              "used": null
            }
          },
          "deviceId": 7042
        }
      ]
    },
    "stat": 64
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.6.0 NVIDIA 550.90.07",
      "renderer": "NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2",
      "vendor": "NVIDIA Corporation",
      "slv": "4.60 NVIDIA"
    },
    "stat": 80
  },
  {
    "type": "OpenCL",
    "result": {
      "version": "3.0 CUDA",
      "device": "NVIDIA GeForce GTX 1070 Ti",
      "vendor": "NVIDIA Corporation"
    },
    "stat": 39
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "computer",
        "hostName": "",
        "sessionName": "tty2",
        "clientIp": "0.0.0.0",
        "loginTime": "2024-06-16T15:13:38.180+0300"
      }
    ],
    "stat": 0
  },
  {
    "type": "Bluetooth",
    "result": [
      {
        "address": "F8:4E:17:E5:E3:52",
        "battery": 100,
        "connected": true,
        "name": "WH-1000XM4",
        "type": "audio-headset"
      }
    ],
    "stat": 1
  },
  {
    "type": "Sound",
    "result": [
      {
        "active": true,
        "main": true,
        "volume": 59,
        "name": "WH-1000XM4",
        "identifier": "bluez_output.F8_4E_17_E5_E3_52.1"
      }
    ],
    "stat": 4
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0
  },
  {
    "type": "Weather",
    "error": "Invalid response",
    "stat": 1057
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "enp0s31f6",
        "defaultRoute": true,
        "txBytes": 643,
        "rxBytes": 747,
        "txPackets": 7,
        "rxPackets": 5,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 1
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "ATA TOSHIBA HDWD120",
        "devPath": "/dev/sdb",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "ATA Samsung SSD 870",
        "devPath": "/dev/sdc",
        "bytesRead": 2992128,
        "bytesWritten": 98304,
        "readCount": 30,
        "writeCount": 7
      },
      {
        "name": "ATA INTEL SSDSC2BF36",
        "devPath": "/dev/sda",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 1
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "ATA TOSHIBA HDWD120",
        "devPath": "/dev/sdb",
        "interconnect": "ATA",
        "kind": "HDD",
        "size": 2000398934016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "",
        "temperature": null
      },
      {
        "name": "ATA Samsung SSD 870",
        "devPath": "/dev/sdc",
        "interconnect": "ATA",
        "kind": "SSD",
        "size": 1000204886016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "",
        "temperature": null
      },
      {
        "name": "ATA INTEL SSDSC2BF36",
        "devPath": "/dev/sda",
        "interconnect": "ATA",
        "kind": "SSD",
        "size": 360080695296,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "",
        "temperature": null
      }
    ],
    "stat": 1
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "architecture": "x86_64",
      "version": "2.15.0",
      "versionTweak": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Jun  8 2024, 00:00:00",
      "compiler": "gcc 14.1.1",
      "debugMode": false,
      "libc": "glibc 2.39"
    },
    "stat": 0
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0
  }
]

Output of fastfetch --list-features:

threads
vulkan
wayland
xcb-randr
xcb
xrandr
x11
drm
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
sqlite3
rpm
egl
glx
osmesa
opencl
libpulse
libnm
libddcutil
Proprietary GPU driver API
System yyjson
linux/videodev2
linux/wireless

Video:

https://github.com/fastfetch-cli/fastfetch/assets/71827944/99bef441-0b7c-41e1-b152-70e1e791488d

As can be seen in the video above, fastfetch flashes on the screen for around a frame showing the last succesfully printed variable is the "shell" variable. The nexted one is supposed to be the "Display" variable but instead of showing that it just black screens.

NGSpace avatar Jun 16 '24 13:06 NGSpace

Duplicate #1003

Should be a Nvidia driver bug.

CarterLi avatar Jun 16 '24 13:06 CarterLi

Will the issue be fixed in the release of the 560 drivers?

NGSpace avatar Jun 16 '24 14:06 NGSpace

Okay so it isn't the display variable? I disabled it and it is still problematic.

NGSpace avatar Jun 16 '24 14:06 NGSpace

I can reproduce it. Problem occurs not only with display variable --> also with GPU. I guess everything which reads GPU/Monitor info. Important additional info: Problem exists only if following kernel parameters are set: nvidia_drm.modeset=1 nvidia_drm.fbdev=1

With this combination it works: nvidia_drm.modeset=1 nvidia_drm.fbdev=0

v4mp123 avatar Jul 04 '24 08:07 v4mp123

Important additional info: Problem exists only if following kernel parameters are set: nvidia_drm.modeset=1 nvidia_drm.fbdev=1

With this combination it works: nvidia_drm.modeset=1 nvidia_drm.fbdev=0

This suggests that it is a NV driver bug. One may report it to Nvidia.

CarterLi avatar Jul 04 '24 10:07 CarterLi

Important additional info: Problem exists only if following kernel parameters are set: nvidia_drm.modeset=1 nvidia_drm.fbdev=1 With this combination it works: nvidia_drm.modeset=1 nvidia_drm.fbdev=0

This suggests that it is a NV driver bug. One may report it to Nvidia.

Done: https://forums.developer.nvidia.com/t/tty-breaks-with-nvidia-drm-fbdev-0/298663

v4mp123 avatar Jul 04 '24 12:07 v4mp123