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

Can't open Github Desktop due to "unrecoverable error" #18511

Open
woxi-sara opened this issue Apr 24, 2024 · 8 comments
Open

Can't open Github Desktop due to "unrecoverable error" #18511

woxi-sara opened this issue Apr 24, 2024 · 8 comments
Labels
more-info-needed The submitter needs to provide more information about the issue

Comments

@woxi-sara
Copy link

woxi-sara commented Apr 24, 2024

The problem

Starting suddely this afternoon, I can no long open let alone use Desktop. Once it loads, I get this error message:

RangeError: Invalid string length
at u. (file:///app/renderer.js:2:1477037)
at u.emit (node:events:517:28)
at x (file:///app/renderer.js:2:634365)
at R (file:///app/renderer.js:2:634195)
at k.push (file:///app/renderer.js:2:634979)
at u.push (file:///app/renderer.js:2:644799)
at c (file:///app/renderer.js:2:663595)
at u.a [as _transform] (file:///app/renderer.js:2:663281)
at u._read (file:///app/renderer.js:2:645260)
at u._write (file:///app/renderer.js:2:645099)

I've been using squash and merge pretty freely lately and I've read that this issue could be due to the length of those squashed commit messages. However, the issue persists across all repositories.

@woxi-sara woxi-sara reopened this Apr 24, 2024
@steveward
Copy link
Member

Thanks for the report @woxi-sara! Could you upload the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs.

The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

@steveward steveward added the more-info-needed The submitter needs to provide more information about the issue label Apr 24, 2024
@woxi-sara
Copy link
Author

Here you go!
2024-04-24.desktop.production.log

@github-actions github-actions bot removed the more-info-needed The submitter needs to provide more information about the issue label Apr 25, 2024
@sergiou87
Copy link
Member

@woxi-sara Is it possible this only happens with a specific branch of a specific repo? The branch sandbox of the repo prediction-os maybe. I think it breaks when running git log origin/sandbox..sandbox --date=raw --max-count=100 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- on that branch 🤔

@sergiou87 sergiou87 added the more-info-needed The submitter needs to provide more information about the issue label Apr 26, 2024
@woxi-sara
Copy link
Author

It does seem to be most persistent on the sandbox branch. But I have also gotten that error on production, and on my migration-functions repo as well.

@github-actions github-actions bot removed the more-info-needed The submitter needs to provide more information about the issue label Apr 26, 2024
@woxi-sara
Copy link
Author

Hi @sergiou87 any updates on this? It is still blocking me (particularly on the sandbox branch). Thanks.

@woxi-sara
Copy link
Author

@sergiou87 any updates? Thanks!

@steveward
Copy link
Member

@woxi-sara this has been previously reported in #15355 (the user was using squash and merge there as well). I'll bring this up for discussion in our team sync but at this time I don't have a good workaround for getting this working in GitHub Desktop. I'll take a look at reproducing it.

@steveward
Copy link
Member

@woxi-sara we discussed this in our team sync this week and are looking into ways to prevent the app from crashing when this error occurs.

There are a couple of workarounds you can use to see if that gets things working again in GitHub Desktop. If the problematic squashed commit is the most recent commit in your repository, you can amend the commit to change the commit message. See this article.. If the commit has already been pushed you will need to use the command line, as GitHub Desktop does not allow you to amend a commit that has been pushed to the remote repository. You will need to open the repository in the command line and run the following command:

git commit --amend -m "your new commit message"

If the problematic commit is further back in your repository's history you can use the rebase command to modify the commit message on the command line. There's a helpful guide here that walks through how to do that.

If you run into any issues with those solutions (or if they don't resolve the issue), let us know.

@steveward steveward added the more-info-needed The submitter needs to provide more information about the issue label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-needed The submitter needs to provide more information about the issue
Projects
None yet
Development

No branches or pull requests

3 participants