PDA

View Full Version : smb music?


succo
2008-06-14, 15:09
i guess something happened recently with samba music shares...

this is what happens to me:
if i install a fresh copy of xbmc (from PPA or from sources) and leave all the settings to default, when playing local files i get projectM visualizations but when trying to browse samba shares xbmc 'hangs' with lots of ERROR: Read - Error( Descrittore di file errato ) (which i guess is something like 'bad file descriptor')
on the other side, if i disable 'look for thumbs in remote shares' under configuration/music/files i can browse the remote shares but visualizations don't work anymore (and this is why of my last post (http://xbmc.org/forum/showthread.php?t=33908)... what's up?

btw, what happens with music doesn't with videos, so i guess there must be something specific to that setting...

could anyone help?

succo
2008-06-14, 17:02
i must correct myself... the visualizations work only with local music files... whenever going remote the visualizations stop working and don't come back to life when returning to local files... now i'm going to mount a remote folder just to see if it's something internal to xbmc (so the mounted folder would work just fine) or something with my system

BLKMGK
2008-06-14, 17:08
Ah! Can sort of confirm this.

I just get a black screen when music is playing - I've yet to ever see the visualizations despite having followed the instructions I thought, all of my music is over SMB. Mind you the music plays just fine. Can anyone else confirm that visualizations aren't working for SMB sourced music? Want to make sure I've not got something screwy but since Succo has actually SEEN them for local files I'm thinking this really is an issue:grin:

succo
2008-06-14, 17:09
edit: works just fine with mounted share... and of course the same folder works if i open it by the local path but doesn't if i open it with smb://

so, i guess must be something in how xbmc handles samba folders

succo
2008-06-14, 18:34
ok, solved mounting all network shares as local folders and adding them to the sources... but i think the behaviour i pointed out needs to be investigated, doesn't it? :)

althekiller
2008-06-14, 22:53
ok, solved mounting all network shares as local folders and adding them to the sources... but i think the behaviour i pointed out needs to be investigated, doesn't it? :)

I wouldn't call that a *solution*, more of a workaround.

I can't replicate this bug. All vizs display regardless of music source. Something IS mucked up with the FFT code as none of the vizs seem to react properly to the music.

succo
2008-06-15, 00:49
yes, of course it's just a workaround, but it seems to me to be quite strange that the same files behave differently if xbmc thinks they are local or remote... btw, as far as i remember, this is specific of projectM, as, as far as i remember (i'm not at the xbmc pc right now) the other vizs work with sources from smb shares, and video has no problem, just music (with 'look for thumbs in remote shares' enabled) and projectM

althekiller
2008-06-15, 01:09
Can you post the revision number you're experiencing this on?

Also check /usr/local/share/xbmc/visualisations/projectM to make sure there are actually presets (.milk) installed.

BLKMGK
2008-06-15, 06:41
Would I be looking in that spot if I were running from SVN?

althekiller
2008-06-15, 07:33
Depends on how you "install." If you're using build.sh then you'd look in your BUILD folder and follow a similar path. If you're using the install make target then you'd use the path as I mentioned.

succo
2008-06-15, 14:45
Can you post the revision number you're experiencing this on?

Also check /usr/local/share/xbmc/visualisations/projectM to make sure there are actually presets (.milk) installed.

so... i'm on 13548 PPA located in /usr/share/xbmc

ls /usr/share/xbmc/visualisations/projectM/*.milk gives me a lot of files, so the visualizations are there

on the other side, i have a manual build too, located in ~/XBMC/BUILD

that's R13862, visualizations are located in ~/XBMC/BUILD/visualizations/projectM and there are many (the ones coming down from svn)

both have the sabe behaviour:

i start it, try to reach a remote video share and i can see videos, try to reach a remote smb music share and xbmc hangs with 'bad file descriptor'

restart it, unmark 'look for thumbs in remote shares', try to reach a local music file, play it and have visualizations... the i try to reach a remote smb file and vizs stop working and don't come back when i retry with a local file

if i mount the remote folders with fstab or with mount, i have vizs working flawlessly ì
another thing that i think needs to be pointed out is that as far as i can see, the visualizations are loaded, just not 'visualized', as whenever i open a remote file i see the cpu use going up just like when the vizs are on screen, but with a blank screen

just another notice for althekiller regarding the smb music hang:
some days ago i had a working installation from PPA, but noticed the hang in sources build, that's why i reinstalled PPA from scratch and noticed i had the same smb hang, so i guess that updating older 'working' builds doesn't give the hang...

thanks again

BLKMGK
2008-06-15, 18:23
Depends on how you "install." If you're using build.sh then you'd look in your BUILD folder and follow a similar path. If you're using the install make target then you'd use the path as I mentioned.

Thanks, am using your build script:nod:

I build in a folder named XBMC, XBMC/visualizations/projectM/ has many .milk files so yeah I guess I can test this too. Building 13564 now and will try to get a log in a few mins.

succo
2008-06-15, 19:44
@BLKMGK
try to put some music on an usb pen and play it with xbmc from it... if i'm right you'll have visualizations (as far as you play it just after starting xbmc)
after that, if you play something from smb (trying visualizations with, i guess, blank screen) and then go back to the pen, you'd notice that visualizations are gone... may you try this?

thanks :)

btw... on the other side, i have a manual build too, located in ~/XBMC/BUILD

that's R13862, visualizations are located in ~/XBMC/BUILD/visualizations/projectM and there are many (the ones coming down from svn)
of course, it was R13562

BLKMGK
2008-06-17, 02:49
Ya', didn't get to this as planned yet :( TV "occupied" ATM so cannot do it tonight. I will dig up a USB stick though just to make sure that the viz WILL work at all on my system too! Good suggestion, thank you.

speedway
2009-08-15, 18:01
Any progress in this case ?
I'm using Ubuntu and have the same problem:
local files = ok, SMB = black screen with ProjectM viz.

succo
2009-08-16, 01:42
i don't think so... i even filled a bug to the tracker
anyway, to make projectM work for smb shared files all you have to do is play a smb video before starting the music
it seems that somehow video doesn't get initialized from smb music :)

speedway
2009-08-16, 10:16
i don't think so... i even filled a bug to the tracker
anyway, to make projectM work for smb shared files all you have to do is play a smb video before starting the music
it seems that somehow video doesn't get initialized from smb music :)

Thx. Do you also experience if you don't apply the workaround, the music stops after a while and XBMC stops running (=crashes) ? Again, no problem when playing music locally.

succo
2009-08-16, 12:10
that could be a problem with your network... did you have a look at the logs to see what happens?

speedway
2009-08-16, 19:51
that could be a problem with your network... did you have a look at the logs to see what happens?

I'll try the dualboot Windows 7 on the same machine. If this works, its Ubuntu.

succo
2009-09-14, 21:56
mmmmmh
i don't know if it's known or what, but adding 'export LC_ALL="C"' at the top of /tools/linux/xbmc.sh.in (just after #!/bin/sh) solved the problems with projectm over smb... or at least, it was solved after i put it in, i don't know if it's something with latest builds or with that export

papaf
2009-09-20, 11:29
I'm experiencing the same as speedway. I suppose projectm just makes xbmc crashes after a while.
I can also confirm (if needed) that playing a samba shared video fixes projectm afterwards.
I'm now trying to find out if the crash is fixed too.

succo
2009-09-20, 19:41
strange again... updated from 23014 to 23024 and (again) no way to have projectM work on remote sources without starting a remote video first... what changed between these versions?