System freeze at ending youtube video

I have two manjaro laptops in daily use. Every 6-8 weeks, since late october / early november the system has frozen. It’s been the case on both pc’s. Nothing is working when this happens - no motion on the mouse, no reaction to keyboard indicator light when pressing caps-lock… The only thing to do is long press power button.

It has come to my attention that every time the problem has occurred has been at the moment a youtube video is near the end (still some seconds left) and I touch the touchpad in order to close the tab in firefox where the video is playing. It happens at the exact moment my finger makes contact with the touchpad, before any motion is initiated.
I’ve not been able to replicate the problem by restoring firefox session after reboot and play the same video again.

I thought for a while that the cause could be that I happened to touch the touchpad at the exact moment system was initiating session lock due to inactivity, but it also happens while presentation mode is enabled.

Any suggestions how to debug this?

Is this an invitation for speculation?

There are (or: should be) system logs (journalctl …) documenting what happened at the time.

Once or more than that inside this time frame?

Then it’s obviously not firefox that’s at fault, nor the video that would be corrupt.

If it only happens every 6 to 8 weeks, then it’s most likely an intermittent hardware issue — possibly memory corruption due to electromagnetic interference.

I have not found any log entries with timestamp within a minute before/after freezing.

I don’t think hardware is the one to blame, as this behavior started at two very different laptops within two weeks. Nor can the kernel be blamed as one laptop was running 6.6 LTS, and still is running that kernel, while the other laptop has experienced the issue with every kernel from 6.9 to 6.12.

Both of these laptops are running for several weeks without reboot. Ever since this problem first occurred, they have not been rebooted other than when the freeze occurred. The cause could be firefox plugin could be failing when uptime becomes several weeks.

Could be - or not.

It’s hard to test when it happens so infrequently.

If you suspect some firefox extension - disable it (or all of them) …

Hardware issue is more likely - or cosmic rays messing with the RAM contents or the workings of the CPU … :grimacing:

some system information may help:
inxi -zv8

6-8 weeks is rather good in terms of uptime when regularly watching YouTube videos. I assume you have plenty of RAM. Hopefully also some swap.

Keep an eye on RAM and swap usage:

watch -n60 free -h

I don’t think YouTube pre-loads the next video to any degree, but it might?

Once we see your inxi-zv8 output, it will help. :slight_smile:

2 Likes