Play mp3 file - program crash - giaur - 2012-01-13
Hello,
XBMC 11 crashes immediatelly when I try to play mp3 file. Seems to be something related libasound:
Code: ############# XBMC CRASH LOG ###############
################ SYSTEM INFO ################
Date: pią, 13 sty 2012, 20:15:50 CET
XBMC Options:
Arch: x86_64
Kernel: Linux 3.1-custom #1 SMP PREEMPT Mon Oct 31 23:55:38 CET 2011
Release:
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
############## END SYSTEM INFO ##############
############### STACK TRACE #################
=====> Core file: /home/michal/core (2012-01-13 20:15:50.912653174 +0100)
=========================================
[New LWP 5952]
[New LWP 5983]
[New LWP 5992]
[New LWP 6003]
[New LWP 6006]
[New LWP 5987]
[New LWP 6005]
[New LWP 6032]
[New LWP 5988]
[New LWP 6001]
[New LWP 5986]
[New LWP 5994]
[New LWP 5999]
[New LWP 5991]
[New LWP 5998]
[New LWP 5996]
[New LWP 6031]
[New LWP 5997]
[Thread debugging using libthread_db enabled]
Core was generated by `/xbmc/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fb1f5471c73 in snd_pcm_close () from /usr/lib/x86_64-linux-gnu/libasound.so.2
Entire log here: http://pastebin.com/cb8iXHXs
My .asoundrc file:
Code: ctl.equal {
type equal;
}
ctl.preamp {
type equal
controls ".alsaequal-amp.bin"
library "/usr/lib/ladspa/amp_1181.so"
module "amp"
}
pcm.preamp {
type equal
slave {
pcm "plugequal"
}
controls ".alsaequal-amp.bin"
library "/usr/lib/ladspa/amp_1181.so"
module "amp"
}
pcm.plugequal {
type equal;
# Modify the line below if you don't
# want to use sound card 0.
#slave.pcm "plughw:0,0";
slave.pcm "plug:dmix";
# or if you want to use with multiple applications output to dmix
# slave.pcm "plug:dmix"
}
#pcm.equal {
# Or if you want the equalizer to be your
# default soundcard uncomment the following
# line and comment the above line.
pcm.!default {
type plug;
slave.pcm preamp;
hint {
show on
description "Equalizer"
}
}
Without using ladspa preamp everything works (no crashes). Audio output in xbmc preferences is set to default. All mp3 files and some movies causes crash. But I really need to use preamp to make sound louder (alsaequal causes sound to be very silent).
What's wrong? There is no problem with any other player.
- giaur - 2012-01-14
Hello? Anybody? What should I do to make it working (alsaequal + preamp).
- Mettbrot - 2012-01-16
Happens to me as well... WIll try to post a debug log later.
- giaur - 2012-01-17
So, this is not my fault. Is there any xbmc developer who can confirm this issue?
- Mettbrot - 2012-01-17
I did not notice that this issue has been fixed. Try the latest version, it works now for me. You can post a debug log if you like but for me it works
- giaur - 2012-01-19
Not really. I have version compiled today from master and problem still exists. Play mp3 = crash immediatelly. So I think someone from dev team should look at this because this is xbmc only (and not other audio software) issue.
form xbmc log:
Code: 10:20:36 T:140408635164576 DEBUG: Loading: libmad.so.0
10:20:36 T:140408635164576 DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (3)
10:20:36 T:140408635164576 DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
10:20:36 T:140408635164576 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: PAPlayer (3)
10:20:36 T:140408635164576 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
10:20:36 T:140408635164576 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
10:20:36 T:140408635164576 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
10:20:36 T:140408635164576 DEBUG: CFileCache::Open - opening </home/michal/muza/Acid Drinkers - Hit The Road Jack.mp3> using cache
10:20:36 T:140408635164576 DEBUG: DllLibApeTag: Using libapetag library
10:20:36 T:140407908857600 DEBUG: Thread XFILE::CFileCache start, auto delete: 0
10:20:36 T:140408635164576 DEBUG: DllLibApeTag: Using libapetag library
10:20:36 T:140408635164576 INFO: PAPlayer: Playing /home/michal/muza/Acid Drinkers - Hit The Road Jack.mp3
10:20:36 T:140408635164576 DEBUG: PAPlayer: Creating new audio renderer
10:20:36 T:140408635164576 INFO: AudioRendererFactory: not a explicit device, trying to autodetect.
10:20:36 T:140408635164576 DEBUG: RemoveActiveDevice - Removing device 1
10:20:36 T:140408635164576 DEBUG: CGUIAudioManager::DeInitialize
10:20:36 T:140408635164576 DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
10:20:36 T:140408635164576 DEBUG: RemoveActiveDevice - Removing device 0
10:20:36 T:140408635164576 ERROR: PulseAudio: Failed to connect context
10:20:36 T:140408635164576 ERROR: PulseAudio: Failed to create context
10:20:36 T:140408635164576 DEBUG: SetActiveDevice - SetActiveDevice from 2 to 1
10:20:36 T:140408635164576 DEBUG: RemoveActiveDevice - Removing device 2
10:20:36 T:140408635164576 DEBUG: CGUIAudioManager::Initialize
10:20:36 T:140408635164576 DEBUG: RemoveActiveDevice - Removing device 1
10:20:36 T:140408635164576 DEBUG: CGUIAudioManager::DeInitialize
10:20:36 T:140408635164576 DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
10:20:36 T:140408635164576 DEBUG: RemoveActiveDevice - Removing device 0
10:20:36 T:140408635164576 DEBUG: Initialize - using alsa device default
I will not paste all logs because they are the same like posted above.
- _BJ1 - 2012-01-19
Maybe a solution for you: http://forum.xbmc.org/showthread.php?tid=102767&highlight=mp3+crash
_BJ1
- giaur - 2012-01-19
I don't think so. This problem is not caused by missing library. And there are no crashes without preamp plugin, in that case mp3 playback works as it should.
I think only way to figure out what's the problem is configure alsa the same as I have it configured (copy my .asoundrc, adjust equalizer and preamp settings) and debug program. Since I'm not xbmc developer, I have no idea how to solve this. And unfortunatelly, it looks like xbmc bug.
- opdenkamp - 2012-01-19
this has been fixed in master afaik
- giaur - 2012-01-19
Are you sure? I have version compiled from master, downloaded 3 hours ago and nothing changed, still mp3 crashes.
- opdenkamp - 2012-01-19
I meant xbmc/master
- giaur - 2012-01-20
So, my version is downloaded from:
https://github.com/opdenkamp/xbmc
(click ZIP -> Download). I'm little confused - should this bug be solved in this version or I need to download latest sources from other location?
- giaur - 2012-01-21
Sorry, for me this is still not fixed.
- garphi - 2012-01-27
I got the same prob. Try:
sudo apt-get install libmad0
- milvus - 2012-03-04
exactly the same problem here on eden rc2.
Full Log: http://pastebin.com/hQSbbQ9R
Any help would be greatly appreciated.
|