<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 14/08/2020 13:33, Tim Draper wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:173ecf54801.d3ab820b214872.5863596945277321885@zoho.com">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <div style="font-size: 10pt;">
        <div>just updated one of my rpi4's and i'm now getting segfault.
          running raspbian, upgrade done via 'apt upgrade'.<br>
        </div>
        <div>Mythtv is setup from PBennets rpi repo, latest version is
          v31.0-54-g445cf1fe6b.<br>
        </div>
        <div><br>
        </div>
        <blockquote style="border: 1px solid rgb(204, 204, 204);
          padding: 7px; background-color: rgb(245, 245, 245);">
          <div>
            <div>$ QT_QPA_PLATFORM=eglfs mythfrontend --logpath=/tmp -O
              libCECEnabled=0<br>
            </div>
            <div>Failed to move cursor on screen HDMI1: -13<br>
            </div>
            <div>2020-08-14 13:24:22.439101 I  Setup Interrupt handler<br>
            </div>
            <div>2020-08-14 13:24:22.439169 I  Setup Terminated handler<br>
            </div>
            <div>2020-08-14 13:24:22.439187 I  Setup Segmentation fault
              handler<br>
            </div>
            <div>2020-08-14 13:24:22.439204 I  Setup Aborted handler<br>
            </div>
            <div>2020-08-14 13:24:22.439220 I  Setup Bus error handler<br>
            </div>
            <div>2020-08-14 13:24:22.439238 I  Setup Floating point
              exception handler<br>
            </div>
            <div>2020-08-14 13:24:22.439255 I  Setup Illegal instruction
              handler<br>
            </div>
            <div>2020-08-14 13:24:22.439274 I  Setup Real-time signal 0
              handler<br>
            </div>
            <div>2020-08-14 13:24:22.439296 I  Setup User defined signal
              1 handler<br>
            </div>
            <div>2020-08-14 13:24:22.439313 I  Setup User defined signal
              2 handler<br>
            </div>
            <div>2020-08-14 13:24:22.439329 I  Setup Hangup handler<br>
            </div>
            <div>2020-08-14 13:24:22.439600 C  mythfrontend version:
              fixes/31 [v31.0-54-g445cf1fe6b] <a
                href="http://www.mythtv.org" target="_blank"
                moz-do-not-send="true">www.mythtv.org</a><br>
            </div>
            <div>2020-08-14 13:24:22.439618 C  Qt version: compile:
              5.11.3, runtime: 5.11.3<br>
            </div>
            <div>2020-08-14 13:24:22.439741 I  Raspbian GNU/Linux 10
              (buster) (arm)<br>
            </div>
            <div>2020-08-14 13:24:22.439748 N  Enabled verbose msgs: 
              general<br>
            </div>
            <div>2020-08-14 13:24:22.440028 N  Setting Log Level to
              LOG_INFO<br>
            </div>
            <div>2020-08-14 13:24:22.450737 I  Added logging to the
              console<br>
            </div>
            <div>2020-08-14 13:24:22.450803 N  Using runtime prefix =
              /usr<br>
            </div>
            <div>2020-08-14 13:24:22.450814 N  Using configuration
              directory = /home/pi/.mythtv<br>
            </div>
            <div>2020-08-14 13:24:22.450926 I  Assumed character
              encoding: en_GB.UTF-8<br>
            </div>
            <div>2020-08-14 13:24:22.451046 N  Setting 'libCECEnabled'
              being forced to '0'<br>
            </div>
            <div>2020-08-14 13:24:22.451851 I  Added logging to
              /tmp/mythfrontend.20200814122422.1111.log<br>
            </div>
            <div>2020-08-14 13:24:22.452537 I  Loading en_gb translation
              for module mythfrontend<br>
            </div>
            <div>2020-08-14 13:24:22.453202 I  Empty LocalHostName. This
              is typical.<br>
            </div>
            <div>2020-08-14 13:24:22.453226 I  Using a profile name of:
              'myth-fe5' (Usually the same as this host's name.)<br>
            </div>
            <div>2020-08-14 13:24:22.453447 I  Start up testing
              connections. DB sql, BE , attempt 0, status dbAwake,
              Delay: 2000<br>
            </div>
            <div>2020-08-14 13:24:23.993694 N  Setting QT default locale
              to en_GB<br>
            </div>
            <div>2020-08-14 13:24:23.993778 I  Current locale en_GB<br>
            </div>
            <div>2020-08-14 13:24:23.994040 N  Reading locale defaults
              from /usr/share/mythtv//locales/en_gb.xml<br>
            </div>
            <div>2020-08-14 13:24:24.018182 I  Display: Found screen
              'HDMI1'<br>
            </div>
            <div>2020-08-14 13:24:24.018268 I  Display: Using screen
              'HDMI1' (Make: Goldstar Company Ltd Model: LG TV)<br>
            </div>
            <div>2020-08-14 13:24:24.018343 I  Display: Qt screen pixel
              ratio: 1.00<br>
            </div>
            <div>2020-08-14 13:24:24.018414 I  Display: Geometry:
              1920x1080+0+0 Size(Qt): 1600mmx900mm<br>
            </div>
            <div>2020-08-14 13:24:24.020199 I  DisplayRPI: Connected to
              display 'HDMI1'<br>
            </div>
            <div>2020-08-14 13:24:24.049514 I  EDID: Version:1.3
              Size:256 Exensions:1<br>
            </div>
            <div>2020-08-14 13:24:24.049559 I  EDID: Gamma:2.2 sRGB:1<br>
            </div>
            <div>2020-08-14 13:24:24.049592 I  EDID: Display
              chromaticity:-<br>
            </div>
            <div>2020-08-14 13:24:24.049620 I  EDID: Red:        0.6396,
              0.3301<br>
            </div>
            <div>2020-08-14 13:24:24.049646 I  EDID: Green:      0.2998,
              0.5996<br>
            </div>
            <div>2020-08-14 13:24:24.049671 I  EDID: Blue:       0.1504,
              0.0596<br>
            </div>
            <div>2020-08-14 13:24:24.049695 I  EDID: White:      0.3125,
              0.3291<br>
            </div>
            <div>2020-08-14 13:24:24.049724 I  EDID: Physical address:
              3.0.0.0<br>
            </div>
            <div>2020-08-14 13:24:24.051811 N  Display: Desktop video
              mode: 1920x1080 60.000Hz<br>
            </div>
            <div>2020-08-14 13:24:24.051838 N  Display: Display is using
              sRGB colourspace<br>
            </div>
            <div>2020-08-14 13:24:24.174871 E  PowerDBus: No UPower
              interface. Unable to monitor battery state<br>
            </div>
            <div>2020-08-14 13:24:24.193806 I  PowerDBus: Failed to
              delay sleep,shutdown: Permission denied<br>
            </div>
            <div>2020-08-14 13:24:24.233796 I  Power: On AC power<br>
            </div>
            <div>2020-08-14 13:24:24.233826 I  Power: Supported actions:
              None<br>
            </div>
            <div>2020-08-14 13:24:24.233875 N  Setting 'libCECEnabled'
              being forced to '0'<br>
            </div>
            <div>2020-08-14 13:24:24.249316 E  Failed listening on TCP
              0.0.0.0:6547 - Error 8: The bound address is already in
              use<br>
            </div>
            <div>2020-08-14 13:24:24.249378 E  MediaRenderer: HttpServer
              Create Error<br>
            </div>
            <div>2020-08-14 13:24:24.262920 I  Loading en_gb translation
              for module mythfrontend<br>
            </div>
            <div>2020-08-14 13:24:24.271808 E  LIRC: Failed to connect
              to Unix socket '/var/run/lirc/lircd'<br>
            </div>
            <div>                        eno: No such file or directory
              (2)<br>
            </div>
            <div>2020-08-14 13:24:24.271917 I  No joystick configuration
              found, not enabling joystick control<br>
            </div>
            <div>2020-08-14 13:24:24.271930 I  UDPListener: Enabling<br>
            </div>
            <div>2020-08-14 13:24:24.273093 E  Failed binding to UDP
              0.0.0.0:6948 - Error 8: The bound address is already in
              use<br>
            </div>
            <div>failed to export dumb buffer: Permission denied<br>
            </div>
            <div>Failed to create scanout resource<br>
            </div>
            <div>2020-08-14 13:24:24.274859 E  Failed binding to UDP
              [::]:6948 - Error 8: The bound address is already in use<br>
            </div>
            <div>2020-08-14 13:24:24.329887 I  Using Frameless Window<br>
            </div>
            <div>2020-08-14 13:24:24.329897 I  Using Full Screen Window<br>
            </div>
            <div>2020-08-14 13:24:24.338308 I  Display: Have main widget<br>
            </div>
            <div>2020-08-14 13:24:24.338333 I  Display: Have main window<br>
            </div>
            <div>2020-08-14 13:24:24.339034 I  Display: Found screen
              'HDMI1'<br>
            </div>
            <div>2020-08-14 13:24:24.340508 I  UI Screen Resolution:
              1920 x 1080<br>
            </div>
            <div>failed to export dumb buffer: Permission denied<br>
            </div>
            <div>Failed to create scanout resource<br>
            </div>
            <div>QOpenGLFramebufferObject: Framebuffer incomplete
              attachment.<br>
            </div>
            <div>QOpenGLFramebufferObject: Framebuffer incomplete,
              missing attachment.<br>
            </div>
            <div>2020-08-14 13:24:24.433095 E  Failed to create
              framebuffer object<br>
            </div>
            <div>2020-08-14 13:24:24.433224 I  OpenGL: OpenGL
              vendor        : Broadcom<br>
            </div>
            <div>2020-08-14 13:24:24.433236 I  OpenGL: OpenGL
              renderer      : V3D 4.2<br>
            </div>
            <div>2020-08-14 13:24:24.433247 I  OpenGL: OpenGL
              version       : OpenGL ES 3.1 Mesa 19.3.2<br>
            </div>
            <div>2020-08-14 13:24:24.433264 I  OpenGL: Qt
              platform          : eglfs<br>
            </div>
            <div>2020-08-14 13:24:24.433352 I  OpenGL: EGL
              display          : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433361 I  OpenGL: EGL
              images           : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433370 I  OpenGL: Qt OpenGL
              format     : OpenGLES 3.1<br>
            </div>
            <div>2020-08-14 13:24:24.433379 I  OpenGL: Qt OpenGL
              surface    : RGBA: 8880 Depth: 0 Stencil: 0<br>
            </div>
            <div>2020-08-14 13:24:24.433389 I  OpenGL: Max texture
              size     : 4096<br>
            </div>
            <div>2020-08-14 13:24:24.433397 I  OpenGL: Max texture
              units    : 48<br>
            </div>
            <div>2020-08-14 13:24:24.433406 I  OpenGL:
              Shaders              : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433416 I  OpenGL: NPOT
              textures        : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433424 I  OpenGL:
              Multitexturing       : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433433 I  OpenGL: Rectangular
              textures : No<br>
            </div>
            <div>2020-08-14 13:24:24.433442 I  OpenGL: Buffer
              mapping       : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433451 I  OpenGL: Framebuffer
              objects  : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433459 I  OpenGL: 16bit
              framebuffers   : No<br>
            </div>
            <div>2020-08-14 13:24:24.433468 I  OpenGL: Unpack
              Subimage      : Yes<br>
            </div>
            <div>2020-08-14 13:24:24.433477 I  OpenGL:
              GL_RED/GL_R8         : Yes<br>
            </div>
            <div>failed to export dumb buffer: Permission denied<br>
            </div>
            <div>Failed to create scanout resource<br>
            </div>
            <div>QEGLPlatformContext: eglSwapBuffers failed: 3003<br>
            </div>
            <div>Could not lock GBM surface front buffer!<br>
            </div>
            <div>failed to export dumb buffer: Permission denied<br>
            </div>
            <div>Failed to create scanout resource<br>
            </div>
            <div>QEGLPlatformContext: eglSwapBuffers failed: 3003<br>
            </div>
            <div>Could not lock GBM surface front buffer!<br>
            </div>
            <div>failed to export dumb buffer: Permission denied<br>
            </div>
            <div>Failed to create scanout resource<br>
            </div>
            <div>QEGLPlatformContext: eglSwapBuffers failed: 3003<br>
            </div>
            <div>Could not lock GBM surface front buffer!<br>
            </div>
            <div>2020-08-14 13:24:24.482396 I  OpenGL: Initialised
              MythRenderOpenGL<br>
            </div>
            <div>2020-08-14 13:24:24.482415 I  OpenGL: Using full range
              output<br>
            </div>
            <div>2020-08-14 13:24:24.512929 I  MythUIHelper: Pruning
              cache directory: /home/pi/.mythtv/cache/remotecache<br>
            </div>
            <div>2020-08-14 13:24:24.513104 I  MythUIHelper: Kept 0
              files, deleted 0 files, stat error on 0 files<br>
            </div>
            <div>2020-08-14 13:24:24.513129 I  MythUIHelper: Pruning
              cache directory: /home/pi/.mythtv/cache/thumbnails<br>
            </div>
            <div>2020-08-14 13:24:24.513200 I  MythUIHelper: Kept 0
              files, deleted 0 files, stat error on 0 files<br>
            </div>
            <div>2020-08-14 13:24:24.610063 I 
              MythCoreContext::ConnectCommandSocket(): Connecting to
              backend server: 192.168.1.149:6543 (try 1 of 1)<br>
            </div>
            <div>2020-08-14 13:24:24.612047 I 
              MythCoreContext::CheckProtoVersion(): Using protocol
              version 91 BuzzOff<br>
            </div>
            <div>libpng error: Read Error<br>
            </div>
            <div>libpng error: Read Error<br>
            </div>
            <div>2020-08-14 13:24:24.846886 I  CECAdapter: libCEC
              support is disabled.<br>
            </div>
            <div>2020-08-14 13:24:24.855576 I  Current MythTV Schema
              Version (DBSchemaVer): 1361<br>
            </div>
            <div>2020-08-14 13:24:24.861491 I  V4L2_M2M:
              Supported/available V4L2 decoders:<br>
            </div>
            <div>2020-08-14 13:24:24.861515 I  V4L2_M2M: H264<br>
            </div>
            <div>2020-08-14 13:24:24.863465 I  MMAL: Supported/available
              MMAL decoders:<br>
            </div>
            <div>2020-08-14 13:24:24.863483 I  MMAL: H264<br>
            </div>
            <div>Handling Segmentation fault<br>
            </div>
            <div>Segmentation fault<br>
            </div>
          </div>
        </blockquote>
        <div>libpng-tools and libpng16-16 are installed (seemed to be
          the closest packages to the libpng error). worked before the
          upgrade but broken after.<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <p>I suspect the update installed a series 5.4 kernel (uname -a )<br>
    </p>
    <p>You need to add QT_QPA_EGLFS_ALWAYS_SET_MODE="1" to the command
      line i.e.</p>
    <p> QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_QPA_PLATFORM=eglfs
      mythfrontend --logpath=/tmp -O libCECEnabled=0</p>
    <p><br>
    </p>
    <p>You may need to reboot the Raspberry Pi before making this
      change.</p>
    <p><br>
    </p>
    <p>Mike<br>
    </p>
    <p><br>
    </p>
  </body>
</html>