Shell Resource Leaks
Posted: Wed Jul 17, 2019 4:56 pm
Not entirely sure what's going on here, but when using the context menu on files, each time Everything.exe seems to span at least one new thread, and that one does not go away. Also, there is a bunch of new handles each time that won't go away either. And I think RuntimeBrowser.exe leaks a few resources too.
I saw a few hundred threads in ProcessHacker, but when I tried to get a stack trace, but Everything.exe just died before PH was done downloading symbols. Didn't yet try to attach a real debugger.
This will eventually lead to some adverse effects:
I do not see any resource leaks from other processes displaying the shell file context menu, nor from processes using the thumbnail shell service. This to me suggests the problem lies with Everything and not any of the (few) shell context/thumbnail/WIC handlers I have installed.
Magic Eight Ball points to a missing ->Release() somewhere, but it's just a Magic Eight Ball, what does it know...
Latest Win10 Pro (running a HiDPI RDC session)
Latest Everything 1.4.935
I saw a few hundred threads in ProcessHacker, but when I tried to get a stack trace, but Everything.exe just died before PH was done downloading symbols. Didn't yet try to attach a real debugger.
This will eventually lead to some adverse effects:
- System might run out of handles (unlikely, but not impossible)
- When in thumbnail mode, it may lock the thumbcache system files (via thumbcache.dll via shell) which means all programs incl first and foremost E.g. Explorer will not fail to generate thumbnails. And Everything itself will also fail to generate thumbnails
- Spurious crashes of Everything.exe (the userland not the service)
- Everything.exe may hang when closing an Everything window
- Everything.exe may hang-on-exit (related to above, I'd guess)
I do not see any resource leaks from other processes displaying the shell file context menu, nor from processes using the thumbnail shell service. This to me suggests the problem lies with Everything and not any of the (few) shell context/thumbnail/WIC handlers I have installed.
Magic Eight Ball points to a missing ->Release() somewhere, but it's just a Magic Eight Ball, what does it know...
Latest Win10 Pro (running a HiDPI RDC session)
Latest Everything 1.4.935