Anyone got Google Earth web working with Chromium

Has anyone managed to get Google Earth web working with Chromium
i use google earth for work to record flyovers with obs studio

these are the flags im using to launch chromium
vulkan for hardware accelerated video decoding and ozone platform for wayland

Code:
chrome --enable-features=Vulkan --use-vulkan --ozone-platform=wayland

im guessing the issue is the webgpu
chromium just stays on the landing page for google earth and doesnt load

i have tried lots of chrome flags, using nv-sglrun and ld preload
but no joy, just wondering if the webgpu hasnt made it to freebsd yet

this is my ~/.local/share/applications/chromium-browser.desktop

Code:
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=Chromium
Comment=Google web browser based on WebKit
Icon=chrome
Exec=chrome --enable-features=Vulkan --use-vulkan --ozone-platform=wayland %U
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
StartupNotify=true

chrome://gpu

chromium.png
 
Code:
% chrome --enable-features=Vulkan --use-vulkan
[63281:-1040113664:1230/200059.068174:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018

(chrome:63281): GVFS-RemoteVolumeMonitor-WARNING **: 20:00:59.196: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
Gtk-Message: 20:00:59.199: Failed to load module "appmenu-gtk-module"
[63281:-1040113664:1230/200059.268979:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[63333:1094787072:1230/200111.371159:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[63281:-1040113664:1230/200115.386668:ERROR:interface_endpoint_client.cc(702)] Message 0 rejected by interface blink.mojom.WidgetHost
[63352:1568743424:1230/200126.442792:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[63360:-301916160:1230/200133.817065:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
%

Success.

Would you like me try anything else (with X11 and the available NVIDIA graphics)?
 

Attachments

i have managed to get google earth working with chromium using wayland on 14-p4
on a dell xps 15 with a nvidia gpu and also figured out the issue with webgpu

the webgpu is being rolled out by google and in the code for the webgpu there is an os check
the code check for windows, mac, linux, chrome but not freebsd

if you open chrome://version in chromium you see this message

Code:
--origin-trial-disabled-features=WebGPU

WebGPU doesnt appear as flag in chrome://flags
thats why i missed it

version-webgpu.jpg


to get google earth web working with chromium we need to use LD_LIBMAP with nv-sglrun
and lots of chrome flags to enable vulkan and the webgpu using --origin-trial-enabled-features=WebGPU,
as well as wayland

chrome-gpu-script

script i was using to test the options before adding to the desktop entry below

Code:
#!/bin/sh

env LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`"
chrome --ozone-platform=wayland \
--ignore-gpu-blocklist \
--disable-gpu-driver-bug-workarounds \
--enable-gpu-rasterization \
--enable-unsafe-webgpu \
--enable-zero-copy \
--enable-drdc \
--no-sandbox \
--skia-graphite \
--enable-webgl-draft-extensions \
--enable-features=Vulkan,UseSkiaRendererer \
--use-vulkan \
--enable-features=VaapiVideoDecoder \
--canvas-oop-rasterization \
--enable-webgpu-developer-features \
--origin-trial-enabled-features=WebGPU \
--test-type --v=0


under chrome://gpu the webgpu is listed as Hardware accelerated but at reduced performance

gpu.jpg



here is a desktop entry so you dont have to run chrome and all the options on the command line

chromium desktop entry

Code:
vi ~/.local/share/application/chromium-browser.desktop

chromium-browser.desktop contents

Code:
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=Chromium
Comment=Google web browser based on WebKit
Icon=chrome
#Exec=chrome --enable-features=Vulkan --use-vulkan --ozone-platform=wayland %U
Exec=sh -c 'LD_LIBMAP="`nv-sglrun printenv LD_LIBMAP | grep -v libGL`" chrome --ozone-platform=wayland --ignore-gpu-blocklist --disable-gpu-driver-bug-workarounds --enable-gpu-rasterization --enable-unsafe-webgpu --enable-zero-copy --enable-drdc --no-sandbox --skia-graphite --enable-webgl-draft-extensions --enable-features=Vulkan,UseSkiaRendererer --use-vulkan --enable-features=VaapiVideoDecoder --canvas-oop-rasterization --enable-webgpu-developer-features --origin-trial-enabled-features=WebGPU --test-type --v=0  %U'
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
StartupNotify=true

google earth we in chromium

google-earth.jpg



street view


street-view.jpg
 
Code:
% chrome --enable-features=Vulkan --use-vulkan
[63281:-1040113664:1230/200059.068174:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018

(chrome:63281): GVFS-RemoteVolumeMonitor-WARNING **: 20:00:59.196: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
Gtk-Message: 20:00:59.199: Failed to load module "appmenu-gtk-module"
[63281:-1040113664:1230/200059.268979:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[63333:1094787072:1230/200111.371159:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[63281:-1040113664:1230/200115.386668:ERROR:interface_endpoint_client.cc(702)] Message 0 rejected by interface blink.mojom.WidgetHost
[63352:1568743424:1230/200126.442792:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[63360:-301916160:1230/200133.817065:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
%

Success.

Would you like me try anything else (with X11 and the available NVIDIA graphics)?
good stuff ,
i managed to get google earth working with chromium and just posted some notes about it
 
Back
Top