Repeatedly opening and closing Private Windows with Tor causes crash

Description of the issue:
If no Private Windows with Tor have been opened prior to the most recent launch of the Brave app, repeatedly opening and closing Private Windows with Tor too quickly can trigger a crash. (I used keyboard shortcuts because pressing keys is faster than dragging and clicking the mouse.)

How can this issue be reproduced?

  1. Quit and reopen the Brave Desktop app.
  2. Open a new regular window or a new Private Window (without Tor). Allow the window to load (or not, doesn’t matter). Don’t close this window.
  3. Use the command-option-N keyboard shortcut to open a Private Window with Tor window.
  4. As soon as the Private Window with Tor window appears on-screen, immediately close that window using command-W.
  5. As soon as the window from step 4 disappears from view, immediately repeat steps 3 and 4 in order until Brave crashes. In my attempts, Brave has crashed after no more than three cycles of steps 3-5.

Expected result:
The Private Windows with Tor open and close normally. Brave doesn’t crash and the normal/private window from step 2 stays open.

Actual result:
The Brave app crashes. (If automatic crash reporting is enabled in settings, a new report appears in brave://crashes)

Brave Version( check About Brave):
Version 1.5.123 Chromium: 80.0.3987.163 (Official Build) (64-bit)
This is the most current Release build of Brave Desktop as of when I wrote this post.

Additional Information:
I’m using MacOS Catalina 10.15.4
I’ve also reproduced this with MacOS Catalina 10.15.3 with the latest Release build of Brave Desktop.

The first time I accidentally triggered this crash, I’d already had several tabs and windows open. I almost always open new windows with keyboard shortcuts and normally don’t use Private Windows with Tor. I had accidentally used the command-option-N (PW with Tor) shortcut instead of the normal command-shift-N shortcut (regular PW). I closed the PW with Tor window and tried to open a regular PW without pausing, but I accidentally pressed the PW with Tor shortcut again. The new PW with Tor popped up and the Brave app crashed almost immediately.
Waiting a few seconds after opening and again after closing a PW with Tor seems to be a workaround. After I wait, I can’t trigger the crash again at will unless I quit and reopen the app first.
I’ve only tested this on MacOS; closing all Brave windows doesn’t actually quit the Brave app.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.