Window closes when logging into websites

Have been using Brave for a few weeks now. The only annoyance is at least once a day, when I’m logging into websites, the Brave window closes/crashes (whatever you want to call it). Of particular annoyance is this happens with internet banking, community logins, etc.

There seems to be no ‘crash report’, as when I try to login again there is just a small message to “restore the session”. What is causing this ?

Brave 1.80.115 (Official Build) (64-bit)

Chromium: 138.0.7204.97

Hello! Do you have any available crash logs at the time it occurs? They can be found at brave://crashes

1 Like

Unfortunately, nothing there, see screendump

@jehoshua7 typically if it’s the browser crashing then it should trigger a crash report. If you’re not seeing it, then it can sometimes be a clue that perhaps something else is interfering.

For example

  • Some people have had issues trigger due to internet security programs or extensions.
  • Or a while back when I was using Razer Cortex, it was closing Brave when games launched. I had thought the browser was randomly crashing but eventually tracker it down to the setting in Razer Cortex, where Brave was one of the processes it was deciding to terminate to “boost” my computer’s performance.

Can it replicate? Like every time you go to the website and try that it happens? As I’m reading this it makes it sound like it’s random and not consistent, so just wanting to confirm.

1 Like

Yes , that is most likey a factor. If there is no crash report/s, then where else can I look ? Kubuntu system, so “dmsg” , system logs ??

I can’t replicate it, no, sorry. It’s not happeneing on one particular site ALL the time, just very random.

@Saoiray - I was able to upload a crash report from today.

This is still happening most days. :frowning:

This has happened many times today. Firefox didn’t crash like this; will probably go back to FF. :thinking:

@jehoshua7

Usually, in a Linux OS command line, you can start Brave Browser with one of the following commands:

brave -n --args --incognito --no-experiments --disable-extensions --disable-gpu --enable-leak-detection --crash-on-failure 2> $HOME/Desktop/brave_console_out.txt

or

brave-browser -n --args --incognito --no-experiments --disable-extensions --disable-gpu --enable-leak-detection --crash-on-failure 2> $HOME/Desktop/brave_console_out.txt

For that command string, the switches are intended to:

  • Start up Brave Browser, showing a New Private Window [--incognito]
  • Disable all experiments at brave://flags [--no-experiments]
  • Disable extensions [--disable-extensions]
  • Disable hardware (GPU) ie Graphic Acceleration [--disable-gpu]
  • Enable leak detection and if that failure occurs, then crash the browser [--enable-leak-detection --crash-on-failure are a combo]
  • Produce error/log output to a file named ‘brave_console_out.txt’ on the Desktop

How do I manually submit crash reports?

https://support.brave.com/hc/en-us/articles/22281484910221-How-do-I-manually-submit-crash-reports

After you click the “Send Now” button, return to brave://crashes and gather up the Crash ID numbers. Post the numbers, here, in a new reply.

1 Like

@289wk , thanks for your reply. I’ll modify the Brave shortcut to reflect those parameters you have supplied. It seems as if the crash reporting is working better now. Under the folder /home/********/.config/BraveSoftware/Brave-Browser/Crash Reports/ , there is a folder /completed/ with files in it. If I close Brave and restart, those files disappear.
So I assume the info is being sent successfully.

Here is the content of the Brave shortcut now /usr/bin/brave-browser-stable brave -n --args --incognito --no-experiments --disable-extensions --disable-gpu --enable-leak-detection --crash-on-failure 2> $HOME/Desktop/brave_console_out.txt

@289wk , when I use those parameters, a get an error message as follows:

This site can’t be reached

brave’s DNS address could not be found. Diagnosing the problem.

DNS_PROBE_POSSIBLE

Posibly related ? - This site can’t be reached community.brave.com’s DNS address could not be found. Diagnosing the problem. DNS_PROBE_POSSIBLE

@jehoshua7 can you please clarify what specific sites you’re logging into when you see the browser crash like this?

1 Like

@Mattches - It’s not really site specific. Sometimes it does crash, sometimes it doesn’t. Sometimes it is this forum, sometimes accessing the forum is okay. Like, no crashed today at all. I’ll endeavour to note the actual sites.

Re the DNS cache, maybe I now have to disable the private window setting ? This is what I have tried:

sudo resolvectl flush-caches
sudo resolvectl statistics

plus deleted the Brave cache path, but no difference, I still see the DNS cache msg each time I startup Brave.

The DNS error message only happens once, when I startup Brave. It doesn’t happen for any websites, all there is at the URI site address bar up the top is:

http://brave/

of course there will be a message, even Firefox and Google Chrome state the same message. Here are the desktop settings for Brave:

Program: /usr/bin/brave-browser-stable
Command-line-arguments: brave -n --args --incognito --no-experiments --disable-extensions --disable-gpu --enable-leak-detection --crash-on-failure ‘2>’ ‘$HOME/Desktop/brave_console_out.txt’ %U

The contents of the file “brave_console_out.txt” are:

Fontconfig error: Cannot load default config file: No such file: (null)
[6851:6924:0723/083438.064017:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[6851:6923:0723/083438.064134:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[6851:6922:0723/083438.064019:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[6851:6851:0723/084337.486946:ERROR:CONSOLE:3000] “[Settings] Appearance Page cannot find use default theme button template”, source: chrome://settings/settings.js (3000)
[6851:6851:0723/084337.488843:ERROR:CONSOLE:3000] “[Settings] Appearance Page cannot find use default theme button template”, source: chrome://settings/settings.js (3000)

Okay, so no DNS error message if I use this from the command line:

brave-browser-stable -n --args --incognito --no-experiments --disable-extensions --disable-gpu --enable-leak-detection --crash-on-failure 2> $HOME/Desktop/brave_console_out.txt

just need to work out how to set that up in the desktop app icon parms.

@jehoshua7

The general idea, was to use the command line in order to get Brave Browser (Linux OS) that you are using, to run . . . and then follow the steps for reporting crashes.

So, on the chance that “Window closes” is a crash event, the crash reporting steps, would result with Crash ID numbers that you would post here.

So, Brave Support could then use those Crash ID numbers, in order to help them figure out what is happening.

The command line startup of Brave Browser - the command string given - is not meant for everyday, normal running of Brave Browser.

1 Like

Okay thanks @289wk , much appeciated.

1 Like

Since using the following command, there have been NO crashes ..

brave -n --args --incognito --no-experiments --disable-extensions --disable-gpu --enable-leak-detection --crash-on-failure 2> $HOME/Desktop/brave_console_out.txt

However, just 10 minutes ago, it crashed. Here is the contents of the file “brave_console_out.txt”

[4614:4683:0724/174632.469591:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[4614:4684:0724/174632.469785:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[4614:4685:0724/174632.469591:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[0724/174632.528112:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.528998:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.529315:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.531516:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.533226:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.543837:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.543956:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.545436:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0724/174632.546912:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0724/174632.547676:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0724/174632.563724:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0724/174632.563788:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0724/174632.565472:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0724/174632.565572:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0724/174632.570207:ERROR:third_party/crashpad/crashpad/util/file/directory_reader_posix.cc:43] opendir /home/********/.config/BraveSoftware/Brave-Browser/Crash Reports/attachments/efef1a5f-b092-4ac3-9d6a-5dcc4eaa93ba: No such file or directory (2)
/usr/bin/brave-browser-stable: line 39: 4614 Trace/breakpoint trap (core dumped) “$HERE/brave” “$@”

The crash files are shown in this screendump

I have taken a backup of the two crash files, if they are needed.

Now, just to describe what was done prior to the crash. For all the web browsing, I’ve used Brave all day. However, as I needed a URI that is shown in Firefox bookmarks, I opened Firefox at the same time. Copied the bookmark, then Brave crashed ?? Not sure if that had any bearing or not.

When I access brave://crashes , this is what I see:

I was logging into facebook this morning and it crashed. The brave://crashes/

Crash from Tuesday 29 July 2025 at 07:13:42

Status: Uploaded
Uploaded crash report ID: 9c0c0f00-bf2d-370e-0000-000000000000
Upload time: Tuesday 29 July 2025 at 07:13:44

The files in the Brave Crashes/Completed path are:

8b354bb5-8c52-40c0-b0cb-ef0888392db4.dmp
8b354bb5-8c52-40c0-b0cb-ef0888392db4.meta

@Mattches , @Saoiray , @Evan123 , @289wk

Edit - The contents of brave_console_out.txt are:

[5883:5955:0729/074556.741615:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[5883:5954:0729/074556.741615:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[5883:5956:0729/074556.742091:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed
[5883:5910:0729/075110.358775:ERROR:../src/content/browser/browser_main_loop.cc:278] GLib: g_main_context_pop_thread_default: assertion ‘stack != NULL’ failed

1 Like

Thanks! I’ve sent to the team for review.

1 Like