FinderSync getting stuck
- Dominant language
- C#
- Stars
- 2.9k
- Forks
- 576
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Hello,
I'm hopping to het some help with an issue I'm experiencing with a Finder extension. The call to the `RequestBadgeIdentifier` is received for every item inside the folder being observed, but after visiting some folders, going back to same folder, basically doing some navigation in finder, not a lot, the extension hangs.
It happens pretty consistent when opening a folder with a lot of files/folders on it and scrolling fast up/down, the calls for `RequestBadgeIdentifier` are coming sequential for the elements in the folder, until the hangs occurs.
Both using log4net and NSLog I was able to see the hang in between the two log lines above, this is driving me crazy, I have no idea how this could be happening, is the thread being suspended or something?
I also observed the hangs in other places where similar to this case, nothing was really happening in between the logging lines, for example just creating an object, hypothetically as simple as `new Person("Ivan", "Seattle")` where the constructor code is just doing the assignments.
It gets stuck after printing the first line, and **only print the second one after manually disabling the extension** in the preferences pane.
```
[Register ("FinderSync")]
public class FinderSync : FIFinderSync
{
...
public override void RequestBadgeIdentifier(NSUrl url)
{
LOG.Info($"{APP_NAME} - RequestBadgeIdentifier 1 path='{url?.Path}'");
var path = url?.Path;
LOG.Info($"{APP_NAME} - RequestBadgeIdentifier 2 path='{path}'");
...
}
...
}
```
Does anyone have an idea of what may be happening? What could be the reason for this? May I be doing something wrong?
Here is an example of a real logging, only removed the **APP_NAME** and added a fake **path**
```
[2019-08-29 23:17:34,087][thread6][INFO ][MacFinderExtension.FinderSync] - - RequestBadgeIdentifier 1 path='/path/to/file.docx'
...
[2019-08-29 23:22:35,185][thread6][INFO ][MacFinderExtension.FinderSync] - - RequestBadgeIdentifier 2 path='/path/to/file.docx'
```
Thank you in advance for your help.
```
$ mono --version
Mono JIT compiler version 6.0.0.327 (2019-02/f8ea05bddcb Sat Aug 10 18:47:12 EDT 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(600)
Suspend: hybrid
GC: sgen (concurrent by default)
```
```
Xamarin.Mac
Version: 5.14.0.114 (Visual Studio Professional)
Hash: c6691164
Branch: d16-2
Build date: 2019-07-29 15:54:06-0400
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.