Description of the issue: Brave does not come up after I upgraded to Ubuntu 26.04 LTS
Steps to Reproduce (add as many as necessary):
Install Brave: sudo snap install brave
Attempt to run: brave
Actual Result (gifs and screenshots are welcome!):
shore@master-2:~$ brave
[29544:29544:0602/084844.814511:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
[29544:29544:0602/084844.814884:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
[29544:29544:0602/084844.814900:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting.
[0602/084844.818599:ERROR:third_party/crashpad/crashpad/util/linux/ptracer.cc:605] ptrace: Input/output error (5)
[0602/084844.819561:ERROR:third_party/crashpad/crashpad/util/linux/ptracer.cc:605] ptrace: Input/output error (5)
[0602/084844.819772:ERROR:third_party/crashpad/crashpad/util/linux/ptracer.cc:605] ptrace: Input/output error (5)
[0602/084844.819881:ERROR:third_party/crashpad/crashpad/util/linux/ptracer.cc:605] ptrace: Input/output error (5)
[0602/084844.819893:ERROR:third_party/crashpad/crashpad/util/linux/ptracer.cc:605] ptrace: Input/output error (5)
[0602/084844.842723:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
/snap/brave/634/opt/brave.com/brave/brave-browser: line 30: 29544 Segmentation fault (core dumped) “$HERE/brave” “$@”
Expected result:
Expected a brave browser window. Note that the brave-browser command does not exist. Also note that running “brave --ozone-platform=x11” works, but an online suggestion to turn off hardware acceleration in the settings doesn’t work. I’m reduced to building my own single-line script to start brave with the ozone-platform setting specified.
Reproduces how often:
always
Operating System and Brave Version(See the About Brave page in the main menu):
Additional Information: Output from a successful startup:
shore@master-2:~$ ./mybrave
Gtk-Message: 08:59:48.820: Not loading module “atk-bridge”: The functionality is provided by GTK natively. Please try to not load it.
[32902:32902:0602/085948.977744:ERROR:dbus/object_proxy.cc:572] Failed to call method: org.freedesktop.Secret.Service.ReadAlias: object_path= /org/freedesktop/secrets: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type=“method_call”, sender=“:1.131” (uid=1000 pid=32902 comm=“/snap/brave/634/opt/brave.com/brave/brave --ozone-” label=“snap.brave.brave (enforce)”) interface=“org.freedesktop.Secret.Service” member=“ReadAlias” error name=“(unset)” requested_reply=“0” destination=“org.freedesktop.secrets” (uid=1000 pid=6000 comm=“/usr/bin/gnome-keyring-daemon --foreground --compo” label=“unconfined”)
I just wanted to say that I have the exact same problem today in NixOS 26.05 with KDE&Wayland (used Brave Browser 149.1.91.175 from the nixos-26.05 channel). Also the x11-ozone-trick works.
[nix-shell:~]$ brave
[0628/002359.351215:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0628/002359.351489:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0628/002359.353346:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0628/002359.353474:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0628/002359.353577:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0628/002359.358135:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0628/002359.359163:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0628/002359.359659:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0628/002359.359674:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0628/002359.364749:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0628/002359.364762:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0628/002359.364780:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0628/002359.364785:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
/nix/store/7xlvc46jm156r9r5slcha7mjdpr6y76n-brave-1.91.175/bin/.brave-wrapped: line 30: 2480676 Speicherzugriffsfehler (core dumped) "$HERE/brave" "$@"
[nix-shell:~]$ brave --ozone-platform=x11
[2480944:2480944:0628/002417.724459:ERROR:components/dbus/xdg/request.cc:173] Request ended (non-user cancelled).
[2480944:2480972:0628/002421.402306:ERROR:content/browser/browser_main_loop.cc:274] GLib: g_main_context_pop_thread_default: assertion 'stack != NULL' failed
[nix-shell:~]$ brave --version
Brave Browser 149.1.91.175
[nix-shell:~]$
(the nix-shell is because I wanted to try valgrind but it couldn’t cope with a clone-syscall)
Some gdb logs generated using AI recommended commands (for this command some environment variables might be off as I bypassed wrapper scripts): Thread 1 "brave" hit Catchpoint 1 (signal SIGSEGV), 0x00007fffdf982ed4 in ?? () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Gui.so.6 (gdb) bt #0 0x00007fffdf982ed4 in ?? () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Gui.so.6 #1 0x00007fffdf981618 in ?? () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Gui.so.6 #2 0x00007fffdf9816e5 in ?? () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Gui.so.6 #3 0x00007fffd986c079 in initializeRendererSessions() () from /nix/store/vy79j6rasf5my697yhhgzi4hl17saqpa-plasma-integration-6.6.5/lib/qt-6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so #4 0x00007fffe0030e62 in QCoreApplicationPrivate::init() () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Core.so.6 #5 0x00007fffdf54420b in ?? () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Gui.so.6 #6 0x00007fffdecb4285 in QApplicationPrivate::init() () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Widgets.so.6 #7 0x00007fffe72242e7 in ?? () from /nix/store/7xlvc46jm156r9r5slcha7mjdpr6y76n-brave-1.91.175/opt/brave.com/brave/libqt6_shim.so #8 0x00007fffffff40f0 in ?? () #9 0x00007ffff6ed5593 in _dlerror_run () from /nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6 #10 0x00007fffe7225fb2 in CreateQtInterface () from /nix/store/7xlvc46jm156r9r5slcha7mjdpr6y76n-brave-1.91.175/opt/brave.com/brave/libqt6_shim.so #11 0x0000555564f5af1a in ?? () #12 0x0000206c0048fc40 in ?? () #13 0x5f4e4f4953534553 in ?? () #14 0x00524547414e414d in ?? () #15 0x0f007ffff5d6a800 in ?? () #16 0x0000000000000001 in ?? () #17 0x0000206c00935220 in ?? () #18 0x000000000000003b in ?? () #19 0x8000000000000040 in ?? () #20 0x0000000000000001 in ?? () #21 0x0000000000000000 in ?? () (gdb) frame 0 #0 0x00007fffdf982ed4 in ?? () from /nix/store/b1zm7dq5gf2593fmk575wgr0nvr2ngld-qtbase-6.11.1/lib/libQt6Gui.so.6 (gdb) info frame Stack level 0, frame at 0x7fffffff3c80: rip = 0x7fffdf982ed4; saved rip = 0x7fffdf981618 called by frame at 0x7fffffff3cb0 Arglist at 0x7fffffff3c70, args: Locals at 0x7fffffff3c70, Previous frame's sp is 0x7fffffff3c80 Saved registers: rip at 0x7fffffff3c78 (gdb) x/i $pc => 0x7fffdf982ed4: mov 0x8(%rdi),%rax (gdb) list *$pc (gdb) info registers rdi rax rdi 0x1 1 rax 0x1 1 (gdb)