I’ve also been thinking about ways to find the cause, but there are a few issues.
Firstly, when loading such a short, the video loads and starts playing for a bit, then the entire browser hangs for a few seconds and then all browsing windows instantly vanish.
The biggest problem is that if I don’t get rid of the tab that caused it, restoring the previous browsing session will cause it to just crash again.
Fortunately, YouTube’s devs have foresaw potentially issues, so your Browsing History doesn’t change on Shorts that are queued naturally (by scrolling to the next short) until the current short finishes playing. This means that when a Chromium window is restored, the tab remains on the prior (non-crashing) short. I can just close the tab with Ctrl+W.
Unfortunately, when opening a YouTube video from a hyperlink, or from your YouTube watch history, there is no such protection, and the corrupted short will still be present when you restore the previous browsing session, causing another immediate crash.
The only fix is to go to Brave’s Recent Tabs list and reopen each of the previous session’s windows one by one except for the one that caused the crash (which is now permanently unrecoverable)
The biggest obstacle to finding the cause is that, when manually restoring individual windows, Brave will not only reopen all tabs in the window, but also expand all tab groups (which were closed) and actually load all tabs. At the same time.
In my case, this causes my Steam Deck to sh!t itself for a good 10-15 minutes as the 15 tab groups and the 600 tabs within are loaded simultaneously, and several websites to suffer accidental DoS attacks.
I religiously use Chromium’s built in task manager to keep everything in line, but all of the pages are just instantly queued, so I can’t kill the tabs fast enough, because for every tab I kill, another 200 are loaded the next instant.
In order to find the cause, I need a keyboard shortcut I can set to force Brave to just stop what it is doing, then I would have a much easier time finding the root cause, because I wouldn’t risk losing the browsing windows I actually want to preserve from my Recent Tabs history while undertaking the process of repeatedly opening/loading shorts/crashing.
Alternatively, if I have the exact command line for the process that the tabs are run in, I can use Linux’s pkill to kill those specific processes. For example pkill -f “app/brave/brave --type=gpu-process” will kill all of Brave’s GPU processes. Killing the all of the tab processes at once would alleviate this issue.