Comment 1 for bug 793768

Revision history for this message
Stefan Mai (ubuntu-iamnafets) wrote : Re: [Bug 793768] [NEW] Linux: Nautilus extension repeats "icon_overlay_context_options" query if a file is still downloading

It doesn't seem unreasonable to see this behavior within watched directories
(ie, if I'm downloading a file straight into Syncany). All the other
solutions I've seen (and part of the work I'll end up having to do for the
Windows port) caches these requests and only expires them in a reasonable
amount of time (ie 1-2 seconds). For the most part, wouldn't this solve the
problem? If not, does Dropbox have the same problem? Can we submit a patch
to them?

On Mon, Jun 6, 2011 at 2:55 PM, Philipp C. Heckel <<email address hidden>
> wrote:

> Public bug reported:
>
> If Nautilus is opened with a directory in which a file (e.g.
> "..iso.part) is still downloading, i.e. writing the file has not
> finished, the Nautilus extension sends "icon_overlay_context_options"
> requests to the Syncany client over and over again, firing up the CPU
> like crazy.
>
> This gives a log similar to this one:
>
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Received command 'icon_overlay_context_options'.
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > paths
> /home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > done
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options:
> icon_overlay_context_options: paths=
> '/home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part'
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options: Result is: options
> Browse Version History ...~Opens a new dialog and shows the different file
> versions visually.~versions
>
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Received command 'icon_overlay_context_options'.
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > paths
> /home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > done
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options:
> icon_overlay_context_options: paths=
> '/home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part'
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options: Result is: options
> Browse Version History ...~Opens a new dialog and shows the different file
> versions visually.~versions
>
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Received command 'icon_overlay_context_options'.
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > paths
> /home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > done
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options:
> icon_overlay_context_options: paths=
> '/home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part'
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options: Result is: options
> Browse Version History ...~Opens a new dialog and shows the different file
> versions visually.~versions
>
> This would normally classify as problem of the Nautilus extension (=
> Dropbox extension), but since we don't want to change that, this should
> (if possible) be handled by the Syncany client. A possible solution
> could be to ignore requests from directories outside root directories
> (is that done already? i forgot ..)
>
> Note: the directory in the log is NOT one of the watched directories!
>
> ** Affects: syncany
> Importance: Low
> Status: Confirmed
>
> --
> You received this bug notification because you are subscribed to
> Syncany.
> https://bugs.launchpad.net/bugs/793768
>
> Title:
> Linux: Nautilus extension repeats "icon_overlay_context_options" query
> if a file is still downloading
>
> Status in Syncany:
> Confirmed
>
> Bug description:
> If Nautilus is opened with a directory in which a file (e.g.
> "..iso.part) is still downloading, i.e. writing the file has not
> finished, the Nautilus extension sends "icon_overlay_context_options"
> requests to the Syncany client over and over again, firing up the CPU
> like crazy.
>
> This gives a log similar to this one:
>
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Received command 'icon_overlay_context_options'.
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > paths
> /home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > done
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options:
> icon_overlay_context_options: paths=
> '/home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part'
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options: Result is: options
> Browse Version History ...~Opens a new dialog and shows the different file
> versions visually.~versions
>
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Received command 'icon_overlay_context_options'.
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > paths
> /home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > done
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options:
> icon_overlay_context_options: paths=
> '/home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part'
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options: Result is: options
> Browse Version History ...~Opens a new dialog and shows the different file
> versions visually.~versions
>
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Received command 'icon_overlay_context_options'.
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > paths
> /home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : AbstractServer: Parameter: > done
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options:
> icon_overlay_context_options: paths=
> '/home/pheckel/Downloads/archlinux-2010.05-netinstall-i686.iso.part'
> 11-06-06 23:39:54 | platop | AbstractServer | AbstractWorker
> | INFO : Command icon_overlay_context_options: Result is: options
> Browse Version History ...~Opens a new dialog and shows the different file
> versions visually.~versions
>
> This would normally classify as problem of the Nautilus extension (=
> Dropbox extension), but since we don't want to change that, this
> should (if possible) be handled by the Syncany client. A possible
> solution could be to ignore requests from directories outside root
> directories (is that done already? i forgot ..)
>
> Note: the directory in the log is NOT one of the watched directories!
>