Toolbar is blank

Bug #1623585 reported by hackel
124
This bug affects 24 people
Affects Status Importance Assigned to Milestone
emacs24 (Debian)
Fix Released
Unknown
emacs24 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Emacs 24.5+1-6ubuntu1 in xenial does not display the gtk toolbar correctly. It is just an empty grey space. This appears to be the same issue as https://bugs.archlinux.org/task/48862 which required cherry-picking an upstream commit: https://github.com/emacs-mirror/emacs/commit/3f4c6d52d345999938bc2d4a53246af4c61ef176

I also tried upgrading to the yakkety packages 24.5+1-6ubuntu3 and libpng16-16, but this did not correct the issue.

Revision history for this message
hackel (hackel) wrote :
Revision history for this message
Paul White (paulw2u) wrote :

Also seeing this in a Ubuntu GNOME install.

tags: added: yakkety
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in emacs24 (Ubuntu):
status: New → Confirmed
Revision history for this message
Anders Kaseorg (andersk) wrote :

This is most straightforwardly solved by merging 24.5+1-7 from Debian, which pulls in three fixes: one for for this bug, one for malloc handling with GCC ≥ 5.2, and one for glibc 2.24 support. We certainly want all three. Here is a debdiff from 24.5+1-6ubuntu3.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "emacs24_24.5+1-6ubuntu3_7ubuntu1.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Anders Kaseorg (andersk) wrote :

Confirmed that this fixes the toolbar with a test build in ppa:anders-kaseorg/ppa. Subscribing sponsors.

Anders Kaseorg (andersk)
tags: added: regression-release
Anders Kaseorg (andersk)
tags: added: patch-accepted-debian
Revision history for this message
Ian Bruntlett (ian-bruntlett) wrote :

This bug happened for me, too. I couldn't find this particular bug report so ended up creating a new report - https://bugs.launchpad.net/ubuntu/+source/emacs-defaults/+bug/1617776

Changed in emacs24 (Debian):
status: Unknown → Fix Released
Mathew Hodson (mhodson)
Changed in emacs24 (Ubuntu):
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
Jeremy Bícha (jbicha) wrote :

https://launchpad.net/ubuntu/+source/emacs24/24.5+1-7ubuntu1

but it fails to build on arm64 and ppc64el

