canonical / ubuntu-frame

The foundation for many embedded graphical display implementations
GNU General Public License v3.0
156 stars 21 forks source link

Frame receives random SIGTERM from init process (pid=1) on custom UC22 appliance #120

Closed tobias-grasse closed 1 year ago

tobias-grasse commented 1 year ago

On my Ubuntu Core appliance, Frame sometimes receives SIGTERM from the init process:

ubuntu-frame.daemon[15736]: [<timestamp>] < - debug - > mirserver: Handling Terminated from pid=1

I cannot reproduce this reliably yet. I observed both a single automatic restart of the frame daemon service and a completely black screen where I would need to force-restart Frame.

Expected behavior

Ubuntu Frame should stay up and running.

Actual behavior

Ubuntu Frame daemon service restarts, or sometimes halts completely. Error message in ubuntu-frame.daemon log:

ubuntu-frame.daemon[15736]: [<timestamp>] < - debug - > mirserver: Handling Terminated from pid=1

I'm providing as much debug information as possible below in <details> tags to keep this readable 🙂 Based on the debug message, this may also be a better fit for the mir repo, please move it if necessary.

Device / OS setup

Ubuntu Core 22 custom model image on a Raspberry Pi 3B rev 1.2, armhf architecture.

The gadget snap is based on the reference pi-gadget snap (22-armhf branch) and only adds minor modifications to config.txt, two kernel command line parameters and default config / connection for seeded snaps.

The appliance is set up via a WiFi captive portal without an initial internet connection, so the system time is usually way behind until users have configured their WiFi credentials and NTP could sync the correct time.

# ~$ snap version
snap    2.58
snapd   2.58
series  16
kernel  5.15.0-1023-raspi

Installed snaps:

Name                           Version         Rev    Tracking       Publisher   Notes
avahi                          0.8             278    latest/stable  ondra       -
core20                         20221212        1781   latest/stable  canonicalâś“  base
core22                         20230110        488    latest/stable  canonicalâś“  base
mesa-core20                    21.2.6          128    latest/stable  canonicalâś“  -
mirros-one                     1.11.1          360    latest/stable  glancr      -
mirros-one-pi-gadget-portrait  22-2            x1     -              -           gadget
network-manager                1.36.6-2        753    22/stable      canonicalâś“  -
pi-kernel                      5.15.0-1023.25  569    22/stable      canonicalâś“  kernel
snapd                          2.58            17952  latest/stable  canonicalâś“  snapd
ubuntu-frame                   90-mir2.10.0    4460   latest/stable  canonicalâś“  -
wpe-webkit-mir-kiosk           2.38.2          89     latest/stable  glancr      -
Ubuntu Frame configuration ```shell ~$ snap get ubuntu-frame Key Value config wallpaper-top=0x000000 wallpaper-bottom=0x000000 display-layout=default cursor none daemon true display layouts: default: cards: - card-id: 0 HDMI-A-1: orientation: right normal: cards: - card-id: 0 HDMI-A-1: orientation: normal right: cards: - card-id: 0 HDMI-A-1: orientation: right left: cards: - card-id: 0 HDMI-A-1: orientation: left inverted: cards: - card-id: 0 HDMI-A-1: orientation: inverted ```
Kernel command line in /proc/cmdline ```shell ~$ for cmd in $(cat /proc/cmdline); do echo "$cmd"; done coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 dwc_otg.lpm_enable=0 rng_core.default_quality=700 vt.handoff=2 quiet splash snapd_recovery_mode=run ```

My config.txt is pretty much the default pi-gadget version from 22-armhf, note the ### BEGIN/END customizations comment:

