desktop: GitHub Desktop launches with white screen and unresponsive

Description

I opened the GitHub Desktop on Windows, and it got only white screen.

Version

GitHub Desktop version: 1.0.13

OS version: 10.0.16299.248

Steps to Reproduce

  1. Open the program normally
  2. It was frozen with white screen

Expected behavior: Display the application like normal

Actual behavior: The screen turned white and there is error in console.

Reproduces how often: Right now, it happens all the time.

Logs

2018-01-22T15:26:14.827Z - info: [ui] [AppStore] loading 2 repositories from store
2018-01-22T15:26:14.829Z - info: [ui] [AppStore] found account: Be1con (Kittanan Jamnongrit)
2018-01-22T15:26:18.155Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 3.158s)
2018-01-22T15:26:18.157Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 3.146s)
2018-01-22T15:26:18.158Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 3.166s)
2018-01-22T15:26:19.530Z - info: [ui] Executing getCommits: git log 2f724a20accb665a2d648a04f9fbba800843b933 --date=raw --max-count=1 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color -- (took 1.528s)
2018-01-22T15:26:23.528Z - info: [ui] Executing getCommits: git log origin/PrivateBranch..PrivateBranch --date=raw --max-count=100 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color -- (took 3.197s)
2018-01-22T15:26:23.712Z - info: [ui] Executing getWorkingDirectoryDiff: git diff HEAD --no-ext-diff --patch-with-raw -z --no-color -- ExerciseExpress/ExerciseExpress.Android/ExerciseExpress.Android.csproj (took 3.449s)
2018-01-22T15:26:23.712Z - info: [ui] Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 3.299s)
2018-01-22T15:26:23.712Z - info: [ui] Executing getRemotes: git remote -v (took 3.339s)
2018-01-22T15:26:25.234Z - info: [ui] launching: 1.0.11 (Windows 10.0.16299)
2018-01-22T15:26:53.533Z - info: [ui] [AppStore] adding repository at D:\My Documents\MUICT\Senior Project\REST to store
2018-01-22T15:27:00.158Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 8.769s)
2018-01-22T15:27:01.589Z - info: [ui] Executing isUsingLFS: git lfs track (took 8.027s)
2018-01-22T15:31:37.560Z - info: [ui] Executing push: git -c credential.helper= push origin master --set-upstream --progress (took 239.392s)
2018-01-22T15:31:51.569Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 14.008s)

Additional Information

