XBMC having problems exiting (shutting down)
#1
Not sure what's wrong, but lately my XBMC 11.0 (Eden) have been giving me problems when shutting down (exiting). It takes forever, sometime it just sits there and does nothing, and other times it can take up to like 5-10 minutes, and sometimes when it does shutdown it doesn't even look like a proper shutdown, I get a black screen with the spinning cursor and it takes me back to the default apple TV main menu. It didn't do this before so I'm not sure why it's doing this now. I have pasted my xbmc.log, if someone can please take a look at it and tell me what's wrong and how I can fix this. Thanks in advance.

Here's the link to the log.

http://pastebin.com/jhbtPGKr
Reply
#2
(2012-07-26, 08:06)turbinez Wrote: Not sure what's wrong, but lately my XBMC 11.0 (Eden) have been giving me problems when shutting down (exiting). It takes forever, sometime it just sits there and does nothing, and other times it can take up to like 5-10 minutes, and sometimes when it does shutdown it doesn't even look like a proper shutdown, I get a black screen with the spinning cursor and it takes me back to the default apple TV main menu. It didn't do this before so I'm not sure why it's doing this now. I have pasted my xbmc.log, if someone can please take a look at it and tell me what's wrong and how I can fix this. Thanks in advance.

Here's the link to the log.

http://pastebin.com/jhbtPGKr

permission issues ?

ERROR: NFS: Failed to create(//) mkdir call failed with "NFS: MKDIR of // failed with NFS3ERR_PERM(-1)"
00:49:00 T:139419648 ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/
00:49:00 T:139419648 ERROR: Create - Error creating special://masterprofile/Thumbnails/
Reply
#3
It never shutsdown normal. It allways shows the black screen with the spinning wheel. (thats how it HAS to be on ATV2 for now - else we are eating memory. Clean shutdown is not possible as of now).

Most likly the shutdown gets blocked by some addons which refuse to shutdown properly.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#4
So that's normal then. Okay what about the error in my log files about failing to create some directories. How can I fix that?
Reply
#5
read the nfs faq until you understand how the permissions work - and then fix em Wink
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#6
Memphiz, I have read the NFS Wiki and configured my thumbnails folder located on my synology nas accordingly. I have done everything that was listed in the steps listed under setting up NFS shares for Synology NAS. Would appreciate if you or someone could tell me exactly what I need to do to fix this problem. I don't know what else it could be. I checked the permissions and they are set to Read/Write for the necessary user accounts.
Reply
#7
Depends on your setup. Post the /etc/exports file from your nfs server and do a "ls -al /volume1/thumbnails/".

Its all about user ids and user id mapping...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#8
here's my /etc/exports file

/volume1/Movies 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume1/TV 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume1/thumbnails 192.168.1.*(rw,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume1/Music_Videos 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume3/Tutorials 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume3/Documentaries 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume1/music 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)
/volume1/photo 192.168.1.*(ro,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
/volume1/video 192.168.1.*(ro,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
/volume1/Downloads 192.168.1.*(ro,async,no_wdelay,insecure,no_root_squash,anonuid=0,anongid=0)

and here's the result of ls -al /volume1/thumbnails/


drwxrwxrwx 22 root root 4096 Jul 19 02:54 .
drwxr-xr-x 18 root root 4096 Jul 16 01:30 ..
-rwxrwxrwx 1 kwon users 12292 Jul 19 02:12 .DS_Store
-rwxrwxrwx 1 kwon users 296 Jul 19 02:54 .apdisk
drwxrwsrwx 3 kwon users 4096 Jul 26 23:46 0
drwxrwsrwx 3 kwon users 4096 Jul 25 01:16 1
drwxrwsrwx 3 kwon users 4096 Jul 26 23:55 2
drwxrwsrwx 3 kwon users 4096 Jul 26 23:55 3
drwxrwsrwx 3 kwon users 4096 Jul 24 23:55 4
drwxrwsrwx 3 kwon users 4096 Jul 26 23:54 5
drwxrwsrwx 3 kwon users 4096 Jul 26 23:56 6
drwxrwsrwx 3 kwon users 4096 Jul 25 01:56 7
drwxrwsrwx 3 kwon users 4096 Jul 26 23:54 8
drwxrwsrwx 3 kwon users 4096 Jul 26 23:55 9
drwxrwxrwx 2 root users 4096 Jul 19 02:54 @eaDir
drwxrwsrwx 22 kwon users 4096 May 31 09:19 Music
drwxrwsrwx 21 kwon users 4096 May 31 09:23 Video
drwxrwsrwx 3 kwon users 4096 Jul 24 23:45 a
drwxrwsrwx 3 kwon users 4096 Jul 26 23:55 b
drwxrwsrwx 3 kwon users 4096 Jul 26 23:54 c
drwxrwsrwx 3 kwon users 4096 Jul 26 00:15 d
drwxrwsrwx 3 kwon users 4096 Jul 26 00:49 e
drwxrwsrwx 3 kwon users 4096 Jul 26 23:55 f
drwxrwsrwx 19 kwon users 4096 May 31 09:18 generated
Reply
#9
output of:

ls -al /volume1/thumbnails/Video
ls -al /volume1/thumbnails/Video/c/
ls -al /volume1/thumbnails/Video/c/cc816d25.tbn
id kwon
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#10
Kona> ls -al /volume1/thumbnails/Video
drwxrwsrwx 21 kwon users 4096 May 31 09:23 .
drwxrwxrwx 22 root root 4096 Jul 19 02:54 ..
drwxrwsrwx 3 kwon users 12288 Jul 26 23:52 0
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 1
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 2
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 3
drwxrwsrwx 3 kwon users 12288 Jul 26 23:52 4
drwxrwsrwx 3 kwon users 12288 Jul 26 23:52 5
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 6
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 7
drwxrwsrwx 3 kwon users 12288 Jul 26 23:52 8
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 9
drwxrwxrwx 2 root users 4096 May 31 09:23 @eaDir
drwxrwsrwx 2 kwon users 4096 May 31 09:22 Bookmarks
drwxrwsrwx 3 kwon users 12288 Jul 26 23:51 Fanart
drwxrwsrwx 3 kwon users 12288 Jul 26 23:54 a
drwxrwsrwx 3 kwon users 12288 Jul 26 23:52 b
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 c
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 d
drwxrwsrwx 3 kwon users 12288 Jul 26 23:52 e
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 f

output of /volume1/thumbnails/Video/c/ is quite long so I will paste a portion of it:
Kona> ls -al /volume1/thumbnails/Video/c/
drwxrwsrwx 3 kwon users 12288 Jul 26 23:53 .
drwxrwsrwx 21 kwon users 4096 May 31 09:23 ..
drwxrwxrwx 2 root users 20480 May 31 09:22 @eaDir
-rw-r--r-- 1 501 users 21406 Jul 18 20:33 auto-c19acbb4.tbn
-rw-r--r-- 1 501 users 35511 Jul 18 20:40 auto-c20b21f6.tbn
-rw-r--r-- 1 501 users 25366 Jul 18 20:32 auto-c2d3110f.tbn
-rw-r--r-- 1 501 users 32256 Jul 18 20:33 auto-c33ae116.tbn
-rw-r--r-- 1 501 users 17781 Jul 18 20:32 auto-c4c7454b.tbn
-rw-r--r-- 1 501 users 20956 Jul 18 20:33 auto-c793392a.tbn
-rw-r--r-- 1 501 users 16073 Jul 18 20:32 auto-c8193a9c.tbn
-rw-r--r-- 1 501 users 29452 Jul 18 20:33 auto-c90791fe.tbn
-rw-r--r-- 1 501 users 27002 Jul 18 20:34 auto-c9ae1e10.tbn
-rw-r--r-- 1 501 users 24261 Jul 18 20:33 auto-cbdaadcd.tbn
-rw-r--r-- 1 501 users 37907 Jul 18 20:34 auto-cc8f310b.tbn
-rw-r--r-- 1 501 users 14713 Jul 18 20:31 auto-cc9aaea3.tbn
-rw-r--r-- 1 501 users 41051 Jul 18 20:40 auto-cf87b5fd.tbn
-rw-r--r-- 1 501 users 12085 Jul 18 20:34 auto-cfbfc873.tbn
-rwxrwxrwx 1 kwon users 19734 May 31 09:22 c001ea31.tbn
-rw-r--r-- 1 501 users 100409 Jul 24 23:28 c00b75ce.tbn
-rwxrwxrwx 1 kwon users 23679 May 31 09:22 c00bbdc7.tbn

Kona> ls -al /volume1/thumbnails/Video/c/cc816d25.tbn
ls: /volume1/thumbnails/Video/c/cc816d25.tbn: No such file or directory

Kona> id kwon
uid=1026(kwon) gid=100(users) groups=100(users),101(administrators)

Reply
#11
chown -R 501 /volume1/thumbnails

try if this fixes it then ...

i'm wondering what those strange @eaDir folders are but nvm...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#12
Okay did as you say and rechecked my xbmc.log upon startup and I still see a few errors.

Here's the output of my xbmc.log file, if you take a look closely, I'm getting numerous errors about NFS not being able to create directories along with various other errors which I can't figure out. I'm assuming all these errors are the reason why my xbmc menus are sluggish at times and it takes awhile for me to quit out the app on my macbook, appletv, etc.

00:45:06 T:2899032616 ERROR: Unable to load libcrystalhd.dylib, reason: dlopen(libcrystalhd.dylib, 1): image not found

00:45:10 T:2961379328 ERROR: NFS: Failed to create(//) mkdir call failed with "NFS: MKDIR of // failed with NFS3ERR_PERM(-1)"
00:45:10 T:2961379328 ERROR: Create - Error creating /Users/kwon/Library/Application Support/XBMC/userdata/Thumbnails/
00:45:10 T:2961379328 ERROR: Create - Error creating special://masterprofile/Thumbnails/
00:45:10 T:2961379328 WARNING: FileNFS::OpenForWrite() called with overwriting enabled! - //6/6ebf1b4d.tbn

00:45:10 T:2899032616 ERROR: Window Translator: Can't find window tvsettings

00:45:10 T:2899032616 ERROR: Error evaluating boolean expression Container.Content(addons) | [SubString(Container.FolderPath,plugin://) + !Container.HasFiles + ![Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes)]
00:45:10 T:2899032616 ERROR: unmatched parentheses in Container.HasFiles)

00:45:17 T:2961379328 ERROR: InputStream: dvd streams not supported for thumb extraction, file: nfs://192.168.1.21/volume1/Movies/Airport (1977)/Airport (1977).ISO


http://pastebin.com/RsCWKCKp

and here's an updated output of my /volume1/thumbnails/0/ directory:

Kona> ls -la
drwxrwsrwx 3 501 users 4096 Jul 28 03:56 .
drwxrwxrwx 22 501 root 4096 Jul 19 02:54 ..
-rw-r--r-- 1 501 users 314062 Jul 21 00:11 00154d0b.tbn
-rw-r--r-- 1 501 users 82546 Jul 19 02:11 0019db38.jpg
-rwxrwxrwx 1 501 users 257759 May 31 09:18 0047bf88.jpg
-rw-r--r-- 1 501 users 189590 Jul 21 00:08 00521990.tbn
-rw-r--r-- 1 501 users 12584 Jul 18 20:31 006dc62b.png
-rw-r--r-- 1 501 users 88502 Jul 24 23:44 00795f32.jpg
-rwxrwxrwx 1 501 users 65203 May 31 09:18 01090840.jpg
-rwxrwxrwx 1 501 users 241788 May 31 09:18 01204442.jpg
-rw-r--r-- 1 501 users 115452 Jul 28 03:56 012d0c93.jpg
-rwxrwxrwx 1 501 users 276320 May 31 09:18 0146aaba.jpg
-rwxrwxrwx 1 501 users 607777 May 31 09:18 0157e934.jpg

I noticed that some files have rwxrwxrwx while others have rw-r-r only, is it suppose to be like this?

Reply
#13
nahh thats ok i guess. Inore that one permission error - but try to deactivate the thumbnail extraction like mentioned in the ios faq - this is what might slow you down, because it can't extract thumb from iso files...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC having problems exiting (shutting down)0