contents of config.txt ```shell ~$ cat /run/mnt/ubuntu-seed/config.txt [all] kernel=kernel.img cmdline=cmdline.txt initramfs initrd.img followkernel os_prefix=/piboot/ubuntu/pi-kernel_569.snap/ [pi4] max_framebuffers=2 arm_boost=1 [all] # Enable the audio output, I2C and SPI interfaces on the GPIO header. As these # parameters related to the base device-tree they must appear *before* any # other dtoverlay= specification dtparam=audio=on dtparam=i2c_arm=on dtparam=spi=on # Comment out the following line if the edges of the desktop appear outside # the edges of your display #disable_overscan=1 # If you have issues with audio, you may try uncommenting the following line # which forces the HDMI output into HDMI mode instead of DVI (which doesn't # support audio output) #hdmi_drive=2 # Enable the serial pins enable_uart=1 [cm4] # Enable the USB2 outputs on the IO board (assuming your CM4 is plugged into # such a board) dtoverlay=dwc2,dr_mode=host [all] # Enable the FKMS ("Fake" KMS) graphics overlay, and allocate 128Mb to the # GPU memory dtoverlay=vc4-fkms-v3d,cma-128 # Uncomment the following to enable the Raspberry Pi camera module firmware #start_x=1 #gpu_mem=128 ### BEGIN customizations for mirr.OS one ### # NOTE: On some displays, ubuntu-frame fails to start properly which results in a boot to console. # If that is the case, add a `#` in front of the line `dtoverlay=vc4-fkms-v3d,cma-128` and remove # the `#` from the following line: #dtoverlay=vc4-kms-v3d,cma-256 # Completely disable rainbow splash at boot disable_splash=1 # If your display doesn't get the correct mode delivered (shows "no signal"), enable this line. # See https://www.raspberrypi.com/documentation/computers/configuration.html#command-line-options disable_fw_kms_setup=1 ### END customizations for mirr.OS one ### # Prior versions of Ubuntu Core customized the on-board LEDs so that the green # ACT LED was a heartbeat, and the red PWR LED represented SD card activity. # Uncomment the following lines if you wish to restore these customizations #dtparam=act_led_trigger=heartbeat #dtparam=pwr_led_trigger=mmc0 ```
Saviq commented 1 year ago

Hi Tobias, PID 1 is systemd… so something must be causing systemd to try and restart Frame. The obvious candidate would be the snap refreshing, can you see if things in snap changes correlate with when Frame restarts?

or sometimes halts completely

That one's more worrying. Is the error the same when this happens? What's systemctl status snap.ubuntu-frame.daemon say?

AlanGriffiths commented 1 year ago

this may also be a better fit for the mir repo

No, terminating on receiving SIGTERM is correct behaviour. Any problem lies in not understanding why systemd is sends SIGTERM, nor why snapd doesn't restart Frame after it exits.

tobias-grasse commented 1 year ago

Thanks @Saviq @AlanGriffiths for the quick feedback.

can you see if things in snap changes correlate with when Frame restarts?

Service-related things in snap changes do correlate with Frame restarts, but not always. I have to admit it's a bit of a puzzle because the timestamps are off: My appliance needs to reboot once after initialization (i.e. seeding) so that NetworkManager reports the correct connectivity. After the reboot, system time is ~7 minutes behind again because the device didn't get an NTP sync and the RasPi does not have a RTC. So all log entries from the initial boot have “future” timestamps. I guess systemd does not parse previous log entries and hiccup on those, so they should “just” affect log entry order?

That one's more worrying. Is the error the same when this happens? What's systemctl status snap.ubuntu-frame.daemon say?

I have not been able to reproduce this one yet, so I can't provide further details right now. Will update here if I observe this again.

tobias-grasse commented 1 year ago

One thing I noticed in the logs:

~$ snap logs -nall ubuntu-frame.daemon | grep -a6 -b1 -i fatal
126110-2023-01-16T16:23:02Z ubuntu-frame.daemon[1335]: [2023-01-16 16:23:02.969727] < - debug - > mirserver: Handling Terminated from pid=1
126243:2023-01-16T16:23:03Z ubuntu-frame.daemon[1335]: !!! Fatal signal received. Attempting cleanup, but deadlock may occur
126361:2023-01-16T16:23:03Z ubuntu-frame.daemon[1335]: Mir fatal error: Unsupported attempt to continue after a fatal signal: SIGSEGV
126488:2023-01-16T16:23:03Z ubuntu-frame.daemon[1335]: !!! Fatal signal received. Attempting cleanup, but deadlock may occur
126606:2023-01-16T16:23:03Z ubuntu-frame.daemon[1335]: Mir fatal error: Unsupported attempt to continue after a fatal signal: SIGABRT
126733-2023-01-16T16:23:03Z systemd[1]: snap.ubuntu-frame.daemon.service: Main process exited, code=killed, status=6/ABRT

This only occurred once, but I can't tell if this was during an initial boot (i.e. frame was setting up the first time).

AlanGriffiths commented 1 year ago

This only occurred once

That looks somewhat like https://github.com/MirServer/mir/issues/2799. (But without a stack trace it is hard to be sure if it is the same thing - there might be clues earlier in the log)

tobias-grasse commented 1 year ago

I checked my test installations for these log lines, below is the full log from a ubuntu-frame.daemon service start that ended in a fatal error. note the ~2min delay between the last startup log line at 2023-01-19T15:42:58Z (scaling factor) and the Handling Terminated from pid=1, so honestly, I can't remember if I shut down the service myself as part of a system reboot.

