Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Crashing on macOS 10.15 #20034

Closed
codenift opened this issue Oct 20, 2019 · 151 comments · Fixed by #20172
Closed

Crashing on macOS 10.15 #20034

codenift opened this issue Oct 20, 2019 · 151 comments · Fixed by #20172
Labels
d ⬆️ electron i ⬆️ mac Issues that occur on macOS but not on other platforms. v ⬇️

Comments

@codenift
Copy link

codenift commented Oct 20, 2019

Prerequisites

Description

Atom has been crashing on me ever since upgrading to macOS 10.15 (Catalina). Has never really crashed on me (that I can remember) before Catalina. Now it does it a few times daily. Randomly. Sometimes when deleting a folder or file, duplicating a file, renaming a file, moving a file, and toggling a directory in the file tree. I tried to look in the crash log, but there was none. This the only message I could find related to Atom:

MacBook-Air Atom[11027]: assertion failed: 19A602: libxpc.dylib + 86780 [2E9076CD-6C0E-38B6-8403-B2DDCE125FBF]: 0x89

Steps to Reproduce

Interacting with the file tree (toggle folders, moving a file, renaming, deleting, duplicating, trying to search in a directory, saving, ect..)

Expected behavior:

to interact with file tree without crashing the whole application, generate crash log in console

Actual behavior:

Atom will close at random times during the day only when interacting with file tree. A couple times it had closed when saving a file.

Reproduces how often:

It happens randomly, daily, I guess the more you use file tree you can expect more times.

Versions

Atom : 1.40.1
Electron: 3.1.10
Chrome : 66.0.3359.181
Node : 10.2.0


Update:

Here's a temporary patch that resolves the crashing, replaces the Electron context-menu with a HTML version:
Atom Menu Patch for Catalina
You can also search and install the package inside Atom.

@IdLevi1705
Copy link

I am having the same exact issue. Atom keeps crashing every 10 min or so. Sometimes when I change something in my code Atom suddenly crashes.

@afuno
Copy link

afuno commented Oct 20, 2019

Same problem. I play roulette when I want to rename, duplicate or do something else like that.

@laradji

This comment has been minimized.

@rsese
Copy link
Contributor

rsese commented Oct 21, 2019

Thanks for reaching out!

We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.

Thanks for understanding and meeting us half way 😀


Please share all the template details, the information is super helpful when looking at issues - for example, have you tried safe mode or any other debugging suggestions mentioned in the Prerequisites section? What specific version of Atom are you running?

Is everyone else that commented also running Catalina?

@rsese rsese added mac Issues that occur on macOS but not on other platforms. more-information-needed labels Oct 21, 2019
@rsese
Copy link
Contributor

rsese commented Oct 21, 2019

Found this LibreOffice issue that mentions the same assertion failed: 19A602: libxpc.dylib part of the error message:

https://bugs.documentfoundation.org/show_bug.cgi?id=126409

Looks like mention of notarizing applications on Catalina.

@ospaarmann
Copy link

I have the exact same issue. For me Atom crashes when I interact with the tree view. Not every time. But every now and then.

Atom: 1.40.1
Mac OS 10.15 (19A583)

@rsese
Copy link
Contributor

rsese commented Oct 22, 2019

Is that reproducible in safe mode @ospaarmann?

Also, can folks share your crash log?

https://flight-manual.atom.io/hacking-atom/sections/debugging/#find-crash-logs

Curious if everyone is seeing the same "assertion failed: 19A602: libxpc.dylib" error.

@NatachaH
Copy link

I have the same problem..

