Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#28473 - [xbmc] Failed to initialize audio device + freeze

Attached to Project: Community Packages
Opened by Philipp Seiler (phils3r) - Thursday, 16 February 2012, 22:55 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 17 May 2012, 14:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
When I start a video (mp4) in xbmc I got an error pop-up which says: Failed to initialize audio device
But in the menu the sound does definitly work. After I stop the video (it starts but no sound), xbmc crashes/freezes.

I start xbmc directly in the inittab with xinit under my personal user.

In pkgrel xbmc-10.1-11 this didn't happend.
But I did also a kernel and glibc update at the same time I updated xbmc




Additional info:
* packagev: 10.1-15
* kernel: 3.2.6-2-ARCH

Hardware:
Zotac ZBOX ID41 with HDMI Video and Audio and a Samsung TV

* sorry no chrashlog
* /var/log/messages
[ 289.350025] HDMI: detected monitor SAMSUNG
[ 289.350030] at connection type HDMI
[ 289.350036] HDMI: available speakers: FL/FR
[ 289.350046] HDMI: supports coding type LPCM: channels = 2, rates = 32000 44100 48000, bits = 16 20 24
[ 310.083787] HDMI hot plug event: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=0
[ 310.090020] HDMI status: Codec=1 Pin=5 Presence_Detect=0 ELD_Valid=0
[ 313.650221] HDMI hot plug event: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=0
[ 313.659611] HDMI status: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=0
[ 313.676353] HDMI hot plug event: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=1
[ 313.680019] HDMI status: Codec=1 Pin=5 Presence_Detect=1 ELD_Valid=1
[ 314.320037] HDMI: detected monitor SAMSUNG
[ 314.320043] at connection type HDMI
[ 314.320051] HDMI: available speakers: FL/FR
[ 314.320062] HDMI: supports coding type LPCM: channels = 2, rates = 32000 44100 48000, bits = 16 20 24

But I think this is normal and I see no error


Steps to reproduce:

Start xbmc. Choose a video and start it. Then the pop-up message appears. And If I stop the video xbmc crashes with no crashlog
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 17 May 2012, 14:41 GMT
Reason for closing:  No response
Comment by bluephoenix47 (bluephoenix47) - Friday, 17 February 2012, 05:28 GMT
WORKAROUND: I managed to stop the freezing by disabling 'sync playback to display' via http://forum.xbmc.org/showthread.php?t=75533
To get audio working, I created .asoundrc per https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card with the following lines:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 9

==== Below is a log of data I compiled before figuring out a workaround =====
I'm having exactly the same problem. I just upgraded my media server, and now audio is no longer working under XBMC, and when I play a video, it crashes with no crash log.

Here's some hardware info from lshw: http://pastebin.com/riUUMgJR
Here's the xbmc log, though it doesn't seem helpful to me: http://pastebin.com/BiyNHzjc
Contents of xinitrc (which calls xbmc): http://pastebin.com/FbNDnJyz

Finally managed to get some error messages, which I'm not sure are relevent: http://pastebin.com/uz7U5w2N

I also seem to get a lot less crashed (still no audio) when I try playing in windowed mode (instead of fullscreen). I also noticed it does sometime NOT crash.

I was able to recover audio by settings the audio output device in XBMC to custom "plughw1,9" (1 and 9 depend on the card in use, whcih you can find via aplay -l)

Just to confirm: this message is the last one that appears before it freezes, after I press 'Stop':

01:44:12 T:139905663944768 M:1548062720 NOTICE: DVDPlayer: finished waiting

Managed to force a crashlog output will killall -SEGV: http://pastebin.com/g7TTqBaE
http://pastebin.com/RM6nsjZC
Comment by Ike Devolder (BlackEagle) - Thursday, 29 March 2012, 14:50 GMT
reproducable with xbmc 11 ?

Loading...