Random freezes when video plays or discord streaming (KDE Plasma, Wayland, Discord Hardware Acceleration)

hi, i am very new to linux as a daily driver. please have patience and i apologize for any confusion.

https://0x0.st/8mye.txt

here are my specs. please let me know what other information you need.

the freezes occur only on wayland and last sometimes 20 seconds. during this time, all input and video output is frozen but you can still hear video audio playing uninterrupted.

thank you.

edit: discord hardware acceleration is the problem. vesktop is more compatible and isn’t causing issues. i cannot narrow down a real problem and fix it.

Welcome to the community! :vulcan_salute: :enos_flag:

Two questions:

  1. When did the freezes start? Days ago, weeks, ever since you installed EndeavourOS?
  2. You said “only on Wayland”, so I’m guessing you actually know how to switch to X11. This is good. Now, is there a specific reason why you want to use Wayland instead of X11?
    • This issue will likely be fixed on its own in the future by an update, so you could just use X11 until then.

hello, thank you! :bowing_woman: :smile:

I have only had EndeavourOS installed for 2 days. It began when i tried screen sharing my monitor in discord, yesterday. today, it has randomly happened twice. both times it was when a video on youtube had began playing.

Wayland is preferable to me because it seems to be smoother on my higher refresh rate monitor.
i cannot say that it 100% doesn’t happen on x11, only that it hasn’t happened yet. but all day yesterday when i was streaming using x11 and playing a game, it didn’t happen.

in short, i would prefer to use wayland because it seems smoother to me.

Is this a laptop or desktop?

If it’s a laptop, try disconnecting any external displays and streaming again with only the laptop’s screen to see if the issue still occurs. This will help us know if it’s a problem with how Wayland is interfacing with your monitor.

If it’s a desktop, then someone else will have to chip in, as I’ve never used Linux with anything but a laptop with no external displays.

1 Like

it is a desktop. thank you for your help :pray:

1 Like

i was testing some things out and was getting this. i have discord and vencord installed with hardware acceleration on.

systemd-coredump[34965]: [🡕] Process 34960 (Discord) of user 1000 dumped core.
                                                     
                                                     Stack trace of thread 1:
                                                     #0  0x00005a5d01be555d n/a (n/a + 0x0)
                                                     #1  0x00005a5cfeb860dd n/a (n/a + 0x0)
                                                     #2  0x00005a5cfeb86da8 n/a (n/a + 0x0)
                                                     #3  0x00005a5cfeb87df6 n/a (n/a + 0x0)
                                                     #4  0x00005a5cfeb85aea n/a (n/a + 0x0)
                                                     #5  0x00005a5cfeb85bd0 n/a (n/a + 0x0)
                                                     #6  0x00005a5cfe82cee7 n/a (n/a + 0x0)
                                                     #7  0x000072215c287488 n/a (n/a + 0x0)
                                                     #8  0x000072215c28754c n/a (n/a + 0x0)
                                                     #9  0x00005a5cfe40d02a n/a (n/a + 0x0)
                                                     ELF object binary architecture: AMD x86-64
░░ Subject: Process 34960 (Discord) dumped core

i reinstalled discord and turned hardware acceleration off and so far it’s not doing anything. it’s possible that this is the culprit? i will come back if there are no interruptions to mark as resolved.

1 Like

at this point, i am certain discord hardware acceleration is the issue. after doing a lot of research, nothing really seems to help and having hardware acceleration on is the root of the problem.
despite this, i still get a similar system freeze up when first starting discord.

i have looked for a lot of solutions but haven’t found one.

Nice seeing a new user do their own logical troubleshooting.

For the slight delay, that could be KDE, the kernel you’re using, your user settings or your hardware. For testing if it’s user settings, you can just create a new user, then try to place that new user in the same scenario (same apps open, same game — if gaming, etc.).

As for KDE, you could test another Wayland window manager like Hyprland.

For kernel, you can install the LTS kernel, then boot into it.

And finally, for hardware, either updating your BIOS (if it can be) or testing different hardware if you have access to another system.

1 Like

Vesktop is a good client alternative maybe you can give it a try.

this saved my life, thank you.

my conclusion is that this is the best solution for the problem.

solution: use vesktop.

3 Likes

i’d like to add a final note

hardware acceleration in general with a multi monitor setup with 2 dif resolutions and refresh rates on wayland is tricky and i am not sure completely how to solve the issue.

i haven’t narrowed down a real fix and am just doing what i can to make it stop happening as much or to make it nonexistent through trial and error.
if you come across this, you may need to reconfigure your video drivers, kernel, check wayland logs, preform a plethora of things to narrow it down.
i wish the issue was able to be reliably replicated.

good luck.