The bug doesn't happen every time, but it's happen more that once a day (this morning it's happen already 8 times... between 8am and 11am)

And there is no alerte message when Atom crash.

The bug started after I update my Mac to Catalina.
And I tried to re-install Atom but nothing changed.

Atom: 1.40.1
Mac: 10.15

Logs:
Oct 23 08:43:11 macbook-pro-de-natacha AGMService[745]: ProcessPath : /Applications/Atom.app/Contents/MacOS/Atom
Oct 23 08:52:58 macbook-pro-de-natacha Atom[964]: assertion failed: 19A602: libxpc.dylib + 86780 [2E9076CD-6C0E-38B6-8403-B2DDCE125FBF]: 0x89
Oct 23 08:53:31 macbook-pro-de-natacha com.apple.xpc.launchd[1] (com.github.atom.4252[964]): Service exited due to SIGSEGV | sent by exc handler[964]

@rsese
Copy link
Contributor

rsese commented Oct 23, 2019

Thanks for updating to add the issue template details @codenift 🙇

@codenift @NatachaH - just to clarify, the error messages you found were from Console.app?

@NatachaH
Copy link

@rsese yes on the Console.app

@codenift
Copy link
Author

Yes, found in the Console.app but not within a crash log. No Atom log that ends with .crash was generated as mentioned in the debugging guide. I found that error in system.log. I'm guessing it's related to the issue, also no error message after crashing.

@sergeyfilimonov
Copy link

sergeyfilimonov commented Oct 24, 2019

system.log for a crash that has just happened on trying to rename a file (macOS 10.15):

Oct 24 12:44:50 MacBook com.apple.xpc.launchd[1] (com.apple.xpc.launchd.oneshot.0x10000004.Atom[347]): Service exited due to SIGSEGV | sent by exc handler[347]
Oct 24 12:45:02 MacBook Atom[5308]: assertion failed: 19A602: libxpc.dylib + 86780 [2E9076CD-6C0E-38B6-8403-B2DDCE125FBF]: 0x89
Oct 24 12:45:31 MacBook com.apple.xpc.launchd[1] (com.apple.xpc.launchd.user.domain.501.100006.Aqua): com.github.atom.ShipIt (lint): Assuming EnablePressuredExit=false given EnableTransactions=false.
Oct 24 12:46:15 MacBook systemstats[98]: assertion failed: 19A602: systemstats + 672924 [84B69988-AB33-3F38-AA3B-B31D9FA23C20]: 0x5

@JohnSmall
Copy link

Yes, found in the Console.app but not within a crash log. No Atom log that ends with .crash was generated as mentioned in the debugging guide. I found that error in system.log. I'm guessing it's related to the issue, also no error message after crashing.

Same here. Atom has crashed more time than I care to count this morning. At random and without leaving a crash report in Mac Console.app.

@yboussard
Copy link

yboussard commented Oct 24, 2019

I am having the same exact issue. Atom keeps crashing every 10 min or so. Sometimes when I change something in my code Atom suddenly crashes.

Same ! exactly every 10 minutes ....

Atom : 1.41.0
Electron: 4.2.7
Chrome : 69.0.3497.128
Node : 10.11.0

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

crash report Console.app

@afuno
Copy link

afuno commented Oct 28, 2019

Actual for version 1.41

@wsabol
Copy link

wsabol commented Oct 29, 2019

I am getting this now. Atom won't even open a new editor window, I just get this that the editor has crashed
image

MacOS 10.14

@wsabol
Copy link

wsabol commented Oct 29, 2019

I updated atom to version 1.41.0 and now no problems.

@afuno
Copy link

afuno commented Oct 29, 2019

@wsabol It is not true. No need to make hasty conclusions. The problem described by people above exists in version 1.41. I personally observe it periodically in this version.

And it's not clear why you even wrote here if you have macOS 10.14.

@sergeyfilimonov
Copy link

sergeyfilimonov commented Oct 29, 2019

@wsabol

MacOS 10.14

This issue is about 10.15 and it seems that your error has nothing to do with it as you get a message no one got here.

The issue stills exists in Atom 1.41.

@lee-dohm
Copy link
Contributor

If someone can give us exact steps to reproduce this, along with a crash log, sys logs, etc, we can take a deeper look. As of right now, we don't have enough information here to dig into this.

@codenift
Copy link
Author

Well, I believe it's been pretty clear already. There's only one step to reproduce: Use Atom in Catalina and interact with the files.

It happens randomly, the more you're dealing with files such as moving, saving, renaming, duplicating, toggling directory, ect... It doesn't produce a crash log, that would have made it easier to figure out. The only error I found is the one I mentioned in the system. Some people have mentioned it happens about every 10 minutes, but I just get it randomly although I'm not changing files around as much and sometimes stay on a group of files I have already open. Sometimes it happens when I try to move a file, deleting or duplicating, but not every time I try to do it. Saving a file, but rarely. I will get several crashes in a day, and it happens only when interacting with the files.

@lee-dohm
Copy link
Contributor

I've been using Atom on Catalina for over two weeks and it hasn't crashed once. I attempted to reproduce this by renaming random files in the Tree View and everything worked flawlessly. So there's something more at work than simply Catalina and manipulating files. So if you can tell us exactly what operations you did before the next several crashes and if you can duplicate this while using Safe Mode, that would give us more information to go on.

@codenift
Copy link
Author

Atom was already at the latest version before updating to Catalina and it never crashed on me. The problems only started immediately after updating to Catalina. One of the first things I did after the update was open Catalina since I use a MacBook Air just for Atom and Xcode. Nothing was done before opening Atom, I didn't install anything new to the system or to Atom, I just simply started working on my projects and the crashing began randomly only when interacting with the file tree. It never happens during the time that I'm coding and testing (except for 2 or 3 times while saving). I already did Safe Mode, and it happened a few times as well. Also, it doesn't explain why there's no crash log created when everyone here has reported that Atom crashes without Atom generating one. The app just closes on you randomly.

@codenift
Copy link
Author

codenift commented Feb 8, 2020

Did you try the latest version of the "atom-menu-patch-for-catalina" package? A few of the issues the package had were fixed. Works perfectly fine for me and others, no crashes or any issues since I installed it. I'm sure an update will be available soon for Atom but for now this package works.

@patwalls
Copy link

patwalls commented Feb 8, 2020

atom-menu-patch-for-catalina fixed it, thank you! So nice to not be crashing again.

@davidroyo
Copy link

Still happens, when I right click on the left sidebar of atom. On a file or whatever. Fix it please, it's Atom, and Mac, c'mon

@davelaflam
Copy link

also crashes when you open Atom via command line, atom . Using the atom-menu-patch-for-catalina package only works if you open Atom and then File => Open. Waiting for the latest Electron release to push a fix for a production bug like this isn't following best practices.

@codenift
Copy link
Author

codenift commented Feb 11, 2020

What do you mean it doesn't open via command line? It works just fine for me, i have no issues with that. Maybe you have another extension causing this. Did you try opening it in safe mode? The "atom-menu-patch-for-catalina" is the best solution we have right now. I'm satisfied with this temporary fix. Keep in mind this is an open source application and it's free, so we can't expect it to be 1000% perfect or expect to have full support on it from Github. You're free to contribute.

@davelaflam
Copy link

davelaflam commented Feb 11, 2020

It will open via command line, however, it crashes within a handful of minutes. Please be mindful that what might work for one person, might not work for another. Collecting this information will help to provide test cases when a fix is provided to thoroughly QA the project.

@codenift
Copy link
Author

Ok, well I had it open via command line for 30 minutes so far, still no crash. Will keep it open to see if it happens.

@evgenyneu
Copy link

evgenyneu commented Feb 13, 2020

Atom still crashes after installing Catalina atom menu patch. I'm starting Atom from the terminal. Crashes are random, occur after interaction with the Tree View. Last time it crashed after I clicked on a directory and pressed F2 to rename it.

MacOS 10.15.3, Atom 1.44.0, Electron 4.2.7.

Update

I have not noticed any crashes since, after two days of full time work. So, the patch is working great for me.

@codenift
Copy link
Author

codenift commented Feb 13, 2020

Not sure why, there shouldn't be any difference opening Atom from terminal. All it's doing is launching the application. Are you seeing the html context menu with the "catalina atom menu patch" instead of the electron one? That looks like this:

Screen Shot 2020-02-13 at 10 35 15 AM

If not, could it be something else preventing it from running? Extensions? I had Atom opened for 2 days straight and using it heavily since the issue was mentioned, launched from terminal and still no crashes. At the time I opened this issue I had different versions of Atom and electron, but I know the issues were still there after updating and seems like they're still working on it. I do have the same versions you have, so far I've been headache-free with the patch.

@evgenyneu
Copy link

evgenyneu commented Feb 13, 2020

Are you seeing the html context menu with the "catalina atom menu patch" instead of the electron one?

Yes, the patch has changed the right-click menu appearance to a slightly uglier one. :)

