[mythtv-users] remote crashes mythfrontend

James R. Van Zandt jrvz at comcast.net
Tue Oct 19 01:56:55 UTC 2010



Mythtv used to work with our Streamzap remote, but stopped several
weeks ago.  

The remote itself is working.  The light on the receiver blinks, and
irw reports the keypresses.  For example, if I press "left" then "OK"
then "right", irw reports

    myth at eowyn:~$ irw
    00000000000028d1 00 LEFT Streamzap_PC_Remote
    00000000000028d2 00 OK Streamzap_PC_Remote
    00000000000028d2 01 OK Streamzap_PC_Remote
    00000000000028d3 00 RIGHT Streamzap_PC_Remote
    00000000000028d3 01 RIGHT Streamzap_PC_Remote

My problem is that pressing any button on the remote crashes
mythfrontend :-)

For example, after starting mythfrontend,
/var/log/mythtv/mythfrontend.log ends like this:

    ...
    2010-10-12 20:32:57.210 MythFontProperties, Error: Failed to load 'Trebuchet MS', got 'DejaVu Sans' instead
    			Location: /usr/share/mythtv/themes/MythCenter/menu-ui.xml @ 5
    			Name: 'menufont'	Type: 'font'
    2010-10-12 20:32:57.214 MythFontProperties, Error: Failed to load 'Trebuchet MS', got 'DejaVu Sans' instead
    			Location: /usr/share/mythtv/themes/MythCenter/menu-ui.xml @ 14
    			Name: 'clock'	Type: 'font'
    2010-10-12 20:32:57.298 Loading menu theme from /usr/share/mythtv/themes/defaultmenu//mainmenu.xml
    2010-10-12 20:32:57.300 Found mainmenu.xml for theme 'MythCenter'
    2010-10-12 20:32:57.898 MythContext: Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
    2010-10-12 20:32:57.899 Using protocol version 56

Pressing the "OK" button crashes mythfrontend, and this gets added to the log:

    2010-10-12 20:33:11.398 Loading menu theme from /usr/share/mythtv/themes/defaultmenu//library.xml
    QPixmap: It is not safe to use pixmaps outside the GUI thread
    QPixmap: It is not safe to use pixmaps outside the GUI thread
    /home/myth/.lircrc: 3: include: not found
    /home/myth/.lircrc: 4: include: not found
    /home/myth/.lircrc: 5: include: not found
    /home/myth/.lircrc: 6: include: not found
    /home/myth/.lircrc: 7: include: not found
    /home/myth/.lircrc: 8: include: not found
    /home/myth/.lircrc: 9: include: not found
    /home/myth/.lircrc: 10: include: not found
    
The frontend runs under user "myth":

    myth at eowyn:~$ ps -ef|grep front
    myth     23129     1 15 18:37 ?        00:24:57 /usr/bin/mythfrontend.real --logfile /var/log/mythtv/mythfrontend.log

Here's the content of /home/myth/.lircrc:

    #Custom lircrc generated via mythbuntu-lirc-generator
    #All application specific lircrc files are within ~/.lirc
    include ~/.lirc/mythtv 
    include ~/.lirc/mplayer 
    include ~/.lirc/xine 
    include ~/.lirc/vlc 
    include ~/.lirc/xmame 
    include ~/.lirc/xmess 
    include ~/.lirc/totem 
    include ~/.lirc/elisa 
  
Each of those files does exist and is readable:

    myth at eowyn:~$ ls -l ~/.lirc
    total 36
    -rw-r--r-- 1 myth myth 2170 2009-03-15 14:37 elisa
    -rw-r--r-- 1 myth myth 1702 2009-03-15 14:37 mplayer
    -rw-r--r-- 1 myth myth 3950 2009-03-29 14:54 mythtv
    -rw-r--r-- 1 root root 3360 2009-03-15 14:37 mythtv~
    -rw-r--r-- 1 myth myth 1663 2009-03-15 14:37 totem
    -rw-r--r-- 1 myth myth 1832 2009-03-15 14:37 vlc
    -rw-r--r-- 1 myth myth 1538 2009-03-15 14:37 xine
    -rw-r--r-- 1 myth myth 2102 2009-03-15 14:37 xmame
    -rw-r--r-- 1 myth myth 2102 2009-03-15 14:37 xmess
    myth at eowyn:~$ head  ~/.lirc/elisa
    # LIRCRC Auto Generated by Mythbuntu Lirc Generator
    # Author(s): Mario Limonciello, Nick Fox
    # Created for use with Mythbuntu
    begin
        remote = Streamzap_PC_Remote
        prog = elisa
        button = PLAY
        config = toggle_play_pause_key
        repeat = 0
        delay = 0


I'm running mythbuntu, with version 0.23.0+fixes24 of mythtv, and this version of the kernel:

    myth at eowyn:~$ uname -a
    Linux eowyn 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux

These modules are loaded:

    myth at eowyn:~$ lsmod|grep lirc
    lirc_serial             9763  0 
    lirc_i2c                5813  0 
    lirc_streamzap          7981  1 
    lirc_dev                8890  5 lirc_serial,lirc_i2c,lirc_streamzap

They're from the Ubuntu kernel package:

    myth at eowyn:~$ dpkg --search /lib/modules/2.6.32-25-generic/kernel/ubuntu/lirc/lirc_streamzap/lirc_streamzap.ko
    linux-image-2.6.32-25-generic: /lib/modules/2.6.32-25-generic/kernel/ubuntu/lirc/lirc_streamzap/lirc_streamzap.ko
    myth at eowyn:~$ debsums -s linux-image-2.6.32-25-generic
    myth at eowyn:~$

Things I've tried:

 - adding execute permissions to ~/.lircrc
 - changing the references to absolute paths, e.g.
       include /usr/home/myth/.lirc/mythtv


Any suggestions?

        - Jim Van Zandt


More information about the mythtv-users mailing list