Apologies for necro-ing this but I had the same issue. I have found it while searching fixes for the same issue.
The worst thing is, it was happening at random. Some days I was fine watching videos, but games froze my entire DE (The game was running and I could interact with stuff, screen was frozen). Discord wasn’t it for me, as I got vencord right after I installed EndeavourOS.

The most recent issue outside of this one, was posted on Reddit 2 months ago describing the exact same issue. Apparently moving to LTS kernel helped with the freezes. I just switched myself and so far nothing has frozen. I need more time with it testing it, but if anyone is struggling with the same issue, try changing your kernel usimg akm kernel manager.

1 Like

I’m here with an update.

Been 3 days and I am getting the freezes again today. It is constantly happening with Cyberpunk 2077. It also happened once when I was watching a youtube video on a fullscreen, but I couldn’t replicate that again. I assume it’s vulkan related. When I check the logs it is throwing some errors around.
This is happening on both 6.13.7.arch1-1 and 6.12.19-1 LTS kernels. I also checked Wayland and X11 but they are both affected.

As for hardware I am running this:
AMD Ryzen 7 7800x3d
RX 9070 XT

Before I used to have a RTX 3080 but I had no freezing issues.

Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:40 vmid:2 pasid:32803)
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:  in process GameThread pid 9882 thread vkd3d_queue pid 10053)
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x00000083daada000 from client 10
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00240A50
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:          Faulty UTCL2 client ID: CPC (0x5)
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:          MORE_FAULTS: 0x0
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:          WALKER_ERROR: 0x0
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:          MAPPING_ERROR: 0x0
Mar 17 16:51:23 kernel: amdgpu 0000:03:00.0: amdgpu:          RW: 0x1

you seem to have gone through the same troubleshooting i did. are your bios and system and drivers all the way updated when it’s happening?

I’ve done some more troubleshooting after I made this post. I’ve always heard that you should keep your system up to date, but that seems to be breaking things for me more than if I keep it at a certain version.
Recently there was a amdvlk update (2025.Q1.3-1) which I think caused the issue to flare up again. I’ve updated it yesterday morning. Because I’m on a brand new GPU I was also on the testing packages. So I’ve downgraded the amdvlk to version 2025.Q1.2-1 and I’ve removed the testing branches as well as turned off VRR from with system and all three of my monitors’ settings.
I’ve played a bunch of titles, some old (2015) some new (2024) including Cyberpunk 2077 and I had no freezes for far. I’m also on Wayland and the 6.12.19-1-lts kernel as this kernel seems to be most stable.

I hope this configuration will help you out as well with this issue

i’m glad you got it working. in my case, i am completely updated and the problem mysteriously stopped for no reason. i can run discord in wayland or xwayland and there’s no issue. i wish i could pinpoint it to help people in the future.

1 Like

Same here. I don’t know what’s causing it exactly, but I can assume it’s something to do with the GPU drivers. Maybe vulkan, maybe it’s a kernel issue or even variable refresh rate.

Anyhow, I’m glad that freezes on your end disappeared. Let’s hope it will stay that way!

Hello!

I had the same problem with Mesa 25.0.1-2 on my 7900 XTX. What helped me was the downgrade to 24.3.4-1. Since then there has been no freeze for 2 days.

Unfortunately the solution does not work with the new RX 9000 series. :-/

I’ve had few freezes after my post (again, 3 days later lol) but only with one game, STALKER 2.
I am still on the same amdvlk version as before, but there were some kde updates.
When I had the crash, I checked the logs and I got this line:

Mar 21 15:31:21 kwin_wayland[1127]: kwin_wayland_drm: Pageflip timed out! This is a bug in the amdgpu kernel driver
Mar 21 15:31:21 kwin_wayland[1127]: kwin_wayland_drm: Please report this at https://gitlab.freedesktop.org/drm/amd/-/issues
Mar 21 15:31:21 kwin_wayland[1127]: kwin_wayland_drm: With the output of 'sudo dmesg' and 'journalctl --user-unit plasma-kwin_wayland --boot 0'

So I went to check the link provided in the log to see that there are a lot of reports, as old as a month, maybe even older. I also had an issue with the color accuracy setting which is also metnioned in there.

@shadow359 have you tried changing to LTS kernel? that seemed to help me the most, as well as staying with amdvlk 2025.Q1.2-1?

Hello @jedicore!

For me just the mesa downgrade worked and I am using vulkan-radeon 1:25.0.1-2 right now. No Freeze, no crashes or lockups since the downgrade but i am using a RX 7900 XTX.

I had read that the new Mesa version will soon fix (hopefully) the problems with the RX 9700 XT.

Here is the article: https://www.phoronix.com/news/Mesa-25.0.2-Released

Edit:

Sorry for the late response. Have a nice weekend.

1 Like