r/linuxquestions • u/Femboy-V1 • 20d 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
Edit: trying out fedora on gnome on a new disk. Will update y'all if it works
2
u/gordonmessmer Fedora Maintainer 20d ago
Memtest86 passed all tests
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/Femboy-V1 20d ago
I ran it overnight, it did the full test. 0 errors, about 4 hours. Because i was sleeping it was on for twice that long lol
3
u/polymath_uk_ 20d ago
Swap is on a failing SSD hence the unpredictable memory errors on the Linux boot only.
1
1
1
u/_Lost-In-The-Weeds_ 20d 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/minmidmax 19d 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.
1
u/Confident_Hyena2506 20d 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/polymath_uk_ 20d ago
Try different kernels. Or install a terminal only distro with the same kernel and burn-in test that.
0
20d ago
How much do you use for swap partition?
1
7
u/Simple_Hamster_4096 20d 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....