Opened 3 months ago

Last modified 3 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)
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 (16)

comment:1 Changed 3 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 3 months ago by mf2k (Frank Schima)

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

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

Keywords: mojave added

comment:4 Changed 3 months ago by stanimura

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

Cc: hnarayanan added

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

Cc: svalgaard added

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

Cc: cjones051073 added

comment:8 Changed 2 months ago by dplr

Cc: dplr added

comment:9 Changed 2 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 2 months ago by rlhamil

Cc: rlhamil added

comment:11 Changed 2 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 2 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 2 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 2 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 weeks ago by RafalLukawiecki (Rafal Lukawiecki)

Cc: RafalLukawiecki added

comment:16 Changed 3 weeks 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 3 weeks ago by d-lamb (Derek Lamb) (previous) (diff)
Note: See TracTickets for help on using tickets.