måndag 16 september 2024 kl. 17:19:35 UTC+2 skrev johan....@gmail.com: Hi Daniel,
Thanks for the help in the investigation. I configured TortoiseSVN to exclude wsl paths as below: [image: image.png] Then I ran sys internals while right clicking on a folder inside a working copy of WSL. I can see that "explorer.exe" is accessing the .svn db. It appears to try to get a lock of the DB but this fails because WSL file system does not allow locking. Explorer appears to try to get a lock around 400times during 15seconds. This matches with the duration of the "hanging" in explorer. I attach the log of process explorer to this email. Does this help you debug the issue? Thanks for checking. I was able to find the place in the code where TortoiseSVN is checking for wc.db. I think it is unreasonable to do it so I've proposed a change in the tortoise-dev group. Thanks for your patience while we look at this. Kind regards, Daniel Kind regards, Johan Laneau On Mon, Sep 16, 2024 at 1:54 PM Daniel Sahlberg via TortoiseSVN < torto...@googlegroups.com> wrote: söndag 15 september 2024 kl. 18:17:54 UTC+2 skrev johan....@gmail.com: Hi Daniel, We already tried using the two alias for WSL disk: \\wsl.localhost\* \\wsl$\* It does not help. On our systems the "\\wsl.localhost\*" setting does not give any difference. We also know that the "hanging" is only caused by TortoiseSVN because un-installing TortoiseSVN removes the hanging and re-installing puts the problem back. We also do not have TortoiseGIT installed. We also see it is caused by TortoiseSVN because it only happens when you right-click on a file/folder that is inside a SVN working copy. Right-clicking on other files inside WSL does not cause the hanging. Are there any traces we can make to investigate where the hanging is coming from? Have you tried Sysinternals Process Monitor? Filtering on the Explorer.exe PID might show if Explorer is accessing storage or doing other "funny" things when you right-click. In this case, TortoiseSVN is running as a part of explorer.exe (loaded through the TortoiseSVN.DLL). It sounds awfully strange that TortoiseSVN would try to access storage after actually figuring out that the path should be excluded. But if you would see, through Process Monitor, that Explorer.exe is accessing files within the .svn folder then we have some kind of evidence that the filtering doesn't work. Kind regards, Daniel Johan Laneau On Sun, Sep 15, 2024 at 4:02 PM Daniel Sahlberg via TortoiseSVN < torto...@googlegroups.com> wrote: tisdag 10 september 2024 kl. 16:30:30 UTC+2 skrev johan....@gmail.com: Hi, We are experiencing an issue with TortoiseSVN. When we right click in Windows explorer on a file or folder that is part of a SVN working copy that checked our under WSL, the explorer window hangs (between 15 seconds and 45 seconds) and only after that show the right click menu. The issue is not present when TortoiseSVN is not installed. We tested both versions 1.14.5 and 1.14.7 and have the same results. This issue was already described earlier in https://stackoverflow.com/questions/72317768/right-click-in-windows-on-a-svn-folder-shared-in-wsl-takes-forever-why. However, the solution mentioned there does not work for us. We can partially resolve the issue by adding "\\wsl$\*" to "settings", "general", "Context Menu", "Do not show the context menu for the following paths". When doing this, the duration of the hung state appears reduced to 15econds to 20seconds instead of more than 40seconds. I noticed that sometimes, Windows would redirect \\wsl$\XYZ to \\wsl.localhost\XYZ, so adding \\wsl$\* didn't help. I had to add \\wsl.localhost\* (as hinted in the above article) to get it working reliably. Do you have any other applications adding to the context menu that might account for the remaining seconds? (For example, TortoiseGit is adding a context menu much in the same way as TortoiseSVN, but I din't know how affected Git might be by limitations of the WSL subsystem. Note that we do not require TortoiseSVN to work on files located in the WSL drive. This appears to be blocked by an incompatibility of the WSL filesystem and SVN (see https://github.com/microsoft/WSL/issues/4689). We just want to avoid the hung state such that we can use the context menu for other actions on those files. Can you tell us how to configure the settings accordingly? Or fix this in TortoiseSVN itself? I'm guessing that this is mostly because TortoiseSVN tries to search for a working copy database (.svn folder) and accessing the WSL storage from Windows is not very performant (probably exaggerated by accessing the issues the SQLite database is having with Windows/WSL's limited support for file locking). The best solution is probably getting the setting above working. There is probably only little that can be done within TortoiseSVN. Kind regards, Daniel -- You received this message because you are subscribed to a topic in the Google Groups "TortoiseSVN" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/tortoisesvn/BjYlMU4Bg6A/unsubscribe. To unsubscribe from this group and all its topics, send an email to tortoisesvn...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/96ef5a73-1e2b-4839-966a-1e4550eb3e80n%40googlegroups.com <https://groups.google.com/d/msgid/tortoisesvn/96ef5a73-1e2b-4839-966a-1e4550eb3e80n%40googlegroups.com?utm_medium=email&utm_source=footer> . -- You received this message because you are subscribed to a topic in the Google Groups "TortoiseSVN" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/tortoisesvn/BjYlMU4Bg6A/unsubscribe. To unsubscribe from this group and all its topics, send an email to tortoisesvn...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/8313b6d9-7123-458d-b56c-566523076cbbn%40googlegroups.com <https://groups.google.com/d/msgid/tortoisesvn/8313b6d9-7123-458d-b56c-566523076cbbn%40googlegroups.com?utm_medium=email&utm_source=footer> . -- You received this message because you are subscribed to the Google Groups "TortoiseSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to tortoisesvn+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/e80bd037-e17f-41a8-936c-247ff195d7c5n%40googlegroups.com.