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

emacs-mac 26.1 + spacemacs hangs installing org-plus-contrib #10784

Closed
tko opened this issue May 31, 2018 · 16 comments
Closed

emacs-mac 26.1 + spacemacs hangs installing org-plus-contrib #10784

tko opened this issue May 31, 2018 · 16 comments
Labels
- Bug tracker - Install Network Org stale marked as a stale issue/pr (usually by a bot)

Comments

@tko
Copy link
Contributor

tko commented May 31, 2018

Description :octocat:

On macos (High Sierra 10.13.4) fresh install of

  • railwaycat/emacs-mac (emacs-26.1-z-mac-7.0)
  • spacemacs develop (c7a103a)

hangs with beachball when trying to install org-plus-contrib

Observed originally when trying to upgrade (working) emacs-mac 25.3.3 installation but able to reproduce with fresh install.

Reproduction guide 🪲

  1. brew tap railwaycat/emacsmacport
  2. brew install emacs-mac
  3. git clone -b develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
  4. Start Emacs
  5. select defaults ('vim' and 'spacemacs') in the startup wizard

Observed behaviour: 👀 💔
Spacemacs starts installing 103 packages. Some, not many, succeed. While installing org-plus-contrib gets stuck showing the macos beachball of death and never finishes. Killing emacs and retrying doesn't make a difference, still gets stuck with org-plus-contrib.

Expected behaviour: ❤️ 😄
Spacemacs home buffer.

@CeleritasCelery
Copy link
Contributor

Might be related to #10251

@tko
Copy link
Contributor Author

tko commented Jun 1, 2018

I can confirm installing org-plus-contrib manually fixes that. Then it gets stuck beachballing with another package or two (counsel-projectile) but after a while the installation completes.

Trying from scratch again it appears that even though emacs is totally frozen and shows now updates while installing org-plus-contrib it does actually continue installing packages. After a while (10 minutes or so, guess I was too hasty with the beachball) the installation completes with error

An error occurred while installing org-plus-contrib (error: (args-out-of-range #<killed buffer> 3730433 4695646))

and *Messages*

(Spacemacs) --> installing package: org-plus-contrib@spacemacs-org... [9/103]
Contacting host: orgmode.org:443 [2 times]
Opening TLS connection to ‘orgmode.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/cert.pem -p 443 orgmode.org’...done
Opening TLS connection to ‘orgmode.org’...done
Parsing tar file...
Warning: premature EOF parsing tar file
Extracting org-plus-contrib-20180528/README_ELPA
Wrote /Users/tko/.emacs.d/elpa/26.1/develop/org-plus-contrib-20180528/README_ELPA
[...]
Wrote /Users/tko/.emacs.d/elpa/26.1/develop/org-plus-contrib-20180528/org-wl.el
Extracting org-plus-contrib-20180528/org.el
(Spacemacs) Error: 
An error occurred while installing org-plus-contrib (error: (args-out-of-range #<killed buffer> 3730433 4695646))

and the org-plus-contrib-20180528 directory remains but does not contain all the files.

@tko
Copy link
Contributor Author

tko commented Jun 1, 2018

An old issue about incomplete org tarball: #4000

After restoring my old layers I'm seeing similar 'premature EOF' error and long period of unresponsiveness when installing tide

@tko
Copy link
Contributor Author

tko commented Jun 2, 2018

I suspect the premature EOF is related to the package file sizes as org-plus-contrib and tide are two of the three largest packages according to spacelpa:

21752	fsharp-mode-20171021.431.tar
11352	tide-20171009.1142.tar
7120	org-plus-contrib-20171023.tar
6412	auctex-11.91.0.tar
5972	org-20171023.tar

large package size -> longer download time and more prone to network failures and/or timeouts.

And the bigger the package, the longer emacs remains totally unresponsive?

@syl20bnr
Copy link
Owner

syl20bnr commented Jun 4, 2018 via email

@bleggett
Copy link

I cannot reproduce this using railwaycat/emacs-mac (emacs-26.1-z-mac-7.0)

@bleggett
Copy link

bleggett commented Nov 14, 2018

Alright, I do see it happening now.

It eventually will unfreeze and complete the org install, it just freezes for a good several minutes.

@inflation
Copy link

Very interesting, manually package-install worked fine but spacemacs struggled downloading the package.

@razzmatazz
Copy link
Contributor

razzmatazz commented Feb 22, 2019

This appears to be related to railwaycat/emacs-mac.

The issue is not triggered when using regular emacs from homebrew.

@tko
Copy link
Contributor Author

tko commented Feb 22, 2019

@razzmatazz Agreed. I've been running newer version of emacs-mac (emacs-26.1-z-mac-7.4) for some time now and I've noticed org-plus-contrib and/or tide haven't been causing any problems with package updates lately.

@Compro-Prasad
Copy link
Contributor

Compro-Prasad commented Feb 28, 2019

@tko So, is it fixed? Can we close this?

@ivar
Copy link

ivar commented Mar 5, 2019

FWIW - I just got this today (March 4, 2019):
An error occurred while installing org-plus-contrib (error: (args-out-of-range #<killed buffer> 5586945 5638792))

on osx, using:

~/.emacs.d ❯❯❯ brew info emacs-mac                                                                                   develop
railwaycat/emacsmacport/emacs-mac: stable emacs-26.1-z-mac-7.4, HEAD
YAMAMOTO Mitsuharu's Mac port of GNU Emacs
https://www.gnu.org/software/emacs/
/usr/local/Cellar/emacs-mac/emacs-26.1-z-mac-7.3 (4,009 files, 115MB)
  Built from source on 2018-11-12 at 20:57:45
/usr/local/Cellar/emacs-mac/emacs-26.1-z-mac-7.4 (64B)
  Built from source
From: https://github.com/railwaycat/homebrew-emacsmacport/blob/master/Formula/emacs-mac.rb

@tko
Copy link
Contributor Author

tko commented Mar 5, 2019

@ivar if I'm reading the brew info output correctly it seems you have mac-7.3 currently installed. As I recall I had that version, and the update problems, for a long while (the cask was lagging behind) but once I updated to mac-7.4 the problems seem to have gone away.

@avit
Copy link
Contributor

avit commented Mar 19, 2019

I still have the problem with mac-7.4, I suspect a different cause. Could it be the package was manually installed, as described by others?

@tamasgal
Copy link

I have the same problem with Emacs 26.3 on macOS Catalina (10.15.2) during the installation of Doom Emacs. I tried it already 5 times and it hangs at the same point over and over:

░ tamasgal@silverbox:~ took 2m 15s
░ 23:48:03 255 > doom install
Installing Doom Emacs!

> Creating .rc/doom.d/
  ✓ Created .rc/doom.d/
! init.el already exists, skipping
! config.el already exists, skipping
! packages.el already exists, skipping
- Envvar file already exists, skipping
Installing plugins
> Installing & building packages...
  → Cloning org (for org-plus-contrib)...
x There was an unexpected error:
  Type: doom-package-error
  Message:
    Error with packages
  Data:
    "org-plus-contrib"
    (error "Failed to run \"git\"; see buffer *straight-process*")
    "Cloning into '/Users/tamasgal/.emacs.d/.local/straight/repos/org'...
    fatal: https://code.orgmode.org/bzg/org-mode.git/info/refs not valid: is this a git repository?
    "
  Straight output:
    Cloning into '/Users/tamasgal/.emacs.d/.local/straight/repos/org'...
    fatal: https://code.orgmode.org/bzg/org-mode.git/info/refs not valid: is this a git repository?

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Install Network Org stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

10 participants