Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCM hangs trying to see details of big SVN commit #1649

Closed
markkrj opened this issue May 6, 2021 · 7 comments · Fixed by #2010
Closed

SCM hangs trying to see details of big SVN commit #1649

markkrj opened this issue May 6, 2021 · 7 comments · Fixed by #2010
Labels
enhancement New feature or request pinned Pinnend issues are not touched by the stale bot

Comments

@markkrj
Copy link

markkrj commented May 6, 2021

Issue description

Clicking on details in a big SVN commit makes the browser hang and start draining memory.

image

Describe how to reproduce the bug

Create a subversion repository and commit an entire project tree, then try clicking on the commit details.

Describe your SCM-Manager setup

Clean SCM-Manager install on Ubuntu using APT.

Which operating system, browser and versions do you use?

SCM-Manager: 2.18.0
Ubuntu: 20.04

I think this has something to do with SCM trying to expand all the diffs in the commit. Imo, it would be better if it just showed modified file names (or even just some files, in case of big commit), so we can click on files we want to see the diff.

@pfeuffer
Copy link
Member

pfeuffer commented May 6, 2021

You're right. This is no issue of SVN but of the big diff. One can get the same result with Mercurial. For Git we introduced limited diffs some releases ago. Looks like we need something like this for SVN and Mercurial, too, to prevent this.

@pfeuffer pfeuffer added the enhancement New feature or request label May 6, 2021
@markkrj
Copy link
Author

markkrj commented May 7, 2021

Also, as branches/tags in svn are copies of trunk, I think it would be better to show it in SCM Manager as it shows in svn log -v, like:

r2 | marcos | 2021-05-06 22:28:45 -0300 (qui, 06 mai 2021) | 1 line
Changed paths:
   A /tags/r1 (from /trunk:1)

So we know that it is a copy of trunk in revision 1. No need to show diffs in this case.

@stale
Copy link

stale bot commented Jun 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue is stale and will be closed if no further activity occurs label Jun 6, 2021
@markkrj
Copy link
Author

markkrj commented Jun 7, 2021

Bad bot

@eheimbuch eheimbuch added the pinned Pinnend issues are not touched by the stale bot label Jun 8, 2021
@stale stale bot removed the stale Issue is stale and will be closed if no further activity occurs label Jun 8, 2021
@mcote-57
Copy link

mcote-57 commented Apr 6, 2022

Is this going to be fixed?
We are running into this issue I believe. It is causing trouble with code reviews in crucible/fisheye. They are not able to display diffs. It just times out. When I try to open the commit in scm-manager web it gives an out of memory error. This should be classified as a bug in my opinion.

@sdorra
Copy link
Member

sdorra commented Apr 11, 2022

@mcote-57 this issue is about the freeze of the browser, which tries to render a large commit. The problem is probably caused by the SyntaxHighlighter, which is blocking the main thread of the browser. We are working on this problem right now.

But this could not cause problems with crucible/fisheye, because they don't use the web interface.

@mcote-57
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned Pinnend issues are not touched by the stale bot
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants