[mythtv] MythTV and Raspberry Pi xenial

Mike Bibbings mike.bibbings at gmail.com
Thu Apr 28 21:09:04 UTC 2016


On 28/04/16 19:46, Peter Bennett wrote:
> On the new release version of Ubuntu Xenial on raspberry Pi, the MythTV
> GUI programs mythfrontend, mythtv-setup, mythwelcome all fail with a
> segmentation fault.
> If you run them with --version, so that they are not starting a GUI,
> they work and display the version.
> Non GUI programs work fine, for example
> mythutil --checkrecordings
> It seems that QT5 is trying to open an EGL surface, and failing with a
> seg fault. GL and EGL are disabled in the compile.
>
> LOG
> Unable to find an X11 visual which matches EGL config 20
> Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
> 2016-04-28 14:13:10.555541 I  Using Frameless Window
> 2016-04-28 14:13:10.555581 I  Using Full Screen Window
> Handling Segmentation fault
> Segmentation fault (core dumped)
>
> Examining core dump with gdb gives this backtrace
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x7127314c in platform_get_handle () from /opt/vc/lib/libEGL.so
> [Current thread is 1 (Thread 0x6e9e1000 (LWP 17607))]
> (gdb) bt
> #0  0x7127314c in platform_get_handle () from /opt/vc/lib/libEGL.so
> #1  0x71268e80 in eglCreateWindowSurface () from /opt/vc/lib/libEGL.so
> #2  0x6e7d89d2 in ?? () from
> /usr/lib/arm-linux-gnueabihf/qt5/plugins/xcbglintegrations/libqxcb-egl-integration.so
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
> gdb on this system does not work for debugging. Trying to run a program
> under gdb, even a non-gui one that works perfectly, like mythutil, gives
> the following failure in gdb before it even reaches the first line of
> the program being debugged:
> Program received signal SIGSEGV, Segmentation fault.
> 0x76fd9822 in ?? () from /lib/ld-linux-armhf.so.3
>
> Anybody have any suggestions on what to try?
>
> Peter
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Peter,

The problem may have something to do with mesa-egl, but I am way out of 
my depth here.

I ran ldd on

/usr/lib/arm-linux-gnueabihf/qt5/plugins/xcbglintegrations/libqxcb-egl-integration.so

which gave
libEGL.so.1 => /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1 
(0x76d2c000)

but mythfrontend.real correctly links to in one place:
libEGL.so => /opt/vc/lib/libEGL.so (0x711bf000)

but also to
libEGL.so.1 => /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1 
(0x7107b000)


There is also a possibility that qt5 has not be built for rpi.

Mike



More information about the mythtv-dev mailing list