[Mac][AppleTV1] Help With NFS
#16
ATV1/Mac Pre-11 33fcf32 can mount my NFS share.
Reply
#17
Buadhai Wrote:ATV1/Mac Pre-11 33fcf32 can mount my NFS share.

Which is the good news.

The bad news is that I have yet to be able to watch a video all the way through.

lXBMC.log

The video in question is an xvid with mp3 stereo in an avi container.

The box is an ATV1 running XBMC 33fcf32.

Here's a log file fragment from the almost immediate failure of another video, same codecs, same container:

Code:
16:12:25 T:61781504 M: 26947584   DEBUG: CDVDPlayerAudio:: Discontinuity - was:24000.000000, should be:24000.000000, error:0.000000
16:12:25 T:61781504 M: 26943488 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:12:25 T:2684407808 M: 26947584  NOTICE: DVDPlayer: waiting for threads to exit
16:12:26 T:61968384 M: 26640384 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
16:12:26 T:61968384 M: 26656768 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
16:12:26 T:61968384 M: 26652672 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
16:12:26 T:61968384 M: 26656768    INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 23.976024 fps
16:12:26 T:61968384 M: 26669056 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
16:12:40 T:61968384 M: 26923008 WARNING: Previous line repeats 120 times.
16:12:40 T:61968384 M: 26923008   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
16:12:40 T:61968384 M: 26931200 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
16:12:47 T:61372416 M: 26923008 WARNING: Previous line repeats 65 times.
16:12:47 T:61372416 M: 26923008   DEBUG: Thread Jobworker 61372416 terminating (autodelete)
16:12:47 T:61968384 M: 26976256 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
16:13:35 T:58779136 M: 26980352 WARNING: Previous line repeats 427 times.
16:13:35 T:58779136 M: 26980352  NOTICE: ES: Client  from 127.0.0.1 timed out
16:13:35 T:61968384 M: 26980352 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame

As you can see, it just times out waiting on the NFS server. I guess it's back to SMB.
Reply
#18
don't see a nfs timeout here ... nfs log prints are prefixed with "NFS:"
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
#19
The log file is here:

xbmc.log

The video is an XviD/AC3 in an AVI container.

Typically, videos on an NFS share play for a few minutes and then freeze or freeze immediately without playing at all. This one played for a few minutes before freezing. After a freeze, the ATV has to be rebooted (sudo killall XBMC does nothing).

This always happens with all videos on an NFS share. It happens only with extreme rarity with videos on an SMB share. (By extreme rarity, I mean once every few months.) I've never been able to play a video on an NFS share more than two or three minutes.

This is still an ATV1 running XBMC 33fcf32.

/etc/exports:
Code:
/Volumes/Media -alldirs -maproot=root -network 192.168.0.0 -mask 255.255.0.0

com.apple.nfsd.plist:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.apple.nfsd</string>
    <key>ProgramArguments</key>
    <array>
        <string>/sbin/nfsd</string>
        <string>-N</string>
    </array>
    <key>QueueDirectories</key>
    <array/>
    <key>WatchPaths</key>
    <array/>
</dict>
</plist>
Reply
#20
Memphiz Wrote:don't see a nfs timeout here ... nfs log prints are prefixed with "NFS:"

Sorry. I assumed that:

Code:
16:12:26 T:61968384 M: 26669056 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame

meant that XBMC was waiting for a video frame from the file on the NFS server.

What does it mean?
Reply
#21
I have XBMC installed on a wired MacMini and a wireless MacBook. Both freeze when playing videos from NFS shares. Here are the log files:

MacBook XBMC.log

MacMini XBMC.log

Both are on 33fcf32.

Note that the MacMini is also the NFS server.
Reply
#22
I installed 4f0a8cc on the MacMini (2GHz, 4GB, 10.6.8).

Froze instantly when playing a video on an NFS share.

MacMini 4f0a8cc XBMC.log
Reply
#23
I wondered if my problem with NFS might be related to the NFS server on my MacMini or a network problem.

So, I mounted the NFS share on a wireless MacBook. I then played several videos on the NFS share using both VLC and the QuickTime player. All the videos played flawlessly. I tried fast forward, scrubbing forward, etc. Not a hiccup.

I think this shows that both the NFS server and my network are just fine.

Must be something I'm doing wrong with XBMC...
Reply
#24
I'm sure you're all sick of hearing from me by now, but I'm very interested in getting the XBMC/NFS issue resolved.

