afp subtitle crash atv2

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
eaidland Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #1
Hi!

I've updated to the latest nightly build:
http://forum.xbmc.org/showthread.php?tid=108142

Got AFP up and running with zeroconf and can access videos on my Mac. The only thing missing now is subtitle support.

When I try to download subtitles XBMC crashes and restarts. Gave read and write access for everyone to the movie folder in "File sharing", but looking at the subfolders the write access isn't inherited. Tried to give specific access to a folder, but didn't work.

What am I doing wrong?

Code:
22:06:37 T:155734016   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.os_utilities] - Token:[r2u8ouj0bae1e1g4cdgrinllh3]
22:06:37 T:117485568   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
22:06:37 T:117485568   DEBUG: GetZipList - Processing zip://%2fvar%2fmobile%2fLibrary%2fPreferences%2fXBMC%2fuserdata%2faddon%5fdata%2fscrip​t%2exbmc%2esubtitles%2fsub%5ftmp%2fzipsubs%2ezip/
22:06:38 T:155734016  NOTICE: Regex File Se: 07, Ep: 03,
22:06:38 T:155734016   DEBUG: AFP: Using anonymous authentication.
22:06:38 T:155734016   DEBUG: Previous line repeats 1 times.
22:06:38 T:155734016 WARNING: FileAFP::OpenForWrite() called with overwriting enabled! - /Criminal Minds/Criminal.Minds.S07E03.HDTV.XviD-LOL.[VTV].en.srt
22:06:38 T:155734016   ERROR: CFileAFP::Open: Unable to open file : '/Criminal Minds/Criminal.Minds.S07E03.HDTV.XviD-LOL.[VTV].en.srt'
                                            unix_err:'0' error : 'Undefined error: 0'
22:06:38 T:155734016   DEBUG: CFileAFP::Close closing fd 0


No
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,942
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #2
I'll try to investigate. Seems to be a problem with writing to afp. How do i reproduce this? (i have not used the subtitle addon yet). Just watch a movie and use the addon? Do i have to do something special for making it write the sub to the movie folder?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
eaidland Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #3
Hi again!

Well I've installed the XBMC Subtitle from Add-ons -> subtitles. Make sure the checkbox for "Subtitle Download Folder Same As Movie" is active.
I use the zeroconf and chose AFP. For testing purposes I gave "Everyone" read/write access to my movie folder in the "File Sharing" option in Lion.

Play movie, press and hold the "Ok" button. You shoud see the subtitle icon to the right. It should crash after 5 secs.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,942
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #4
thx for your explenation. Should be fixed in:

https://github.com/xbmc/xbmc/commit/21d5...a64c221f84

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
eaidland Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #5
God job! Thanks Smile

Where can I find this file on the ATV2? I'll just update it myself Smile
(This post was last modified: 2011-10-07 20:03 by eaidland.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,942
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #6
you have to wait until the buildbot has built the next nightly build - or you have to compile it yourself ... but i bet you wouldn't have asked if you could compile it yourself - so just wait a day Wink

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
eaidland Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #7
Ok so when is the next build? xbmc-20111007-e330173-master-atv2.deb haven't got the update.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,942
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #8
it has ... still crashing? then around the world ... lets start from the beginning ... logs Smile

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,942
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #9
ahh sec ... it could be that the subtitle files where created in your folder with wrong permissions ... so xbmc couldn't overwrite them ... so delete the downloaded subtitles from your movie folder if so...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
eaidland Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #10
No file downloaded to the folder. I notice that the AFP shares are really unstable. Buffering all the time and sometimes even restarts the atv2

Code:
21:02:12 T:144580608   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.service] - Search String [ CSI:+Crime+Scene+Investigation+S12E03 ]
21:02:12 T:144580608   DEBUG: AFP: Using anonymous authentication.
21:02:12 T:153051136   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
21:02:12 T:144580608   DEBUG: CFileAFP::Open - opened TV Shows/CSI Crime Scene Investigation/CSI.S12E03.HDTV.XviD-LOL.avi, fd=0
21:02:12 T:144580608   DEBUG: AFP: Using anonymous authentication.
21:02:12 T:144580608   DEBUG: CFileAFP::Close closing fd 0
21:02:12 T:144580608   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.service] - xbmc module hash and size
21:02:12 T:144580608   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.service] - File Size [366712512]
21:02:12 T:144580608   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.service] - File Hash [d8fdfa4085d9cf22]
21:02:12 T:144580608   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.service] - Search by hash and name CSI.S12E03.HDTV.XviD-LOL.avi
21:02:14 T:144580608   DEBUG: ### [XBMC Subtitles-services.OpenSubtitles.os_utilities] - Token:[6ju3kmghbmffpsl5664i61abj3]
21:02:14 T:116744192   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
21:02:15 T:116744192   DEBUG: GetZipList - Processing zip://%2fvar%2fmobile%2fLibrary%2fPreferences%2fXBMC%2fuserdata%2faddon%5fdata%2fscrip​t%2exbmc%2esubtitles%2fsub%5ftmp%2fzipsubs%2ezip/
21:02:16 T:144580608  NOTICE: Regex File Se: 12, Ep: 03,
21:02:16 T:144580608   DEBUG: AFP: Using anonymous authentication.
21:02:16 T:144580608   DEBUG: Previous line repeats 1 times.
21:02:16 T:144580608 WARNING: FileAFP::OpenForWrite() called with overwriting enabled! - /CSI Crime Scene Investigation/CSI.S12E03.HDTV.XviD-LOL.en.srt
21:02:16 T:144580608   ERROR: CFileAFP::Open: Unable to open file : '/CSI Crime Scene Investigation/CSI.S12E03.HDTV.XviD-LOL.en.srt'
                                            unix_err:'0' error : 'Undefined error: 0'
21:02:16 T:144580608   DEBUG: CFileAFP::Close closing fd 0
(This post was last modified: 2011-10-08 21:10 by eaidland.)
find quote
eaidland Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #11
It's working after I updated to the xbmc-20111009-6c95a7c-master-atv2.deb
find quote
GnarusLeo Offline
Junior Member
Posts: 39
Joined: Nov 2011
Reputation: 0
Post: #12
Bump ..

anyone have had any luck with this?

Seems like all subtitles just crash XBMC when tries to be downloaded Oo
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 20,661
Joined: Jan 2011
Reputation: 266
Location: Arizona, USA
Post: #13
have you tried the latest nightly build? Can you give us a debug log?
find quote
tobl Offline
Junior Member
Posts: 9
Joined: Aug 2011
Reputation: 0
Post: #14
Ok, so XBMC kept on crashing everytiime i downloaded via the subtitltes-addon. I share my files from a time capsule. I know understand that its because the time capsule allow read only. But how do i log in to my account on the time capsule from xbmc so that i can allow it to both read and write? I have selected shared files via "Timecapsule password" in the airport utilities.
find quote