Three things I noticed, but don't know if they are relevant. This is on a Raspberry Pi 3B with the config provided in my first post.

  1. The VC4 driver seems weirdly out of date and has no proper version:

    2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.270685] <information> gbm-kms: /dev/dri/card0: using driver vc4 [Broadcom VC4 graphics] (version: 0.0.0 driver date: 20140616)
  2. This warning. Could be caused by prevent_firmware_kms_setup enabled in config.txt?

    2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.165026] < -warning- > gbm-kms: Failed to detect whether device /dev/dri/card0 supports KMS, but continuing anyway
  3. This warning, the attached screen is 1080x1920 and frame proceeds to list supported modes for the connected HDMI-A-1 output.

    2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.265275] < -warning- > gbm-kms: Unable to determine the current display mode.
Longer log snip ``` 2023-01-19T15:42:52Z systemd[1]: Started Service for snap application ubuntu-frame.daemon. 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + exec nohup /snap/ubuntu-frame/4460/bin/run-frame /snap/ubuntu-frame/4460/usr/local/bin/frame 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + [ /snap/ubuntu-frame/4460/usr/local/bin/frame = --help ] 2023-01-19T15:42:53Z ubuntu-frame.daemon[15607]: + dirname /run/user/0/snap.ubuntu-frame 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + XDG_RUNTIME_DIR=/run/user/0 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + export XDG_RUNTIME_DIR 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + mkdir -p /run/user/0 -m 700 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + [ -n ] 2023-01-19T15:42:53Z ubuntu-frame.daemon[15577]: + exec /snap/ubuntu-frame/4460/usr/local/bin/frame 2023-01-19T15:42:54Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:54.985173] mirserver: Starting 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.073265] < - debug - > mirserver: Using Linux VT subsystem for session management 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.077647] mircommon: Loading modules from: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.079005] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-gbm-kms.so.20 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.080063] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/server-x11.so.20 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.081003] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/input-evdev.so.8 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.095150] mirserver: Found display driver: mir:gbm-kms (version 2.10.0) 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.130115] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver vc4-drm 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.130994] < -warning- > gbm-kms: Failed to detect whether device /dev/dri/card0 supports KMS, continuing with lower confidence 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.132097] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.132388] mirserver: Driver supports: 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.132528] mirserver: /devices/platform/soc/soc:gpu/drm/card0 (priority 128) 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.132619] mirserver: Found display driver: mir:x11 (version 2.10.0) 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.160912] mirserver: (Unsupported by system environment) 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.161384] mirserver: Selected display driver: mir:gbm-kms (version 2.10.0) 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.164404] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver vc4-drm 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.165026] < -warning- > gbm-kms: Failed to detect whether device /dev/dri/card0 supports KMS, but continuing anyway 2023-01-19T15:42:55Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:55.165243] gbm-kms: Using DRM device /dev/dri/card0 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.093627] mircommon: Loading modules from: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.094092] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-gbm-kms.so.20 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.094305] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/server-x11.so.20 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.094390] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/input-evdev.so.8 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.103563] mirserver: Found rendering driver: mir:gbm-kms (version 2.10.0) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.117821] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver vc4-drm 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.119796] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.121502] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/renderD128, driver vc4-drm 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.205578] mirserver: Driver supports: 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.206430] mirserver: /devices/platform/soc/soc:gpu/drm/renderD128 (priority 256) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.207279] mirserver: Found rendering driver: mir:x11 (version 2.10.0) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.208253] mirserver: (Unsupported by system environment) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.209309] mirserver: Selected rendering driver: mir:gbm-kms (version 2.10.0) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.265275] < -warning- > gbm-kms: Unable to determine the current display mode. 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.270454] gbm-kms: DRM device details: 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.270685] gbm-kms: /dev/dri/card0: using driver vc4 [Broadcom VC4 graphics] (version: 0.0.0 driver date: 20140616) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297035] gbm-kms: Output: HDMI-A-1 (connected) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297243] gbm-kms: Mode: 1920Ă—1080@60.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297308] gbm-kms: Mode: 1920Ă—1080@59.94 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297358] gbm-kms: Mode: 1920Ă—1080@30.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297406] gbm-kms: Mode: 1920Ă—1080@29.97 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297455] gbm-kms: Mode: 1920Ă—1080@50.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297504] gbm-kms: Mode: 1920Ă—1080@25.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297551] gbm-kms: Mode: 1920Ă—1080@25.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297597] gbm-kms: Mode: 1600Ă—1200@60.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297645] gbm-kms: Mode: 1680Ă—1050@59.88 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297691] gbm-kms: Mode: 1280Ă—1024@75.02 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297737] gbm-kms: Mode: 1280Ă—1024@60.01 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297785] gbm-kms: Mode: 1440Ă—900@74.98 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297841] gbm-kms: Mode: 1440Ă—900@59.90 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297888] gbm-kms: Mode: 1152Ă—864@75.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297936] gbm-kms: Mode: 1280Ă—720@60.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.297987] gbm-kms: Mode: 1280Ă—720@59.94 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298033] gbm-kms: Mode: 1280Ă—720@50.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298081] gbm-kms: Mode: 1024Ă—768@75.02 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298128] gbm-kms: Mode: 1024Ă—768@70.06 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298176] gbm-kms: Mode: 1024Ă—768@60.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298223] gbm-kms: Mode: 832Ă—624@74.55 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298285] gbm-kms: Mode: 800Ă—600@75.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298332] gbm-kms: Mode: 800Ă—600@72.18 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298381] gbm-kms: Mode: 800Ă—600@60.31 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298428] gbm-kms: Mode: 800Ă—600@56.25 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298476] gbm-kms: Mode: 720Ă—576@50.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298522] gbm-kms: Mode: 720Ă—576@25.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298572] gbm-kms: Mode: 720Ă—480@60.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298618] gbm-kms: Mode: 720Ă—480@59.94 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298666] gbm-kms: Mode: 720Ă—480@30.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298712] gbm-kms: Mode: 720Ă—480@29.97 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298759] gbm-kms: Mode: 640Ă—480@75.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298805] gbm-kms: Mode: 640Ă—480@72.80 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298852] gbm-kms: Mode: 640Ă—480@66.66 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298897] gbm-kms: Mode: 640Ă—480@60.00 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298944] gbm-kms: Mode: 640Ă—480@59.94 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.298991] gbm-kms: Mode: 720Ă—400@70.08 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.299066] < - debug - > miral: Display config using layout: 'default' 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.299508] miral: Display config: 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: 8>< --------------------------------------------------- 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: layouts: 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # keys here are layout labels (used for atomically switching between them) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # when enabling displays, surfaces should be matched in reverse recency order 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: default: # the default layout 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: cards: 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # a list of cards (currently matched by card-id) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: - card-id: 0 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: HDMI-A-1: 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # This output supports the following modes: 1920x1080@60.0, 1920x1080@59.9, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 1920x1080@30.0, 1920x1080@30.0, 1920x1080@50.0, 1920x1080@25.0, 1920x1080@25.0, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 1600x1200@60.0, 1680x1050@59.9, 1280x1024@75.0, 1280x1024@60.0, 1440x900@75.0, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 1440x900@59.9, 1152x864@75.0, 1280x720@60.0, 1280x720@59.9, 1280x720@50.0, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 1024x768@75.0, 1024x768@70.1, 1024x768@60.0, 832x624@74.5, 800x600@75.0, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 800x600@72.2, 800x600@60.3, 800x600@56.2, 720x576@50.0, 720x576@25.0, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 720x480@60.0, 720x480@59.9, 720x480@30.0, 720x480@30.0, 640x480@75.0, 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 640x480@72.8, 640x480@66.7, 640x480@60.0, 640x480@59.9, 720x400@70.1 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # Uncomment the following to enforce the selected configuration. 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # Or amend as desired. 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # state: enabled # {enabled, disabled}, defaults to enabled 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # mode: 1920x1080@60.0 # Defaults to preferred mode 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # position: [0, 0] # Defaults to [0, 0] 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # orientation: right # {normal, left, right, inverted}, defaults to normal 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # scale: 1 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: # group: 0 # Outputs with the same non-zero value are treated as a single display 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: 8>< --------------------------------------------------- 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.360634] < -warning- > gbm-kms: drmModeCrtcSetGamma failed: Function not implemented 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.664664] gbm-kms: Detected single-GPU DisplayBuffer. Rendering will be sent directly to output 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.770646] mirserver: Using hardware cursor 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: xkbcommon: ERROR: couldn't find a Compose file for locale "C.UTF-8" 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.838977] GLRenderer: EGL vendor: Mesa Project 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839195] GLRenderer: EGL version: 1.4 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839256] GLRenderer: EGL client APIs: OpenGL OpenGL_ES 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839375] GLRenderer: EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839472] GLRenderer: GL vendor: Broadcom 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839526] GLRenderer: GL renderer: VC4 V3D 2.1 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839574] GLRenderer: GL version: OpenGL ES 2.0 Mesa 21.2.6 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839725] GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839895] GLRenderer: GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_pack_reverse_row_order GL_EXT_occlusion_query_boolean GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_separate_shader_objects GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_KHR_parallel_shader_compile GL_MESA_tile_raster_order GL_MESA_bgra 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.839996] GLRenderer: GL max texture size = 2048 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.846796] GLRenderer: GL framebuffer bits: RGBA=0000, depth=0, stencil=0 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.848695] gbm-kms-buffer-allocator: Enabled linux-dmabuf import support 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.875309] mircommon: Loading modules from: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.875813] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-gbm-kms.so.20 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.876168] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/server-x11.so.20 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.876334] mircommon: Loading module: /snap/ubuntu-frame/4460/usr/lib/arm-linux-gnueabihf/mir/server-platform/input-evdev.so.8 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.923265] mirserver: Selected input driver: mir:evdev-input (version: 2.10.0) 2023-01-19T15:42:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:57.960603] mirserver: Mir version 2.10.0 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.026604] GLRenderer: EGL vendor: Mesa Project 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028186] GLRenderer: EGL version: 1.4 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028408] GLRenderer: EGL client APIs: OpenGL OpenGL_ES 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028580] GLRenderer: EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028646] GLRenderer: GL vendor: Broadcom 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028696] GLRenderer: GL renderer: VC4 V3D 2.1 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028743] GLRenderer: GL version: OpenGL ES 2.0 Mesa 21.2.6 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028790] GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.028951] GLRenderer: GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_pack_reverse_row_order GL_EXT_occlusion_query_boolean GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_separate_shader_objects GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_KHR_parallel_shader_compile GL_MESA_tile_raster_order GL_MESA_bgra 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.029015] GLRenderer: GL max texture size = 2048 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.029079] GLRenderer: GL framebuffer bits: RGBA=8880, depth=0, stencil=0 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.083938] mirserver: Initial display configuration: 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084239] mirserver: * Output 1: HDMI-A connected, used 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084357] mirserver: . |_ EDID monitor name: PLE2407HDS 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084419] mirserver: . |_ EDID manufacturer: IVM 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084469] mirserver: . |_ EDID product code: 22029 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084554] mirserver: . |_ Physical size 23.6" 520x300mm 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084619] mirserver: . |_ Power is on 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084672] mirserver: . |_ Current mode 1920x1080 60.00Hz 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084720] mirserver: . |_ Preferred mode 1920x1080 60.00Hz 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084767] mirserver: . |_ Orientation right 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084847] mirserver: . |_ Logical size 1080x1920 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084897] mirserver: . |_ Logical position +0+0 2023-01-19T15:42:58Z ubuntu-frame.daemon[15577]: [2023-01-19 15:42:58.084952] mirserver: . |_ Scaling factor: 1.00 2023-01-19T15:44:57Z ubuntu-frame.daemon[15577]: [2023-01-19 15:44:57.856664] < - debug - > mirserver: Handling Terminated from pid=1 2023-01-19T15:44:58Z systemd[1]: Stopping Service for snap application ubuntu-frame.daemon... 2023-01-19T15:44:58Z ubuntu-frame.daemon[15577]: !!! Fatal signal received. Attempting cleanup, but deadlock may occur 2023-01-19T15:44:58Z ubuntu-frame.daemon[15577]: Mir fatal error: Unsupported attempt to continue after a fatal signal: SIGSEGV 2023-01-19T15:44:58Z ubuntu-frame.daemon[15577]: !!! Fatal signal received. Attempting cleanup, but deadlock may occur 2023-01-19T15:44:58Z ubuntu-frame.daemon[15577]: Mir fatal error: Unsupported attempt to continue after a fatal signal: SIGABRT 2023-01-19T15:44:58Z systemd[1]: snap.ubuntu-frame.daemon.service: Main process exited, code=killed, status=6/ABRT 2023-01-19T15:44:58Z systemd[1]: snap.ubuntu-frame.daemon.service: Failed with result 'signal'. 2023-01-19T15:44:58Z systemd[1]: Stopped Service for snap application ubuntu-frame.daemon. 2023-01-19T15:44:58Z systemd[1]: snap.ubuntu-frame.daemon.service: Consumed 4.572s CPU time. ```

I did not observe another instance of unexpected restarts or fatal errors since yesterday, so unless you spot something worth investigating, this can be closed for now.

Saviq commented 1 year ago

Will close, please report back if you see anything new. Thanks!