After few hours of looking into thi issue i noticed these entires in the log, first after lirc is startes at startup or after monit starts it, and when i launch XBMC:

Dec 27 23:05:03 media lircd-0.8.7-pre3[1839]: lircd(audio) ready, using /var/run/lirc/lircd
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: accepted new client on /var/run/lirc/lircd
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Initializing ...
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Using samplerate 48000
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Found input device 0 ALSA:HDA Intel: ALC888 Analog (hw:0,0)
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Found input device 2 ALSA:HDA Intel: ALC888 Analog (hw:0,2)
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Found input device 5 ALSA:default
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Using default input device 5: ALSA:default with default high input latency 0.046440
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Found output device 1 ALSA:HDA Intel: ALC888 Digital (hw:0,1)
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Found output device 3 ALSA:iec958
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Found output device 4 ALSA:spdif
Dec 27 23:05:15 media lircd-0.8.7-pre3[1839]: Using default output device 1: ALSA:HDA Intel: ALC888 Digital (hw:0,1) with default high output latency 0.046440
Dec 27 23:05:15 media kernel: [  386.603565] lircd[1878]: segfault at 0 ip 00007f97ff11ffd3 sp 00007f97f9d33cb0 error 4 in libportaudio.so.2.0.0[7f97ff117000+2b000]


And these are when i restart lirc with "sudo /etc/init.d/lirc restart" and launch XBMC:

Dec 27 23:05:59 media lircd-0.8.7-pre3[1929]: lircd(audio) ready, using /var/run/lirc/lircd
Dec 27 23:06:04 media monit[1217]: 'lirc' process is running with pid 1929
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: accepted new client on /var/run/lirc/lircd
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Initializing ...
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Using samplerate 48000
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found input device 0 ALSA:HDA Intel: ALC888 Analog (hw:0,0)
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found input device 2 ALSA:HDA Intel: ALC888 Analog (hw:0,2)
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found input device 5 ALSA:pulse
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found input device 6 ALSA:default
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Using default input device 6: ALSA:default with default high input latency 0.046440
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found output device 1 ALSA:HDA Intel: ALC888 Digital (hw:0,1)
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found output device 3 ALSA:iec958
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found output device 4 ALSA:spdif
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found output device 5 ALSA:pulse
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Found output device 6 ALSA:default
Dec 27 23:06:15 media lircd-0.8.7-pre3[1929]: Using default output device 6: ALSA:default with default high output latency 0.046440


I see the diference, that second way it finds more audio devices. Is it permission issue?

Regards,
Karolis


2010/12/27 Karolis Narbutas <karolis.narbutas@gmail.com>


Hi,

I have installed lirc 0.8.7 pre3 and trying to use IR over portaudio.
using this setup:http://people.inf.ethz.ch/mringwal/lirc/
My problem is this:

when lirc starts at system startup, it segfaults when i try to access it with IRW or other program that i configured to use lirc, i.e. XBMC.
The error is this:

Dec 27 18:52:42 media kernel: [ 8212.929126] lircd[5143]: segfault at 0 ip 00007f2efaa84fd3 sp 00007f2ef5698cb0 error 4 in libportaudio.so.2.0.0[7f2efaa7c000+2b000]

At first i thought it has something to do with the startup timing, so i set up monit service to watch for lirc, and restart it if not running, so it does exactly that, but still segfaults.

But if i manually run "sudo /etc/init.d/lirc start" from terminal, it stays up and works as it should.

My system is default installtion of UBUNTU 10.10, 64bit.

What can be the problem? What is the diference between these startups? Any help is apreciated.

this is my hardware.conf:

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Receiver/transmitter using PortAudio (EXPERIMENTAL)"
REMOTE_MODULES=""
REMOTE_DRIVER="audio"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Custom"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="false"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"

START_LIRCMD=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"


Regards,
Karolis