They happen randomly, not often, perhaps 1x/4weeks.
Last time, yesterday, I was on a webpage with an embedded video, and when I clicked to watch it the system froze.
This is not the way it happens every time, sometimes I am just reading a webpage and the system freezes.
Can you summarise what you have tried, to avoid us suggesting the same things again. e.g. have you tried switching from Wayland to X11 at the login screen gear icon?
What people have suggested is try a different browser (or two), to see if the problem still occurs or not. If not then you can consider the problem is confined to Brave browser and can then proceed to troubleshoot on that basis.
If you persist with Brave, you will simply go on persisting with the freezing issue without simply eliminating the first potential cause. First rule of troubleshooting elimiate possible causes one-by-one.
If Brave should have (I don't use Brave, so I don't know) something called Hardware Acceleration You could play with this Setting and turn it off test it a while and then turn it on again. That would be an Idea for the Browser itself.
In common I would ask if You already tried to change between Xorg and Wayland?
Another Thing could be if You use Fractional Scaling or how Your Refresh Rate is set up.
in Google Chrome, hardware acceleration can sometimes cause issues like crashing or freezing in Chrome and to fix these issues, you may need to disable hardware acceleration.
So, this supports your suggestion to disable GPU acceleration in Brave. I will report back.
Re Xorg and Wayland: I originally started on Wayland and the problem arose too, iirc. I changed to Xorg, not because of that but because the autotype feature of KeePassXC does not work under Wayland. Under Xorg, which I am still using, the freeze issue remained.
I have had fractional scaling disabled ever since I installed Zorin. I do, however, increase text size with CTRL-Shift-+ : is that relevant to your remark?
user1@laptop:~$ flatpak run com.brave.Browser
Gtk-Message: 18:44:46.884: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:44:46.889: Failed to load module "canberra-gtk-module"
Assertion 'p' failed at src/libsystemd/sd-event/sd-event.c:178, function event_origin_changed(). Aborting.
Could the canberra-gtk-module have anything to do with my issue? If so, should I install it? If so, is the best way to that sudo apt install canberra-gtk-module?
This canberra-gtk-module is - as fas as I understand this - for some kind of Sound Stuff for a Program; for Signal Tones. Stuff like that.
But I see that You use the Flatpak Version of Brave. Maybe this could be the Reason. You could test if the .deb Version (I guess available from the Developer?) runs better.
Or You make first that what You wrote and test it with disabled Hardware Acceleration.
Brave is available as a Flatpak package from Flathub. While it is maintained by Brave Software, it is not yet working as well as our native packages. We currently recommend that users who are able to use our official package repositories do so instead of using the Flatpak.
So, your comment makes sense, and I will have to make the switch.
As a general question, does that mean I have to uninstall the flatpak version first or is the fact that the flatpak version is containerized and self-sufficient for all the elements, dependencies, etc., there is no risk to install the .deb version in parallel?
The reason I ask is because I want to try to copy the flatpak profile to the deb version profile. If it does not work — I believe there is that risk, unlike with Firefox — then at least I still have the flatpak version I can look at and make changes manually in the deb version.
I can only speak for Firefox because I had the Flatpak and the .deb Version at the same Time installed and that makes no Problems for me. When You want to go the safeist Way, it would be better to uninstall the Flatpak Version. But that You can do after You have added the Brave Repository.
Because of the Profile: Is there any Setting to export Your Brave Profile? If yes, You could do this and after the Installation of the .deb Version You could import this Profile.
Unfortunately there is not. I have an indication of where the config folder is — there is a lot in there and I am not sure it really the equivalent of the "profile" folder. I can try and if it does not work I'll have to do everything from scratch again.
After I will have done all these acrobatics, I'll monitor .deb Brave for a while longer and will report back. Judging from Brave's own comment I quoted above, your suggestion may well be the solution, in which case I will mark it as such.
Update: I did that parallel install, then managed to copy the folder over, it went without a hitch !!
For others who might come across this:
the flatpak folder is at ~/.var/app/com.brave.Browser/BraveSoftware, so it is the BraveSoftware folder that needs to be copied to ~/.config/
I tried the 2 problem-causing web pages in the .deb Brave browser, and there weren't any problems. Let's see what happens in coming time. I will update here.