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

Error "The reference did not exist" while listing branches #5144

Open
krlvi opened this issue Oct 15, 2024 · 2 comments
Open

Error "The reference did not exist" while listing branches #5144

krlvi opened this issue Oct 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@krlvi
Copy link
Member

krlvi commented Oct 15, 2024

Often times this happens on application startup. It has happened to be but also has been reported by users on discord:
https://discord.com/channels/1060193121130000425/1073202153163857920/1293975411684016128
https://discord.com/channels/1060193121130000425/1206670506271707156/1295647968803815424

My hypothesis is that this is a race condition getting BranchListingDetails for branches while the app is fetching from the remote

  • upon opening the app, in the left sidebar with branches it is trying to show remote branches, and it is progressively fetching branch details for them
  • at the same time the app is doing a "fetch"
  • some number of those branches were already deleted at the remote, and after the fetch is complete, this is reflected locally too
  • so while the app is fetching branch details, it fails to fetch details for the ones that are now gone

NB: It appears that the error is harmless, but it can be quite noisy especially if there were many merged branches

image

@krlvi krlvi added the bug Something isn't working label Oct 15, 2024
@anirudhsama
Copy link

FYI it seems to happen on every app launch as well, even when there are no changes on remote. See recording: https://cln.sh/XTrhxKPj

@Byron
Copy link
Collaborator

Byron commented Oct 16, 2024

As one would expect, this is a gitoxide error, but the prefix seems to be added in the frontend, judging from the find_reference() calls in the backend.

This makes me think that the hex-hash prefix is the name of the branch, but I am not sure.

I could look into this if I could get a hint on how to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants