Fedora 40 kde problems on Discord

I have Fedora 40 KDE with Wayland installed, and Discord keeps crashing, whether from flatpak or installed via terminal. What should I provide to solve the problem?

You need to share details of your system and what error you see in the terminal when you start Discord. I am successfully running with the tar.gz version on fedora 40.

What is the output of inxi -Fzxx? Post as preformatted text using the </> button.
What errors do you see when you run Discord from the tar.gz in a terminal?

However, there is a problem with discord and chrome crashes on wayland and x11

m@komputerpc:~$ inxi -Fzxx
System:
  Kernel: 6.9.7-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.1 tk: Qt v: N/A wm: kwin_x11 dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Desktop Mobo: Micro-Star model: MAG B550 TOMAHAWK (MS-7C91) v: 2.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: A.G0
    date: 03/12/2024
CPU:
  Info: 8-core model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+
    rev: 2 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 2402 high: 3374 min/max: 2200/4662 boost: enabled cores:
    1: 2200 2: 2200 3: 2200 4: 2879 5: 2200 6: 2200 7: 2200 8: 2200 9: 2904
    10: 2200 11: 2200 12: 2200 13: 2200 14: 3374 15: 2200 16: 2879
    bogomips: 108794
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 32 [Radeon RX 7700 XT / 7800 XT] vendor: Sapphire
    driver: amdgpu v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-2 empty: DP-1, HDMI-A-1, HDMI-A-2, Writeback-1 bus-ID: 2d:00.0
    chip-ID: 1002:747e
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 24.1.0
    compositor: kwin_x11 driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96
  Monitor-1: DP-2 model: LG (GoldStar) ULTRAGEAR res: 2560x1440 dpi: 109
    diag: 685mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    surfaceless: drv: radeonsi x11: drv: radeonsi inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.2 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 7700 XT (radeonsi navi32 LLVM
    18.1.6 DRM 3.57 6.9.7-200.fc40.x86_64) device-ID: 1002:747e
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 1002:747e device: 1 type: cpu driver: N/A
    device-ID: 10005:0000
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 2d:00.1 chip-ID: 1002:ab30
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 2f:00.4 chip-ID: 1022:1487
  Device-3: Creative BT-W5 driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 3-2.1:5
    chip-ID: 041e:3130
  API: ALSA v: k6.9.7-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 06:00.0 chip-ID: 10ec:8168
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: speed: 5 GT/s lanes: 1 port: d000 bus-ID: 2a:00.0
    chip-ID: 10ec:8125
  IF: enp42s0 state: down mac: <filter>
  Device-3: Microsoft Xbox Wireless Adapter for Windows driver: xone-dongle
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 045e:02fe
Drives:
  Local Storage: total: 2.73 TiB used: 1.19 TiB (43.7%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL21T0HCLR-00BL7
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 43.9 C
  ID-2: /dev/nvme1n1 vendor: Western Digital model: WD Blue SN570 1TB
    size: 931.51 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 41.9 C
  ID-3: /dev/nvme2n1 vendor: SK Hynix model: BC711 NVMe 256GB
    size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 40.9 C
  ID-4: /dev/sda vendor: KIOXIA model: EXCERIA SATA SSD size: 447.13 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdb vendor: GOODRAM model: N/A size: 223.57 GiB speed: 6.0 Gb/s
    serial: <filter>
Partition:
  ID-1: / size: 117.56 GiB used: 21.6 GiB (18.4%) fs: ext4 dev: /dev/nvme2n1p3
  ID-2: /boot size: 973.4 MiB used: 383.5 MiB (39.4%) fs: ext4
    dev: /dev/nvme2n1p2
  ID-3: /boot/efi size: 1022 MiB used: 19 MiB (1.9%) fs: vfat
    dev: /dev/nvme2n1p1
  ID-4: /home size: 114.09 GiB used: 73.56 GiB (64.5%) fs: ext4
    dev: /dev/nvme2n1p4
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 512 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A gpu: amdgpu temp: 41.0 C
    mem: 47.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Memory: total: 32 GiB available: 31.26 GiB used: 4.14 GiB (13.2%)
  Processes: 407 Power: uptime: 1h 0m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 28 Compilers: gcc: 14.1.1 Shell: Bash
    v: 5.2.26 running-in: konsole inxi: 3.3.34

Your hardware spec is close to my systems, own cpu type is different.

You forgot to share the errors you see.

Discord 0.0.58
Starting app.
Starting updater.
2024-07-06T15:20:08.519Z [Modules] Modules initializing
2024-07-06T15:20:08.519Z [Modules] Distribution: remote
2024-07-06T15:20:08.519Z [Modules] Host updates: disabled
2024-07-06T15:20:08.519Z [Modules] Module updates: enabled
2024-07-06T15:20:08.519Z [Modules] Module install path: /home/m/.config/discord/0.0.58/modules
2024-07-06T15:20:08.519Z [Modules] Module installed file path: /home/m/.config/discord/0.0.58/modules/installed.json
2024-07-06T15:20:08.519Z [Modules] Module download path: /home/m/.config/discord/0.0.58/modules/pending
splashScreen.initSplash(false)
CDM component API found
blackbox: 2024-07-06T15:20:08.655Z 0 

----------------------------------------------
CDM work timed out
blackbox: 2024-07-06T15:20:08.663Z 1 Discord starting: {"releaseChannel":"stable","version":"0.0.58"}, modulepath: /home/m/.config/discord/0.0.58/modules
blackbox: 2024-07-06T15:20:08.673Z 2 ✅ webContents.created web1 "index.html"
blackbox: 2024-07-06T15:20:08.674Z 3 ✅ window.created win1 "discord"
splashScreen: SPLASH_SCREEN_READY
splashScreen.webContentsSend: SPLASH_SCREEN_QUOTE SPLASH_SCREEN_QUOTE [ 'Hold Tight — Loading Discord' ]
2024-07-06T15:20:08.728Z [Modules] No updates to install
splashScreen: no-pending-updates
2024-07-06T15:20:08.728Z [Modules] Host is up to date.
2024-07-06T15:20:08.728Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
splashScreen: checking-for-updates
splashScreen.updateSplashState checking-for-updates checking-for-updates {}
splashScreen.webContentsSend: SPLASH_UPDATE_STATE SPLASH_UPDATE_STATE [ { status: 'checking-for-updates' } ]
blackbox: 2024-07-06T15:20:08.771Z 4 ✅ webContents.did-finish-load web1
2024-07-06T15:20:08.864Z [Modules] No module updates available.
splashScreen: update-check-finished true 0 false
CDM completed with status (old updater): undefined
splashScreen.launchMainWindow: false
Optional module ./ElectronTestRpc was not included.
splashScreen.updateSplashState launching launching {}
splashScreen.webContentsSend: SPLASH_UPDATE_STATE SPLASH_UPDATE_STATE [ { status: 'launching' } ]
blackbox: 2024-07-06T15:20:08.950Z 5 ✅ webContents.created web2 ""
blackbox: 2024-07-06T15:20:08.952Z 6 ✅ window.created win2 "Discord"
legacyModuleUpdater: installed-module discord_krisp 1 1 true
legacyModuleUpdater: installed-module discord_game_utils 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.UpdaterEvents: CHECK_FOR_UPDATES UPDATE_NOT_AVAILABLE
2024-07-06T15:20:10.203Z [Modules] Host is up to date.
2024-07-06T15:20:10.203Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2024-07-06T15:20:10.206Z [Modules] No module updates available.
legacyModuleUpdater: update-check-finished
legacyModuleUpdater: installed-module discord_rpc 1 1 true
mainScreen.UpdaterEvents: UPDATER_HISTORY_QUERY_AND_TRUNCATE
mainScreen.on(did-finish-load) false false
splashScreen.pageReady
blackbox: 2024-07-06T15:20:10.275Z 7 ✅ webContents.did-finish-load web2
[6915:0706/172010.277480:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
blackbox: 2024-07-06T15:20:10.376Z 8 window.close win1
blackbox: 2024-07-06T15:20:10.380Z 9 webContents.destroyed web1
blackbox: 2024-07-06T15:20:10.380Z 10 window.closed win1
[6915:0706/172013.039477:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[6915:0706/172017.922518:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!


Discord’s linux app is horribly broken and doesnt support wayland yet. Id recommend running the browser version or getting a third party front end.

I was using an earlier version. I will test 58 and see if it works for me.

Added discord

I have just installed the discord-0.0.58.tar.gz on KDE plasma wayland.

cd bin
rm -rf Discord
tar xf ~/Downloads/discord-0.0.58.tar.gz
Discord/Discord

It just works for me, but I have not tested Audio or Video, just text messages.

It is indeed running as an X11 app under XWayland.

thank you for your help, I’ll check later, but for now I’m using the browser versions as applications.

I notice that I am running kde wayland and you are running kde x11.
Can you try running kde wayland and see if that helps?

The same thing happens on Wayland.

Maybe an issue with your user specific config.

Try adding a new user to your system and see if the new user can run discord.

The same is done on another Wayland account.

I did a web search for “discord GetVSyncParametersIfAvailable” and get lots of reports of problems. It seems to be a problem with hardware acceleration in the electron framework used by Discord.

See [Bug]: GetVSyncParametersIfAvailable() failed for 1 times! · Issue #32760 · electron/electron · GitHub

You may find an answer with a more web searching.

I figured out were discord saves it’s settings to, it is in .config/discord/settings.json.
You could see what you have in that file, if it exists.

Try adding this and see if it helps:

"enableHardwareAcceleration": false

Here is my complete settings.json for reference:

$ cat .config/discord/settings.json
{
  "IS_MAXIMIZED": false,
  "IS_MINIMIZED": false,
  "WINDOW_BOUNDS": {
    "x": 608,
    "y": 303,
    "width": 1280,
    "height": 728
  },
  "chromiumSwitches": {},
  "OPEN_ON_STARTUP": false,
  "enableHardwareAcceleration": false
}

I got the same issue resolved by installing the Nvidia driver. The easiest way to install the NVIDIA driver on Fedora is through the RPM Fusion repositories, which provide the latest proprietary drivers.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Then install the driver,

sudo dnf install akmod-nvidia

And reboot the system,
sudo reboot

Verify your installation with,
nvidia-smi

You might need to disable the secure boot and reboot the system if nvidia-smi failed. After all, then try installing Discord using flatpak.