Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | Chromium: Fails to start on ARMv8 #5300

Closed
almirus opened this issue Feb 20, 2022 · 65 comments
Closed

DietPi-Software | Chromium: Fails to start on ARMv8 #5300

almirus opened this issue Feb 20, 2022 · 65 comments
Labels
ARMv8 Bullseye External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done
Milestone

Comments

@almirus
Copy link

almirus commented Feb 20, 2022

Creating a bug report/issue

Required Information

  • DietPi version | 8.1.2
  • Distro version | bullseye
  • Kernel version | Linux DietPi 5.10.69-7-amlogic-gfd159ba07d5c #gfd159ba07d5c SMP PREEMPT Thu Nov 4 14:38:15 CST 2021 aarch64 GNU/Linux
  • SBC model | Radxa Zero (aarch64)
  • Power supply used | 5V 1A
  • SD card used |SanDisk ultra

Additional Information (if applicable)

  • Software title | chromium 98.0.4758.102
  • Bug report ID | 16a389ef-4f5f-4795-ad55-81e728bafdde

Steps to reproduce

  1. autostart chromium (kiosk mode)
  2. or xinit /usr/bin/chromium ---kiosk

Extra details

root@DietPi:~# xinit /usr/bin/chromium ---kiosk


X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
Build Operating System: linux Debian
Current Operating System: Linux DietPi 5.10.69-7-amlogic-gfd159ba07d5c #gfd159ba07d5c SMP PREEMPT Thu Nov 4 14:38:15 CST 2021 aarch64
Kernel command line: initrd=initrd.img-5.10.69-7-amlogic-gfd159ba07d5c root=UUID=30422831-c223-492f-959c-0fc18139c228 rootwait rw rootfstype=ext4 console=tty1 console=ttyAML0,115200 panic=10 consoleblank=0 loglevel=7   cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
Build Date: 16 December 2021  05:08:23PM
xorg-server 2:1.20.11-1+deb11u1 (https://www.debian.org/support)
Current version of pixman: 0.40.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb 20 18:40:30 2022
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[2380:2410:0220/184033.652183:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2380:2410:0220/184033.652751:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2380:2410:0220/184033.702222:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2380:2410:0220/184033.702466:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2380:2410:0220/184033.842968:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2380:2410:0220/184033.843115:ERROR:bus.cc(397)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
*** stack smashing detected ***: terminated
[2380:2380:0220/184034.039483:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2380:2380:0220/184034.122230:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=6
[2380:2444:0220/184034.123897: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
[2380:2444:0220/184034.124941: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
[2380:2444:0220/184034.126014: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
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2380:2380:0220/184034.167681:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2380:2380:0220/184034.198424:ERROR:system_web_app_manager.cc(320)] Exceeded SWA install retry attempts.  Skipping installation, will retry on next OS update or when locale changes.
[2380:2380:0220/184034.200305:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2380:2380:0220/184034.225990:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2380:2380:0220/184034.240862:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=6
[2380:2380:0220/184034.240968:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[2418:2436:0220/184034.338564:ERROR:ssl_client_socket_impl.cc(995)] handshake failed; returned -1, SSL error code 1, net_error -3
[2418:2436:0220/184034.339536:ERROR:ssl_client_socket_impl.cc(995)] handshake failed; returned -1, SSL error code 1, net_error -3
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.


@MichaIng MichaIng changed the title chromium (kiosk mode) crush DietPi-Software | Chromium: Fails to start on ARMv8 Feb 20, 2022
@MichaIng
Copy link
Owner

Many thanks for your report. It seems to be a general bug in Chromium affecting many or all ARMv8 systems:

@MichaIng MichaIng added the External bug 🐞 For bugs which are not caused by DietPi. label Feb 20, 2022
@MichaIng MichaIng added this to the v8.2 milestone Feb 20, 2022
@MDAR
Copy link

MDAR commented Feb 21, 2022

Please let me know if there is anything you want me to test on an Odroid C4.

@MichaIng MichaIng added Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. Bullseye labels Feb 25, 2022
@MichaIng
Copy link
Owner

MichaIng commented Feb 25, 2022

I found a workaround:

apt install chromium/bullseye chromium-common/bullseye

This will downgrade Chromium from v98 (from Debian security repo) to v90 (from regular Debian repo). That one starts up without issues. Any next "apt upgrade" incl. "dietpi-update" will upgrade it again. To lock it:

apt-mark hold chromium chromium-common
rm -Rf /{root,home/*}/.{cache,config}/chromium

I'll report this to the Debian bug tracker.

@MichaIng
Copy link
Owner

This works for you as well guys? I'm not sure what to do about it. I reported it to Debian: https://bugs.debian.org/1006457
But I'm not sure whether we should really pin an old Chromium version on those systems via dietpi-software which obviously has security vulnerabilities solved with the one shipped by the security repo. As a personal workaround this is fine, but knowingly shipping vulnerable software in "stable" DietPi is not so awesome 🤔.

I think I'll wait with the decision until the final release, probably we get some helpful response on the Debian bug report until then.

@MDAR
Copy link

MDAR commented Feb 26, 2022

This works for you as well guys?

I'm away for a few weeks working on a client's site, as soon as I get back I'll fire up a machine and let you know.

As a personal workaround this is fine, but knowingly shipping vulnerable software in "stable" DietPi is not so awesome 🤔.

I think I'll wait with the decision until the final release, probably we get some helpful response on the Debian bug report until then.

I agree completely

@orlandozeta
Copy link

in my case, the chromium is opened, but not load the --homepage, but, if i press ctrl t (new tab) then load the page:

test:
dietpi version: 8.1.2
Chromium 98.0.4758.106 Built on Debian , running on Debian 11

xinit /usr/bin/chromium-browser --autoplay-policy=no-user-gesture-required --no-sandbox --homepage https://www.google.com --app --start-fullscreen --check-for-update-interval=604800 --window-size=, --app-window-size=, --window-position=0,0 --noerrdialogs --disable-infobars --kiosk

OUTPUT:

X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
Build Operating System: linux Debian
Current Operating System: Linux DietPi 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=854 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  root=PARTUUID=9bcc366d-02 rootfstype=ext4 rootwait fsck.repair=yes net.ifnames=0 logo.nologo quiet console=ttyS0,115200 console=tty1
Build Date: 04 January 2022  10:24:42AM
xorg-server 2:1.20.11-1+rpt1+deb11u1 (https://www.debian.org/support)
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Mar  4 21:07:26 2022
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/etc/chromium.d/README: line 1: Any: command not found
dpkg-query: no packages found matching bluealsa
[3623:3678:0304/210729.478320:ERROR:bus.cc(397)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[3623:3678:0304/210729.480972:ERROR:bus.cc(397)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[3623:3678:0304/210729.544250:ERROR:bus.cc(397)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[3623:3678:0304/210729.546522:ERROR:bus.cc(397)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
libEGL warning: DRI2: failed to authenticate
[3623:3678:0304/210729.790953:ERROR:bus.cc(397)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[3623:3678:0304/210729.792626:ERROR:bus.cc(397)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[3623:3725:0304/210730.017362: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
[3623:3725:0304/210730.019597: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
[3623:3725:0304/210730.021784: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
[3686:3686:0304/210730.257685:ERROR:gpu_init.cc(454)] Passthrough is not supported, GL is egl, ANGLE is
[3686:3686:0304/210730.318619:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[3745:3745:0304/210730.388484:ERROR:egl_util.cc(74)] Failed to load GLES library: /usr/lib/chromium-browser/libGLESv2.so: /usr/lib/chromium-browser/libGLESv2.so: cannot open shared object file: No such file or directory
[3745:3745:0304/210730.404488:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[3757:3757:0304/210730.466733:ERROR:gpu_init.cc(454)] Passthrough is not supported, GL is disabled, ANGLE is
[3623:3661:0304/210735.098604:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(). If you don't see the END: message, this is crbug.com/1216328.
[3623:3661:0304/210735.101069:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] END: ReportBluetoothAvailability()

@MichaIng MichaIng modified the milestones: v8.2, v8.3 Mar 5, 2022
@MichaIng
Copy link
Owner

MichaIng commented Mar 6, 2022

@orlandozeta
You are using an RPi, with chromium-browser from RPi repo instead of chromium from Debian repo? This is known to not be affected, only the Chromium build from the Debian APT repository is.

@orlandozeta
Copy link

what could be the problem then?

with Chromium 95.0.4638.78 Built on Debian , running on Debian 11 It works well, 32 rpi running ok, 2 with updated chromium to 98, not

@MichaIng
Copy link
Owner

MichaIng commented Mar 6, 2022

I have no idea, which is why I reported it to Debian.

@MDAR
Copy link

MDAR commented Mar 11, 2022

Hello everyone

I've just updated an Odroid C4 to DietPi 8.2.2 and the full screen Chromium kiosk in Xinit is working again.

Thanks to everyone that did all the hard work in the background.

FYI

I did play around with Firefox in the same situation, but it never quite did what Chromium did so easily.

@MichaIng
Copy link
Owner

Strange, since there was not change regarding this, no Chromium package upgrade since this issue appeared the first time. I'll test on Odroid N2 as well, probably others here can test as well. If it is really resolved, then it was probably something with the X server or a dependency of Chromium which fixed it. I'll carefully watch all APT package upgrades on Odroid N2 as well 😄.

@MDAR
Copy link

MDAR commented Mar 11, 2022

no Chromium package upgrade

Curious, the machine in question here updated from DietPi 7 to 8.2.2 and I'm sure I saw a Chromium package update at some point.

But I can confirm that I did nothing else, other than update to 8.2.2

Good luck with the N2.

Do you have a C4 machine? Would you like one?

@MichaIng
Copy link
Owner

MichaIng commented Mar 11, 2022

Curious, the machine in question here updated from DietPi 7 to 8.2.2 and I'm sure I saw a Chromium package update at some point.

Okay, DietPi v7 is old, so of course there were many Chromium package updates since then. I hope before reporting here you tried first to upgrade to the latest Chromium package 😉. I tested it with the (still) latest package on Odroid N2 and faced the same issue there, two weeks ago.

@MDAR
Copy link

MDAR commented Mar 11, 2022

hope before reporting here

Yeah, fear not.

I reported it after I had updated the machine to 8.1 (I think, whatever it was a few weeks ago)

Today's machine was a "working / known to be good" image, that I just ran the dietpi-update script on.

@MDAR
Copy link

MDAR commented Jul 27, 2022

I'm not sure what to do with the following information.

Your guidance would be most welcome.


A brand new eMMC with nothing but a fresh DietPI image on a C4, trying to get Chromium working, just fails with the same stack smashing issue.

However.

I have got Vivaldi working full screen, it just complains that it doesn't have HTML5 H.264 support loaded.


I downloaded Debian Vivaldi from here
https://vivaldi.com/download/

and installed with it this apt install ./vivaldi-stable_5.3.2679.70-1_arm64.deb

then I edited the Chromium autostart file (because I wanted a template to work from)

so that it looks like this

#!/bin/dash
# Autostart script for kiosk mode, based on @AYapejian: https://github.com/MichaIng/DietPi/issues/1737#issue-318697621

# Resolution to use for kiosk mode, should ideally match current system resolution
RES_X=$(sed -n '/^[[:blank:]]*SOFTWARE_CHROMIUM_RES_X=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
RES_Y=$(sed -n '/^[[:blank:]]*SOFTWARE_CHROMIUM_RES_Y=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)

# Command line switches: https://peter.sh/experiments/chromium-command-line-switches/
# - Review and add custom flags in: /etc/chromium.d
CHROMIUM_OPTS="--kiosk --window-size=${RES_X:-1280},${RES_Y:-720} --window-position=0,0 --no-sandbox"

# If you want tablet mode, uncomment the next line.
#CHROMIUM_OPTS+=' --force-tablet-mode --tablet-ui'

# Home page
URL=$(sed -n '/^[[:blank:]]*SOFTWARE_CHROMIUM_AUTOSTART_URL=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)


CHROMIUM_OPTS=$CHROMIUM_OPTS" --url="$URL


# RPi or Debian Chromium package
# FP_CHROMIUM=$(command -v chromium-browser)

 FP_CHROMIUM=$(command -v vivaldi)

[ "$FP_CHROMIUM" ] || FP_CHROMIUM=$(command -v chromium)

# Use "startx" as non-root user to get required permissions via systemd-logind
STARTX='xinit'
[ "$USER" = 'root' ] || STARTX='startx'


echo trying $FP_CHROMIUM with these options
echo  $CHROMIUM_OPTS


 exec "$STARTX" "$FP_CHROMIUM" $CHROMIUM_OPTS
# xinit  "$FP_CHROMIUM" $CHROMIUM_OPTS "${URL:-https://dietpi.com/}"

exit 0



I get Vivaldi at full screen (after editing dietpi.txt and setting the X and Y res correctly

root@DietPi:/var/lib/dietpi/dietpi-software/installed# sh chromium-autostart.sh
trying /usr/bin/vivaldi with these options
--kiosk --window-size=1920,1080 --window-position=0,0 --no-sandbox --url=https://dietpi.com/


X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
Build Operating System: linux Debian
Current Operating System: Linux DietPi 5.10.123-meson64 #22.05.3 SMP PREEMPT Wed Jun 22 07:23:04 UTC 2022 aarch64
Kernel command line: root=UUID=28046172-8741-4334-96cd-b24d158eec46 rootfstype=ext4 rootwait console=tty1 loglevel=4 consoleblank=0 coherent_pool=2M ubootpart=2c2a3e4f-01 libata.force=noncq usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u net.ifnames=0
Build Date: 16 December 2021  05:08:23PM
xorg-server 2:1.20.11-1+deb11u1 (https://www.debian.org/support)
Current version of pixman: 0.40.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 18:33:51 2022
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
'Proprietary media' support is not installed. Attempting to fix this for the next restart.
[6427:6456:0727/183354.530277:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6427:6456:0727/183354.531176:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6427:6456:0727/183354.588127:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6427:6456:0727/183354.588255:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6427:6427:0727/183354.718163:ERROR:image_generic.cc(77)] Unable to decode PNG for 1.
[6427:6517:0727/183354.821591: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
[6427:6517:0727/183354.823188: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
[6427:6517:0727/183354.824720: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
[6427:6427:0727/183356.121245:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=11
[6427:6427:0727/183357.508576:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=11
[6427:6427:0727/183358.845877:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=11
[6493:6506:0727/183400.379673:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[6427:6427:0727/183401.874966:ERROR:CONSOLE(1)] "syncDetachedTabInformation: The message port closed before a response was received.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js (1)
[6427:6427:0727/183401.876212:ERROR:CONSOLE(1)] "syncDetachedTabInformation: The message port closed before a response was received.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js (1)
[6427:6427:0727/183401.877261:ERROR:CONSOLE(1)] "syncDetachedTabInformation: The message port closed before a response was received.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js (1)

Anything you can do to help clean this up (if it needs it) or resolve the H.264 playback would be amazing. 😄

I'm just glad that I've got some kind of full screen browser again, I'll try it with the rest of my setup tomorrow.

Thanks to everyone in advance.

@kt1024
@almirus

Does this help you in any way?

@MichaIng
@Joulinar

Using Peter's reference to command line switches, I'll play around tomorrow and see if I can get a pure kiosk working

@MDAR
Copy link

MDAR commented Jul 28, 2022

Good morning

Well this didn't take long at all.

I just dropped Vivaldi onto my development machine
Installed it

Swapped any reference to Chromium to Vivaldi and it works for everything other than the video playback.
(Which isn't used by many, but I do need to get it working for when they do ask for it)

Only Vivaldi forum post I could find with a comment from someone at the company - https://gist.github.com/ruario/bec42d156d30affef655

The command line that is being used to start Vivaldi is this

sudo xinit /usr/bin/vivaldi ---kiosk --test-type --window-size=1920,1080 --no-sandbox --start-fullscreen --start-maximized --window-position=0,0 --no-user-gesture-required --app=http://127.0.0.1:1880/content/index.html -- -nocursor

Note the --no-sandbox when running as root
and that I have hidden the cursor in Xinit

Which isn't an issue in the closed environment that I'm working in, but I guess it is a big issue for those that pull content from the web.

I would be delighted to hear about other people's results.

One small detail that does confuse me.... I think Vivaldi is based on Chromium..... so why is this working?

@0x9394
Copy link

0x9394 commented Jul 29, 2022

@MDAR does it have chromium-codecs-ffmpeg-extra package installed?

I may try this later sometime, coz I've made a rpi4 as kiosk.

@MDAR
Copy link

MDAR commented Jul 29, 2022

@MDAR does it have chromium-codecs-ffmpeg-extra package installed?

I may try this later sometime, coz I've made a rpi4 as kiosk.

@kt1024
Hi

By the looks of it, that package isn't available

root@LiveStream-C4:~# apt install chromium-codecs-ffmpeg-extr* --fix-missing
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package chromium-codecs-ffmpeg-extr*
E: Couldn't find any package by glob 'chromium-codecs-ffmpeg-extr*'

However, the good people at Vivaldi suggest that the application should "download what it needs" on first boot.

I'm waiting for a reply on their forum (as per link above)

If you don't need video playback, Vivaldi certainly doing everything else I need it to, in full unattended kiosk mode, with WebSocket remote control.

@0x9394
Copy link

0x9394 commented Jul 29, 2022

my bad, should be 2 packages, chromium-codecs-ffmpeg and chromium-codecs-ffmpeg-extra

@MichaIng
Copy link
Owner

These are RPi-only packages from the RPi repository, responsible only for video decoding, not for startup, and on RPi the issue does not exist.

@MichaIng MichaIng modified the milestones: v8.7, v8.8 Jul 31, 2022
@MDAR
Copy link

MDAR commented Aug 2, 2022

@ruario
posted a comment on the Vivaldi issue, that gets me H.264 playback in Vivaldi

https://gist.github.com/ruario/bec42d156d30affef655#gistcomment-4251813


I know why H.264 is failing for you and hope to get out a fix soon. In the mean time I can give you a work around.

If it is armhf

wget -O- https://launchpadlibrarian.net/614082413/chromium-codecs-ffmpeg-extra_103.0.5060.134-0ubuntu0.18.04.1_armhf.deb | tail -c+1157 | tar xOJ ./usr/lib/chromium-browser/libffmpeg.so > libffmpeg.so.5.3
sudo install -m755 libffmpeg.so.5.3 /opt/vivaldi/libffmpeg.so.5.3

If it is arm64

wget -O- https://launchpadlibrarian.net/614041844/chromium-codecs-ffmpeg-extra_103.0.5060.134-0ubuntu0.18.04.1_arm64.deb | tail -c+1157 | tar xOJ ./usr/lib/chromium-browser/libffmpeg.so > libffmpeg.so.5.3
sudo install -m755 libffmpeg.so.5.3 /opt/vivaldi/libffmpeg.so.5.3

It certainly enables h.264 playback, with user interaction, so for me that is >70% the way to a solution.

I need to send F11 to the browser twice (even if it is full screen / kiosk) before the videos will autoplay.

After that, everything works perfectly, I can use WebSockets to set the video file and start and stop playback.
So only the AutoPlay without any user interaction to resolve

@MichaIng MichaIng modified the milestones: v8.8, v8.9 Aug 29, 2022
@MichaIng MichaIng modified the milestones: v8.9, v8.10 Sep 24, 2022
@MDAR
Copy link

MDAR commented Oct 7, 2022

Hi

I think there has been a breakthough

I'm having an issue with a machine that is forcing me to update it to the very latest version of Debian.

I didn't want to do this due to the Chromium issue.
However, I've tried an update on a machine that doesn't use Chromium in Kiosk and it now seems to be working.

dpkg -s chromium

Installed-Size: 172351
Maintainer: Debian Chromium Team <[email protected]>
Architecture: arm64
Version: 89.0.4389.114-1~deb10u1

Can anyone else try this and let me know if the Chromium issue has been resolved, before I update this one ,machine?

Thanks
Stuart

@Joulinar
Copy link
Collaborator

Joulinar commented Oct 7, 2022

a machine that is forcing me to update it to the very latest version of Debian

At least from DietPi side, we don't force anyone to update. We just notify user about available updates.

Can anyone else try this and let me know if the Chromium issue has been resolved, before I update this one ,machine?

You could create a dietpi-backup and check if latest version of Chromium is working. If not, simply perform a restore. If you use SD card, you could create an offline close as well.

@MDAR
Copy link

MDAR commented Oct 7, 2022

we don't force anyone to update.

You are absolutely correct, this is a third party app that is giving me trouble.

But in fairness, that machine is still running DietPi V7

create a dietpi-backup and check if latest version of Chromium is working

Yes, that is an option.

My post was more to ask if someone independent of me and any mistakes I might have made, could confirm that Chromium V89.0.4389.114.1~deb10u1 was working for them.

@MichaIng
Copy link
Owner

MichaIng commented Oct 7, 2022

On Buster there was never any issue with Chromium. This issue is about non-RPi ARMv8 Bullseye systems only 😉.

And based on the Chromium version, this system seems to be still a Buster system.

@MDAR
Copy link

MDAR commented Oct 7, 2022

based on the Chromium version, this system seems to be still a Buster system.

DAM IT

I'd forgotten about that detail.

I must have picked up my only Buster based box..... I wonder how that missed the "great upgrade"

@MichaIng
Copy link
Owner

MichaIng commented Oct 7, 2022

Hehe, I'm not aware of any info/notification a system would get about this upgrade, but our MOTD 😉.

@MichaIng MichaIng modified the milestones: v8.10, v8.11 Oct 22, 2022
@MichaIng MichaIng modified the milestones: v8.11, v8.12 Nov 18, 2022
@MichaIng
Copy link
Owner

Finally the issue got solved with latest Kodi package on Bullseye: https://bugs.debian.org/1006457

@MDAR
Copy link

MDAR commented Nov 21, 2022

@MichaIng

What an absolute fabulous fella you are.

Thank you so much for all your effort.

When I get back to my office, I'll update my production machine and let you know how it goes.

(I'm sure it'll be fine)

🎉🎊

@MDAR
Copy link

MDAR commented Dec 22, 2022

Hello

I can confirm that everything now works really well with a fresh install of DietPi V8.12.1 on Odroid C4 machines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMv8 Bullseye External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

7 participants