View Full Version : Music doesn't play (how do I debug this?)
Hi everyone,
I've set up xbmc on a Fedora 10 x64 box. I built it from SVN, last update a few days ago.
For some reason, music functionality doesn't work: when I try to play an audio CD or some mp3s off the local hard drive, it displays the track as if it were playing, but stays at 0:00 and there's no sound.
Are there any switches I can turn on to see some debugging information? How would one get started on a bug like this?
BTW, earlier versions from SVN worked okay. The only difference was that I installed those from RPM on http://centosjunkies.com/index.php/XBMC. There's a chance that I screwed up the compilation, but I'm pretty sure it worked fine.
Thanks!
jmarshall
2009-01-14, 02:02
The debuglog is the best place to start - it's probably something reasonably straightforward, such as pulse audio not being setup correctly and attempting to be used, or something with alsa.
Debuglog should be in /var/logs/xbmc-<username>.log or somesuch. Further debugging will be available if you turn on full debug info in Settings->System->Enable debug logging.
Cheers,
Jonathan
Ah, I see. I was expecting to see a bunch of output in the terminal when I enabled that option :)
I think PulseAudio is set up correctly, since video files play with no problems. OTOH, if different players are used for audio and video, that doesn't tell me anything.
Either way, I'll look at the debug info later tonight.
Thanks!
althekiller
2009-01-14, 02:20
/var/tmp/$USER-xbmc.log ;)
Also please be sure you use the very latest svn version as we have done alot of alterations to paplayer and this is one bug that is supposed to be fixed.
It's not fixed in SVN :(
There are no messages that jumped out at me, everything was more or less "success" or "now doing so-and-so". Guess you need to know what's not being called ...
Spent some time hunting for why DVDs won't play. There's a libdvdnav error saying couldn't open dvd://1. Since I'm not sure what it should be (tried to change it to "dvd:///dev/sr0" (which is what VLC uses) in xbmc/Util.cpp but then realized that dvd://1 is an internal name :)
Since I have no idea where it has to be changed to the real one (or if it needs to be changed at all), I gave up for tonight.
jeffutter
2009-01-18, 08:28
I just want to mention I am having the same problem.
I am also using F10 for x86_64. I recently reformatted and installed F10 x86_64 from i386 where everything seemed to work ok. However i don't know if there were changes in SVN in the meantime.
I'm going back through some old revisions seeing if sound will start working again. I'm a little at a loss of where to look for the problem as nothing suspicious shows up in the logs.
Well, the latest versions no longer make XBMC freeze up, but they don't play either. The progress bar advances now, and if I stop the playback, a moment of music plays (the very first piece of the song) and immediately stops.
Nothing obviously suspicious in the debug log...
As far as checking back revisions - paplayer and mplayer have had major updates recently...
brotherman38
2009-01-18, 23:46
Yeah i'm having the same problem, just did a fresh build and install from SVN, movies play fine and sound is good also, but i get no sound from mp3 music files, when i clink on the Music from the main menu I get the following output errors;
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
Error loading jpeg - no SOI marker found in first 4096 bytes
Error loading jpeg - no SOI marker found in first 4096 bytes
TIFF IMAGE: Cannot read TIFF header.
brotherman38
2009-01-19, 00:08
if the setting->Music->Files Enable Tag Readings is enabled that is what causing the following messages;
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
StdString: Assertion Failed on line 916
StdString: Assertion Failed on line 917
Error loading jpeg - no SOI marker found in first 4096 bytes
Error loading jpeg - no SOI marker found in first 4096 bytes
TIFF IMAGE: Cannot read TIFF header.
any ideas? i don't think that's what causing the no sound problem from music files.
brotherman:
I don't get those errors, and I have tag reading enabled.
Which svn revision did you compile? Did you do make reallyclean before ./configure and make?
jeffutter
2009-01-19, 03:39
brotherman: Are you using Fedora 10 on X86_64 as well?
I tried compiling some old svn versions i think 16000 had the stopping problem? After that it just became too time consuming trying to recompile (1/2 of the it wouldn't even compile).
Recent builds 'play' as in the progress moves but there is no sound output. Also there is no activity in the visualizer (i don't know if that helps locate the problem?)
jeffutter:
my symptoms are exactly the same as yours.
Wish I was more familiar with the code, maybe I'd know what's going on :)
Okay, as far as reading DVDs, I think I have an idea now - looks like xbmc uses "dvd://1" as dvd device name, but since it's not a real file, libdvdread trips and can't read it. Not sure whose fault it is, xbmc or libdvdread, though.
brotherman38
2009-01-19, 04:44
Fry-kun: My latest build for is SVN 17147M. I did a "make clean", "./configure","make","make install". I can play all movies including DVD's with no problems, the music mp3 files play but no sound. My other music media players play mp3 files without any problems.
jeffutter: I'm using fedora 10 32bit.
I got DVDs to play.
On my machine, at least, the problem is that path "dvd://1" is passed to libdvdnav and it can't seem to open it. Old source in xbmc/cores/dvdplayer/DVDPlayer.cpp has a block to get the real device filename:
@@ -326,7 +326,22 @@
// settings that should be set before opening the file
SetAVDelay(g_stSettings.m_currentVideoSettings.m_A udioDelay);
- m_filename = file.m_strPath;
+ if (file.m_strPath.Find("dvd://") >= 0 ||
+ file.m_strPath.CompareNoCase("d:\\video_ts\\video_ts.ifo") == 0 ||
+ file.m_strPath.CompareNoCase("iso9660://video_ts/video_ts.ifo") == 0)
+ {
+#ifdef _LINUX
+ m_filename = MEDIA_DETECT::CCdIoSupport::GetDeviceFileName();
+#elif defined(_WIN32PC)
+ m_filename = MEDIA_DETECT::CCdIoSupport::GetDeviceFileName()+4;
+#else
+ m_filename = "\\Device\\Cdrom0";
+#endif
+ }
+ else
+ m_filename = file.m_strPath;
+
+// m_filename = file.m_strPath;
m_content = file.GetContentType();
m_item = file;
m_PlayerOptions = options;
sweet, someone added the DVD code back to SVN :)
Still no luck with music playback, though :(
jeffutter
2009-01-23, 05:13
Anyone have any news on the music playback? I think if there's no changes in the next few days i'm going to report it to trac. I am totally at a loss on how to get more info out of XBMC as to what is going wrong.
jeffutter: unfortunately, more likely than not, we'll be ignored - because we use Fedora, not Ubuntu :(
jeffutter
2009-01-23, 06:13
Not sure if there is any info here.. but i'm posting my pulseaudio logs... the first chunk of playing stuff is a video.. the second chunk the audio.
http://pastebin.ca/1315997
brotherman38
2009-01-31, 03:50
The crazy thing is the sound for music files works ok if I use the xbmc rpms from the junkies repo, but i can't play any video files, just the opposite from what i get from building from the svn.
Well, I can play both video & audio when installing from RPMs... but there are other bugs (some encrypted DVDs crash it, etc)
I wonder what the difference is o_o
Okay people, this thread is now three pages and NOONE have provided a debuglog, and thats the first god damn thing we requested...
We havenŽt got a snowballs chance in hell to fix or understand this issue if you donŽt provide logs.
(jeffutter good work providing pulseaudio log, which shows underruns. so I hope regular log will tell something)
http://xbmc.org/forum/showthread.php?t=34655
Cheers,
Tobias
Yeah.. wouldn't it be nice if we could post attachments here :P
Pasted my log to http://pastebin.com/m7e11ea2
According to that log nothing goes wrong, this makes me believe its not XBMC related as noone have been able to reproduce it on ubuntu. If this happens to specific files its greatly appreciated if anyone could provide said files.
What it looks like though is that SDL is initialized aswell, this could mean they are fighting but if DVDPlayer works in latest svns its not pulseaudio related, as it also uses PulseAudio. And then IŽll need to do some real looking through the code. It would be appreciated to get a log with Video playing aswell, to see differences.
Cheers,
Tobias
I was afraid of that :(
I don't hear any sound, still. Last week I would get a moment of the beginning of the song, as I stopped it - but now there's not even that.
I opened up PulseAudio volume control and see "XBMC: audio stream" in Playback -- but it doesn't show any activity (AFAIK, all volumes are set to max)
Another interesting thing: I opened the file with DVD Player (option menu -> open with...) and it plays perfectly well.
Could you try to build prior to r17132 ?
ie r17131
And see how the time is progressing? Because if time doesnt progress forward I would have a better clue on what is causing this.
Cheers,
Tobias
built 17131. The time is not progressing. When I press stop, it again plays a small piece of the file. DVDPlayer works.
Hmm, Seems like uncork is never happening then.. Thought I fixed that, will try to see if I can trigger it.
Please provide a sample
log sample, I assume?
http://pastebin.com/m23110f20
brotherman38
2009-02-06, 23:57
I've been out of the loop for a few days, has there been any progress on the no sound in fedora 10?
topfs2 seems to have an idea, but no not fixed yet :(
log sample, I assume?
http://pastebin.com/m23110f20
Nah actually meant usual mp3 sample, just to verify it working on my end.
In anycase, what you all have incommon seems to be that your ChunkLen (the minimum size we send to the audiodevice) is bigger then the PACKET_SIZE (the chunks we decode) this should be supported but in ubuntu it rarely happens, the ChunkLen seems to stay very low.
IŽve provided a trial and error patch on ticket (http://xbmc.org/trac/ticket/5753) so it would be great if any one could try it.
Cheers,
Tobias
I see
The earliest I can try it is Tuesday, as I'm not home right now - if anyone else wants to try, step right up :)
brotherman38
2009-02-07, 23:04
Nah actually meant usual mp3 sample, just to verify it working on my end.
In anycase, what you all have incommon seems to be that your ChunkLen (the minimum size we send to the audiodevice) is bigger then the PACKET_SIZE (the chunks we decode) this should be supported but in ubuntu it rarely happens, the ChunkLen seems to stay very low.
IŽve provided a trial and error patch on ticket (http://xbmc.org/trac/ticket/5753) so it would be great if any one could try it.
Cheers,
Tobias
I tried the patch, i'm sorry to say i got the same results, still no sound. here's a link to the log file. Could it be the buffer is to small? Its just a standard mp3 file 128kbs.
http://pastebin.com/m527f9a55
Please try the new patch http://xbmc.org/trac/ticket/5753
New log with that enabled (a few seconds trying to play the sample I linked to is enough)
Cheers,
Tobias
Excellent! It plays now!
Here's the log anyway, in case you need: http://pastebin.com/m6eea4a59
Cool, then we atleast have fixed it. Which patch did you try? the latest or the second?
Because if latest would you mind trying the second? (youŽll need to clean cores and repatch) and see if that was the needed patch.
Cheers,
Tobias
It was t.2
I'll try "t" now
I ran "make reallyclean," restored the previously patched files from SVN and applied "t" -- it works also.
Do you want the logs?
brotherman38
2009-02-16, 13:57
Great work.
Thanx for the debugging then I think I have a clue now atleast. No debuglog is needed now.
Will try to create a proper patch with this and submit to svn in the comming days.
Cheers,
Tobias
MacLeod_1980
2009-06-06, 04:07
I ran into this problem, but I am using PPAs. And it occurs anytime I try to view recently added movies.
I am using the following
MediaStream skin
Mythbuntu 9.04
XBMC 9.04 r1414
i686
http://pastebin.com/m179cde5