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

App crashes on opening external file/cmd-clicking on it #8846

Closed
dacarver opened this issue Dec 30, 2019 · 10 comments · Fixed by #9063
Closed

App crashes on opening external file/cmd-clicking on it #8846

dacarver opened this issue Dec 30, 2019 · 10 comments · Fixed by #9063
Labels
electron Issues related to our use of Electron that may need updates to Electron or upstream fixes

Comments

@dacarver
Copy link

dacarver commented Dec 30, 2019

When attempting to open a file in an external editor, the app crashes. This is very inconsistent. Sometimes it's when opening in an external editor, sometimes it's just when command-clicking on a modified file. It is occurring frequently. The steps below are one example of when it occurred, although I could then not reproduce it using the same steps.

This frequent crashing started after updating to 2.2.4.

GitHub Desktop version 2.2.4
MacOS version 10.15.2

  1. Visual Studio Code set as the external editor in preferences
  2. Make a change in a Podfile.lock file
  3. Command-click on the file in the list and choose Open with Visual Studio Code
  4. Application crashes
@billygriffin
Copy link
Contributor

billygriffin commented Dec 30, 2019

Thanks @dacarver and sorry that’s happening for you! Would you mind sharing a log file from a day it’s occurring frequently? You can find them in “Help -> Show logs in Finder/Explorer” from the menu. Also, would you mind sharing your OS version? Thanks!

Edit: apologies, you already shared your OS version - my mistake! Logs might still be helpful though if you don’t mind.

@dacarver
Copy link
Author

@billygriffin Here is the log file from today when it happened a few times. Names and URLs have been replaced with --- for security reasons

https://www.dropbox.com/s/hiz5yp1qkzn6dlq/2019-12-30.desktop.production.log?dl=0

@tierninho
Copy link
Contributor

I do not see anything in the logs. Just to confirm, Desktop crashed and not Visual Studio Code? When Desktop crashes, it should show a window informing the user of the crash as implemented in #8405 Any chance you saw this? Regardless, i will try to reproduce soon.

@dacarver
Copy link
Author

Correct, it's definitely Github Desktop that is crashing. The only dialog box that comes up is the system one, to send the crash report to Apple. I'll see if I can get any information from that dialog and provide it (think it gives a stack trace and some other information).

@dacarver
Copy link
Author

dacarver commented Jan 3, 2020

Screen Shot 2020-01-03 at 8 59 11 AM

Here is the contents of the crash log that came up when this happened again. I went to "Open with default program" on a .swift file, which caused this.

https://www.dropbox.com/s/3mv0jmjryr2wv56/log.txt?dl=0

@tierninho
Copy link
Contributor

@niik Any insight on this is appreciated.

@niik niik added this to Backlog (unprioritized) in Desktop 2.3 release via automation Jan 7, 2020
@niik niik added the electron Issues related to our use of Electron that may need updates to Electron or upstream fixes label Jan 7, 2020
@niik
Copy link
Member

niik commented Jan 7, 2020

Hi @dacarver, thanks for opening this. My gut feeling (which isn't much to go by to be fair) tells me this is awfully similar to electron/electron#20737 which was fixed in electron/electron#21169 and backported to Electron 6.1.5.

We're currently aiming to upgrade the version of Electron we're using to 6.1.6 which hopefully resolves this issue. I'm gonna tentatively put this issue in the 2.3 project board and as soon as we ship a beta with Electron 6 we can see if this is still happening.

@thinkyhead
Copy link

I think this is probably due to an underlying Electron bug, because I quickly get crashes (macOS) when using the context menu to open a file in Sublime. But I've also gotten sudden crashes from doing other innocuous operations in the commit list.

@dacarver
Copy link
Author

dacarver commented Jan 31, 2020

I am still seeing this in version 2.3.1 (which is to be expected, since it's likely an Electron bug).

@billygriffin billygriffin added this to Backlog (unprioritized) in Desktop 2.4 release via automation Jan 31, 2020
@billygriffin billygriffin removed this from Backlog (unprioritized) in Desktop 2.3 release Jan 31, 2020
@outofambit outofambit mentioned this issue Feb 11, 2020
2 tasks
Desktop 2.4 release automation moved this from Backlog (unprioritized) to Done! Feb 11, 2020
@tierninho
Copy link
Contributor

Update: I was able to reproduce this bug in the current production version of Desktop v2.3.1 but not in our upcoming beta version v 2.3.2-beta2. This release contains the Electron fix mentioned here. Although this bug is not reproducible every time you right-click a menu item on a file in the Changes tab, it has so far not been experienced in the new beta build. We hope this is a permanent fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron Issues related to our use of Electron that may need updates to Electron or upstream fixes
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants