[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Thread leak in shell extension (Windows 10)

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 1 May 2017 20:54:56 +0200

On 01.05.2017 20:08, Martin Glass wrote:
> It appears to me that there is a thread leak in the Explorer shell extension under Windows 10 (64-bit).
>
> Version information:
> TortoiseSVN 1.9.5, Build 27581 - 64 Bit , 2016/11/26 09:18:58
> Subversion 1.9.5, -release
> apr 1.5.2
> apr-util 1.5.4
> serf 1.3.9
> OpenSSL 1.0.2j 26 Sep 2016
> zlib 1.2.8
> SQLite 3.14.1
>
> I'm using the Windows 10 task manager (Details tab) to show the thread count for explorer.exe. Every time I right-click on a folder or file, the thread count increases by 2. Whether I cancel the context menu, or select an option (TortoiseSVN or otherwise), the thread count generally does not decrease, even after an extended period of time. After doing a lot of TortoiseSVN work, I have observed an explorer thread count of over 2600. This makes most other applications noticeably slower, especially in UI responsiveness.
>
> In observing the explorer.exe process using Process Monitor (Sysinternals), the thread IDs shown on the ThreadCreate function calls never show a corresponding ThreadClose call. These same ThreadCreate function calls are immediately followed by calls (CreateFile) to read "C:\Program Files\TortoiseSVN\bin\dbghelp.dll", which is why it appears that the leaked threads are associated with TortoiseSVN.
>
> Restarting explorer.exe appears to be the only workaround.

The TortoiseSVN shell extension does not create any threads. Not one
single thread is created in the shell extension part.

No idea where this thread leak comes from.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3233220
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2017-05-01 21:04:28 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.