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

Re: TSCNCache.exe goes into infinite loop

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 07 Jul 2014 19:08:04 +0200

On 07.07.2014 15:49, ROUET, Jean Michel wrote:
> Hi Stefan,
>
> Thanks for your reply. Actually, the problem is still the same on a fresh checkout. So I don't think it's a wc.db corruption issue.
>
> From my debugging session, I can see that two threads are mainly active:
> - One looping in DirectoryWatcher::WorkerThread() (keep calling FolderCrawler->AddPathForUpdate() with the same path again and again)
>
> - The other one looping in CFolderCrawler::WorkerThread() => CCachedDirectory::RefreshStatus()
> Which Invalidate and refresh the same root folder again and again
>
> There should be some bugs there... CFolderCrawler thinks that some files where modified while they are not.

Please go to the settings dialog, advanced page.
Find the entry "DebugOutputString" and set the value to "true".
Then kill the TSVNCache.exe process.

Now, get dbgview from Microsoft:
http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
start it and record the outputs from TSVNCache.

I need the log file of those outputs. Maybe I can see more there.

> By the way, I want also to draw your attention on some hazardous codein TSVNPath.cpp (in UpdateAttributes())
> m_lastWriteTime = *(__int64*)&attribs.ftLastWriteTime;
>
> this is dangerous and Microsoft do not recommend that (see MSDN documentation on FILETIME structure http://msdn.microsoft.com/en-us/library/windows/desktop/ms724284%28v=vs.85%29.aspx):
> "Do not cast a pointer to a FILETIME structure to either a ULARGE_INTEGER* or __int64* value because it can cause alignment faults on 64-bit Windows."
> Although this may not be related to my problem.

I'll have a closer look.

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=3084698
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-07-07 19:07:48 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.