Workaround: Mythtv-Light v34 Segfault on RPI5 Bookworm

For discussion of topics specific to MythTV on Raspberry Pi devices
Post Reply
bauner
Newcomer
Posts: 2
Joined: Fri Nov 10, 2023 3:35 pm
Germany

Workaround: Mythtv-Light v34 Segfault on RPI5 Bookworm

Post by bauner »

Since I received my Pi 5 a few days ago I try to use it as Mythtv Backend + Frontend to replace my Pi 4.

On the Pi5 the frontend will not start and I get the following output from mythbackend -v

Code: Select all

bauner@bauner-backend:~ $ mythfrontend -v
WARNING: v3d support for hw version 71 is neither a complete nor a conformant OpenGL implementation. Testing use only.
2023-11-09 18:11:21.449281 I  Display: Requesting EGL for vendor 'Mesa Project, 1.4'
2023-11-09 18:11:21.501941 I  Setup Interrupt handler
2023-11-09 18:11:21.501946 I  Setup Terminated handler
2023-11-09 18:11:21.501951 I  Setup Segmentation fault handler
2023-11-09 18:11:21.501955 I  Setup Aborted handler
2023-11-09 18:11:21.501958 I  Setup Floating point exception handler
2023-11-09 18:11:21.501962 I  Setup Illegal instruction handler
2023-11-09 18:11:21.501964 I  Setup Bus error handler
2023-11-09 18:11:21.501970 I  Setup Real-time signal 0 handler
2023-11-09 18:11:21.501973 I  Setup Hangup handler
2023-11-09 18:11:21.501978 I  Setup User defined signal 1 handler
2023-11-09 18:11:21.501981 I  Setup User defined signal 2 handler
2023-11-09 18:11:21.502109 C  mythfrontend version: master [v34-Pre-536-gd4863f72f1]
2023-11-09 18:11:21.502112 C  Qt version: compile: 5.15.8, runtime: 5.15.8
2023-11-09 18:11:21.502148 I  Debian GNU/Linux 12 (bookworm) (arm64)
2023-11-09 18:11:21.502149 N  Enabled verbose msgs:  general
2023-11-09 18:11:21.502159 N  Setting Log Level to LOG_INFO
2023-11-09 18:11:21.512368 I  Added logging to the console
2023-11-09 18:11:21.512410 N  Using runtime prefix = /usr
2023-11-09 18:11:21.512412 N  Using configuration directory = /home/bauner/.mythtv
2023-11-09 18:11:21.512539 I  Assumed character encoding: en_US.UTF-8
2023-11-09 18:11:21.512754 I  Loading en_us translation for module mythfrontend
2023-11-09 18:11:21.512878 E  DBHostName is not set in config.xml
2023-11-09 18:11:21.512884 I  Empty LocalHostName. This is typical.
2023-11-09 18:11:21.512895 I  Using a profile name of: 'bauner-backend' (Usually the same as this host's name.)
2023-11-09 18:11:21.512931 I  Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2023-11-09 18:11:22.518145 I  Start up failure. host localhost, status dbAwakeFail
2023-11-09 18:11:22.522413 E  DB Error (StorageGroup::StorageGroup()):
Query was:

Driver error was [1/]:
Driver not loaded
Database error was:
Driver not loaded

2023-11-09 18:11:22.522937 I  Display: Defaulting to primary screen (HDMI-A-1)
2023-11-09 18:11:22.522946 I  Display: Using screen 'HDMI-A-1' (Make: Samsung Electric Company Model: SAMSUNG)
2023-11-09 18:11:22.522961 I  Display: Qt screen pixel ratio: 1.00
2023-11-09 18:11:22.522970 I  Display: Geometry: 1920x1080+0+0 Size(Qt): 1110mmx620mm
2023-11-09 18:11:22.523807 E  DisplayX11: Failed to find an output that matches 'HDMI-A-1'
2023-11-09 18:11:22.525583 I  VRR: No variable refresh rate support detected
2023-11-09 18:11:22.525622 N  Display: Desktop video mode: 1920x1080 60.000Hz
2023-11-09 18:11:22.525653 I  InputHandler: Starting
2023-11-09 18:11:22.525735 E  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2023-11-09 18:11:22.525761 I  No joystick configuration found, not enabling joystick control
2023-11-09 18:11:22.525970 I  UDPListener: Enabling
2023-11-09 18:11:22.526114 I  Binding to UDP 0.0.0.0:0
2023-11-09 18:11:22.526172 I  Binding to UDP [::]:0
2023-11-09 18:11:22.529968 I  Starting process manager
2023-11-09 18:11:22.529975 I  Starting process signal handler
2023-11-09 18:11:22.530028 I  Starting IO manager (read)
2023-11-09 18:11:22.530073 I  Starting IO manager (write)
2023-11-09 18:11:22.580492 I  ScreenSaverX11: DPMS is not supported.
2023-11-09 18:11:22.580867 I  Using Frameless Window
2023-11-09 18:11:22.580869 I  Using Full Screen Window
WARNING: v3d support for hw version 71 is neither a complete nor a conformant OpenGL implementation. Testing use only.
2023-11-09 18:11:22.831983 I  Display: Have main widget
2023-11-09 18:11:22.831986 I  Display: Have main window
2023-11-09 18:11:22.832009 I  Display: Defaulting to primary screen (HDMI-A-1)
2023-11-09 18:11:22.844568 I  Qt: QOpenGLFramebufferObject: Unsupported framebuffer format.
2023-11-09 18:11:22.844581 I  Qt: QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
2023-11-09 18:11:22.844587 E  Failed to create framebuffer object
2023-11-09 18:11:22.844626 I  OpenGL: OpenGL vendor        : Broadcom
2023-11-09 18:11:22.844628 I  OpenGL: OpenGL renderer      : V3D 7.1
2023-11-09 18:11:22.844629 I  OpenGL: OpenGL version       : 3.1 Mesa 23.2.1-0+rpt2
2023-11-09 18:11:22.844632 I  OpenGL: Qt platform          : wayland
2023-11-09 18:11:22.844686 I  OpenGL: EGL display          : Yes
2023-11-09 18:11:22.844687 I  OpenGL: Qt OpenGL module     : OpenGL (not ES)
2023-11-09 18:11:22.844688 I  OpenGL: Qt OpenGL format     : OpenGL 3.1
2023-11-09 18:11:22.844690 I  OpenGL: Qt OpenGL surface    : RGBA: 5:6:6:0 Depth: 0 Stencil: 0
2023-11-09 18:11:22.844691 I  OpenGL: Max texture size     : 4096
2023-11-09 18:11:22.844696 I  OpenGL: Shaders              : Vertex,Fragment
2023-11-09 18:11:22.844696 I  OpenGL: 16bit framebuffers   : No
2023-11-09 18:11:22.853574 I  OpenGL: Initialised MythRenderOpenGL
2023-11-09 18:11:22.853580 I  OpenGL: Using full range output
2023-11-09 18:11:22.854099 I  UICache: Pruning cache directory: /home/bauner/.mythtv/cache/remotecache
2023-11-09 18:11:22.854131 I  UICache: Kept 0 files, deleted 0 files, stat error on 0 files
2023-11-09 18:11:22.854134 I  UICache: Pruning cache directory: /home/bauner/.mythtv/cache/thumbnails
2023-11-09 18:11:22.854143 I  UICache: Kept 0 files, deleted 0 files, stat error on 0 files
* failed to open vchiq instance
corrupted double-linked list
.956868 I  UDPListener: Disabling
Handling Segmentation fault
Segmentation fault
Using the same sdcard in my Pi4 will work without problems.

I also tried to build mythtv-light and non light debs myself on the Pi 5 with the same error.
I think it is because of the missing /dev/vchiq on the Pi 5.

I also tested Ubuntu 23.10 with mythbuntu v34 (also with no /dev/vchiq) and there the frontend is working without problems.

Update 13.11.23
Backtrace:
https://pastebin.com/ShkS9jtE

Update 2:
The frontend works with disabled libcec
As workaround you can start it with

Code: Select all

mythfrontend -O libCECEnabled=0
Update 3:
Seems to got fixed with the latest Raspberry Pi OS updates
Last edited by bauner on Wed Nov 22, 2023 9:52 am, edited 4 times in total.
User avatar
kmdewaal
Developer
Posts: 660
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Mythtv-Light v34 Segmentation fault on RPI5 Bookworm

Post by kmdewaal »

You can try the command line option "-platform xcb" for mythfrontend. This does sometimes solve wayland-related issues on playback. Of course, mythfrontend should not crash but the RPi5 is a new platform and there could be fixes needed in mythtv.
bauner
Newcomer
Posts: 2
Joined: Fri Nov 10, 2023 3:35 pm
Germany

Re: Mythtv-Light v34 Segmentation fault on RPI5 Bookworm

Post by bauner »

Thanks for your answer.
I have tried all possible -platform options on a wayland and also X11 session.

I always get the same error and the fronted will not start
Post Reply