so far I've been headache-free with the patch.

Thanks, I think the patch reduced the number of crashes for me, but definitely not to zero. I'll see how often it crashes today.

@codenift
Copy link
Author

codenift commented Feb 13, 2020

Yes, definitely uglier, but i rather have that than headaches. At one point I thought the crashes were done when removing these files:

~/Library/Preferences/com.github.atom.helper.plist
~/Library/Preferences/com.github.atom.plist

...at least some of us thought, it felt like we were getting less crashes than before, but I kept getting more all up until the patch was available. So I knew deleting the files wasn't really the solution to getting rid of them completely, but perhaps those files need to be deleted before using the patch. Not sure. I guess you can try if you haven't. I've been weeks without a single crash. Did you try disabling all the third party extensions except the "catalina atom menu patch"?

@plasticmik
Copy link

I got 1.44.0 and the same problem: randomly, when I try to rename a file or a folder or create a new one
or a new file, it closes...😢

@castorpm
Copy link

castorpm commented Mar 4, 2020

I got 1.44.0 and the same problem: randomly, when I try to rename a file or a folder or create a new one
or a new file, it closes...😢

Check out https://github.com/facebookexperimental/atom-menu-patch-for-catalina
Seems to be the working "fix" for the time being

@janbiedermann
Copy link

