SVN Update is Extremely Slow
I recently added an SVN repository to an extant project of mine. (A local repository accessed via “file:///”, in case it's relevant.)
This seems to work as desired--save that startup and shutdown have become extremely slow. “Walk away from the computer for a while” slow. Furthermore, they bring the computer to a crawl. (It's even seemed to result in a few cases of PyCharm crashing--I'd guess for lack of resources.)
It's hard to say what's happening on shutdown, but on startup I can see that it seems to be spending the time on performing an SVN update.
I've looked around the internet a bit, but haven't yet found a solution. Likewise, I've tried updating PyCharm (from 2023.3.3, I think that it was, to 2024.1.1), likewise without apparent effect on the problem.
(Regarding looking online, I did see this thread, but the solution given there didn't seem to work for me. Granted that this was done with the older version of PyCharm. I also don't know whether there's perhaps more than one copy of the file referenced there; perhaps I edited the wrong one?)
Does anyone have any suggestions as to how to fix this? I really do want to keep the SVN repository--it's far more convenient than the manual backups that I was doing for a while beforehand (long story). But if it's going to make starting the IDE so very slow, and if it's going to make the computer less usable, then I'd want either to drop the repository--or to find a solution.
Please sign in to leave a comment.
Hi Arsthaumaturgis ,
please provide the following data for further analysis:
- Add the following following categories for debug logging (Help - Diagnostic Tools - Debug Log Settings…)
- Reproduce the issue and collect actual debug logs (Help | Collect Logs and Diagnostic Data)
- Upload the logs to https://uploads.services.jetbrains.com and let me know the upload ID.
Hi,
Sorry for the delay! By the time that I saw your message, I had already worked around the problem by removing the SVN directory-mapping, and I think just didn't want to slow everything down to a crawl again until I came back to things this morning (as it is for me now).
To be clear, I do still want to get this fixed properly, as I do rather want to have SVN for version-control! I just also wanted to work in the meanwhile!
Anyway, I've done as requested--presuming that I've uploaded the correct file--and you should find the upload at this ID: 2024_05_23_U5mgbc823dc13YduwJ97m2
Arsthaumaturgis , thank you for the logs!
I see following errors:
- I am wondering if you can run this command from system terminal without errors?
svn --config-dir /home/thaumaturge/.subversion st /home/thaumaturge/Documents/My Game Projects/FantasySpaceShooter --depth infinity --no-ignore --xml
- Would you please share the screenshot of File | Settings | Version Control | Subversion as well as File | Settings | Version Control | Subversion | SSH ?
- Please enable the following categories in debug logs (Help - Diagnostic Tools - Debug Log Settings...), then reproduce the issue and gather logs once again:
When I do so, I see the following errors:
I note that it appears to be tripping over the spaces in the path.
Now, under most circumstances I might deal with this by either escaping the spaces or putting the entire path between inverted commas.
And indeed, when I escape the spaces in the above command, it appears to run without error.
Is there a way of doing similarly in PyCharm…?
Sure!
(Also: Nice drag-and-drop support in this forum! ^_^)
Done!
You should find the new logs at the following ID: 2024_05_23_K3WwduV4fAQfxPZF6ZTou5
Thank you for the logs!
It looks like continuous VCS history operations are running in the background. This appears to be a known issue IJPL-90049. Does the workaround suggested in this comment help in any way?
Please also remove all debug options from Help - Diagnostic Tools - Debug Log Settings…
I presume that I found the right folders--I had multiple, due to having had multiple versions of PyCharm over the years, and they weren't in the place indicated in the comment, likely due to my OS being Ubuntu Linux.
If so, then… I'm afraid that it doesn't seem to have helped, at least as far as I've noticed.
(I haven't done a full timing of the process, either before or after, as it takes long enough that I'm inclined to do other things until it's done. In this case I waited for about ten minutes, then once again removed the SVN directory-mapping and closed the IDE.)
(For the sake of clarity, let me affirm that I did remove the debug options, too.)
Does
svn cleanup
from system terminal as suggested in the mentioned comment change something on this behavior?Ah, I think that may have done it! ^_^
Okay, so, going forward: Should I be expecting to clear out that cache often…? Or should I expect this to be a one-time thing…?
Arsthaumaturgis , thank you for the update!
I am afraid, there is no definitive answer, you might need to run it depending on the state of working copy.
Fair enough!
Thank you for the answer, and thank you for your help! It really is appreciated! ^_^
I think that we can consider this closed now! ^_^