• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FSEvents errors after the removal of a watched directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSEvents errors after the removal of a watched directory


  • Subject: Re: FSEvents errors after the removal of a watched directory
  • From: <email@hidden>
  • Date: Wed, 19 May 2010 09:58:28 +0200
  • Acceptlanguage: en-US
  • Thread-topic: FSEvents errors after the removal of a watched directory

On May 5, 2010, at 9:12 PM, ext Dominic Giampaolo wrote:

>> - I create a FSEventStream with the right directories to watch
>> - if the user adds or removes a directory, I delete the current FSEventStream and create a new one with the right values
>>
> Are you sure that you're properly tearing down and
> releasing the old FSEvent stream before creating
> the new one?
>

Yes, I am sure of that.
I printed all the steps on the output to check:

# Create stream
## Schedule stream
### Start stream
[stuff happens]
#### Stop stream
##### Invalidate stream
###### Release stream
# Create stream
## Schedule stream
### Start stream
[...]
#### Stop stream
##### Invalidate stream
###### Release stream

I don't unschedule the stream from the run loop since I invalidate it.

> Also, is it possible that one FSEventStream gets
> deleted on one thread and another is created on
> another thread at the same time?  Can you see if
> putting all FSEventStream creation/deletion on
> the same thread makes the problem go away?
>


All the stream related stuff is happening on the same thread (at least for now).
Plus, in my example, I don't create a new stream after deleting the first one (since I have nothing left to watch).

It seems to me the stream may not be properly closed, or it is trying to access something that doesn't exist anymore.
But I am following all the steps for properly stopping and releasing the stream.

--
Fabien Freling
Software Engineer, Platform team
Nokia, Qt Development Frameworks

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >FSEvents errors after the removal of a watched directory (From: <email@hidden>)

  • Prev by Date: Re: mount information from DA framework.
  • Next by Date: Re: What are the possible reasons the Finder would display an item "greyed out"?
  • Previous by thread: FSEvents errors after the removal of a watched directory
  • Next by thread: auto mounting a partition with nobrowse
  • Index(es):
    • Date
    • Thread