Issues with Kiosk setup. Chrome Crashed and doubled menu bar on Desktop?

January 2, 2024, 07:38

Pantner

I've just set up a RPi4B (4GB) as a Kiosk to display a couple of webpages at home. I want it to flick between my CCTV dash and, at the moment, a Grafana Dashboard but that will likely change in the future. Fresh install of Bookworm on a new SD Card. New Pi powered by the v2 POE-Hat (connected to a unifi switch. Runs another Pi without issue) Used this tutorial, though installed 64-bit OS instead of 32bit as i got ahead of myself. https://www.raspberrypi.com/tutorials/how-to-use-a-raspberry-pi-in-kiosk-mode/ Set it up yesterday afternoon (~24 hours ago) and got it working reasonably quickly/easily. Went to check on it mid-morning today and Chrome (Chromium?) appears to have crashed as i was left sitting on the desktop. I also noticed the menubar at the top of the screen is doubled, I did notice this when i set it up but if it worked fine then i wasn't going to touch it. See Screenshot attached. Not sure if this is related to my main issue? Being Chrome, maybe ran out of memory? Worth trying Firefox or another browser instead? Nothing else has been installed/setup on it, except for SSH and VNC so i can remotely access it. I'm 'ok' with linux/pi's but am not really sure where to go from here? Any suggestions would be appreciated 🙂

Pantner

well, it happened again overnight. Couldn't see anything in the system journal. Just a bunch of cron jobs that run. Unless something in the daily at ~6:30am is what is doing it?

oops.se

First, the guide didn't have anything that was 32-bit OS specific in it. And what does the logs in /var/log/ say ? Check messages, syslog and faillog.

Pantner

syslog is now journal. Reviewed that, nothing jumped out at me. Just cron jobs running, DHCP renewing, etc. No error messages. have been suggested to check dmesg after it happens again, so am just waiting. I have already looked but i power cycled inbetween and i think it reset everything. Been working for ~12 hours now, so will see how it goes overnight again

Pantner

ok, it's happened again since posting that last message. Just looked at dmesg, nothing. Exported logs using journalctl. Since starting my SSH Session all that it reports is the cron.hourly running and networkmanager renewing the DHCP lease every hour

Pantner

ok, i've added --enable-logging to the chromium command line inside wayland.ini will see if that generates some chrome logs i can look at

Pantner

ok, happened again. There are a lot of javascript errors in the logs. I don't get the same errors on my computer, so that is odd.
[1015:1015:0104/144238.017883:INFO:CONSOLE(308)] "RTC Connection: Connected", source: script/monitor.min.js (308)
[1015:1015:0104/144308.209895:INFO:CONSOLE(40)] "Uncaught TypeError: Cannot read properties of undefined (reading 'suppressClose')", source: script/monitor.min.js (40)

Pantner

but that is definitely my CCTV dashboard. I've just updated it to the latest version and changed a couple other things so will see if that makes any difference

Pantner

if it still happens, I'll just make the kisok show google.com and yahoo.com or something and see if it still crashes

Pantner

ok, here we go, this looks a little more promising...

Pantner

Thats from the chrome debug log

Pantner

Pantner

i've just lowered the soft limit from 1024 to 250 (currently sitting at ~241 atm) and will see what happens

Pantner

yup, crashed. sigh, so I can increase it, but it will keep happening no matter what i increase it to. Guess i need to add a reboot at 3am or something to keep it going?

yourmate6012

What is the current status

oops.se

Thinking outside the box, could another browser be used ?