Changed in emacs24 (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Anders Kaseorg (andersk) wrote :
Revision history for this message
Anders Kaseorg (andersk) wrote :

The arm64 problem, at least, looks like it could be https://bugs.debian.org/837421. Ubuntu has already added -no-pie on amd64 ppc64el s390x but not yet on arm64.

Revision history for this message
Anders Kaseorg (andersk) wrote :

Adding -no-pie on arm64 doesn’t help.

Revision history for this message
pauljohn32 (pauljohn) wrote :
Download full text (3.6 KiB)

Hi. I never had the empty toolbar before Yakkety install today and I've spent quite a bit of time re-discovering the solutions you list here. I'm wrestling with the compiler errors from both emacs 25.1 and the 24.5 as distributed with Yakkety.

Can somebody explain how a package that does not build on Yakkety was distributed with it? I thought that was impossible.

I've got the sources for the updates mentioned in #8 and am compiling. I do confirm it does not crash at the same spot as the release version. The new packages did compile.

However, the install hits some trouble. Do the errors below indicate that some files have shifted between packages and so the install does not easily upgrade?

$ sudo dpkg -i emacs24_24.5+1-7ubuntu1_amd64.deb emacs24-common_24.5+1-7ubuntu1_all.deb emacs24-bin-common_24.5+1-7ub
untu1_amd64.deb emacs24-el_24.5+1-7ubuntu1_all.deb
[sudo] password for pauljohn:
(Reading database ... 447471 files and directories currently installed.)
Preparing to unpack emacs24_24.5+1-7ubuntu1_amd64.deb ...
Remove auctex for emacs24
auctex/remove: Removing parsed (La)TeX macros for emacs24... done.
auctex/remove: Removing installed files for emacs24... done.
Remove cmake-data for emacs24
remove/cmake-data: Purging byte-compiled files for emacs24
Remove ess for emacs24
remove/ess: purging byte-compiled files for emacs24
Remove dictionaries-common for emacs24
remove/dictionaries-common: Purging byte-compiled files for flavour emacs24
Remove pylint for emacs24
remove/pylint: purging byte-compiled files for emacs24
Remove pspp for emacs24
remove/pspp: purging byte-compiled files for emacs24
Remove emacsen-common for emacs24
emacsen-common: Handling removal of emacsen flavor emacs24
Remove emacs-goodies-el for emacs24
remove/emacs-goodies-el: purging byte-compiled files for emacs24
Unpacking emacs24 (24.5+1-7ubuntu1) over (24.5+1-6ubuntu3) ...
dpkg: regarding emacs24-common_24.5+1-7ubuntu1_all.deb containing emacs24-common:
 emacs24-common conflicts with emacs24-el (<< 24.5+1-7ubuntu1)
  emacs24-el (version 24.5+1-6ubuntu3) is present and installed.

dpkg: error processing archive emacs24-common_24.5+1-7ubuntu1_all.deb (--install):
 conflicting packages - not installing emacs24-common
Preparing to unpack emacs24-bin-common_24.5+1-7ubuntu1_amd64.deb ...
Unpacking emacs24-bin-common (24.5+1-7ubuntu1) over (24.5+1-6ubuntu3) ...
Preparing to unpack emacs24-el_24.5+1-7ubuntu1_all.deb ...
Unpacking emacs24-el (24.5+1-7ubuntu1) over (24.5+1-6ubuntu3) ...
dpkg: dependency problems prevent configuration of emacs24-bin-common:
 emacs24-bin-common depends on emacs24-common (= 24.5+1-7ubuntu1); however:
  Version of emacs24-common on system is 24.5+1-6ubuntu3.

dpkg: error processing package emacs24-bin-common (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24-el:
 emacs24-el depends on emacs24-common (= 24.5+1-7ubuntu1); however:
  Version of emacs24-common on system is 24.5+1-6ubuntu3.

dpkg: error processing package emacs24-el (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of emacs24:
 emacs24 depends on emacs24-bin-common...

Read more...

Revision history for this message
pauljohn32 (pauljohn) wrote :

Sorry, forgot to mention. I confirm this does solve the toolbar problem, once you get it installed.

Installation required removing emacs24 and some other packages that depended on it.

Revision history for this message
Anders Kaseorg (andersk) wrote :

pauljohn: You installed the packages in the wrong order. Since a 24.5+1-7ubuntu1 package, identical to mine modulo debian/changelog, is in yakkety-proposed for architectures other than arm64 and ppc64el, the easiest solution is to enable yakkety-proposed and let apt install them for you.

Revision history for this message
Tugkan Batu (tugkanbatu) wrote :

When will the fix be released to Yakkety?

Revision history for this message
Tim Taylor (drtimt) wrote :

Just to echo Tugkan's question, I would also like to know when the fix will be released on Yakkety. This is quite a high-profile bug, and it would be really nice to have a fix soon! Thanks.

Revision history for this message
Teteph (stephane-ravier) wrote :

This bug is really annoying and nothing seems to be done to fix it... whereas the solution exists! I don't understand. I've tried to enable yakkety-proposed but NO update. I tried andersk ppa, same result, nothing. I don't have time to get sources and compile emacs (and when I read you, it doesn't seem to be that easy), I just want a working solution with icons on emacs. Where can I find the 24.5+1-7ubuntu1 version if it is not in yakkety-proposed (or tell me how to really get it: I activate this source in source.list but no updates are never proposed, not even mentioned by apt-cache policy) ?

apt-cache policy emacs24
emacs24:
  Installé : 24.5+1-6ubuntu3
  Candidat : 24.5+1-6ubuntu3
 Table de version :
 *** 24.5+1-6ubuntu3 500
        500 http://fr.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Anders Kaseorg (andersk) wrote :

The current location of 24.5+1-7ubuntu1 is zesty-proposed. I think it has not migrated to zesty because it failed to build on ppc64el.

Revision history for this message
Teteph (stephane-ravier) wrote :

Thanks a lot, icons are back ! The only remaining problem is that icons are huge (about twice the size they had before the bug) but at least, there are here.

Revision history for this message
Trevor Clark (tkuraku) wrote :

Any Progress on this bug for 16.10? This is a very annoying bug.

Revision history for this message
Jimi Damon (jdamon) wrote :

Can someone please post a fix in this chain ?

Revision history for this message
Tim Taylor (drtimt) wrote :

I'm affected by this bug too.

This is not exactly a fix, more of a brush under the carpet: I realised that I had absolutely no use for the Toolbar, as all of the functions are easily accessible in the menu bar right above it (or by keyboard shortcuts, of course). So I simply got rid of the Toolbar, which not only made the annoying empty space go away, but also, in doing so, gave more more screen space for editing.

To remove the Toolbar, simply go to the menu Options->Show/Hide->Tool-bar and select None. Then Options->Save Options to make this change persist between sessions.

Revision history for this message
Paul White (paulw2u) wrote :

Upstream issue showing fixed 2016-09-05
No comments here for almost two years
No longer an issue here with emacs25 in Ubuntu 18.04 so closing as fixed

Changed in emacs24 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.