WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: arm32 and arm64 submission chromium questions  (Read 3893 times)

aus9

  • Guest
Re: arm32 and arm64 submission chromium questions
« Reply #15 on: July 17, 2023, 09:54:27 PM »
Ok this morning I am getting real close to zero error or warnings.
Rebuilt to /usr/local with lots of sed fixes.

The browser opens and works as expected so its not all bad!

The issue for me now, seems to be a mismatch of XDG runtime dir and maybe the set of the dbus session.

anyhow here is what I now see
Code: [Select]
chromium-browser &
Fontconfig warning: "/etc/fonts/fonts.conf", line 82: unknown element "blank"
[4925:4945:0718/014655.517206:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[4925:4945:0718/014655.517327:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Opening in existing browser session.

this is a huge improvement and before there was around 20 lines of output for that dbus stuff.

here is what I am currently trying run as local user now
Code: [Select]
tc@box:~$ USER=`cat /etc/sysconfig/tcuser`
tc@box:~$ if [ ! -d /run/user/$(id -u "$USER") ]; then
>    mkdir -p /run/user/$(id -u "$USER")
>    chown "$USER":staff /run/user/$(id -u "$USER")
>    chmod 700 /run/user/$(id -u "$USER")
> fi
tc@box:~$ XDG_RUNTIME_DIR=/run/user/$(id -u) && export XDG_RUNTIME_DIR
tc@box:~$ echo $XDG_RUNTIME_DIR
/run/user/1001


DBUS_SESSION_BUS_ADDRESS=/var/run/dbus && export DBUS_SESSION_BUS_ADDRESS

run with sudo
Code: [Select]
[  -f /var/run/dbus/pid ] || /usr/local/etc/init.d/dbus start
Thanks for reading
« Last Edit: July 17, 2023, 10:08:24 PM by aus9 »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1237
Re: arm32 and arm64 submission chromium questions
« Reply #16 on: July 17, 2023, 10:34:06 PM »
The init script for dbus is only going to launch a system bus.  chrome is probably looking for a session bus.  A session bus would normally get created at user login.

dbus-launcher will start the session bus and environment.

aus9

  • Guest
Re: arm32 and arm64 submission chromium questions
« Reply #17 on: July 17, 2023, 11:54:32 PM »
Hi Paul_123

I am stuck on this, sorry.
edit

exe called dbus-launch
« Last Edit: July 18, 2023, 12:12:45 AM by aus9 »

aus9

  • Guest
Re: arm32 and arm64 submission chromium questions
« Reply #18 on: July 18, 2023, 12:19:46 AM »
ok so I try
Code: [Select]
$ dbus-launch chromium-browser
SNIP
[9544:9666:0718/041721.748170:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[9544:9666:0718/041721.748685:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[9544:9666:0718/041721.749186:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[9592:9592:0718/041722.084048:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

aus9

  • Guest
Re: arm32 and arm64 submission chromium questions
« Reply #19 on: July 18, 2023, 03:39:35 AM »
Ok so I have managed to change the error TYPE we now have
Code: [Select]
chromium-browser
Fontconfig warning: "/etc/fonts/fonts.conf", line 82: unknown element "blank"
[3374:3394:0718/073213.296627:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/user/1001/: Connection refused
[3374:3394:0718/073213.296889:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/user/1001/: Connection refused
Opening in existing browser session

Code: [Select]
ls -al /run/user/1001
total 0
drwx------    2 tc       staff           40 Jul 18 07:26 ./
drwxr-xr-x    3 root     root            60 Jul 18 07:26 ../
browser is working. Changes to get a little messy as I have unpacked the install script and got confused with who I was.

Lets try to get this right?
as root...which may be install script
Quote
USER=`cat /etc/sysconfig/tcuser`
if [ ! -d /run/user/$(id -u "$USER") ]; then
   mkdir -p /run/user/$(id -u "$USER")
   chown "$USER":staff /run/user/$(id -u "$USER")
   chmod 700 /run/user/$(id -u "$USER")
fi

su -c "XDG_RUNTIME_DIR=/run/user/$(id -u "$USER") &&
export XDG_RUNTIME_DIR" $USER

right test as a local user
Code: [Select]
env | grep XDG
XDG_RUNTIME_DIR=/run/user/1001

Check....looks good

Now I try to setup a session dbus like this as a local user
Code: [Select]
tc@box:~$ export DBUS_STARTER_BUS_TYPE="session"
tc@box:~$ export DBUS_STARTER_ADDRESS="unix:path=/run/user/1001"
tc@box:~$ export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/"

Maybe I am too fussy? The browser was working without setting XDG or dbus session but without dbus running I had a stack of warnings/errors
« Last Edit: July 18, 2023, 03:41:48 AM by aus9 »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1237
Re: arm32 and arm64 submission chromium questions
« Reply #20 on: July 18, 2023, 06:41:16 AM »
The upower warning are harmless you would need some 3rd party software for that.   

aus9

  • Guest
Re: arm32 and arm64 submission chromium questions
« Reply #21 on: July 18, 2023, 07:50:06 AM »
Q As you prefer error
The name org.freedesktop.UPower was not provided by any .service files
I will look to see if I can cut out my XDG stuff

Q altho I could ask by pm....I don't think it hurts explaining why I am requesting an exception from normal submission rules.

1) Members know get scripts are special cases
2) What they do not know until they run the script,
 is just how many deps are needed for these big bloated web browsers.

I would like permission to make the run deps for the resultant TCE members might make....as a dep to the get TCE. That way members can see a total in Apps and add 140Mb to that to get fair idea.

thanks for reading

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1237
Re: arm32 and arm64 submission chromium questions
« Reply #22 on: July 18, 2023, 12:31:06 PM »
I know there is a language barrier here, but I'm not sure what you are asking.

Send me your proposal and I'll review.   I'm sure we will bounce this back and forth a few times before it's final.

aus9

  • Guest
Re: arm32 and arm64 submission chromium questions
« Reply #23 on: July 19, 2023, 12:56:18 AM »
Hi Paul_123

I accept all the communication issues blame me.
I will submit shortly.....but I am too excited to keep this quiet!
I promise this is my last post here until we work it out
Tested on arm7

############
# as root
######
Code: [Select]
USER=`cat /etc/sysconfig/tcuser`
if [ ! -d /run/user/$(id -u "$USER") ]; then
   mkdir -p /run/user/$(id -u "$USER")
   chown "$USER":staff /run/user/$(id -u "$USER")
   chmod 700 /run/user/$(id -u "$USER")
fi

su -c "XDG_RUNTIME_DIR=/run/user/$(id -u "$USER") &&
export XDG_RUNTIME_DIR" $USER

[  -f /var/run/dbus/pid ] || /usr/local/etc/init.d/dbus start
rm -rf /etc/fonts/conf.d/40-generic.conf

/usr/local/bin/chromum-browser owner changed to tc:staff

as non-root
#######
Code: [Select]
export DBUS_STARTER_BUS_TYPE="session"
export DBUS_STARTER_ADDRESS="unix:path=/run/user/1001"
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/"
dbus-launch chromium-browser

results in  smallest error/warnings I have seen my end

Code: [Select]
dbus-launch chromium-browser
Fontconfig warning: "/etc/fonts/fonts.conf", line 82: unknown element "blank"
Opening in existing browser session

browser opens and is running as expected.

Thanks for your patience

Without all above changes just running the browser causes 66 lines of errors/warning....which I have kept.
« Last Edit: July 19, 2023, 01:06:37 AM by aus9 »