gxine doesn't start (frozes) if there are no audio device

Bug #92793 reported by Mantas Kriaučiūnas
10
Affects Status Importance Assigned to Milestone
gxine (Baltix)
New
Undecided
Unassigned
gxine (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gxine

gxine doesn't start (frozes) if there are no audio device - I've just tried on computer which have ISA PNP sound card, for which Ubuntu Feisty doesn't load kernel modules automatically and just after starting there are no /dev/dsp and /dev/snd
When I trying to start gxine on this computer it shows splash, but doesn't start and I get these messages in terminal output:

ubuntu@ubuntu:~$ gxine --verbose /mnt/home/skrydis_per_lietuva.avi
load_plugins: skipping unreadable plugin directory /home/ubuntu/.xine/plugins.
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/post/xineplug_post_audio_filters.so found
[..]
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xshm.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xv.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xv.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xvmc.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xxmc.so found
snd_pcm_open() failed:-19:No such device
>>> Check if another program already uses PCM <<<
audio_oss_out: audio.device.oss_device_name = auto, probing devs
audio_oss_out: Auto probe for audio device failed

And gxine frozes forever untill I kill it. If I start without video file parameter then get almost the same situation, just no need to kill manually :

ubuntu@ubuntu:~$ gxine --verbose
load_plugins: skipping unreadable plugin directory /home/ubuntu/.xine/plugins.
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/post/xineplug_post_audio_filters.so found
[..]
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xshm.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xv.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xv.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xvmc.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xxmc.so found
snd_pcm_open() failed:-19:No such device
>>> Check if another program already uses PCM <<<
audio_oss_out: audio.device.oss_device_name = auto, probing devs
audio_oss_out: Auto probe for audio device failed
gxine: killed by watchdog bite
Aborted
ubuntu@ubuntu:~$

I only can start gxine if I manually set audio output to NONE - then gxine starts fine I get these messages in terminal:

ubuntu@ubuntu:~$ gxine --verbose -A none
load_plugins: skipping unreadable plugin directory /home/ubuntu/.xine/plugins.
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/post/xineplug_post_audio_filters.so found
[..]
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xshm.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xv.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xv.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xvmc.so found
load_plugins: plugin /usr/lib/xine/plugins/1.1.4/xineplug_vo_out_xxmc.so found
gtkvideo: failed to get a proxy for gnome-screensaver
engine: > executing ‘if (__js.v != 1) callback ('widget.__js.wi.set_show (false)');’...
engine: > executing ‘if ((__js.v & ~1) != 2) callback ('widget.__js.wq.set_show (false)');’...
engine: > executing ‘if ((__js.v & ~3) != 4) callback ('widget.__js.ww.set_show (false)');’...
engine: > executing ‘if ((__js.v & ~7) != 8) callback ('widget.__js.we.set_show (false)');’...
video_out_dxr3: Failed to open control device /dev/em8300-0 (No such file or directory)
video_out_xv: using Xv port 64 from adaptor Savage Streams Engine for hardware colorspace conversion and scaling.
video_out_xv: this adaptor supports the yuy2 format.
video_out_xv: this adaptor supports the yv12 format.
lirc: cannot initialise - disabling remote control
lirc: maybe lircd isn't running or you can't connect to the socket?
video_out_xv: VO_PROP_INTERLACED(0)
video_out_xv: VO_PROP_INTERLACED(0)
video_out_xv: VO_PROP_INTERLACED(0)
video_out_xv: VO_PROP_INTERLACED(0)
video_out_xv: VO_PROP_INTERLACED(0)
video_out_xv: VO_PROP_INTERLACED(0)
av_offset=0 pts
engine: > executing ‘widget.__js.wi.set_show (false)’...
engine: > executing ‘widget.__js.wq.set_show (false)’...
engine: > executing ‘widget.__js.ww.set_show (false)’...
engine: > executing ‘widget.__js.we.set_show (false)’...
xine: found input plugin : file input plugin
xine: found demuxer plugin: image demux plugin
video_out_xv: VO_PROP_INTERLACED(0)

Btw, xine-ui also doesn't start in the same situation, so, maybe this is xine-lib bug, because mplayer, which doesn't use libxine, starts fine...

Revision history for this message
Ioannis Ramfos (isr81) wrote : Totem and gxine freeze on startup if there are no audio devices

Happens with totem (xine backend) also. The error message shows:

ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default

Tried both gxine and totem(xine) on vmware with no soundcard setup for the VM. When enabling the soundcard totem works.
gxine also passes this point, enters it's initial setup and after the final step it restarts the system (the virtual machine) -- however, this might be another issue.

Daniel T Chen (crimsun)
Changed in gxine:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.