Posts: 39
Joined: Mar 2009
Reputation:
0
2009-03-23, 12:03
(This post was last modified: 2009-03-25, 16:03 by triumvirrr.)
I have encountered the following problem in the last few builds:
I have all my media stored on a Windows XP NAS with standard fileshares.
Wenn I open a share via the built in Samba Client of XBMC, the access to the root directory of each share (and only the root directory!) takes about 30 seconds. Each subdirectory opens without delay. Also when I directly browse to a subdirectory (eg. when it's still open when returning to "Music" after having exited to XBMC main menu), there is no delay. But when I browse to a parent directory within the same share, which is the root of the share, the delay is here again.
Example:
My music is on //elrond/mp3s
This is mapped to the XBMC Source "nas music".
Opening "nas music": 30 seconds delay
Opening "nas music/rock" (or anything else in "nas music"): no delay
Going back from "nas music/rock" to "nas music": 30 seconds delay
This does not occur, when I map the share to a windows drive and just use the drive letter in XBMC.
I'm currently using Rev18466 in Win XP. I have tested versions up to 18738, which had the same problems (and some others too, so I reverted to 18466).
Any ideas are greatly appreciated...
Posts: 3,610
Joined: Feb 2009
Reputation:
87
I have the same issue and to workaround I did two different things:
1) Mapped the fileshares to drives on my XBMC client PC
2) Used the Windows Media Connect UPnP server that's running on my fileserver
No more delay. I had no issues when I was running Atlantis 8.10 on my WinXP machine but when I "upgraded" to Windows 7 and installed the latest Jester's build I too started having this SMB problem and those were my workarounds.
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
try disabling the windows firewall on server and client and report back. I have no idea what's blocking there and how to solve that on an app level yet.
Posts: 478
Joined: Jun 2008
Reputation:
0
yeah, ive noticed that too.
im sure my delay is more like a minute though. although i have over 300 listings in each root folder.
when browsing on trusty old xbox though, takes like a second to display the listing.
will take Wiso advise, but firewall is kinda important tool, and would rather live with the delay for now i suppose.
regards,
Dam0
Posts: 34
Joined: Mar 2009
Reputation:
0
I'm glad to see other people are having this issue. That's a great idea to map the share as a network drive, its not ideal, but totally viable until this gets fixed. Unless this entry on Trac mean it has been taken care of:
Changeset [18892] by wiso
[WIN32] fixes for the native SMB client
Strange enough, if you browse the SMB share from "Add Source" There is 0 delay.
I also started getting "Network not available" on some of my SMB shares. They are shares from the same server, so while some are working, others arent. Rebooting XBMC will fix the problem. Also using the "Add source" browser will enter the share without issue.
Posts: 3,610
Joined: Feb 2009
Reputation:
87
Funny, I didn't think about it being a XBMC issue since I have the same delay trying to open things in Windows Explorer when I navigate to the Network Neighborhood (or whatever it's called these days) to find the fileserver on my network. I've fixed that before but I can't remember what I did. I needed my photos to show so I just mounted (sorry, mapped) the drive locally. That doesn't help find/fix bugs though, does it?
Posts: 39
Joined: Mar 2009
Reputation:
0
I definitely didn't encounter the lags in 8.10, using the same machines with the same OS and the same firewall settings on both XBMC clientside and SMB serverside.
Have there been changes to the SMB client code since 8.10? Probably there the key can be found...
Of course, using shares mapped to a windows drive is a possible workaround, but it would mean to rebuild the whole media library with the new paths and also losing all the watched / unwatched information, which is especially with longer tv shows very bad :-(
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
8.10 used the ported smb client from the samba package. It's rather old and didn't worked reliable (no browsing, streaming broke from time to time, etc).
To port the latest version is a huge effort and therefore I've decided to take the native way.
Posts: 125
Joined: Aug 2008
Reputation:
0
o_dog
Senior Member
Posts: 125
same problem here, if i open up port 80 on server it goes back to normal listing time. Can't understand why it would try to use port 80 since it's usually the port of a webserver.
Posts: 34
Joined: Mar 2009
Reputation:
0
Just wanted to confirm that opening up port 80 also cleared up this issue for me. Very strange that XBMC is listed as a program allowed through the firewall and yet this happens. As mentioned very strange that it would block anything on port 80 of all things. My is build was from last week, sorry don't have the # off hand.
Posts: 478
Joined: Jun 2008
Reputation:
0
2009-03-26, 02:21
(This post was last modified: 2009-03-26, 02:24 by Dam0.)
ok, just to clarify....
to speed up root listings for xbmc via samba, you need to open port 80 on the smb host side, or the xbmc client side?
reason i ask is because i already have port 80 open on one media server for some web hosting, and its still slow to list root dirs.
regards,
Dam0
Posts: 74
Joined: Sep 2008
Reputation:
0
Same problem here using ikons' latest build. Fresh install of Tiny XP, shares work fine and snappy within Windows but take over a minute to show the root within XBMC via SMB.