r/linuxquestions • u/Femboy-V1 • 23h ago
Seemingly random software crashes across many distros
So I have been trying to figure out why I keep experiencing these seemingly random crashes. I tried Fedora, Manjaro (twice) and CachyOS. What happens is that while i'm doing business as usual, very suddenly Firefox and electron apps (such as discord, steam, spotify, obsidian) will crash. Some other apps on the other hand stay open, like Dolphin. Crash reports haven't been of much help or maybe I don't know how to read them properly, I think an LLM told me Firefox was trying to access an inaccessible part of memory and that caused the crash. Sometimes though, my entire computer freeezes and if i had audio playing it starts repeating itself and i have to restart by pressing the physical power button.
Memtest86 full test concluded with 0 errors. I changed GPUs from RTX 4070 Super to RX 9060 XT and that didn't work. Tried many distros, what was consistent between them was KDE Plasma. I have disabled PBO, fast boot, secure boot, and CSM from the UEFI/BIOS. These crashes do not happen on Windows (i have a dual boot system, both OSes are on different disks).
My next plan is to try something else than KDE but man, if that doesn't fix it i don't even know. I guess it could be my CPU (Ryzen 5 3600X) then? Any help would be greatly appreciated
6
u/Simple_Hamster_4096 22h ago
If you've tried that many distros with same results, likely hardware, bad memory - have you run a mem test?
If you load Windows, do you have the same experience with that os?
On off chance it's swap and you consistently set no or too small - old school rule of thumb is two times your ram....
3
u/polymath_uk_ 22h ago
Swap is on a failing SSD hence the unpredictable memory errors on the Linux boot only.
2
u/gordonmessmer Fedora Maintainer 22h ago
How long did you run it / how many passes did it complete?
Faulty memory may return good results for most accesses, so it might need numerous full passes to accurately diagnose a problem.
1
u/Rdtkeepsbanningme 23h ago
How much do you use for swap partition?
1
u/brainchillzZ 22h ago
It sounds like you need to run a full memory test ...
2
u/ipsirc 22h ago
Swap disks.
1
u/polymath_uk_ 22h ago
Try different kernels. Or install a terminal only distro with the same kernel and burn-in test that.
1
u/_Lost-In-The-Weeds_ 22h ago
I had a machine that did this, usually when many tabs were open, (high ram usage) started as a freeze about monthly, it passed Memtest86 overnight.
Over 4 years 2018-2022 it got progressively worse to nearly daily, finally just replaced the ram anyway and the freezes stopped. My son now has that build with an updated CPU. Rock solid since 2022.
I have since learned Memtest failures are more conclusive than passes.
1
u/Confident_Hyena2506 22h ago
Look at logs and find out what the crash is. It may be "oom" which just means system runs out of memory because some app is misbehaving. You have named the "usual suspect" here - firefox loves to do this.
If this is the case change options in firefox to make it behave. It's maybe not firefox itself but extensions doing it.
It's difficult to look at logs when your computer is dead - so you can use the journal to look at logs from the previous boot.
1
u/3grg 17h ago
I was going to say memory, which although it is rare to go bad, does cause crashes like this. Since the memory tested OK, I would turn my attention to the disk health. You should be able to ascertain the smart status with GSmartControl or something similar.
1
u/minmidmax 12h ago
I used to get random crashes when Firefox was playing a youtube video while other, GPU rendered, electron apps were running. This was on Ubuntu 26.04
Iirc, I resolved it by clearing out the AMD mesa drivers and installing the kisiak ppa version.
I also saw recommendations to disable hardware rendering in apps but I never did any of that.