FSEventStream doesn't notify on writes on some systems
| Originator: | rick | ||
| Number: | rdar://19765000 | Date Originated: | 09-Feb-2015 09:28 AM |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.10.2 |
| Classification: | Serious Bug | Reproducible: | Rarely |
Summary: Twice now I've encountered an issue where FSEventStream is not calling our callback for notifications on writes within a directory. We use this in 1Password to get notified when a remote device has modified a sync'ed keychain in say Dropbox. On my system when I saw this, it wasn't a specific directory that was causing me issues, it was any directory within my home folder (I didn't try anything outside of my home folder). This persisted through a reboot. Eventually, as I was screwing around and renaming directories that I was watching, things started working again. Now I've got a customer that's experiencing the same thing: https://discussions.agilebits.com/discussion/comment/180501/#Comment_180501 Steps to Reproduce: 1. Build/Run the attached sample app 2. Select a directory, such as ~/Desktop 3. Write file to desktop Expected Results: I'd expect the sample app to show something in its little textview log. Actual Results: Nada. Silence. Version: 10.10.2 14C109 Notes: I suspect that this kind of issue would be hard to reproduce for you. If you could provide me with info to get from people who are experiencing this, this would be appreciated. One thing I tested with my system was that monitoring files via kqueue still worked. I considered switching us over to kqueue, but once things were working again the motivation there sort of died out. Configuration: In my case this is a 2014 RMBP. Sample App: http://cl.ly/312I1i0W2L1g
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!