question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github desktop won't open (macOS 11.0.1)

See original GitHub issue

Describe the bug

The app won’t open since installing the latest update (4 Dec).

The app appears to be open in the dock and and menu bar, but the main window is invisible. When I click on “about Github Desktop” , I get the following empty window.

Screenshot 2020-12-04 at 15 24 21

I have access to the developer window, which shows an error:

Screenshot 2020-12-04 at 15 24 11

Version & OS

Latest macOS (11.0.1).

I’ve tried the latest version linked on https://github.com/desktop/desktop (beta and stable), as well as the latest brew github version: ==> Downloading https://desktop.githubusercontent.com/releases/2.5.6-e0dac138/GitHubDesktop.zip

Steps to reproduce the behavior

  1. Launch Github Desktop

Expected behavior

The main window should be visible but is not.

Logs

Logs contain confidential info so I cannot attach.

I’ve tried removing plist files.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
niikcommented, Dec 4, 2020

Hey @nbara

Yeah I’ve been using Desktop since pretty much the beginning 😃

That’s amazing ❤️

I have a good path forward on a fix for this but given that it’s late friday afternoon and that it looks like this is only affecting a rare subset of users who have been using the app for a very long time and who have also been using the beta version of the app I think we’re going to have to wait until early next week with a release to fix this.

I have two options for you, either you delete the ~/Library/Application\ Support/GitHub\ Desktop folder and start fresh (you’ll have to sign back in again and add your local repositories).

Or you take a backup copy of the same folder and copy and paste the following hack into the DevTools console of the app

indexedDB.open('Database', 70).onsuccess = event => {
  const db = event.target.result
  const tx = db.transaction(['gitHubRepositories'], 'readwrite')
  const objectStore = tx.objectStore('gitHubRepositories')

  objectStore.getAll().onsuccess = event => {
    const repos = event.target.result.filter(x => x.parentID === undefined)
    const putNext = () => {
      const repo = repos.shift()
      if (repo !== undefined) {
        console.log(repo)
        objectStore.put({ ...repo, parentID: null }).onsuccess = putNext
      }
    }
    putNext()
  }
}

That script should take care of finding that stray repository and fix it up. Once you’ve run it you can relaunch the app and it should work.

1reaction
nbaracommented, Dec 4, 2020

Yeah I’ve been using Desktop since pretty much the beginning 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github Desktop won't open: macOS High Sierra (10.13.6)
Github Desktop version 3.0.1 is not working on macOS High Sierra, as far as I know. You can go to website -> beta...
Read more >
GitHub Desktop not opening after update · Issue #14707
On my old iMac '11 computer (macOS High Sierra) I opened GitHub Desktop and everything works fine, but after rebooting for GitHub (3.0.1) ......
Read more >
Github Desktop doesn't open after clean Big Sur Installation
After reinstalling a fresh copy of Mac OS Big Sur Github Desktop will not open. The symbol shows up in the Dock, but...
Read more >
Unable to install Github Desktop on Mac OS · Issue #15053
The problem I downloaded GitHubDesktop-arm64.zip from official website and then unzipped it, but I cannot open Github Desktop.app.
Read more >
GitHubDesktop won't open after update #13952
Do you have a antivirus software that may be blocking it? I suggest you uninstall GitHub Desktop and reinstall the latest version and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found