Locking up when accessing network share after standby
#1
When my NAS goes into standby and resumes, it will lock up the XBMC process upon access of my network share. It will work normally until I try to access this network share, then it locks up. I believe the problem to be XBMC's handling of the network share. I think XBMC is timing out after a period of time. It takes about 5-10 seconds for my NAS to spool up and then my router to start sending information.

Here is a snippet of the top and the bottom of the log.
http://pastebin.com/sgNKq2ju
Let me know if more is needed. I have a ton of files scanning in all the time so it gets very cluttered and long.


I made a gigantic icon on my desktop called "FIX XBMC" with the following commands which fixes everything. it logs in to an SSH as root, sends killall xbmc, then logs out.
Code:
expect -c 'spawn ssh [email protected]; expect "password:" ; send "*****MY PASSWORD HERE*****\n" ; expect "~#" ; send "killall xbmc\n"; expect "~"; send "exit"'
I also have to use this program on startup because of graphics fragging on the screen until I restart XBMC.

Any help would be appreciated. XBMC seems very glitchy on my system, but the system seems rock solid.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
#2
bump, this is still a problem. Is there any fix in the works?
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
#3
more info needed, i.e., network share type, fstab, etc
Reply
#4
The network type is wired 100mbps ethernet on a Linksys WRT160NL. The filesystem in question is a FAT32 filesystem with a SMB type share. Ubuntu depreciated SAMBA package and the filesystems are covered under CIFS now so my file system table reflects cifs.

Here is my /etc/fstab:
Code:
//192.168.1.1/public /home/mythtv/NAS cifs credentials=/home/xbmc/.smbcredentials,iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
#5
outleradam Wrote:The network type is wired 100mbps ethernet on a Linksys WRT160NL. The filesystem in question is a FAT32 filesystem with a SMB type share. Ubuntu depreciated SAMBA package and the filesystems are covered under CIFS now so my file system table reflects cifs.

Here is my /etc/fstab:
Code:
//192.168.1.1/public /home/mythtv/NAS cifs credentials=/home/xbmc/.smbcredentials,iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
ok,
now this is my guess.
don't blame me if it does not work for you.
it seems that the mount needs to be umounted and then remounted again
look at /etc/pm/sleep.d/99lirc-resume for an example
here is mine:
Code:
#!/bin/bash

# This script will restart Lirc upon resume.
. /usr/lib/pm-utils/functions

case "$1" in
        hibernate|suspend)
                logger hibernate/suspend, stopping lirc...
                /etc/init.d/lirc stop
                ;;
        thaw|resume)
                logger thaw/resume, starting lirc...
                /etc/init.d/lirc start
                ;;
        *)
                ;;

esac
typically, you need to add code to umount the mount at case hibernate/suspend and re-mount it at thaw/resume
hope it helps
Reply
#6
This has nothing to do with that. I was using that as an example. It may have been a bad example. I will be watching sponge bob with the kid and then go back to the library to access something on the NAS which has been spooled down for the last 1/2 hour and XBMC locks up.

The problem is resuming the NAS, not the computer.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
#7
outleradam Wrote:This has nothing to do with that. I was using that as an example. It may have been a bad example. I will be watching sponge bob with the kid and then go back to the library to access something on the NAS which has been spooled down for the last 1/2 hour and XBMC locks up.

The problem is resuming the NAS, not the computer.

"When my computer goes into standby mode then resumes, it will lock up the XBMC process upon access of my network share." That's not what your original post suggests.

A better description might be, "if xbmc is idle and a remote NAS with a SMB share goes to sleep, xbmc will hang when trying to access the remote NAS SMB share." yes, no, maybe ?
Reply
#8
yes... That is true. I just noticed it a while ago when my computer was standing by. The problem should be updated.

I updated the first post

When my NAS goes into standby and resumes, it will lock up the XBMC process upon access of my network share. It will work normally until I try to access this network share, then it locks up. I believe the problem to be XBMC's handling of the network share. I think XBMC is timing out after a period of time. It takes about 5-10 seconds for my NAS to spool up and then my router to start sending information.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply

Logout Mark Read Team Forum Stats Members Help
Locking up when accessing network share after standby0