Play mp3 file - program crash
#1
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.
Reply
#2
Hello? Anybody? What should I do to make it working (alsaequal + preamp).
Reply
#3
Happens to me as well... WIll try to post a debug log later.
Reply
#4
So, this is not my fault. Is there any xbmc developer who can confirm this issue?
Reply
#5
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
Reply
#6
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.
Reply
#7
Maybe a solution for you: http://forum.xbmc.org/showthread.php?tid...=mp3+crash

_BJ1
Reply
#8
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.
Reply
#9
this has been fixed in master afaik
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#10
Are you sure? I have version compiled from master, downloaded 3 hours ago and nothing changed, still mp3 crashes.
Reply
#11
I meant xbmc/master
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#12
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?
Reply
#13
Sorry, for me this is still not fixed.
Reply
#14
I got the same prob. Try:
sudo apt-get install libmad0
Reply
#15
exactly the same problem here on eden rc2.
Full Log: http://pastebin.com/hQSbbQ9R

Any help would be greatly appreciated.
Reply

Logout Mark Read Team Forum Stats Members Help
Play mp3 file - program crash0