-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
git-branchless CLI hangs at 100% CPU #555
Comments
Hi @steveluscher, thanks for reporting. Sorry for the inconvenience.
|
|
From the sample, it looks like the smartlog is not obviously stuck in an infinite loop, as it's looking up objects from the object database.
|
I checked just now, and it looks like the profiling instructions at https://github.com/arxanas/git-branchless/wiki/Runbook#with-tracing should work even if you interrupt the process with control-c. (Presumably some events at the end might be lost, but that should be fine.) Could you try generating a profile such as with You could also try the |
Here's an example trace that you can open in Perfetto or chrome://tracing for comparison purposes: For me, the majority of the time is spent in Also feel free to drop by the Discord server to chat about the performance issues. |
Here's the flamegraph from ~60s of hanging (interactive if downloaded and opened in Mac OS Preview). |
@steveluscher if you are okay with zipping and uploading the entire repo somewhere, I can download it and take a look. Do you use You can also try:
|
Oh, let me tell you. I use I'll zip it up and find a place to put it in a second. |
Here. Didn't touch the repo and tar'd it up: https://drive.google.com/file/d/1NmLIuJWPx_q1_3HowEy365v1MJj9_U2w/view |
|
|
Thanks for uploading. I was able to resolve the 100% CPU usage by unsetting the remote-tracking branch for I'm not yet sure why the upstream branch is causing the smartlog to hang indefinitely. As a workaround, you could unset the remote-tracking branch, or you could use an alternative branch like |
It looks like you have both |
Drat, I did |
Description of the bug
When I run
git sl
the CLI hangs indefinitely.Expected behavior
The smartlog should appear.
Actual behavior
git-branchless
process consumes 100% of one CPU coreps aux | grep git
looks like this:Version of
rustc
rustc 1.63.0-nightly (dc80ca78b 2022-06-21)
Automated bug report
git branchless bug-report
also hangs.Version of
git-branchless
git-branchless 0.4.0
Version of
git
git version 2.37.0 (Apple Git-136)
The text was updated successfully, but these errors were encountered: