Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: lollox on 18 August 2024, 17:46:15

Title: [SOLVED] Chromium and chromium based browsers crash at start
Post by: lollox on 18 August 2024, 17:46:15
Hi all and thanks for this great distro!  Bear with me as I am not very tech savvy  :D 
As said in the title, chromium and brave always crash a second after starting.When I start chromium from the terminal I get this message:

~$ chromium
[8029:8050:0818/174148.458939:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: Interfaccia «org.freedesktop.portal.FileChooser» inesistente
[8029:8050:0818/174148.459018:ERROR:select_file_dialog_linux_portal.cc(285)] Failed to read portal version property
Errore di segmentazione

Title: Re: Chromium and chromium based browsers crash at start
Post by: cds on 18 August 2024, 19:46:02
Sounds like a dbus issue, which I know very little about.
Might want to review this (https://bbs.archlinux.org/viewtopic.php?id=236020) thread.
Title: Re: Chromium and chromium based browsers crash at start
Post by: lollox on 19 August 2024, 01:18:45
Thanks for the reply, I already found that thread, unfortunately it doesn't seem to be the same problem. To be sure I checked that discussion (about a notification daemon issue)  and it was already setup correctly in my case.
I think it has something to do with the way I start dbus, as I run artix with dinit,  I am not really sure...
From my understanding I need to run dbus as a system service (done with dinitctl as root) and as a user service, which I had some trouble setting up but I thought it worked fine in the end.  To run dbus as user I did the following steps:

1. install dbus dbus-dinit dbus-dinit-user
2. install turnstile turnstile-dinit
3. follow these steps https://github.com/davmac314/dinit/blob/master/doc/getting_started.md
4. enable turnstiled as a system service with root

Right now I have these user services running and working:

 dinitctl list
[
Title: Re: Chromium and chromium based browsers crash at start
Post by: Artist on 19 August 2024, 09:44:32
The error is misleading, as it can be shown on instances where chromium starts and works normally.

Do you perhaps have any of these env vars set?
QT_QPA_PLATFORMTHEME
QT_PLATFORM_PLUGIN
If so, unset them and test again.

artist
Title: Re: Chromium and chromium based browsers crash at start
Post by: lollox on 19 August 2024, 15:46:08
I made sure to unset those vars but I still get this message and chromium crashes almost immediately

[4628:4647:0819/153502.067340:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: Interfaccia «org.freedesktop.portal.FileChooser» inesistente
[4628:4647:0819/153502.068208:ERROR:select_file_dialog_linux_portal.cc(285)] Failed to read portal version property
Errore di segmentazione

[prova ~]$ env | grep QT
QT_IM_MODULE=fcitx

I get the same error both in XFCE and LXQT.  As the error mentions desktop portals I checked and have these one installed:

xdg-desktop-portal
xdg-desktop-portal-gtk
xdg-desktop-portal-lxqt
xdg-desktop-portal-xapp



Title: Re: Chromium and chromium based browsers crash at start
Post by: Artist on 19 August 2024, 17:17:58
This is the only relevant part of the error you get:

 segmentation fault

Please try with a different user, or at least a new chromium profile

artist
Title: Re: Chromium and chromium based browsers crash at start
Post by: lollox on 19 August 2024, 18:29:32
I tried with a new user and while I get some error, chromium seems to work fine.
About creating a new chromium profile, I deleted  ".config/chromium" and ".cache/chromium", but it didn't work. Maybe there's something else  in my home folder that causes the problem, as also brave browser behaves in the same way.
Title: Re: Chromium and chromium based browsers crash at start
Post by: Artist on 19 August 2024, 19:40:33
Make sure to check theming; often the cause can be found there.

artist
Title: Re: Chromium and chromium based browsers crash at start
Post by: lollox on 19 August 2024, 20:48:15
Thanks for the reply, I will check themes, but frankly I can't remember I did apply any theme... I tried to delete some gtk config files in my home directory and  testing on i3wm, no idea where else to look,   I think I'll make a new user.
Title: Re: Chromium and chromium based browsers crash at start
Post by: ####### on 19 August 2024, 22:58:00
The mesa shader cache in .cache has caused a problem in the past after mesa version updates, there's a qt shader cache in there too, being graphics related stuff it might cause a crash.
Title: Re: Chromium and chromium based browsers crash at start
Post by: lollox on 20 August 2024, 23:24:44
Actually I managed to solve this without having to create a new user!  :) 
The culprit was probably the '.local/share/icons' folder, I don't really get how it had anything to do with btw, now chromium works again, thanks for the help.