Opened 6 months ago

Last modified 8 weeks ago

#57217 assigned defect

emacs-app does not render

Reported by: michipili (Michael Grünewald) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: upstream mojave Cc: hnarayanan (Harish Narayanan), svalgaard (Jens Svalgaard Kohrt), cjones051073 (Chris Jones), dplr, rlhamil, RafalLukawiecki (Rafal Lukawiecki), d-lamb (Derek Lamb), iqgrande, danchr (Dan Villiom Podlaski Christiansen)
Port: emacs-app

Description

When starting emacs-app on Mojave, the content of the frame (OS-X window displaying Emacs) is not rendered. Instead I see a blank window. The editor is reactive, however, and it is possible to quit by closing the window, using the menu bar or the key combination C-x C-c.

When started directly as /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs the program emits an error:

% /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
2018-10-02 19:56:08.859 Emacs[731:8025] Failed to initialize color list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver}

The error is known upstream and discussed on emacs-devel: https://lists.gnu.org/archive/html/emacs-devel/2018-09/msg00900.html

Even if we just sit and wait for emacs upstream to fix the issue, that ticket is useful to point other MacPorts users to the emacs-devel discussion.

I am running emacs-app @26.1_3 on Mojave. (MacPorts 2.5.3 installed from sources.)

Change History (22)

comment:1 Changed 6 months ago by mf2k (Frank Schima)

In the future, please fill in the Port field and add the port maintainer(s) to Cc (port info --maintainers emacs-app), if any.

comment:2 Changed 6 months ago by mf2k (Frank Schima)

Owner: set to drkp
Port: emacs-app added
Status: newassigned

comment:3 Changed 6 months ago by mf2k (Frank Schima)

Keywords: mojave added

comment:4 Changed 6 months ago by stanimura

comment:5 Changed 5 months ago by hnarayanan (Harish Narayanan)

Cc: hnarayanan added

comment:6 Changed 5 months ago by svalgaard (Jens Svalgaard Kohrt)

Cc: svalgaard added

comment:7 Changed 5 months ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:8 Changed 5 months ago by dplr

Cc: dplr added

comment:9 Changed 5 months ago by cjones051073 (Chris Jones)

I have just submitted

https://github.com/macports/macports-ports/pull/2783

This updates the emacs-devel and emacs-add-devel ports to use the above git commit that fixes the issue. I can confirm it fixes the issues for me.

The devel ports provide a work around until upstream makes a new release with the fix included, at which point the main ports can be updated.

comment:10 Changed 5 months ago by rlhamil

Cc: rlhamil added

comment:11 Changed 5 months ago by gknauth (Geoffrey Knauth)

For people reading this who aren't MacPorts developers, this is what got me going (for now):

sudo port uninstall emacs-app
sudo port install emacs-app-devel

comment:12 Changed 5 months ago by VBoudry

Both above option end up in an error:

dyld: Library not loaded: /opt/local/lib/libgmp.10.dylib
  Referenced from: /opt/local/lib/libgnutls.30.dylib
  Reason: Incompatible library version: libgnutls.30.dylib requires version 14.0.0 or later, but libgmp.10.dylib provides version 13.0.0

Any hint to solve this ?

comment:13 Changed 5 months ago by cjones051073 (Chris Jones)

Have you by chance upgraded your OS to macOS 10.14 but not correctly followed the migration guide ?

https://trac.macports.org/wiki/Migration

comment:14 Changed 5 months ago by michipili (Michael Grünewald)

I can confirm using the current emacs-app-devel port solves the issue on my system. (Fresh source install of MacPorts after upgrade.)

comment:15 Changed 4 months ago by RafalLukawiecki (Rafal Lukawiecki)

Cc: RafalLukawiecki added

comment:16 Changed 4 months ago by d-lamb (Derek Lamb)

Cc: d-lamb added

The suggested temporary fix of installing the emacs-app-devel port instead of emacs-app does solve the immediate problem of emacs not rendering. That is good. However when starting emacs-app from the command line the OP's error about the "color list unarchiver" is still emitted on the terminal. The resolution of this bug in emacs-app should verify that the error is no longer printed in the terminal.

Last edited 4 months ago by d-lamb (Derek Lamb) (previous) (diff)

comment:17 in reply to:  11 Changed 3 months ago by civicus030 (Denis Domínguez)

Thank you very much. This has worked for me.

Replying to gknauth:

For people reading this who aren't MacPorts developers, this is what got me going (for now):

sudo port uninstall emacs-app
sudo port install emacs-app-devel

comment:18 Changed 3 months ago by iqgrande

Cc: iqgrande added

comment:19 Changed 2 months ago by danchr (Dan Villiom Podlaski Christiansen)

Cc: danchr added

comment:20 Changed 2 months ago by iqgrande

Overall I have noticed that port emacs-app-devel is not as stable as I have grown accustomed to emacs-app being (I use Spacemacs). It crashes far more often and there was other awkward behavior. I am trying emacs-mac-app right now to see if it is better; so far it would appear so. In case others had the same issues, I thought I'd point this out until GNU Emacs formally releases their next stable version and emacs-app updates to it.

comment:21 Changed 2 months ago by cjones051073 (Chris Jones)

I have never had emacs-app crash, devel or otherwise.

Thanks for your report, but a ‘it crashes for me’ report is next to useless without the accompanying crash log and some explanation on how to trigger it.

comment:22 Changed 8 weeks ago by iqgrande

I typically don't like to submit bug reports for non-stable releases of software (upstream still has version 26.1 as stable) as I assume it is an upstream problem. Since more information was desired, I opened up a ticket (#57931) that provides one such item of awkward behavior with port "emacs-app-devel."

Note: See TracTickets for help on using tickets.