I have mounted my NFS share on my ATV1 via the command line. I am able to play videos on the mounted NFS share with mplayer just fine. No skipping, no freezing; works fine.

I can also play videos on mounted NFS shares with XBMC. But, XBMC will not play videos streamed from an NFS share.

Any ideas?
Reply
#25
So, no one has a clue, eh?

Do these log entries mean anything?

Code:
13:49:36 T:2691372352 M:295596032   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
13:49:36 T:2966564864 M:295870464   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1048354.174000, should be:1027393.144562, error:-20961.029438
13:49:39 T:2691372352 M:295563264   DEBUG: ------ Window Deinit (Pointer.xml) ------
13:49:41 T:2966032384 M:303124480   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
13:50:01 T:2964434944 M:303575040   DEBUG: Thread Jobworker 2964434944 terminating (autodelete)
13:50:01 T:2956623872 M:303611904   DEBUG: Thread Jobworker 2956623872 terminating (autodelete)
13:50:01 T:2963902464 M:303661056   DEBUG: Thread Jobworker 2963902464 terminating (autodelete)
13:50:12 T:2966564864 M:303091712 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
13:50:13 T:2966032384 M:304599040 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
13:50:13 T:2966032384 M:304676864    INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 23.976024 fps
13:50:13 T:2966032384 M:304676864   DEBUG: CPullupCorrection: pattern lost on diff 208541.666667
13:50:15 T:2691372352 M:301105152   DEBUG: ------ Window Init (VideoOSD.xml) ------
13:50:15 T:2691372352 M:301105152    INFO: Loading skin file: VideoOSD.xml
13:50:15 T:2691372352 M:301015040   DEBUG: Load VideoOSD.xml: 43.53ms
13:50:15 T:2691372352 M:301248512   DEBUG: Alloc resources: 57.65ms (43.68 ms skin load)
13:50:17 T:2691372352 M:301588480   DEBUG: ------ Window Init (Pointer.xml) ------
13:50:17 T:2691372352 M:301588480   ERROR: Control 1 in window 10099 has been asked to focus, but it can't
13:50:18 T:2966032384 M:300560384   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
13:50:23 T:2691372352 M:302891008   DEBUG: ProcessMouse: trying mouse action leftclick
13:50:23 T:2691372352 M:302891008   DEBUG: ExecuteXBMCAction : Translating PlayerControl(Stop)
13:50:23 T:2691372352 M:302891008   DEBUG: ExecuteXBMCAction : To PlayerControl(Stop)
13:50:23 T:2691372352 M:302858240  NOTICE: CDVDPlayer::CloseFile()
13:50:23 T:2691372352 M:302809088  NOTICE: DVDPlayer: waiting for threads to exit
13:50:24 T:2966032384 M:302129152 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
13:50:24 T:2966032384 M:302116864 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
Reply
#26
didn't have time to reproduce this yet ... it might be an incompatibility between the osx nfs server and the libnfs ... don't have heared of such problems from others (others are using linux, solaris or freebsd as nfs server)

don't know anything about the flip timeout...

someone out there who uses the snow leo nfs server and libnfs without problems?
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
#27
I'll try setting up a share on a virtual Linux box and see how that goes.

Any other testing I could do that would help?
Reply
#28
Buadhai Wrote:I'll try setting up a share on a virtual Linux box

Tried and failed. I could see and mount the NFS share from Mac clients. I could see, but not mount the share from XBMX clients.
Reply
#29
darkscout Wrote:What does mapall=-2:-2 do? Remove 2 from the uid? Pretty sure UID is an unsigned int.

What reason did you put them there?

It turns out that UID of −2 (65534) is nobody. GID of −2 is nogroup. So, mapall=-2:-2 means mapall=nobody:nogroup.
Reply
#30
So, I decided to set up an NFS share on a completely different Mac to see if XBMC could play videos from a different NFS server. This is a recent (2010) MacBook running 10.6.8.

XBMC can see the share, can extract thumbs from the .avi files, but, again, fails after a few seconds when playing an avi file (XVID , MPGA).

XBMC.log

As usual, I can mount the share on my MacMini and play the .avi files using VLC with absolutely no problems at all.

Any hints from you users who have successfully set up an NFS share on a Snow Leopard Mac? This is really driving me nuts.
Reply

Logout Mark Read Team Forum Stats Members Help
[Mac][AppleTV1] Help With NFS0