Still crashing with 1.45.
Providing Full Disk Access to Atom as described above seems to make it work.

@sethfloydjr
Copy link

Installing the https://atom.io/packages/atom-menu-patch-for-catalina package fixed this for me.

@afuno
Copy link

afuno commented Mar 16, 2020

@darangi The problem is not resolved on the Atom side. Why is the issue closed?

@darangi darangi reopened this Mar 16, 2020
@lkashef
Copy link
Contributor

lkashef commented Mar 19, 2020

Hey @afuno the issue has been resolved by upgrading to Electron 5.0.12 but it's still in Atom Nightly and it will take it's course to go from Nightly to Beta then Stable.

You can get the version running on Electron 5.0.12, where this issue got resolved by downloading the latest nightly version.

Let us know folks if you got the chance to test it out 🙂

@jouni
Copy link

jouni commented Mar 19, 2020

Taking it for a spin – will report if it still crashes.

Update: so far so good – no crashes 👍

@darangi darangi closed this as completed Mar 20, 2020
@luiscobot
Copy link

@alonpr right now only the nightly version has electron 5.0.12, because nightly version of atom get every commit

This commit resolve the issue: #20172

But there is a process to go from nightly - to beta - to stable.

Here you can see the beta and stable changelog: https://github.com/atom/atom/releases

@michael-crawford
Copy link

Thought I'd add my voice to make committers aware this has become a serious annoyance for me too. For the last few months, but seemingly more often in the last few weeks, Atom turned from being a very stable application that would just never crash, to one that crashes multiple times per day. It is now the most unstable application I have worked with in years. Please do something to fix this.

I don't seem to lose any work when this happens, I just need to restart, otherwise I would be a lot more upset about how often this is now happening. Especially after I've been working for more than a few minutes after the last post-crash restart, every time I go to duplicate a file, or rename a file, it seems there's a 50% chance of a crash. It is that frequent, multiple times per day.

I'm not sure what happened to turn this from a very stable application into one that has become so crashy - please be aware of this problem and do something to fix it. The issue seems to be concentrated in any type of file-related operation, such as moving, duplicating or renaming a file.

On MacOS 10.15.3, Atom 1.45.0. I am also using BitDefender AntiVirus for Mac 8.1.6.3 - which may be something you should look at. I know if I try to rename or move certain files directly in the OS which Bit Defender thinks should be protected, I get a warning dialog asking for Administrator permissions before this is allowed. This should not be the case with files owned by me within my own home directory, however.

@lkashef
Copy link
Contributor

lkashef commented Apr 10, 2020

Thanks for reaching out @michael-crawford.

It sounds like you might be running into the same bug described in this issue. If so, the issue has been resolved by upgrading to Electron 5.0.12 but it’s still in Atom Nightly and it will take it’s course to go from Nightly to Beta then Stable.

You can get the version running on Electron 5.0.12, where this issue got resolved by downloading the latest nightly version.

If you’re running into something different, please open a new issue and completely fill out the template so that we can get to the bottom of things most efficiently.

@atom atom locked as resolved and limited conversation to collaborators Apr 10, 2020
@lee-dohm lee-dohm unpinned this issue Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
d ⬆️ electron i ⬆️ mac Issues that occur on macOS but not on other platforms. v ⬇️
Projects
None yet
Development

Successfully merging a pull request may close this issue.