index.html:1 Uncaught (in promise) ninner: nullmessage: "Transaction committed too early. See http://bit.ly/2kdckMn"name: "PrematureCommitError"_e: Error
    at w (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:202692)
    at new n (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:250254)
    at file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:223240
    at file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:209329
    at j (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:206549)
    at $ (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:207207)
    at X (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:207061)
    at <anonymous>stack: "Error↵    at w (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:202692)↵    at new n (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:250254)↵    at file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:223240↵    at file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:209329↵    at j (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:206549)↵    at $ (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:207207)↵    at X (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:207061)↵    at <anonymous>"__proto__: Objectconstructor: function Error()prepareStackTrace: function r(e,t)stackTraceLimit: 10arguments: nullcaller: nullcaptureStackTrace: function captureStackTrace()length: 1name: "Error"prototype: Object__proto__: function ()message: ""name: "Error"toString: function toString()arguments: nullcaller: nulllength: 0name: "toString"__proto__: function ()__proto__: Objectconstructor: function Object()arguments: nullassign: function assign()caller: nullcreate: function create()defineProperties: function defineProperties()defineProperty: function defineProperty()entries: function entries()freeze: function freeze()getOwnPropertyDescriptor: function getOwnPropertyDescriptor()getOwnPropertyDescriptors: function getOwnPropertyDescriptors()getOwnPropertyNames: function getOwnPropertyNames()getOwnPropertySymbols: function getOwnPropertySymbols()getPrototypeOf: function getPrototypeOf()is: function is()isExtensible: function isExtensible()isFrozen: function isFrozen()isSealed: function isSealed()keys: function keys()length: 1name: "Object"preventExtensions: function preventExtensions()prototype: Objectseal: function seal()setPrototypeOf: function setPrototypeOf()values: function values()__proto__: function ()[[FunctionLocation]]: <unknown>hasOwnProperty: function hasOwnProperty()isPrototypeOf: function isPrototypeOf()propertyIsEnumerable: function propertyIsEnumerable()toLocaleString: function toLocaleString()toString: function toString()valueOf: function valueOf()__defineGetter__: function __defineGetter__()__defineSetter__: function __defineSetter__()__lookupGetter__: function __lookupGetter__()__lookupSetter__: function __lookupSetter__()get __proto__: function __proto__()set __proto__: function __proto__()stack: "PrematureCommitError: Transaction committed too early. See http://bit.ly/2kdckMn↵    at file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:223240↵    at file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:209329↵    at j (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:206549)↵    at $ (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:207207)↵    at X (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:207061)↵    at <anonymous>"__proto__: Tconstructor: function n(e,n)stack: (...)__proto__: Errorconstructor: function T(e,t)arguments: [Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
    at Function.remoteFunction (<anonymous>:2:14)]caller: [Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
    at Function.remoteFunction (<anonymous>:2:14)]length: 2name: "T"prototype: Errorconstructor: function T(e,t)arguments: [Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
    at Function.remoteFunction (<anonymous>:2:14)]caller: [Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
    at Function.remoteFunction (<anonymous>:2:14)]length: 2name: "T"prototype: Errorconstructor: function T(e,t)stack: [Exception: TypeError: Cannot read property 'stack' of undefined
    at E (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:202725)
    at Error.get (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:250038)
    at Error.remoteFunction (<anonymous>:2:14)]toString: function ()arguments: [Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
    at Function.remoteFunction (<anonymous>:2:14)]caller: [Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
    at Function.remoteFunction (<anonymous>:2:14)]length: 0name: "toString"prototype: Objectconstructor: function ()arguments: (...)caller: (...)length: 0name: "toString"prototype: Object__proto__: function ()[[FunctionLocation]]: dexie.es.js:399__proto__: Object__proto__: function ()[[FunctionLocation]]: dexie.es.js:399get stack: function ()__proto__: Object__proto__: function ()[[FunctionLocation]]: dexie.es.js:382stack: (...)toString: function ()get stack: function ()__proto__: Object__proto__: function ()[[FunctionLocation]]: dexie.es.js:382stack: (...)toString: function ()get stack: function ()__proto__: Object

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 8
  • Comments: 92 (20 by maintainers)

Commits related to this issue

Most upvoted comments

@Be1con my psychic debugger thinks this is related to our IndexedDB usage:

index.html:1 Uncaught (in promise) ninner: nullmessage: "Transaction committed too early. See http://bit.ly/2kdckMn"name: "PrematureCommitError"e: Error
at w (file:///C:/Users/Kittanan/AppData/Local/GitHubDesktop/app-1.0.13/resources/app/renderer.js:5:202692)

It’s not clear whether this is a recoverable error, but as a workaround you can try this:

  • close Desktop (or whatever’s left of it)
  • remove all the files in %APPDATA%\GitHub Desktop\
  • launch Desktop again

This should put you into a clean slate again. Let me know if that addresses the issue.

I am just now having the same issue. If I start the client once, nothing happens. If I start it twice I get the white screen. This screen is reacting to F11 -> full screen and Alt+F4

Downloading and executing GitHubDesktopSetup.exe did not help.

screenshot_4

deleting the folder file__0.indexeddb.leveldb recovered the client for me: screenshot_3 And I had a new folder then.

deleting this new folder and replacing it with the previous file__0.indexeddb.leveldb put me back to the white screen. screenshot_5

So i tempered with deleting single files within the folder. deleting 000007.log is the jackpot. It was 1928 kb. screenshot_6

When I had back my Github Desktop Client my changes did not show up. I first had to switch my repository to something other and back to my project. Then my changes have been acknowledged. screenshot_7 The new 000011.log is now 25kb.

Can anyone confirm this? Otherwise I hope this information might help you guys.

Greetings

PS: I still have the faulty log file. But I dont know what credentials I could post here, so I dont do that.

Still an issue in 2022

I just closed desktop and went to re-open it. Now its a white screen. I been using git desktop for the better part of a year with no issues.

Windows 10.

Deleting all files in %APPDATA%/GitHub Desktop simply results in lockfile being created on application launch

image

EDIT: I managed to resolve this with process hacker without having to reinstall anything and also without losing all of my work.

Basically run Process Hacker and terminate all instances of github. Every single one. You’ll notice that process hacker will show GitHub Desktop programs running that task manager can’t seem to locate. You close these and relaunch desktop … everything will be back to normal

As if telling people to delete their data and reinstall is a solution. It took 4 years for somebody to figure this out?

Also , I would not close this issue until it has been fixed in the source code. Something is causing this to happen and needs to be resolved. For now my method will work as a temporary bandaid, but as it currently stands people require a google search to find this particular issue. Marking it as closed may give people the wrong impression. It also prevents it from being visible as a current issue

Yep, this is (still) an issue; currently using version 3.0.1 (x64)) on Windows 10. Using Process Hacker to terminate all instances of Github Desktop as recommended by user xCENTx fixed the problem for me as well (thank you!)

lmfaooo this is still an issue? just use the fucking terminal

I am encountering this issue (PrematureCommitError ) on macOS High Sierra (10.13.4) running what I assume to be the most recent release build. I am aware of the workaround (on macOS, deleting ~/Library/Application Support/Github Desktop/IndexedDB), however, I thought I would make aware that the issue does not appear to be isolated to the Windows platform.

The behavior on macOS is slightly different. Instead of presenting a white window, nothing is presented. In order to open a white window and get into the developer’s console, I typically click “About Github Desktop”.

@iAmWillShepherd have you encountered this error at all recently? I’m curious if we can mitigate this at all so that it doesn’t crash the app…

Same issue happened suddenly. When starting Github Desktop, it was opened a White Window, or sometimes not responsive at all (but the process was running in background). I had nothing in %APPDATA%/GitHub Desktop except logs.

I went in C:\Users\username\AppData\Local\GitHubDesktop, and found a folder named app-3.1.9-beta1 that was recently downloaded. (Did the app tried to use app-3.1.9-beta1, and it was maybe corrupted ?)

After killing the Github Desktop process, deleting this folder, I started Github Desktop and it was working again.

I can confirm that this worked for me. Thank you to @xCENTx for a workaround in the meantime!

@niik I would love to help! How would you suggest clicking on Help when the entire screen is white and doesn’t change?

My apologies, I didn’t think through that canned response before replying. On Windows you can find the logs at %AppData%\GitHub Desktop\logs. What I’m mostly interested in is whether you were actually running our beta channel prior to installing from desktop.github.com. If not it’s a very weird coincidence since we shipped an update last Friday to the beta channel which introduced a problem like this.

@niik I have been using the latest beta version as well. I see the same error message with the same stack trace as here.

Thank you! I have a fix ready to go in #11198 and I’ll hopefully have a beta release out in a few hours to fix that. Please subscribe to or keep an eye on #11192. You’ll likely have install the new beta version manually once we ship it.

This is happening again on most recent version (installed today from desktop.github.com)

@markgoho I can confirm this as well, I am seeing the same behaviour but I have never experienced it before.

This is happening again on most recent version (installed today from desktop.github.com)

  • close Desktop (or whatever’s left of it)
  • remove all the files in %APPDATA%\GitHub Desktop\
  • launch Desktop again

it’s working:👍

Greetings! For what it’s worth, I’m having the same issue when connecting to a Mac Mini on Sierra (10.12) via Apple Remote Desktop. The app window is empty. Clearing caches doesn’t resolve the issue, nor does emptying the Application Support folders mentioned above. However, when I ARD from a Macbook to an iMac running High Sierra and the same version of GitHub Desktop installed, GitHub desktop displays as expected. Maybe it’s specifically an issue with connecting to a headless Mac Mini?

Same issue here, also with a Mac Mini running High Sierra (10.13.6) accessed via Screen Sharing. Deleting ~/Library/Application Support/Github Desktop doesn’t resolve it, nor does trashing the Application, rebooting and reinstalling.

screen shot 2018-09-04 at 9 17 22 pm

@riomyers I just noticed that it appears to break shortly after. Perhaps clearing out the entire ~/Library/Application Support/Github Desktop/ will workaround it to a more permanent extent (though you will have to setup your account again)