Finally Narrowed Down what is Causing a Complete System Freeze, How to Fix? (AMD Ryzen, Vega64)

EDIT: Oops, this should probably be in the Hardware section.

Hey guys, what’s up?

As the title says I was able to narrow down what exactly is causing my computer to randomly freeze, but I don’t know how to fix it.

So here’s the thing, I’ve been having random freezes and JournalD or xorg.log never had anything regarding a crash/error (at least to my knowledge) and neither can I SYSRQ after the freeze (yes, I have it enabled in the Kernel config through Yast2). I think something is causing a complete hardware lockup.

After a few months of using OpenSUSE Leap 15, I’ve narrowed it down when exactly the complete lockup/freeze happens: when I’m playing a Youtube video. I’ve been paying close attention to what I was running just after the freeze happens and I’m nearly 100% certain it’s caused by that. The funny thing is, playing games (Native, Proton or Wine games) alone does not cause any crashes, it only happens in tandem when I’m playing a Youtube video on the side or Youtube videos on their own.

I have now disabled hardware acceleration in Firefox to see if that may be the cause, but it’s hard to know if it “solved” the issue because the freezes are extremely random (may work for weeks without a crash).

Any idea how I can fix this or even debug this any further?

TL;DR:
Youtube playback is most likely completely freezing up my system extremely randomly. Any ideas?

My specs:

  • CPU: AMD Ryzen 7 1800X
  • Video Card: AMD Vega 64 using the open source drivers
  • Motherboard: GIGABYTE AORUS GA-AX370-Gaming K7
  • probably not relevant: Disks: Samsung NVME M.2 PRO 950 (entire OS incl. /home/ installed on this), 3 Crucial BX200 SSDs in software RAID0 as external storage

Other info:

uname -a:
This happens accross all Kernel versions I’ve tried, so I doubt it’s the kernel itself. I also need the latest and greatest to properly get Vega64 working, I think the oldest one I could use with Vega64 was 4.15 but I’m not 100% sure there.

Linux opensuse 4.18.10-1.g3aeb311-vanilla #1 SMP PREEMPT Wed Sep 26 08:36:48 UTC 2018 (3aeb311) x86_64 x86_64 x86_64 GNU/Linux

glxinfo | grep -i render:

direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Radeon RX Vega (VEGA10 / DRM 3.26.0 / 4.18.10-1.g3aeb311-vanilla, LLVM 5.0.1)
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_packed_depth_stencil, 
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_NV_blend_square, GL_NV_conditional_render, GL_NV_depth_clamp, 
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

zypper repos:

Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh
---+-------------------------------------+-----------------------------------------+---------+-----------+--------
 1 | Kernel:stable                       | Kernel:stable                           | Yes     | (r ) Yes  | Yes    
 2 | code                                | Visual Studio Code                      | Yes     | (r ) Yes  | No     
 3 | http-download.opensuse.org-02dc0c6d | Education                               | Yes     | (r ) Yes  | Yes    
 4 | http-download.opensuse.org-4dc66248 | KDE:Qt                                  | Yes     | (r ) Yes  | Yes    
 5 | http-download.opensuse.org-f13b5857 | home:strycore                           | Yes     | (r ) Yes  | Yes    
 6 | openSUSE-Leap-15.0-1                | openSUSE-Leap-15.0-1                    | No      | ----      | ----   
 7 | repo-debug                          | openSUSE-Leap-15.0-Debug                | No      | ----      | ----   
 8 | repo-debug-non-oss                  | openSUSE-Leap-15.0-Debug-Non-Oss        | No      | ----      | ----   
 9 | repo-debug-update                   | openSUSE-Leap-15.0-Update-Debug         | No      | ----      | ----   
10 | repo-debug-update-non-oss           | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No      | ----      | ----   
11 | repo-non-oss                        | openSUSE-Leap-15.0-Non-Oss              | Yes     | (r ) Yes  | Yes    
12 | repo-oss                            | openSUSE-Leap-15.0-Oss                  | Yes     | (r ) Yes  | Yes    
13 | repo-source                         | openSUSE-Leap-15.0-Source               | No      | ----      | ----   
14 | repo-source-non-oss                 | openSUSE-Leap-15.0-Source-Non-Oss       | No      | ----      | ----   
15 | repo-update                         | openSUSE-Leap-15.0-Update               | Yes     | (r ) Yes  | Yes    
16 | repo-update-non-oss                 | openSUSE-Leap-15.0-Update-Non-Oss       | Yes     | (r ) Yes  | Yes

Browser:
Firefox 60.2.1esr (64-bit) from the OpenSUSE Leap 15 repository.

Logs:

Last JournalD log (journalctl --boot=-1):
https://pastebin.com/DXQVDABS

Last XOrg log:
https://pastebin.com/bLWJMKjZ

Eh, what’s that KDE Qt repo? Mixing packages from various KDE repos could be part of the culprit.


zypper lr -d

Here’s the output:

Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                   | Service
---+-------------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------------------+--------
 1 | Kernel:stable                       | Kernel:stable                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Kernel:/stable/standard                     |        
 2 | code                                | Visual Studio Code                      | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://packages.microsoft.com/yumrepos/vscode                                        |        
 3 | http-download.opensuse.org-02dc0c6d | Education                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Education/openSUSE_Leap_15.0/               |        
 4 | http-download.opensuse.org-4dc66248 | KDE:Qt                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Qt/openSUSE_Leap_15.0/                 |        
 5 | http-download.opensuse.org-f13b5857 | home:strycore                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/strycore/openSUSE_Leap_15.0/          |        
 6 | openSUSE-Leap-15.0-1                | openSUSE-Leap-15.0-1                    | No      | ----      | ----    |   99     | rpm-md | hd:///?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Blade_20051536200A79E11D8F-0:0-part2 |        
 7 | repo-debug                          | openSUSE-Leap-15.0-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/oss/                   |        
 8 | repo-debug-non-oss                  | openSUSE-Leap-15.0-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/non-oss/               |        
 9 | repo-debug-update                   | openSUSE-Leap-15.0-Update-Debug         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.0/oss/                              |        
10 | repo-debug-update-non-oss           | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.0/non-oss/                          |        
11 | repo-non-oss                        | openSUSE-Leap-15.0-Non-Oss              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/non-oss/                     |        
12 | repo-oss                            | openSUSE-Leap-15.0-Oss                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/oss/                         |        
13 | repo-source                         | openSUSE-Leap-15.0-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/oss/                  |        
14 | repo-source-non-oss                 | openSUSE-Leap-15.0-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/non-oss/              |        
15 | repo-update                         | openSUSE-Leap-15.0-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/oss/                                    |        
16 | repo-update-non-oss                 | openSUSE-Leap-15.0-Update-Non-Oss       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/non-oss/                                |

If I remember correctly, I needed that for QtCreator in the past, but I have no installed packages from that repository on my system:

# zypper search --installed-only --repo KDE:Qt
Loading repository data...
Reading installed packages...
No matching items found.

you seam to be missing the packman repo
it’s quite possible it’s something vp9 related you could try and force google to send you h264 video’s instead
try the h264ify extension which basically tells google your browser can’t decode webm video and then youtube serves you mp4
but for that to work you’d need to have all multimedia packages installed from the packman repo as you don’t seam to have packman I’ll leave it to you to google h264ify and h264/mp4
unfortunately nobody’s written a guide about LEAP 15 and multimedia but you can follow the LEAP 42.3 or TW guides pinned at the top of this page (just replace 42.3 with 15.0)
https://forums.opensuse.org/showthread.php/526222-Multimedia-Guide-for-openSUSE-Leap-42-3
https://forums.opensuse.org/showthread.php/523476-Multimedia-Guide-for-openSUSE-Tumbleweed

Remove the KDE:Qt repo and run


zypper dup

, to make sure you have a consistent Qt/KDE stack

Next use YaST’s repo manager, Add, Community … , check Packman, OK OK, trust the key when asked for.
Again next, run


zypper lr

and find the index number of your Packman repom. let’s say it’s 9. Then do


zypper dup --from 9 --allow-vendor-change && zypper inr --from 9

Thanks for the answers. I have now re-enabled hardware acceleration in Firefox and done what you have posted.

I’ll report back if that solved the issue.