-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Atom built from source (v1.34) crashes when opening a folder with git repository #18926
Comments
Thanks for the report! Hmmm, yeah I was able to reproduce after building from But if I install the 1.34.0 .deb release, it doesn't crash. Also confirmed that it seems to crash when opening a git repository (I opened the atom/atom I just cloned and created a new repository with a single test file). Edit: Just wanted to add that I reproduced on 16.04 like the OP but can't reproduce on Ubuntu 18.04 |
Since we don't know what's causing these crashes, our best bet might be to find a recent version of Atom where this problem does not occur, and then use
It'll probably take a while to run through the |
I love the smell of Thanks to That change upgrades Atom from Electron 2.0.7 to 2.0.9, which means that this regression is the result of upgrading Atom to either Electron 2.0.8 or 2.0.9. When I build atom/atom from source using Electron 2.0.7, I don't see these crashes. However, when I build atom/atom from source using Electron 2.0.8, I do see these crashes. This leads me to believe that one of the few changes in Electron 2.0.8 triggers these crashes. My guess is that electron/electron#13988 is the change that triggers these crashes, but that's just a guess. That pull request was intended to fix electron/electron#13972, and the Electron 2.0.8 release notes claim to fix that issue, but the issue is still open, and I see recent discussion of people still encountering the issue. I'll ping some folks on the Electron team to see if I can gather more insight on the status of that issue. |
It runs smoothly on Ubuntu 16.04 after downgrading to Electron 2.0.7 |
Thanks, @bogdandobanda. Because this crash is a result of upgrading from Electron 2.0.7 to 2.0.8, and because the latest Electron 2.x version still exhibits this crash, and because active development of Electron is focused on the 5.x series, I don't think we can expect an Electron 2.x fix for this issue. Instead, I think our best chance of overcoming this issue is to get Atom using a more modern version of Electron. The good news is that we have a pull request open for getting Atom running on Electron 3 (#18916), and when I build that branch from source on Ubuntu 16.04, I can no longer reproduce this crash. 😅 The less good news is that we still have quite a bit of work to do before that pull request can be merged. (See the "issues to resolve" section of the pull request body.) With that in mind, I think we can offer a few workarounds for now:
I understand that neither of these workarounds are ideal (sorry about that), but they're probably the best we can do with our limited resources in the near term. I hope that makes sense. |
This issue no longer exists, I will go ahead and close this |
Edit by @rsese to add extra notes
Reproduced on Ubuntu 16.04 but couldn't reproduce on 18.04.
On 16.04, used node 8.9.3 and npm 6.2.0:
Used the same node and npm versions on 18.04.
Description
Atom crashes when opening a folder containing a git repository
Steps to Reproduce
Expected behavior:
Actual behavior:
Crashes
Reproduces how often:
Always
Versions
OS: Ubuntu 16.04 LTS
building with:
Node: v8.9.3
Npm: v5.5.1
checks during build:
apm 2.1.3
npm 6.2.0
node 8.9.3 x64
python 2.7.12
git 2.7.4
after installing built package:
atom --version
Atom : 1.34.0
Electron: 2.0.16
Chrome : 61.0.3163.100
Node : 8.9.3
apm --version
apm 2.1.3
npm 6.2.0
node 8.9.3 x64
atom 1.34.0
python 2.7.12
git 2.7.4
Additional Information
Seems related to nsfw package.
Noticed that my build produces different(bigger) nsfw.node file than the one from official release (118K vs 102K)
./resources/app.asar.unpacked/node_modules/@atom/nsfw/build/Release
Instructions from manual were followed.
Crash log:
_usr_share_atom_atom.1000.zip
The text was updated successfully, but these errors were encountered: