๐ [X-Post] [PSA][Linux] If you experience hard crashes on AMD, disable RDD for media
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
Cross-posting here as it might be of interest and was removed on /r/firefox as per their anti-security-weakening policy.
If you don't have this problem, of course don't disable RDD.
In this painful path that's started since Mozilla set up to secure Firefox and enable RDD sandbox since a few versions ago, the latest iteration on Firefox 101 for me was hard / reproducible crashes of AMDGPU for me when trying to use hardware accelerated video decode.
I was becoming hopeless because until this is all figured out, I was running with "MOZ_DISABLE_RDD_SANDBOX=1 MOZ_ENABLE_WAYLAND=1" and while still experiencing recurring video playback crashes, I could just reload those and it'd be fine. Now however, since I updated, I would lose my entire work whenever try to play a video in the browser as AMDGPU crashes mean you loose your graphical environment.
What baffled me was that in my logs, I was seeing this:
[drm:amdgpu_job_timedout [amdgpu]] ERROR Process information: process RDD Process pid 11848 thread firefox:cs0 pid 12268
But I'm running with RDD disabled via envvar right?
Well it appears that as far as I can tell Firefox 101.0.1 so far DOES NOT respect disabling RDD via environment variable, or at least not completely, as for some reason, it still enables it by default for the most unstable piece of the puzzle, which is media playback.
Looking in about:config, sure enough, a bunch of "media.rdd-*" settings were set to true.
Set them all to false and enjoy a stable-ish browser again.
[link] [comments] ...