desktop: Crash without doing anything

Describe the bug

Write a clear and concise description of what the bug is.

Version & OS

Version: 2.9.3 OS: Windows 10.0.22000

Steps to reproduce the behavior

  1. Open GitHub Desktop
  2. Just wait

Expected behavior

No crash should occurred.

Actual behavior

A crash occurred.

Screenshots

image

Logs

RangeError: Invalid string length
    at u.<anonymous> (file:///app/renderer.js:55:334937)
    at u.emit (events.js:315:20)
    at T (file:///app/renderer.js:19:96653)
    at x (file:///app/renderer.js:19:96483)
    at u.k.push (file:///app/renderer.js:19:97267)
    at u.push (file:///app/renderer.js:19:119820)
    at c (file:///app/renderer.js:6:250300)
    at u.a [as _transform] (file:///app/renderer.js:6:249986)
    at u._read (file:///app/renderer.js:19:120281)
    at u._write (file:///app/renderer.js:19:120120)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Well this is quite an old Issue, but I solved it: Squash and merge generates a commit with a description that includes all commits and all other squash and merge with their commits. This message gets with time so long it crashes the UI on load. Github Desktop loads the commit messages on startup in the background, so it crashes after some wait time and you get the Invalid String Length error. It even is crashing on other Git Clients like Fork if you click on the specific commit with your invalid string.

The solution is to save your local data and create a new repository with it. The git history of your old repository will be forever bugged, so you can delete it and never ever use squash and merge again!