You are not logged in.

#1 2023-03-16 10:38:19

newt9
Member
Registered: 2021-02-14
Posts: 14

[SOLVED] Links opening multiple Brave tabs bug

For the past week (starting ~13 March), whenever I open a link outside of my browser, it opens the link 3 times. Every time.

It does this when opening links from Slack, ClickUp and other applications, as well as via scripts based on links in the terminal (eg. a link handler taking links from Newsboat and sending them to the $BROWSER).

I hadn't changed anything in these scripts, and as it also happened in Slack and ClickUp, I figured it might be the issue of Brave. But I couldn't find any known bugs about it online. fyi, If I open directly via terminal (eg. $BROWSER google.com) it opens normally (as expected).

I looked into the journal and coredumps, and see that since Mar 13, Brave is coredumping ~20 times per day. They come in sets of three, and correspond to me clicking on the links.

I tried with another browser. Installed firefox, exported the $BROWSER as firefox, rebooted. Confirmed that my browser is firefox.

Now, when opening links via the terminal now (eg. $BROWSER google.com) it opens one link in firefox (as expected). But Slack and ClickUp fail to recognize the change and still open them in Brave (3 times). And opening links via newsboat and my url handler script opens one in Brave and one in Firefox.

It's really bizarre. Why is Slack not changing the browser? Why is it doing that via the linkhandler script as well?

I haven't changed anything, so I don't even know where to look for the problem. I looked in the usual places, but couldn't figure it out.

This behaviour is happening across dwm, brave/firefox, slack, newsboat...

The relevant part of mys link handling script is this (also unchanged, and it used to work fine):

[ -f "$url" ] && setsid -f "$TERMINAL" -e "$EDITOR" "$url" >/dev/null 2>&1 || setsid -f "$BROWSER" "$url" >/dev/null 2>&1

Has anyone else experienced this?

How can I trace what happens after clicking on a link in Slack or selecting to open a link with the above linkhandler? I imagine extra processes are being spawned at some point in the flow, but I don't know where to find the fault.

Last edited by newt9 (2023-03-30 07:57:35)

Offline

#2 2023-03-16 12:26:09

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

Does

xdg-open https://www.archlinux.org

trigger this?

Offline

#3 2023-03-17 06:38:22

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

Yes. With firefox now set as the BROWSER, it opens one in Brave first, and then one in firefox.

Not sure if it's relevant, but this is the output in terminal of that command:

Opening in existing browser session.
[0317/103629.583315:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Segmentation fault (core dumped)
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
[ERROR viaduct::backend::ffi] Missing HTTP status
[ERROR viaduct::backend::ffi] Missing HTTP status

Offline

#4 2023-03-17 07:35:33

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

https://wiki.archlinux.org/title/Xdg-utils#xdg-open
https://wiki.archlinux.org/title/Xdg-utils#xdg-settings
https://wiki.archlinux.org/title/Xdg-ut … e_handlers

xdg-settings get default-web-browser
xdg-settings get default-url-scheme-handler https
xdg-settings get default-url-scheme-handler http # all three hopefully reference your script
XDG_UTILS_DEBUG_LEVEL=3 xdg-open https://www.archlinux.org

Offline

#5 2023-03-17 11:07:29

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

The 3 responses for the xdg-settings are:

$ xdg-settings get default-web-browser
brave-browser.desktop
$ xdg-settings get default-url-scheme-handler https
brave-browser.desktop
$ xdg-settings get default-url-scheme-handler http
brave-browser.desktop

While:

$ echo $BROWSER
firefox

If I try to change the xdg-settings:

$ xdg-settings set default-web-browser firefox.desktop
xdg-settings: $BROWSER is set and can't be changed with xdg-settings

If I do the above with sudo, it works, but it only changes the default-web-browser for the super user, not for my regular account.

The output for the last command was as follows:

$ XDG_UTILS_DEBUG_LEVEL=3 xdg-open https://www.archlinux.org

Selected DE generic
Checking /home/user/.config/mimeapps.list
Checking /home/user/.local/share/applications/defaults.list and /home/user/.local/share/applications/mimeinfo.cache
Checking /home/user/.local/share/applications/defaults.list and /home/user/.local/share/applications/mimeinfo.cache
Checking /usr/local/share//applications/defaults.list and /usr/local/share//applications/mimeinfo.cache
Checking /usr/local/share//applications/defaults.list and /usr/local/share//applications/mimeinfo.cache
Checking /usr/share//applications/defaults.list and /usr/share//applications/mimeinfo.cache
/home/user/.local/share:/usr/local/share/:/usr/share/
Opening in existing browser session.
[0317/145258.928068:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Segmentation fault (core dumped)
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
[ERROR viaduct::backend::ffi] Missing HTTP status
[ERROR viaduct::backend::ffi] Missing HTTP status

Preempting a possible next question:

$ cat /home/user/.config/mimeapps.list
[Default Applications]

# xdg-open will use these settings to determine how to open filetypes.
# These .desktop entries can also be seen and changed in ~/.local/share/applications/

text/x-shellscript=text.desktop;
x-scheme-handler/magnet=magnet.desktop;
application/x-bittorrent=torrent.desktop;
x-scheme-handler/mailto=mail.desktop;
text/plain=text.desktop;
application/postscript=pdf.desktop;
application/pdf=pdf.desktop;
image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
application/rss+xml=rss.desktop
video/x-matroska=video.desktop
x-scheme-handler/lbry=lbry.desktop
inode/directory=file.desktop
x-scheme-handler/figma=figma-linux.desktop
x-scheme-handler/clickup=ClickUp.desktop

$ cat /home/user/.local/share/applications/mimeinfo.cache
[MIME Cache]
x-scheme-handler/magnet=magnet.desktop;

$ cat /usr/share//applications/mimeinfo.cache
... other things... 
x-scheme-handler/http=brave-browser.desktop;firefox.desktop;
x-scheme-handler/https=brave-browser.desktop;firefox.desktop;
... other things... 

(The other files mentioned in the XDG_UTILS_DEBUG_LEVEL=3 command don't exist)

Last edited by newt9 (2023-03-17 11:10:27)

Offline

#6 2023-03-17 11:58:10

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

And here's the desktop entry:

$ cat /usr/share/applications/brave-browser.desktop

[Desktop Entry]
Version=1.0
Name=Brave
[... all the names and comments]
StartupNotify=true
StartupWMClass=brave-browser
TryExec=brave
Exec=brave %U
Terminal=false
Icon=brave-desktop
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns;
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=New Window
[... all the names and comments]
Exec=brave

[Desktop Action new-private-window]
Name=New Incognito Window
[... all the names and comments]
Exec=brave --incognito
MimeType=x-scheme-handler/unknown;x-scheme-handler/about;text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;

Offline

#7 2023-03-17 12:02:14

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

BROWSER= xdg-settings set default-web-browser firefox.desktop
BROWSER= xdg-settings set default-url-scheme-handler http firefox.desktop
BROWSER= xdg-settings set default-url-scheme-handler https firefox.desktop

Maybe

xdg-mime default firefox.desktop x-scheme-handler/https x-scheme-handler/http

Last edited by seth (2023-03-17 12:02:25)

Offline

#8 2023-03-17 12:13:14

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

Thanks so much for your help so far, Seth!

So this would change it to Firefox which is an OK temporary fix, but what's up with Brave? What if I don't want to switch?

How can I investigate where this issue of spawning multiple tabs every time a link is clicked arises from?

seth wrote:
BROWSER= xdg-settings set default-web-browser firefox.desktop
BROWSER= xdg-settings set default-url-scheme-handler http firefox.desktop
BROWSER= xdg-settings set default-url-scheme-handler https firefox.desktop

Maybe

xdg-mime default firefox.desktop x-scheme-handler/https x-scheme-handler/http

These commands worked and now when opening links via Slack or Newsboat, both just open once in Firefox (no Brave at all)! Yay!

BROWSER= xdg-settings set default-web-browser firefox.desktop

However, if I change it back to Brave:

BROWSER= xdg-settings set default-web-browser brave-desktop.desktop

... it still opens every link 3 times! ?

Last edited by newt9 (2023-03-17 13:08:44)

Offline

#9 2023-03-17 16:31:22

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

Brave is coredumping ~20 times per day. They come in sets of three, and correspond to me clicking on the links.

Check the coredumps, https://wiki.archlinux.org/title/Core_d … _core_dump

What if you "killall brave" first (to not re-use a session)

Also

For the past week (starting ~13 March)

check your pacman log. Did you update glib2 that day?

Offline

#10 2023-03-21 07:25:57

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

Thanks again for your help with this, Seth!

Here they are in reverse order:

# coredumpctl info 1110062

           PID: 1110062 (brave)
           UID: 1001 (user)
           GID: 998 (wheel)
        Signal: 11 (SEGV)
     Timestamp: Fri 2023-03-17 17:05:58 +04 (3 days ago)
  Command Line: $'/opt/brave-bin/brave https://maze.co/guides/usability-testing/tools/'
    Executable: /opt/brave-bin/brave
 Control Group: /user.slice/user-1001.slice/user@1001.service/app.slice/sxhkd.service
          Unit: user@1001.service
     User Unit: sxhkd.service
         Slice: user-1001.slice
     Owner UID: 1001 (user)
      Hostname: hostname
  Size on Disk: 3.2M
       Message: Process 1110062 (brave) of user 1001 dumped core.

                Stack trace of thread 1110062:
                #0  0x000055c85b0f2a29 n/a (brave + 0x936ca29)
                #1  0x000055c85a96c5ca n/a (brave + 0x8be65ca)
                #2  0x000055c85b2ceafa n/a (brave + 0x9548afa)
                #3  0x000055c85a96c8cb n/a (brave + 0x8be68cb)
                #4  0x000055c8579dddd4 n/a (brave + 0x5c57dd4)
                #5  0x000055c8579e947d n/a (brave + 0x5c6347d)
                #6  0x000055c8551b7d3b n/a (brave + 0x3431d3b)
                #7  0x000055c8551b76a5 n/a (brave + 0x34316a5)
                #8  0x000055c8551b709a n/a (brave + 0x343109a)
                #9  0x000055c856f37985 n/a (brave + 0x51b1985)
                #10 0x000055c856148a79 n/a (brave + 0x43c2a79)
                #11 0x000055c85614833b n/a (brave + 0x43c233b)
                #12 0x000055c85614822b n/a (brave + 0x43c222b)
                #13 0x000055c85614813e n/a (brave + 0x43c213e)
                #14 0x000055c856b3d9d5 n/a (brave + 0x4db79d5)
                #15 0x000055c856b3bcfb ChromeMain (brave + 0x4db5cfb)
                #16 0x00007f6de3566790 n/a (libc.so.6 + 0x23790)
                #17 0x00007f6de356684a __libc_start_main (libc.so.6 + 0x2384a)
                #18 0x000055c857c4a05a _start (brave + 0x5ec405a)

                Stack trace of thread 1110072:
                #0  0x00007f6de363d9df __poll (libc.so.6 + 0xfa9df)
                #1  0x000055c8577ebf2d n/a (brave + 0x5a65f2d)
                #2  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #3  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110094:
                #0  0x00007f6de363d9df __poll (libc.so.6 + 0xfa9df)
                #1  0x000055c8579ebf73 n/a (brave + 0x5c65f73)
                #2  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #3  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110078:
                #0  0x00007f6de3614747 wait4 (libc.so.6 + 0xd1747)
                #1  0x000055c856daccac n/a (brave + 0x5026cac)
                #2  0x000055c8579eb988 n/a (brave + 0x5c65988)
                #3  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #4  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110086:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c7f90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x000055c8550e5514 n/a (brave + 0x335f514)
                #3  0x000055c8550e4ed9 n/a (brave + 0x335eed9)
                #4  0x000055c8550e4d9c n/a (brave + 0x335ed9c)
                #5  0x000055c855b799b2 n/a (brave + 0x3df39b2)
                #6  0x000055c855b78e5c n/a (brave + 0x3df2e5c)
                #7  0x000055c856860e48 n/a (brave + 0x4adae48)
                #8  0x000055c856860be8 n/a (brave + 0x4adabe8)
                #9  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #10 0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #11 0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110079:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554be86d n/a (brave + 0x373886d)
                #3  0x000055c8579e8889 n/a (brave + 0x5c62889)
                #4  0x000055c85b302488 n/a (brave + 0x957c488)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110100:
                #0  0x00007f6de364b1b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x000055c8548de19e n/a (brave + 0x2b5819e)
                #2  0x000055c855b799b2 n/a (brave + 0x3df39b2)
                #3  0x000055c855b78e5c n/a (brave + 0x3df2e5c)
                #4  0x000055c856860e48 n/a (brave + 0x4adae48)
                #5  0x000055c856860be8 n/a (brave + 0x4adabe8)
                #6  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #7  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110090:
                #0  0x00007f6de363996c read (libc.so.6 + 0xf696c)
                #1  0x000055c8574293b9 n/a (brave + 0x56a33b9)
                #2  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #3  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110082:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #4  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110093:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #4  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110083:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b71ed n/a (brave + 0x37311ed)
                #4  0x000055c8554b6ee7 n/a (brave + 0x3730ee7)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110084:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #4  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110087:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #4  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110091:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #4  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110092:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #4  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110095:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554be86d n/a (brave + 0x373886d)
                #3  0x000055c8554ba855 n/a (brave + 0x3734855)
                #4  0x000055c8554b7386 n/a (brave + 0x3731386)
                #5  0x000055c8554b6f5d n/a (brave + 0x3730f5d)
                #6  0x000055c8554b6ec8 n/a (brave + 0x3730ec8)
                #7  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #8  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110098:
                #0  0x00007f6de35c5766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f6de35c8294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055c8554b8039 n/a (brave + 0x3732039)
                #3  0x000055c8554b721d n/a (brave + 0x373121d)
                #4  0x000055c8554b6ef6 n/a (brave + 0x3730ef6)
                #5  0x000055c855fb6f3c n/a (brave + 0x4230f3c)
                #6  0x00007f6de35c8bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f6de364ad90 n/a (libc.so.6 + 0x107d90)
                ELF object binary architecture: AMD x86-64

# coredumpctl info 1109963

           PID: 1109963 (brave)
           UID: 1001 (user)
           GID: 998 (wheel)
        Signal: 11 (SEGV)
     Timestamp: Fri 2023-03-17 17:05:56 +04 (3 days ago)
  Command Line: $'/opt/brave-bin/brave https://maze.co/guides/usability-testing/tools/'
    Executable: /opt/brave-bin/brave
 Control Group: /user.slice/user-1001.slice/user@1001.service/app.slice/sxhkd.service
          Unit: user@1001.service
     User Unit: sxhkd.service
         Slice: user-1001.slice
     Owner UID: 1001 (user)
      Hostname: hostname
  Size on Disk: 3.2M
       Message: Process 1109963 (brave) of user 1001 dumped core.

                Stack trace of thread 1109963:
                #0  0x0000556aeb5a1a29 n/a (brave + 0x936ca29)
                #1  0x0000556aeae1b5ca n/a (brave + 0x8be65ca)
                #2  0x0000556aeb77dafa n/a (brave + 0x9548afa)
                #3  0x0000556aeae1b8cb n/a (brave + 0x8be68cb)
                #4  0x0000556ae7e8cdd4 n/a (brave + 0x5c57dd4)
                #5  0x0000556ae7e9847d n/a (brave + 0x5c6347d)
                #6  0x0000556ae5666d3b n/a (brave + 0x3431d3b)
                #7  0x0000556ae56666a5 n/a (brave + 0x34316a5)
                #8  0x0000556ae566609a n/a (brave + 0x343109a)
                #9  0x0000556ae73e6985 n/a (brave + 0x51b1985)
                #10 0x0000556ae65f7a79 n/a (brave + 0x43c2a79)
                #11 0x0000556ae65f733b n/a (brave + 0x43c233b)
                #12 0x0000556ae65f722b n/a (brave + 0x43c222b)
                #13 0x0000556ae65f713e n/a (brave + 0x43c213e)
                #14 0x0000556ae6fec9d5 n/a (brave + 0x4db79d5)
                #15 0x0000556ae6feacfb ChromeMain (brave + 0x4db5cfb)
                #16 0x00007f7f5c04b790 n/a (libc.so.6 + 0x23790)
                #17 0x00007f7f5c04b84a __libc_start_main (libc.so.6 + 0x2384a)
                #18 0x0000556ae80f905a _start (brave + 0x5ec405a)

                Stack trace of thread 1109972:
                #0  0x00007f7f5c1229df __poll (libc.so.6 + 0xfa9df)
                #1  0x0000556ae7c9af2d n/a (brave + 0x5a65f2d)
                #2  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #3  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109978:
                #0  0x00007f7f5c0f9747 wait4 (libc.so.6 + 0xd1747)
                #1  0x0000556ae725bcac n/a (brave + 0x5026cac)
                #2  0x0000556ae7e9a988 n/a (brave + 0x5c65988)
                #3  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #4  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109982:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae5965f5d n/a (brave + 0x3730f5d)
                #4  0x0000556ae5965ec8 n/a (brave + 0x3730ec8)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109983:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae59661ed n/a (brave + 0x37311ed)
                #4  0x0000556ae5965ee7 n/a (brave + 0x3730ee7)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109979:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae596d86d n/a (brave + 0x373886d)
                #3  0x0000556ae7e97889 n/a (brave + 0x5c62889)
                #4  0x0000556aeb7b1488 n/a (brave + 0x957c488)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109984:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae5965f5d n/a (brave + 0x3730f5d)
                #4  0x0000556ae5965ec8 n/a (brave + 0x3730ec8)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109986:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0acf90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x0000556ae5594514 n/a (brave + 0x335f514)
                #3  0x0000556ae5593ed9 n/a (brave + 0x335eed9)
                #4  0x0000556ae5593d9c n/a (brave + 0x335ed9c)
                #5  0x0000556ae60289b2 n/a (brave + 0x3df39b2)
                #6  0x0000556ae6027e5c n/a (brave + 0x3df2e5c)
                #7  0x0000556ae6d0fe48 n/a (brave + 0x4adae48)
                #8  0x0000556ae6d0fbe8 n/a (brave + 0x4adabe8)
                #9  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #10 0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #11 0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110013:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae5965f5d n/a (brave + 0x3730f5d)
                #4  0x0000556ae5965ec8 n/a (brave + 0x3730ec8)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110012:
                #0  0x00007f7f5c11e96c read (libc.so.6 + 0xf696c)
                #1  0x0000556ae78d83b9 n/a (brave + 0x56a33b9)
                #2  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #3  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110014:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae5965f5d n/a (brave + 0x3730f5d)
                #4  0x0000556ae5965ec8 n/a (brave + 0x3730ec8)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110015:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae5965f5d n/a (brave + 0x3730f5d)
                #4  0x0000556ae5965ec8 n/a (brave + 0x3730ec8)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110016:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae5965f5d n/a (brave + 0x3730f5d)
                #4  0x0000556ae5965ec8 n/a (brave + 0x3730ec8)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110017:
                #0  0x00007f7f5c1229df __poll (libc.so.6 + 0xfa9df)
                #1  0x0000556ae7e9af73 n/a (brave + 0x5c65f73)
                #2  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #3  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110018:
                #0  0x00007f7f5c0aa766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f7f5c0ad294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x0000556ae5967039 n/a (brave + 0x3732039)
                #3  0x0000556ae596621d n/a (brave + 0x373121d)
                #4  0x0000556ae5965ef6 n/a (brave + 0x3730ef6)
                #5  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #6  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1110019:
                #0  0x00007f7f5c1301b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x0000556ae4d8d19e n/a (brave + 0x2b5819e)
                #2  0x0000556ae60289b2 n/a (brave + 0x3df39b2)
                #3  0x0000556ae6027e5c n/a (brave + 0x3df2e5c)
                #4  0x0000556ae6d0fe48 n/a (brave + 0x4adae48)
                #5  0x0000556ae6d0fbe8 n/a (brave + 0x4adabe8)
                #6  0x0000556ae6465f3c n/a (brave + 0x4230f3c)
                #7  0x00007f7f5c0adbb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007f7f5c12fd90 n/a (libc.so.6 + 0x107d90)
                ELF object binary architecture: AMD x86-64

# coredumpctl info 1109873
 	   PID: 1109873 (brave)
           UID: 1001 (user)
           GID: 998 (wheel)
        Signal: 11 (SEGV)
     Timestamp: Fri 2023-03-17 17:05:54 +04 (3 days ago)
  Command Line: $'/opt/brave-bin/brave https://maze.co/guides/usability-testing/tools/'
    Executable: /opt/brave-bin/brave
 Control Group: /user.slice/user-1001.slice/user@1001.service/app.slice/sxhkd.service
          Unit: user@1001.service
     User Unit: sxhkd.service
         Slice: user-1001.slice
     Owner UID: 1001 (user)
      Hostname: hostname
  Size on Disk: 3.2M
       Message: Process 1109873 (brave) of user 1001 dumped core.

                Stack trace of thread 1109873:
                #0  0x000055f3298efa29 n/a (brave + 0x936ca29)
                #1  0x000055f3291695ca n/a (brave + 0x8be65ca)
                #2  0x000055f329acbafa n/a (brave + 0x9548afa)
                #3  0x000055f3291698cb n/a (brave + 0x8be68cb)
                #4  0x000055f3261dadd4 n/a (brave + 0x5c57dd4)
                #5  0x000055f3261e647d n/a (brave + 0x5c6347d)
                #6  0x000055f3239b4d3b n/a (brave + 0x3431d3b)
                #7  0x000055f3239b46a5 n/a (brave + 0x34316a5)
                #8  0x000055f3239b409a n/a (brave + 0x343109a)
                #9  0x000055f325734985 n/a (brave + 0x51b1985)
                #10 0x000055f324945a79 n/a (brave + 0x43c2a79)
                #11 0x000055f32494533b n/a (brave + 0x43c233b)
                #12 0x000055f32494522b n/a (brave + 0x43c222b)
                #13 0x000055f32494513e n/a (brave + 0x43c213e)
                #14 0x000055f32533a9d5 n/a (brave + 0x4db79d5)
                #15 0x000055f325338cfb ChromeMain (brave + 0x4db5cfb)
                #16 0x00007f38ce4c3790 n/a (libc.so.6 + 0x23790)
                #17 0x00007f38ce4c384a __libc_start_main (libc.so.6 + 0x2384a)
                #18 0x000055f32644705a _start (brave + 0x5ec405a)

                Stack trace of thread 1109887:
                #0  0x00007f38ce571745 wait4 (libc.so.6 + 0xd1745)
                #1  0x000055f3255a9cac n/a (brave + 0x5026cac)
                #2  0x000055f3261e8988 n/a (brave + 0x5c65988)
                #3  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #4  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #5  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109893:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb3f5d n/a (brave + 0x3730f5d)
                #4  0x000055f323cb3ec8 n/a (brave + 0x3730ec8)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109881:
                #0  0x00007f38ce59a9df __poll (libc.so.6 + 0xfa9df)
                #1  0x000055f325fe8f2d n/a (brave + 0x5a65f2d)
                #2  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #3  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109896:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce524f90 pthread_cond_wait (libc.so.6 + 0x84f90)
                #2  0x000055f3238e2514 n/a (brave + 0x335f514)
                #3  0x000055f3238e1ed9 n/a (brave + 0x335eed9)
                #4  0x000055f3238e1d9c n/a (brave + 0x335ed9c)
                #5  0x000055f3243769b2 n/a (brave + 0x3df39b2)
                #6  0x000055f324375e5c n/a (brave + 0x3df2e5c)
                #7  0x000055f32505de48 n/a (brave + 0x4adae48)
                #8  0x000055f32505dbe8 n/a (brave + 0x4adabe8)
                #9  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #10 0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #11 0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109901:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb3f5d n/a (brave + 0x3730f5d)
                #4  0x000055f323cb3ec8 n/a (brave + 0x3730ec8)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109891:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb3f5d n/a (brave + 0x3730f5d)
                #4  0x000055f323cb3ec8 n/a (brave + 0x3730ec8)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109894:
                #0  0x00007f38ce59a9df __poll (libc.so.6 + 0xfa9df)
                #1  0x000055f3261e8f73 n/a (brave + 0x5c65f73)
                #2  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #3  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109888:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cbb86d n/a (brave + 0x373886d)
                #3  0x000055f3261e5889 n/a (brave + 0x5c62889)
                #4  0x000055f329aff488 n/a (brave + 0x957c488)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109902:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb3f5d n/a (brave + 0x3730f5d)
                #4  0x000055f323cb3ec8 n/a (brave + 0x3730ec8)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109899:
                #0  0x00007f38ce59696c read (libc.so.6 + 0xf696c)
                #1  0x000055f325c263b9 n/a (brave + 0x56a33b9)
                #2  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #3  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #4  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109904:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb421d n/a (brave + 0x373121d)
                #4  0x000055f323cb3ef6 n/a (brave + 0x3730ef6)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109900:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cbb86d n/a (brave + 0x373886d)
                #3  0x000055f323cb7855 n/a (brave + 0x3734855)
                #4  0x000055f323cb4386 n/a (brave + 0x3731386)
                #5  0x000055f323cb3f5d n/a (brave + 0x3730f5d)
                #6  0x000055f323cb3ec8 n/a (brave + 0x3730ec8)
                #7  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #8  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #9  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109903:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb3f5d n/a (brave + 0x3730f5d)
                #4  0x000055f323cb3ec8 n/a (brave + 0x3730ec8)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109892:
                #0  0x00007f38ce522766 n/a (libc.so.6 + 0x82766)
                #1  0x00007f38ce525294 pthread_cond_timedwait (libc.so.6 + 0x85294)
                #2  0x000055f323cb5039 n/a (brave + 0x3732039)
                #3  0x000055f323cb41ed n/a (brave + 0x37311ed)
                #4  0x000055f323cb3ee7 n/a (brave + 0x3730ee7)
                #5  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #6  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #7  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)

                Stack trace of thread 1109905:
                #0  0x00007f38ce5a81b6 epoll_wait (libc.so.6 + 0x1081b6)
                #1  0x000055f3230db19e n/a (brave + 0x2b5819e)
                #2  0x000055f3243769b2 n/a (brave + 0x3df39b2)
                #3  0x000055f324375e5c n/a (brave + 0x3df2e5c)
                #4  0x000055f32505de48 n/a (brave + 0x4adae48)
                #5  0x000055f32505dbe8 n/a (brave + 0x4adabe8)
                #6  0x000055f3247b3f3c n/a (brave + 0x4230f3c)
                #7  0x00007f38ce525bb5 n/a (libc.so.6 + 0x85bb5)
                #8  0x00007f38ce5a7d90 n/a (libc.so.6 + 0x107d90)
                ELF object binary architecture: AMD x86-64
seth wrote:

What if you "killall brave" first (to not re-use a session)

If I killall brave first, and open a link without opening brave first, it just opens the link once as it should. But then if I open another link, it still opens three times. So this just fixes the problem for the first opened link.

seth wrote:

Also

For the past week (starting ~13 March)

check your pacman log. Did you update glib2 that day?

Yes, glib2 was updated on the 12th. What does that have to do with it?

Offline

#11 2023-03-21 08:38:21

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

glib 2.76 fundamentally altered the memory management in glib clients, exposing a lot of bugs itr.

https://bbs.archlinux.org/viewtopic.php … 6#p2090386
https://bbs.archlinux.org/viewtopic.php … 6#p2090396

brave seems to have such hidden bug in the code that opens the url in a new tab/window, crashes (in the client process after the IPC to the existing process succeeded) and xdg-open ("mis"-)interprets that as failure and tries the url again.

Offline

#12 2023-03-21 15:02:48

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

Oh sick!

So it's not just my setup then?

That's both reassuring and annoying! Reassuring because we've found the problem and it's not in one of my scripts. Annoying because I won't be able to fix it! =P

I'm escalating the bug on Brave's end then.

For others who want to follow along, here's a bug: https://github.com/brave/brave-browser/issues/29212

Thanks Seth!

Offline

#13 2023-03-21 15:18:38

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

You could possibly work around that behavior w/ an executable script in /usr/local/bin/brave (or /usr/bin/brave, replacing some symlink?) that looks somewhat like

#!/bin/bash
if pgrep brave > /dev/null; then
    /opt/brave-bin/brave "$@"
    exit 0 # fake success
fi
exec /opt/brave-bin/brave "$@"

Offline

#14 2023-03-29 14:11:11

newt9
Member
Registered: 2021-02-14
Posts: 14

Re: [SOLVED] Links opening multiple Brave tabs bug

The above worked as a temporary fix.

For others coming along:

I pasted your script into a file called brave in my .local/bin (which is sourced in my $PATH):

cat ~/.local/bin/brave

#!/bin/bash
if pgrep brave > /dev/null; then
    /opt/brave-bin/brave "$@"
    exit 0 # fake success
fi
exec /opt/brave-bin/brave "$@"

Then made it executable with a:

chmod +x brave

This apparently takes precedence over the brave entries in /opt and /usr, and so when I run brave, or click on a link, it calls my script instead of the others. This has the added convenience that I'm not messing with any root files or changing something in my /usr folder that I'll probably forget about smile

The result: I still get the coredumps, but the tab only opens once.

Thanks seth!

PS. Should we mark it as solved then?

Last edited by newt9 (2023-03-29 14:12:44)

Offline

#15 2023-03-29 14:39:47

seth
Member
Registered: 2012-09-03
Posts: 59,737

Re: [SOLVED] Links opening multiple Brave tabs bug

There isn't much more we can do here. The brave-browser team needs to fix the (likely glib2 related) bug.

This apparently takes precedence

echo $PATH

Offline

Board footer

Powered by FluxBB