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
Comments
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 The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue. |
Here you go! |
@woxi-sara Is it possible this only happens with a specific branch of a specific repo? The branch |
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. |
Hi @sergiou87 any updates on this? It is still blocking me (particularly on the sandbox branch). Thanks. |
@sergiou87 any updates? Thanks! |
@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. |
@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:
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. |
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.
The text was updated successfully, but these errors were encountered: