Unable to properly run chrome or brave with linux-browser-installer

I am not sure if this is the right category, or the right place so if it is, I apologize.

I can install and get chrome or brave to start with linux-browser-installer. However, once it opens, it is completely unusable. It is extremely laggy and then eventually crashes. I am not sureif I have a setting somewhere missing, or missing a graphics driver.

Here are the relevant logs
Code:
[34763:34763:0404/091708.955008:ERROR:angle_platform_impl.cc(44)] Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[34763:34763:0404/091708.955051:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[34763:34763:0404/091708.955057:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[34763:34763:0404/091708.955586:ERROR:angle_platform_impl.cc(44)] Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[34763:34763:0404/091708.955596:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[34763:34763:0404/091708.955600:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[34763:34763:0404/091708.955605:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[34763:34763:0404/091708.955609:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[34763:34763:0404/091708.969304:ERROR:angle_platform_impl.cc(44)] Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[34763:34763:0404/091708.969325:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[34763:34763:0404/091708.969330:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[34763:34763:0404/091708.969877:ERROR:angle_platform_impl.cc(44)] Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1070 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[34763:34763:0404/091708.969887:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[34763:34763:0404/091708.969891:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[34763:34763:0404/091708.969895:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[34763:34763:0404/091708.969899:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[34763:34763:0404/091708.970633:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[34402:104722:0404/091709.038904:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[0404/091709.128017:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0404/091709.131937:ERROR:ptracer.cc(44)] ptrace: Invalid argument (22)
[0404/091709.131948:WARNING:process_reader_linux.cc(400)] Couldn't initialize main thread.
[0404/091709.131965:ERROR:proc_task_reader.cc(47)] format error
[0404/091709.131974:WARNING:exception_snapshot_linux.cc(391)] thread ID 104760 not found in process
[0404/091709.132008:ERROR:process_snapshot_linux.cc(129)] thread not found 104760
[0404/091709.132144:ERROR:proc_task_reader.cc(47)] format error
[32622:104662:0404/091712.374646:ERROR:udev_watcher.cc(97)] Failed to begin udev enumeration.
[32622:32622:0404/091714.354683:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=133
Code:
FreeBSD host 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Code:
pciconf -lv | grep -B4 VGA
vgapci1@pci0:0:2:0:    class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3e9b subvendor=0x1028 subdevice=0x0926
    vendor     = 'Intel Corporation'
    device     = 'CoffeeLake-H GT2 [UHD Graphics 630]'
    class      = display
    subclass   = VGA
--
vgapci0@pci0:1:0:0:    class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6981 subvendor=0x1028 subdevice=0x0926
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Lexa XT [Radeon PRO WX 3200]'
    class      = display
    subclass   = VGA
Code:
pkg info | grep drm
drm-515-kmod-5.15.118_4        DRM drivers modules
drm-kmod-20220907_3            Metaport of DRM modules for the linuxkpi-based KMS components
gpu-firmware-kmod-20230210_1,1 Firmware modules for the drm-kmod drivers
libdrm-2.4.120_1,1             Direct Rendering Manager library and headers

Is there any more information that I can give that may be helpful?
Thank you in advance.
 
gotcha. that would make sense. i am curious if I am the only one or if others are using it just fine with 14.
 
Very similar issues, also on 14, have never tried w/ other versions and somewhat new to FreeBSD in general. Have you come by a resolution yet?

I will add that mine seems to operature lag free for a few minutes, till something triggers the lagginess (and I guess the GPU errors? don't remember), eventually something will cause the whole thing to crash. When I relaunch the same process continues again. I tried turning off hardware acceleration in the settings, but then I recall it crashing so quick I couldn't even make to settings to turn it back on!

Haven't tried playing with commandline flags like --disable-gpu yet

EDIT:
After playing around for a bit, I've identified that tooltips on the Chrome interface itself is one of the strongest triggers. If I can avoid those, things seem to run fine.
 
FreeBSD's Linuxulator will never be "perfect" (Linux and its typical userland being quickly moving targets doesn't help either).

Sure, running a Linux browser should be possible, and individual issues will probably get fixed eventually, but still, a native browser is always preferred.

That said, what's your reason for running a Linux browser? If it's about "widevine" (THE #1 reason until recently), we have an alternative meanwhile, see www/linux-widevine-cdm and www/foreign-cdm for a much better solution running only widevine (plus a little communication adapter) with Linuxulator.
 
Thanks, totally understand that, and that's useful for info about widevine. However, I'd like to use a Chromium-based browser to use certain extensions only available for it. I prefer Chrome, despite being proprietary, for sync support. However, I'm looking into Chromium w/ some kind of bookmark sync extension as a compromise, or if I can get some of the hacks to get sync working on it.

NB: the tooltips and popups on the Chrome UI really are the issue. Literally if I can avoid them, Chrome's running fine. Going to see if they can be turned off or I can find out what the underlying issue is. If I do I'll report back here.
 
FreeBSD's Linuxulator will never be "perfect" (Linux and its typical userland being quickly moving targets doesn't help either).

Sure, running a Linux browser should be possible, and individual issues will probably get fixed eventually, but still, a native browser is always preferred.

That said, what's your reason for running a Linux browser? If it's about "widevine" (THE #1 reason until recently), we have an alternative meanwhile, see www/linux-widevine-cdm and www/foreign-cdm for a much better solution running only widevine (plus a little communication adapter) with Linuxulator.
That is really it, just widevine. Some sites will not play media without it. I will check into the alternatives you showed. Thank you!
 
Hello,

I had problems with crhome crashes on all versions of chrome higher than 124.0.6367.207 .
I tested it also on the latest edge install with linux-browser-installer.
What I found is that on /compat/ubuntu/bin/chrome script the line :
export LD_LIBRARY_PATH=/usr/local/steam-utils/lib64/fakeudev
is causing the crashes on my setup.
The same goes for the edge (the script is on /compat/ubuntu/bin/edge)
I just commented this line and everything works just fine.
I am not 100% sure if the fakeudev option is still needed(as the export LD_PRELOAD=/usr/local/steam-utils/lib64/webfix/webfix.so and export LIBGL_DRI3_DISABLE=1 lines) but chrome and edge are running without problems by commenting this line on this file.
Hope this solves your problem.
The alternative is to downgrade to an older version of chrome that does not crash with all the security problems it may cause

Fotis
 
Thanks for the response. I just tried this on a fresh installation of 14.1-RELEASE and I still had the same problem. I am still wondering what I am doing wrong.
On the plus side, thank you zirias@ , I did enable widevine in chromium and it is working well.
 
I wanted to give an update, as I figured out the problem.

My laptop is a Dell Precision 7540 with two video cards:

Code:
vgapci1@pci0:0:2:0:    class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3e9b subvendor=0x1028 subdevice=0x0926

    vendor     = 'Intel Corporation'

    device     = 'CoffeeLake-H GT2 [UHD Graphics 630]'

    class      = display



vgapci0@pci0:1:0:0:    class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6981 subvendor=0x1028 subdevice=0x0926

    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'

    device     = 'Lexa XT [Radeon PRO WX 3200]'

    class      = display


First, by default, after I install drm-kmod, load the i915kms and amdgpu modules, etc., running startx does NOT work, X refuses to start. It requires me running Xorg -configure and using the generated config file. It has "modesetting" as the Driver for both AMD and Intel video cards.


Now, since I have had this laptop I have always been unable to get both output from HDMI as well as via USB-C ->HDMI working at the same time. I could either get zero outputs, or ONLY HDMI (AMD card) or ONLY intel (USB-C). However, if I used the modesetting driver for both cards in my xorg config, it would drive both outputs. Great I thought. I like more monitors. I have used this config for a looong time.


I was away for a few weeks and I thought to myself, "hey, there is another USB-C output and I have another USB-C -> HDMI adapter. Why don't I just use that? Maybe its a driver thing?"

And that is what I did. Using modesetting for AMD video card and "intel" driver for the intel card, it drives both external monitors via USB-C -> HDMI.
AND since it is not modestting, it now works. I can now run google chrome and it works flawlessly.

So for now, I have "Driver "modesetting" " for my AMD card and "Driver "intel" " for my xorg.conf and using both USB-C outputs to HDMI. If I try and specify the driver to use for both cards, X never starts, and neither does Wayland.

Thanks for the help and guidance and no need to use it anyway thanks to zirias@, but just wanted to give a solution if anyone else has this same issue.

For fun, here are the logs when I use "Driver "radeon"" instead of modesetting (X will not start):
Code:
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[  1635.174] Current Operating System: FreeBSD host 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
[  1635.174]  
[  1635.174] Current version of pixman: 0.42.2
[  1635.174]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  1635.174] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1635.174] (==) Log file: "/var/log/Xorg.1.log", Time: Tue Aug 20 10:18:34 2024
[  1635.174] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[  1635.174] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[  1635.174] (==) ServerLayout "X.org Configured"
[  1635.174] (**) |-->Screen "Screen0" (0)
[  1635.174] (**) |   |-->Monitor "Monitor0"
[  1635.174] (**) |   |-->Device "Card0"
[  1635.174] (**) |-->Screen "Screen1" (1)
[  1635.174] (**) |   |-->Monitor "Monitor1"
[  1635.175] (**) |   |-->Device "Card1"
[  1635.175] (**) |-->Input Device "Mouse0"
[  1635.175] (**) |-->Input Device "Keyboard0"
[  1635.175] (**) Allowing byte-swapped clients
[  1635.175] (==) Automatically adding devices
[  1635.175] (==) Automatically enabling devices
[  1635.175] (==) Automatically adding GPU devices
[  1635.175] (==) Automatically binding GPU devices
[  1635.175] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1635.175] (**) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d,
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[  1635.175] (**) ModulePath set to "/usr/local/lib/xorg/modules"
[  1635.175] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1635.175] (WW) Disabling Mouse0
[  1635.175] (WW) Disabling Keyboard0
[  1635.175] (II) Module ABI versions:
[  1635.175]     X.Org ANSI C Emulation: 0.4
[  1635.175]     X.Org Video Driver: 25.2
[  1635.175]     X.Org XInput driver : 24.4
[  1635.175]     X.Org Server Extension : 10.0
[  1635.177] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1635.177] (II) Platform probe for /dev/dri/card0
[  1635.188] (II) xfree86: Adding drm device (/dev/dri/card1)
[  1635.188] (II) Platform probe for /dev/dri/card1
[  1635.189] (!!) More than one possible primary device found
[  1635.190] (--) PCI: (0@0:2:0) 8086:3e9b:1028:0926 rev 2, Mem @ 0xb3000000/16777216, 0x60000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/65536
[  1635.190] (--) PCI: (1@0:0:0) 1002:6981:1028:0926 rev 0, Mem @ 0x70000000/268435456, 0x80000000/2097152, 0xb4400000/262144, I/O @ 0x00003000/256, BIOS @ 0x????????/65536
[  1635.190] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  1635.190] (II) LoadModule: "glx"
[  1635.190] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  1635.192] (II) Module glx: vendor="X.Org Foundation"
[  1635.192]     compiled for 1.21.1.13, module version = 1.0.0
[  1635.192]     ABI class: X.Org Server Extension, version 10.0
[  1635.192] (II) LoadModule: "intel"
[  1635.192] (WW) Warning, couldn't open module intel
[  1635.192] (EE) Failed to load module "intel" (module does not exist, 0)
[  1635.192] (II) LoadModule: "radeon"
[  1635.193] (WW) Warning, couldn't open module radeon
[  1635.193] (EE) Failed to load module "radeon" (module does not exist, 0)
[  1635.193] (EE) No drivers available.
[  1635.193] (EE) 
Fatal server error:
[  1635.193] (EE) no screens found(EE) 
[  1635.193] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[  1635.193] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[  1635.193] (EE) 
[  1635.193] (EE) Server terminated with error (1). Closing log file.
 
Im using FreeBSD 14.1 with Wayland Hyprland.
I had just gave up on running Chrome and Edge and Brave because they would load for about 4 seconds then just disappear i ran them from terminal and i would get a trap error (Cant Remember number) . Well a few days ago with an update on src and ports they will now load and run YouTube and work perfect on all sights and wont crash at all. I was so excited. But on all browser when you try and log into Google account or Microsoft Account it will come to the login prompt then about 3 seconds will crash. It does this every time. Im so confused why they run perfect till you go to login to google or Microsoft Account. Anyone have any ideals why this would happen? It also does it on Brave.
 
Im using FreeBSD 14.1 with Wayland Hyprland.
I had just gave up on running Chrome and Edge and Brave because they would load for about 4 seconds then just disappear i ran them from terminal and i would get a trap error (Cant Remember number) . Well a few days ago with an update on src and ports they will now load and run YouTube and work perfect on all sights and wont crash at all. I was so excited. But on all browser when you try and log into Google account or Microsoft Account it will come to the login prompt then about 3 seconds will crash. It does this every time. Im so confused why they run perfect till you go to login to google or Microsoft Account. Anyone have any ideals why this would happen? It also does it on Brave.
Im using FreeBSD 14.1 with Wayland Hyprland.
I had just gave up on running Chrome and Edge and Brave because they would load for about 4 seconds then just disappear i ran them from terminal and i would get a trap error (Cant Remember number) . Well a few days ago with an update on src and ports they will now load and run YouTube and work perfect on all sights and wont crash at all. I was so excited. But on all browser when you try and log into Google account or Microsoft Account it will come to the login prompt then about 3 seconds will crash. It does this every time. Im so confused why they run perfect till you go to login to google or Microsoft Account. Anyone have any ideals why this would happen? It also does it on Brave.
I've been working on this all day. As long as I dont go to Google Login Screen or try and login to Microsoft. Linux Chrome Edge and Brave now work fine. But crashes as soon as you goto login screen. Ive been wondering if this is a security problem or intentional? Heres the error I get. Any Suggestions would greatly be appreciated.

[A2355:100842:0918/192700.218786:ERROR:udev_watcher.cc(51)] Failed to initialize a udev monitor.
[0918/192700.306928:ERROR:ptracer.cc(44)] ptrace: Invalid argument (22)
[0918/192700.306987:WARNING:process_reader_linux.cc(400)] Couldn't initialize main thread.
[0918/192700.307005:ERROR:proc_task_reader.cc(47)] format error
[0918/192700.307014:WARNING:exception_snapshot_linux.cc(391)] thread ID 100842 not found in process
[0918/192700.307174:ERROR:process_snapshot_linux.cc(129)] thread not found 100842
[0918/192700.307400:ERROR:proc_task_reader.cc(47)] format error
/compat/ubuntu/bin/chrome: line 45: 2355 Segmentation fault "$HERE/chrome" --no-sandbox --test-type --v=0 "$@"
 
Back
Top