This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Atom 1.7.0 beta0 crashes on startup under Arch Linux #11198
Copy link
Copy link
Closed
Description
Hi,
I have noticed that Atom 1.7.0-beta0 crashes on startup on Arch Linux. Despite this, Atom 1.6.0 installed on the same Arch Linux installation is working fine without issue. It does not matter if I start 1.7.0-beta0 from the command-line with atom-beta or from its .desktop file launcher. I have tried launching it with atom-beta --safe . and still it crashed on me. atom-beta returns the following output, if it helps:
/usr/bin/atom-beta: line 115: 14844 Segmentation fault (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
App load time: 434ms
Failed to get crash dump id.
Report Id:
Failed to get crash dump id.
Report Id: How did I install Atom 1.7.0 beta0? By running makepkg -si --noconfirm in this subdirectory of my PKGBUILD GitHub repository. In case I end up updating this GitHub repo, here is the present PKGBUILD I am using:
# Contributor: Matheus de Alcantara <[email protected]>
# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>
pkgname=atom-editor-beta
_pkgrel=0
_pkgver=1.7.0
pkgver="${_pkgver}.${_pkgrel}"
pkgrel=1
pkgdesc='Chrome-based text editor from GitHub - Beta Channel'
arch=('x86_64' 'i686')
url='https://github.com/atom/atom'
license=('MIT')
depends=('alsa-lib' 'gconf' 'gtk2' 'libgnome-keyring' 'libnotify' 'libxtst' 'nodejs' 'nss' 'python2')
optdepends=('gvfs: file deletion support')
makedepends=('git' 'npm')
conflicts=('atom-editor-beta-bin')
install=atom.install
source=("https://github.com/atom/atom/archive/v${_pkgver}-beta${_pkgrel}.tar.gz")
sha256sums=('d370f725a1b6fab0583f7d412f189a3c35603a7472a6566b188d0c2ae7e98bdf')
prepare() {
cd "$srcdir/atom-${_pkgver}-beta${_pkgrel}"
sed -i -e "/exception-reporting/d" \
-e "/metrics/d" package.json
sed -e "s/<%= description %>/$pkgdesc/" \
-e "s|<%= appName %>|Atom Beta|"\
-e "s|<%= installDir %>/share/<%= appFileName %>/atom|/usr/bin/atom-beta|"\
-e "s|<%= iconPath %>|atom-beta.png|"\
-e "s|GNOME;||" \
-e "s|text/plain;|application/javascript;application/json;application/postscript;application/x-csh;application/x-desktop;application/x-httpd-eruby;application/x-httpd-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/x-latex;application/x-msdos-program;application/x-ruby;application/x-sh;application/x-shellscript;application/x-sql;application/x-tcl;application/x-tex;application/xhtml+xml;application/xml;application/xml-dtd;application/xslt+xml;text/css;text/csv;text/html;text/plain;text/xml;text/xml-dtd;text/x-asm;text/x-bibtex;text/x-boo;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-c;text/x-chdr;text/x-csh;text/x-csrc;text/x-dsrc;text/x-diff;text/x-eiffel;text/x-fortran;text/x-go;text/x-haskell;text/x-java;text/x-java-source;text/x-lua;text/x-makefile;text/x-markdown;text/x-objc;text/x-pascal;text/x-perl;text/x-php;text/x-python;text/x-ruby;text/x-scala;text/x-scheme;text/x-sh;text/x-tcl;text/x-tex;text/x-vala;text/yaml;|" \
resources/linux/atom.desktop.in > resources/linux/atom-beta.desktop
}
build() {
cd "$srcdir/atom-${_pkgver}-beta${_pkgrel}"
export PYTHON=/usr/bin/python2
until ./script/build --build-dir "$srcdir/atom-build"; do :; done
}
package() {
cd "$srcdir/atom-${_pkgver}-beta${_pkgrel}"
script/grunt install --build-dir "$srcdir/atom-build" --install-dir "$pkgdir/usr"
if [[ -d "$pkgdir/usr/share/atom" ]]; then
mv "$pkgdir/usr/share/atom" "$pkgdir/usr/share/atom-beta"
fi
if [[ -f "$pkgdir/usr/bin/atom" ]]; then
mv "$pkgdir/usr/bin/atom" "$pkgdir/usr/bin/atom-beta"
fi
if [[ -d "$pkgdir/usr/share/atom-beta/resources/app/apm" ]]; then
mv "$pkgdir/usr/share/atom-beta/resources/app/apm" "$pkgdir/usr/share/atom-beta/resources/app/apm-beta"
fi
if [[ -f "$pkgdir/usr/share/atom-beta/resources/app/apm-beta/node_modules/.bin/apm" ]]; then
mv "$pkgdir/usr/share/atom-beta/resources/app/apm-beta/node_modules/.bin/apm" "$pkgdir/usr/share/atom-beta/resources/app/apm-beta/node_modules/.bin/apm-beta"
fi
if [[ -f "$pkgdir/usr/bin/apm" ]]; then
rm "$pkgdir/usr/bin/apm"
fi
ln -sf "${pkgdir}/usr/share/atom-beta/resources/app/apm-beta/node_modules/.bin/apm-beta" "${pkgdir}/usr/bin/apm-beta"
if [[ -f "$pkgdir/usr/share/applications/atom.desktop" ]]; then
rm "$pkgdir/usr/share/applications/atom.desktop"
fi
install -Dm644 resources/linux/atom-beta.desktop "$pkgdir/usr/share/applications/atom-beta.desktop"
install -Dm644 resources/app-icons/beta/png/1024.png "$pkgdir/usr/share/pixmaps/atom-beta.png"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}and here is the atom.install file:
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}Thanks for your time,
Brenton
Reacted by Alexander Tesfamichael, scippio, Younes El Alami, Danny Martini, Neros, Simone Accascina, Filip Weiss, William Di Luigi and Pascal Hartig
Activity
maisieccino commentedon Mar 18, 2016
I can reproduce in Atom 1.6 on Arch Linux. I'm using the
atom-editorpackage from the Arch User Repository.atom -freturns:Which isn't very helpful.
dmesgreports "error 4" inlibnode.so, and/tmp/Atom Crashesis empty.fusion809 commentedon Mar 18, 2016
@mbellgb Ah no your link was to
atom-editor-binwhich builds Atom from the Debian binary package provided by this repo. Theatom-editorPKGBUILD itself (which builds from source code) may still work, if it doesn't then maybe try installingatom-editorfrom the respective PKGBUILD in my GitHub repo. For me theatom-editorPKGBUILD in my GitHub repo builds without error and launches without error. If you want me to give you some code to copy-paste into your terminal in order to install it, here it is:git clone https://github.com/fusion809/PKGBUILDs cd PKGBUILDs/atom-editor makepkg -si --noconfirm(assuming you don't want makepkg to prompt you before installing, otherwise leave off the
--noconfirm).maisieccino commentedon Mar 18, 2016
@fusion809 Thanks for that! Getting some errors with your pkgbuild, though. Seems that
package.jsonis given permissions 000... is that a problem with my system or your config?fusion809 commentedon Mar 18, 2016
@mbellgb I don't get that problem, so it's a little odd. How about ya start an issue here at my PKGBUILDs GitHub repo and tell me the exact error? As I think this is a little off-topic for this repo, as it's more related to my PKGBUILD than to the source code of Atom.
maisieccino commentedon Mar 18, 2016
@fusion809 Will do, managed to get a workaround sorted though. Interested to see if this build crashes too, I have a feeling that it has to do with custom Atom packages..
fusion809 commentedon Mar 18, 2016
@mbellgb For me it isn't, that's why I tried to launch Atom with
atom-beta --safe .as it disregards any custom packages ya have installed.maisieccino commentedon Mar 18, 2016
@fusion809 Your
atom-editorPKGBUILD installs correctly for me but still fails, so it seems like an upstream problem.EDIT: I've found a workaround which works for me, which is deleting the
$HOME/.atomfolder. This isn't a great workaround as you will lose all of your settings and packages, the latter of which can be preserved by executingnpm list -b -i > $SOME_FILE, which will back up the list of packages you have installed.maisieccino commentedon Mar 18, 2016
@demhydraz I have the infinality-patched 2.6.2 release.
despairblue commentedon Mar 19, 2016
As additional info: Atom-editor-beta-bin segfaults as well.
despairblue commentedon Mar 19, 2016
Really seems to be a freetype issue. See the core dump
fusion809 commentedon Mar 19, 2016
@despairblue Downgrading freetype2 to 2.6.2 fixes the problem for me. So yeah, it seems like you're right.
despairblue commentedon Mar 19, 2016
I can confirm this. Weird.
13 remaining items
winstliu commentedon Mar 28, 2016
Please see #10983 for the PR that will fix this.
awnumar commentedon Mar 30, 2016
I can reproduce in 1.7.0-beta2 under Arch Linux.
nikmartin commentedon Mar 30, 2016
This is also still reproducible in 1.7.0-beta3
winstliu commentedon Mar 31, 2016
We're aware that this bug still exists - please refrain from commenting about how it's still reproducible, as that doesn't help us fix it any quicker.
tirrorex commentedon Mar 31, 2016
Same issue, can confirm on a new installed system that downloading a former version of freetype2 and installing it fixed the issue
fusion809 commentedon Mar 31, 2016
I've created a PKGBUILD for Arch with a patch built from pull 10983 that builds Atom 1.7.0-beta3 without this issue. Here it is:
and here is this patch:
as you can see it uses Electron 0.36.12 instead of 0.36.11 (per that pull request). Thought the latest bug fix release in the 0.36 series would be best. This PKGBUILD and its patch can also be found in my GitHub repo (beware, however, that I may update it with time) here. This PKGBUILD is designed so that it can be installed simultaneously with
atom-editor(i.e., the PKGBUILD that builds the latest stable release of Atom), without a problem.Mentioning for the sake of anyone that just wants a quick-fix for Arch Linux.
ShadOoW commentedon Apr 13, 2016
Alternative way of downgrading freetype2
packer -S downgradedowngrade freetype2select: freetype2-2.6.2-1-x86_64.pkg.tar.xz for me it was in my local.
then installed: aur/atom-editor-beta 1.7.0.beta5-1 from AUR
awnumar commentedon Apr 13, 2016
That's actually quite helpful. Thanks.
hexchain commentedon Apr 15, 2016
Just a note for Arch Linux users: Please stop downgrading freetype2. As all packages depending on freetype2 in the official repo are built against the newest version, downgrading may cause even bigger issue.
hexchain commentedon Apr 16, 2016
So you choose to take the risk of breaking some essential packages (or even your whole system) instead of a text editor. I'm not overstating anything, although it may work this time, downgrading is generally a bad idea on rolling distros like Arch.
Plus,
aur/atom-editorwas fixed in the first day.octopoulpe commentedon Apr 18, 2016
On Arch, I can confirm that upgrading electron fixes the problem. Instead of breaking your whole system downgrading freeType.
winstliu commentedon Apr 18, 2016
Please do not manually upgrade Electron - it's much safer to build Atom using the #11348 PR or by using the
atom-editorpackage. If you insist on upgrading Electron I would suggest only bumping to0.36.9to minimize unwanted changes.lock commentedon Apr 8, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!