Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: rozkov on 25 August 2023, 20:09:12

Title: Chromium and Chrome won't open
Post by: rozkov on 25 August 2023, 20:09:12
Code: [Select]
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 extra is up to date
 community is up to date
 universe is up to date
 omniverse is up to date
error: failed retrieving file 'omniverse.db' from eu-mirror.artixlinux.org : Failed to connect to eu-mirror.artixlinux.org port 443 after 235 ms: Couldn't connect to server
:: Starting full system upgrade...
 there is nothing to do

Code: [Select]
[4094:4094:0825/145810.532028:ERROR:browser_main_loop.cc(274)] GLib-GObject: cannot register existing type 'GtkWidget'
[4094:4094:0825/145810.532092:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
[4094:4094:0825/145810.532125:ERROR:browser_main_loop.cc(274)] GLib-GObject: cannot register existing type 'GtkBuildable'
[4094:4094:0825/145810.532147:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
[4094:4094:0825/145810.532389:ERROR:browser_main_loop.cc(274)] GLib: g_once_init_leave: assertion 'result != 0' failed
[4094:4094:0825/145810.532412:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
[4094:4094:0825/145810.532434:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_register_static: assertion 'parent_type > 0' failed

Code: [Select]
Chromium 116.0.5845.110 Arch Linux
Google Chrome 116.0.5845.110

Code: [Select]
qmake -v
QMake version 3.1
Using Qt version 5.15.10 in /usr/lib

Both show the same error when trying to open via terminal, they are up to date, I have tried downgrading and it continues.
I searched for similar problems, found them but was unable to solve them with the possible solutions presented.
Title: Re: Chromium and Chrome won't open
Post by: Artist on 25 August 2023, 22:31:16
What happens if you install and run ungoogled-chromium for our Universe repo?

artist
Title: Re: Chromium and Chrome won't open
Post by: mookiii on 26 August 2023, 00:15:23
You are using LXQT?
I get the same error when using LXQT Desktop, with xfce its working without errors..
Seems like an update from LXQT causes it but not sure.. dont get much time to look for it

Im using ungoogled-chromium from universe but tried different from aur too (ungoogled-chromium-bin, ungoogled-chromium-xdg-bin) .. same error with LXQT

Title: Re: Chromium and Chrome won't open
Post by: rozkov on 26 August 2023, 05:30:55
What happens if you install and run ungoogled-chromium for our Universe repo?

artist

Code: [Select]
[3530:3530:0826/002856.551507:ERROR:browser_main_loop.cc(274)] GLib-GObject: cannot register existing type 'GtkWidget'
[3530:3530:0826/002856.551568:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
[3530:3530:0826/002856.551601:ERROR:browser_main_loop.cc(274)] GLib-GObject: cannot register existing type 'GtkBuildable'
[3530:3530:0826/002856.551624:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
[3530:3530:0826/002856.551654:ERROR:browser_main_loop.cc(274)] GLib: g_once_init_leave: assertion 'result != 0' failed
[3530:3530:0826/002856.551683:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
[3530:3530:0826/002856.551711:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_register_static: assertion 'parent_type > 0' failed

Still the same problem, I think it's a bug in plasma, I installed xfce to test it, it worked without any problems.
Title: Re: Chromium and Chrome won't open
Post by: rozkov on 26 August 2023, 05:35:20
You are using LXQT?
I get the same error when using LXQT Desktop, with xfce its working without errors..
Seems like an update from LXQT causes it but not sure.. dont get much time to look for it

Im using ungoogled-chromium from universe but tried different from aur too (ungoogled-chromium-bin, ungoogled-chromium-xdg-bin) .. same error with LXQT


No, using kde, but when testing with xfce no problem occurs, I believe it is some bug in the plasma.
Title: Re: Chromium and Chrome won't open
Post by: Artist on 26 August 2023, 09:10:24
You are using LXQT?
I get the same error when using LXQT Desktop, with xfce its working without errors..
Seems like an update from LXQT causes it but not sure.. dont get much time to look for it

Im using ungoogled-chromium from universe but tried different from aur too (ungoogled-chromium-bin, ungoogled-chromium-xdg-bin) .. same error with LXQT



FYI: I'm using ungoogled-chromium on LXQT without issues.

I expect the issue to be in between gtk2/gtk3 and theming. Do you have both gtk2 and gtk3 installed? Also, try with a new user, without any theme setup.

artist
Title: Re: Chromium and Chrome won't open
Post by: tokaro on 26 August 2023, 18:18:38
I wanted to try ungoogled-chromium on XFCE but it crashes after few seconds>
Code: [Select]
chromium
[9278:9278:0826/181759.616424:ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.

(chromium:9278): Gtk-WARNING **: 18:17:59.785: Theme directory apps/24 of theme breeze-extended-gnome has no size field


(chromium:9278): Gtk-WARNING **: 18:17:59.813: Theme directory apps/24@2x of theme breeze-extended-gnome has no size field


(chromium:9278): Gtk-WARNING **: 18:17:59.813: Theme directory apps/24@3x of theme breeze-extended-gnome has no size field

[9278:9278:0826/181759.886290:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
Segmentation fault




Any idea howto fix this?

Thanks
Title: Re: Chromium and Chrome won't open
Post by: Artist on 26 August 2023, 19:06:29
chromium works for many users, so this must be related to some specific settup or package
pls check the previous question and suggestion:

Quote
I expect the issue to be in between gtk2/gtk3 and theming. Do you have both gtk2 and gtk3 installed? Also, try with a new user, without any theme setup.

artist
Title: Re: Chromium and Chrome won't open
Post by: igor on 26 August 2023, 20:04:20
I'm having this issue on two different installations. Starting chrome, chromium or opera in kde (using a fresh user) I see the same exact error.

When using gnome as DE, the issue is not present.

I have both gtk3 and gtk2 installed.

Code: [Select]
$> yay -Ss gtk | grep Installed
aur/gitg-git 3.30.1.r171.gd3855352-1 (+23 0.00) (Installed: 3.30.1.r311.gf1f37044-1)
aur/pygtk 2.24.0-12 (+75 0.29) (Installed)
extra/zbar 0.23.90-3 (249.8 KiB 779.9 KiB) (Installed)
extra/xsane 0.999-6 (1.6 MiB 4.8 MiB) (Installed)
extra/xarchiver 0.5.4.21-1 (501.3 KiB 1.5 MiB) (Installed)
extra/wxwidgets-gtk3 3.2.2.1-2 (4.6 MiB 17.6 MiB) (Installed)
extra/webkit2gtk-4.1 2.40.5-1 (26.7 MiB 91.2 MiB) (Installed)
extra/webkit2gtk 2.40.5-1 (26.6 MiB 91.2 MiB) (Installed)
extra/python-gobject 3.44.1-4 (302.1 KiB 1.5 MiB) (Installed)
extra/osm-gps-map 1.2.0-1 (93.2 KiB 638.1 KiB) (Installed: 1.2.0-1.1)
extra/libpeas 1.36.0-2 (139.9 KiB 676.7 KiB) (Installed)
extra/libindicator-gtk3 12.10.1-10 (28.5 KiB 97.3 KiB) (Installed)
extra/libhandy 1.8.2-1 (478.0 KiB 2.5 MiB) (Installed)
extra/libdbusmenu-gtk3 16.04.0.r498-1 (48.5 KiB 233.4 KiB) (Installed)
extra/libcheese 44.1-1 (206.5 KiB 658.3 KiB) (Installed)
extra/libcanberra 1:0.30+r2+gc0620e4-3 (91.6 KiB 438.9 KiB) (Installed)
extra/libappindicator-gtk3 12.10.0.r298-2 (51.4 KiB 347.5 KiB) (Installed)
extra/kde-gtk-config 5.27.7-1 (69.2 KiB 297.9 KiB) [plasma] (Installed)
extra/gtksourceview4 4.8.4-1 (985.9 KiB 7.4 MiB) (Installed)
extra/gtkmm3 3.24.8-1 (1.4 MiB 9.4 MiB) (Installed)
extra/gtkmm 1:2.24.5-4 (1.2 MiB 7.8 MiB) (Installed: 1:2.24.5-4.1)
extra/gtkimageview 1.6.4-7 (36.6 KiB 113.8 KiB) (Installed)
extra/gtk3 1:3.24.38-1 (7.7 MiB 48.9 MiB) (Installed)
extra/gtk2 2.24.33-3 (5.7 MiB 36.6 MiB) (Installed)
extra/gtk-update-icon-cache 1:4.12.1-1 (17.3 KiB 40.0 KiB) (Installed)
extra/gtk-doc 1.33.2-3 (289.4 KiB 2.4 MiB) (Installed)
extra/gspell 1.12.2-1 (122.0 KiB 735.4 KiB) (Installed)
extra/gnome-desktop 1:44.0-1 (114.3 KiB 557.1 KiB) (Installed: 1:44.0-1.1)
extra/colord-gtk-common 0.3.0-2 (26.7 KiB 119.0 KiB) (Installed)
extra/colord-gtk 0.3.0-2 (15.8 KiB 48.0 KiB) (Installed)
extra/clutter-gtk 1.8.4-3 (48.9 KiB 259.1 KiB) (Installed)
extra/breeze-gtk 5.27.7-1 (200.9 KiB 1.2 MiB) [plasma] (Installed)
extra/avahi 1:0.8+r22+gfd482a7-1 (428.9 KiB 1.8 MiB) (Installed: 1:0.8+r22+gfd482a74-1)
galaxy/artix-gtk-presets 20230425-1 (28.7 KiB 102.4 KiB) [artix-branding] (Installed: 20230710-1)
galaxy/artix-dark-theme 20201126-3 (3.4 MiB 4.3 MiB) [artix-branding] (Installed)
world/zbar 0.23.90-3 (249.5 KiB 779.2 KiB) (Installed)
world/xarchiver 0.5.4.21-1 (501.4 KiB 1.5 MiB) (Installed)
world/wxwidgets-gtk3 3.2.2.1-2 (4.6 MiB 17.6 MiB) (Installed)
world/webkit2gtk-4.1 2.40.5-1 (26.4 MiB 90.2 MiB) (Installed)
world/webkit2gtk 2.40.5-1 (26.4 MiB 90.2 MiB) (Installed)
world/python-gobject 3.44.1-4 (302.1 KiB 1.5 MiB) (Installed)
world/osm-gps-map 1.2.0-1.1 (93.1 KiB 638.1 KiB) (Installed)
world/libpeas 1.36.0-2 (139.6 KiB 676.7 KiB) (Installed)
world/libindicator-gtk3 12.10.1-10 (28.4 KiB 97.3 KiB) (Installed)
world/libhandy 1.8.2-1 (477.8 KiB 2.5 MiB) (Installed)
world/libdbusmenu-gtk3 16.04.0.r498-1 (48.3 KiB 233.3 KiB) (Installed)
world/libcheese 44.1-1 (206.4 KiB 658.3 KiB) (Installed)
world/libcanberra 1:0.30+r2+gc0620e4-3 (88.4 KiB 418.5 KiB) (Installed)
world/libappindicator-gtk3 12.10.0.r298-2 (51.2 KiB 347.6 KiB) (Installed)
world/kde-gtk-config 5.27.7-1 (69.0 KiB 297.2 KiB) [plasma] (Installed)
world/gtksourceview4 4.8.4-1 (985.6 KiB 7.4 MiB) (Installed)
world/gtkmm3 3.24.8-1 (1.4 MiB 9.4 MiB) (Installed)
world/gtkmm 1:2.24.5-4.1 (1.2 MiB 7.8 MiB) (Installed)
world/gtk3 1:3.24.38-1 (7.7 MiB 48.9 MiB) (Installed)
world/gtk2 2.24.33-3 (5.7 MiB 36.6 MiB) (Installed)
world/gtk-update-icon-cache 1:4.12.1-1 (17.2 KiB 39.9 KiB) (Installed)
world/gtk-doc 1.33.2-3 (289.2 KiB 2.4 MiB) (Installed)
world/gspell 1.12.2-1 (121.6 KiB 735.2 KiB) (Installed)
world/gnome-desktop 1:44.0-1.1 (112.0 KiB 549.1 KiB) (Installed)
world/colord-gtk-common 0.3.0-2 (26.6 KiB 119.0 KiB) (Installed)
world/colord-gtk 0.3.0-2 (15.7 KiB 48.0 KiB) (Installed)
world/clutter-gtk 1.8.4-3 (48.8 KiB 259.1 KiB) (Installed)
world/breeze-gtk 5.27.7-1 (201.0 KiB 1.2 MiB) [plasma] (Installed)
world/avahi 1:0.8+r22+gfd482a74-1 (427.7 KiB 1.8 MiB) (Installed)
world/artix-gtk-presets 20230710-1 (28.7 KiB 102.4 KiB) [artix-branding] (Installed)

I have an older version of google-chrome-beta installed that is still working
Code: [Select]
$> yay -Ss google-chrome-beta | grep Installed
aur/google-chrome-beta 117.0.5938.22-1 (+355 0.87) (Installed: 115.0.5790.75-1)

Hope this helps
Title: Re: Chromium and Chrome won't open
Post by: rozkov on 26 August 2023, 20:59:59
It's messy, but I've tested it with another theme and user and the problem is still there. I'll stick with xfce until I get an update for kde.
Title: Re: Chromium and Chrome won't open
Post by: tokaro on 27 August 2023, 12:32:02
Hi,

Chrome works without a issue, but ungoogled-chromium crashes. I have reinstalled both to confirm.
I do not use any special theming on my Xfce.
 
Title: Re: Chromium and Chrome won't open
Post by: Artist on 27 August 2023, 13:20:50
So for most the differentiator is the DE, for one ungoogled-chromium.

There is a - slightly - newer version now, built with only the 'standard' patches.
It can be installed using pacman -U https://universe.artixlinux.org/x86_64/ungoogled-chromium-116.0.5845.97-1-x86_64.pkg.tar.zst

I don't expect this to solve the problem, but only testing can confirm.
Then the only option is to report this problem upstream - if not done already - by someone who can reproduce it.

Same reports are here:
https://support.google.com/chrome/thread/231067690/ubuntu-22-04-chrome-st%C3%BCrzt-nach-update-19-8-23-beim-start-ab?hl=de
https://forums.opera.com/topic/65566/opera-stable-102-0-4880-16-gets-stuck-on-launch

artist
Title: Re: Chromium and Chrome won't open
Post by: mookiii on 27 August 2023, 19:50:51
Quote
There is a - slightly - newer version now, built with only the 'standard' patches.
It can be installed using pacman -U https://universe.artixlinux.org/x86_64/ungoogled-chromium-116.0.5845.97-1-x86_64.pkg.tar.zst

Tested.. same error..

What i found is that you can start chromium in the commandline with
Code: [Select]
--disable-features=AllowQt
..
Or put it in chromium-flags.conf ..
This worked for me in LXQT, dont know if this helps..
Maybe something new with QT5?
Title: Re: Chromium and Chrome won't open
Post by: sudobobby on 27 August 2023, 20:28:56
What i found is that you can start chromium in the commandline with
Code: [Select]
--disable-features=AllowQt
..
Or put it in chromium-flags.conf ..
This worked for me in LXQT, dont know if this helps..
Maybe something new with QT5?

I've been having this problem and had to revert back to ungoogled-chromium 115.xx.171 before ungoogled-chromium would launch. I recently decided to upgrade the system (I apply updates almost daily before this) and see if it got fixed. Sadly, as of now it has not been, HOWEVER, using full KDE the above commandline option allowed ungoogled-chromium 116.xx.96 to launch successfully.

THANK YOU MOOKiii
Title: Re: Chromium and Chrome won't open
Post by: Artist on 27 August 2023, 20:49:07
Quote
Maybe something new with QT5?

I also use qt5. On boxes updated days ago up to a box updated fully a minute ago, all ungoogled-chromium versions run fine, without any flags.

I'll put newly built ungoogled-chromium-116.0.5845.110 in universe, though there is no indication this will fix the startup issue.

artist
Title: Re: Chromium and Chrome won't open
Post by: igor on 27 August 2023, 22:03:26
What i found is that you can start chromium in the commandline with
Code: [Select]
--disable-features=AllowQt


Thanks!

For those of you running a chromium-based browser in a Qt environment without issue, what is the result if you use
Code: [Select]
--enable-features=AllowQt
? (found reading https://bugs.archlinux.org/task/76769)
Title: Re: Chromium and Chrome won't open
Post by: Artist on 27 August 2023, 23:24:55

For those of you running a chromium-based browser in a Qt environment without issue, what is the result if you use
Code: [Select]
--enable-features=AllowQt
? (found reading https://bugs.archlinux.org/task/76769)


chromium --enable-features=AllowQt works fine.

artist
Title: Re: Chromium and Chrome won't open
Post by: Claym on 28 August 2023, 02:28:29
I get the same problem, any ungoogled chromium versions. It just crashes, in terminal it sends some error about gtk and etc.
Title: Re: Chromium and Chrome won't open
Post by: sudobobby on 30 August 2023, 09:17:13
I just did an enormous KDE update (over 2 gigs worth) that just came out, and also the new ungoogled-chromium, unfortunately neither of those helped with the issue. However, I'm still able to start ungoogled-chromium with the --disable-features=AllowQt commandline option. Thanks for looking into this and I will continue reporting on what I can and trying anything requested.

For the record, this is the output without the commandline option (process just hangs and never ends, no CPU usage)
Code: [Select]
$ chromium
[15307:15307:0830/021526.751626:ERROR:browser_main_loop.cc(274)] GLib-GObject: cannot register existing type 'GtkWidget'
[15307:15307:0830/021526.751641:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
[15307:15307:0830/021526.751646:ERROR:browser_main_loop.cc(274)] GLib-GObject: cannot register existing type 'GtkBuildable'
[15307:15307:0830/021526.751648:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
[15307:15307:0830/021526.751651:ERROR:browser_main_loop.cc(274)] GLib: g_once_init_leave: assertion 'result != 0' failed
[15307:15307:0830/021526.751653:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
[15307:15307:0830/021526.751655:ERROR:browser_main_loop.cc(274)] GLib-GObject: g_type_register_static: assertion 'parent_type > 0' failed
Title: Re: Chromium and Chrome won't open
Post by: Artist on 30 August 2023, 22:34:45
running chromium '--gtk-version=4' produces this error on my physical LXQT box, but only if gtk4 is installed:

ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.

running 'chromium '--gtk-version=3' works fine with or without gtk4 installed

This is the exact same behaviour as in https://bugs.chromium.org/p/chromium/issues/detail?id=1468418

artist
Title: Re: Chromium and Chrome won't open
Post by: sudobobby on 31 August 2023, 23:27:24
running chromium '--gtk-version=4' produces this error on my physical LXQT box, but only if gtk4 is installed:

ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.

running 'chromium '--gtk-version=3' works fine with or without gtk4 installed

This is the exact same behaviour as in https://bugs.chromium.org/p/chromium/issues/detail?id=1468418

artist

Just an FYI, I get that error about CBCM when my ungoogled-chromium launches correctly with the commandline option, like so

Code: [Select]
$ chromium --disable-features=AllowQt
[19291:19291:0831/002003.200108:ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.
Title: Re: Chromium and Chrome won't open
Post by: kazriko on 01 September 2023, 07:09:39
The --disable-features=AllowQt also fixed vivaldi for me, so it's probably all chromium based browsers.
Title: Re: Chromium and Chrome won't open
Post by: mike_linux_fan on 02 September 2023, 16:56:47
I am using the preconfigured QT version of Artix with OpenRC.  On inspecting Qt5 Settings in Artix, I noticed an error message about the Style entry in the Appearance tab.  The style was set to gtk2, but the message said it was not configured correctly.  You should install qt5ct, if you don't have it already.  I changed the gtk2 setting to another (Breeze in my case), and this solved my problem.  I was able to launch Chrome from the menu as before.  I don't know if this is helpful to you; it might be worth a try.
Title: Re: Chromium and Chrome won't open
Post by: igor on 02 September 2023, 19:23:13
On inspecting Qt5 Settings in Artix, I noticed an error message about the Style entry in the Appearance tab.

Thanks, in my case following the steps given by qt5ct (unset an env variable and change the value of another one) worked
Title: Re: Chromium and Chrome won't open
Post by: erogers on 03 September 2023, 03:30:23
Quote
There is a - slightly - newer version now, built with only the 'standard' patches.
It can be installed using pacman -U https://universe.artixlinux.org/x86_64/ungoogled-chromium-116.0.5845.97-1-x86_64.pkg.tar.zst

Tested.. same error..

What i found is that you can start chromium in the commandline with
Code: [Select]
--disable-features=AllowQt
..
Or put it in chromium-flags.conf ..
This worked for me in LXQT, dont know if this helps..
Maybe something new with QT5?

Amazing. I had this exact same problem and this fixed it.
Title: Re: Chromium and Chrome won't open
Post by: francesco on 18 September 2023, 09:19:05
To create the file chromium-flags.conf in /etc with the parameters --disable-features=AllowQt, solve the problem.

The question is that now also brave have the same problem, I downgraded to the previous version. I'll try to create a brave-flags.conf...
Title: Re: Chromium and Chrome won't open
Post by: rozkov on 13 October 2023, 01:03:29
To create the file chromium-flags.conf in /etc with the parameters --disable-features=AllowQt, solve the problem.

The question is that now also brave have the same problem, I downgraded to the previous version. I'll try to create a brave-flags.conf...

It had been solved with an update, then after these last ones the problem came back.

after creating the file in chromium-flags.conf in /etc/ it was solved, it just asked to unlock the profile and restart, thanks for the tip.



Title: Re: Chromium and Chrome won't open
Post by: forged24 on 21 December 2023, 15:10:55
Having the same issue on KDE.  --disable-features=AllowQt fixed it. Thanks all!