Kodi Community Forum

Full Version: [LIVE] SMB share stops playing at random points
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Device: Aspire Revo R3610
OS: XBMC Live 9.11
Audio/Video: HDMI
Network Shares: SMB

Hi,


Just taken delivery of my Revo and installed XBMC Live as per instructions without a hitch. All my video/audio is held on a network, some on a windows laptop but most on a Western Digitial My World Book NAS drive.

Testing the REVO out last night I noticed It would stop playing a FLAC album when using a SMB Share from MyWorldBook NAS share at random points, XBMC freeze, but I still have control of the mouse, when I click on the file name or hit delete to go back everything locks up. I can then only press the power button to restart. I’ve tried the album using windows laptop shares and it doesn’t seem to happen. However the stop issues happens at random points so it’s tough to isolate.

The same happened with an MKV file from the NAS, 10 mins in it stopped but I still had control and restarted the file. It then played all the way through.

It seems to be an issue with the NAS shares, not one particular file or folder and the stop happens at random points.

Thanks in advance

Eggz
now with error log

http://pastebin.com/bA9LfmrU

any help would be great
What if you ran a ping on the NAS box from your laptop, and then played the file. Do your ping times jump right about the time that it locks up?

I just ran into the same issue last night, I was watching a DVD Rip and it wouldn't go more than about 20 minutes without locking up. Anything HD would lock it up much faster. As it turns out, just as the video is about to lock up the pings to my UNRAID NAS jumped from <1ms to over 1000ms. I had just done some upgrades on my NAS, so I know where my problem is... but hopefully this gives you a place to start.

Also, whatever program your using in Windows may be buffering the video/audio a little more than XBMC, making it more tolerable to the latency.
sdsnyr94 Wrote:What if you ran a ping on the NAS box from your laptop, and then played the file. Do your ping times jump right about the time that it locks up?

I just ran into the same issue last night, I was watching a DVD Rip and it wouldn't go more than about 20 minutes without locking up. Anything HD would lock it up much faster. As it turns out, just as the video is about to lock up the pings to my UNRAID NAS jumped from <1ms to over 1000ms. I had just done some upgrades on my NAS, so I know where my problem is... but hopefully this gives you a place to start.

Also, whatever program your using in Windows may be buffering the video/audio a little more than XBMC, making it more tolerable to the latency.

If you are streaming from unraid I found a "fix" is to map the network shares directly in linux on your xbmc live box. Stops the issue where playing a video just randomly stops.

The OP might want to try that and see if it stops the issue.

OP see this thread:

http://forum.xbmc.org/showthread.php?tid=61478

and about unraid:
http://forum.xbmc.org/showthread.php?p=4...post495614
gabbott Wrote:If you are streaming from unraid I found a "fix" is to map the network shares directly in linux on your xbmc live box. Stops the issue where playing a video just randomly stops.

The OP might want to try that and see if it stops the issue.

See this thread:

http://forum.xbmc.org/showthread.php?tid=61478

All my shares are mapped using NFS Smile I just replaced the MB in mine, so I'm sure my MAC Address is wrong or something of the like.

Either which way, I'd bet almost anything that this is a network issue.
sdsnyr94 Wrote:All my shares are mapped using NFS Smile I just replaced the MB in mine, so I'm sure my MAC Address is wrong or something of the like.

Either which way, I'd bet almost anything that this is a network issue.

Ah, if you are using NFS then yeah, the link I posted isn't your issue. For the OP, the link I posted describes an issue where when playing a file it just stops, XBMC doesn't seem to lock up, so yeah they might have an issue pointing to their network.
gabbott Wrote:If you are streaming from unraid I found a "fix" is to map the network shares directly in linux on your xbmc live box. Stops the issue where playing a video just randomly stops.

The OP might want to try that and see if it stops the issue.

OP see this thread:

http://forum.xbmc.org/showthread.php?tid=61478

and about unraid:
http://forum.xbmc.org/showthread.php?p=4...post495614


thanks guys, i followed the instructions below and managed to get the shares added as per guide. I'll test it tomorrow by playing some albums/movies and see if it stops at any point. thanks.

Quote:Here's what I did. For example I'll use the following configuration:

XBMC Username: xbmc1

SMB Share: 192.168.0.126/share
Username: user1
Password: pass1

Instead of having to add sudo to each command, I switched to root:
sudo su root

first make a directory for the mount:
mkdir /home/xbmc1/share

install smbfs:
apt-get install smbfs (may be necessary to run apt-get update first)

edit fstab to mount share on startup:
nano /etc/fstab

add this on the last line of the fstab:
//192.168.0.126/share /home/xbmc1/share smbfs username="user1%pass1"

Exit, save and restart. If it mounted successfully, the share should appear under the home folder.
To restart from the console:
shutdown -r now

If you want to test the mount before adding it to the fstab, type this command after executing the mkdir command:
smbmount //192.168.0.126/share /home/xbmc1/share -o username="user1%pass1"

This will only mount the share once. I used Ctrl+Alt+F2 to get to the console, and Ctrl+Alt+F7 to switch back to xbmc to test the mount
It looks like I just resolved my issue by changing the IP of my UNRAID box.... it appears I probably had some bad information in my routing tables.
*update* The fix as above works for me.
I realize this is a 3+ year old thread, but I just wanted to report that I was having the same issue on my Raspberry Pi running RaspBMC, and gabbot's fix worked for me as well!

The only thing I had to differently was use cifs in place of smbfs. smbfs has been depreciated in Debian. Here is my /etc/fstab:

Code:
//192.168.1.4/MP3s/Single\040MP3s  /home/pi/SMB_Media/Music cifs  guest,uid=1000,iocharset=utf8  0  0
//192.168.1.4/MP3s/Ripped\040Movies  /home/pi/SMB_Media/Videos  cifs guest,uid=1000,iocharset=utf8  0  0
//192.168.1.4/MP3s/Albums  /home/pi/SMB_Media/Music_Albums cifs  guest,uid=1000,iocharset=utf8  0  0

Note that the use of the '\040' in the SMB share path designates a 'space' in the share name. Putting the share path in quotes WILL NOT WORK in fstab.

My Windows network share doesn't require a username and password, so I was able to use the guest login, but if one were trying to mount a password protected share, here's a handy guide:

https://wiki.ubuntu.com/MountWindowsShar...rk_folders