unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
@ 2016-01-23  8:27 Paul Eggert
  2016-01-23  9:24 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Paul Eggert @ 2016-01-23  8:27 UTC (permalink / raw)
  To: 22442

To reproduce the problem, configure Emacs --with-cairo, and then run these shell 
commands:

wget https://upload.wikimedia.org/wikipedia/commons/f/f5/All_palaeotemps.png
emacs -Q All_palaeotemps.png

Emacs shows a blank (or sometimes garbled) screen instead of the image.

I think the problem is that lookup_rgb_color is returning garbage.

Here are more details about the configuration, built on Fedora 23 x86-64:

In GNU Emacs 25.0.50.55 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.6, cairo 
version 1.14.2)
  of 2016-01-22 built on penguin.cs.ucla.edu
Repository revision: 27a0919cde7a6dce93aeba63b5ce7d0834f48531
Configured using:
  'configure --enable-gcc-warnings --with-cairo'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS GCONF
GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF
XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
   value of $LC_ALL: en_US.utf8
   value of $LC_COLLATE: en_US.UTF-8
   value of $LC_CTYPE: en_US.UTF-8
   value of $LC_MESSAGES: en_US.UTF-8
   value of $LANG: C
   locale-coding-system: utf-8-unix





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
       [not found]   ` <20160123062857.GA1205@localhost>
@ 2016-01-23  9:12     ` Paul Eggert
  2016-01-23  9:25       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggert @ 2016-01-23  9:12 UTC (permalink / raw)
  To: 22442; +Cc: Jan D

I installed a patch which should make Bug#22442 easier to reproduce:

./configure --with-cairo --enable-checking
make
wget https://upload.wikimedia.org/wikipedia/commons/f/f5/All_palaeotemps.png
src/emacs -Q All_palaeotemps.png

This should make Emacs dump core.

I'll CC: this to Jan D. as he's expert in this area.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
  2016-01-23  8:27 bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux Paul Eggert
@ 2016-01-23  9:24 ` Eli Zaretskii
  2016-01-23  9:44   ` Paul Eggert
  2016-01-24  0:31 ` Paul Eggert
  2018-12-11  2:29 ` Dmitry Gutov
  2 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-01-23  9:24 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 22442

> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Sat, 23 Jan 2016 00:27:08 -0800
> 
> To reproduce the problem, configure Emacs --with-cairo, and then run these shell 
> commands:
> 
> wget https://upload.wikimedia.org/wikipedia/commons/f/f5/All_palaeotemps.png
> emacs -Q All_palaeotemps.png
> 
> Emacs shows a blank (or sometimes garbled) screen instead of the image.

Due to this and other issues with Cairo, and the lack of an active
developer who could work on fixing them, should we perhaps say in NEWS
that --with-cairo is still experimental?

Thanks.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
  2016-01-23  9:12     ` Paul Eggert
@ 2016-01-23  9:25       ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-01-23  9:25 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 22442, jan.h.d

> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Sat, 23 Jan 2016 01:12:03 -0800
> Cc: Jan D <jan.h.d@swipnet.se>
> 
> I'll CC: this to Jan D. as he's expert in this area.

Alas, Jan is no longer working on Emacs.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
  2016-01-23  9:24 ` Eli Zaretskii
@ 2016-01-23  9:44   ` Paul Eggert
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Eggert @ 2016-01-23  9:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22442

Eli Zaretskii wrote:
> should we perhaps say in NEWS
> that --with-cairo is still experimental?

Sounds good, thanks, I added a couple of lines to that effect.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
  2016-01-23  8:27 bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux Paul Eggert
  2016-01-23  9:24 ` Eli Zaretskii
@ 2016-01-24  0:31 ` Paul Eggert
  2016-01-24  6:38   ` Mark Oteiza
  2018-12-11  2:29 ` Dmitry Gutov
  2 siblings, 1 reply; 8+ messages in thread
From: Paul Eggert @ 2016-01-24  0:31 UTC (permalink / raw)
  To: 22442

The bug appears to have been "fixed" by this commit:

http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=190d365f90d741b09e817d9878afd256505e1944

I don't know how to explain this. Possibly Emacs tries to convert a pixel to 
RGB, this signals an error, and then Emacs falls back on something else that 
works. Hard to believe that this is the desired behavior, so I'll leave 
Bug#22442 open.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
  2016-01-24  0:31 ` Paul Eggert
@ 2016-01-24  6:38   ` Mark Oteiza
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Oteiza @ 2016-01-24  6:38 UTC (permalink / raw)
  To: 22442

Paul Eggert <eggert@cs.ucla.edu> writes:

> The bug appears to have been "fixed" by this commit:
>
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=190d365f90d741b09e817d9878afd256505e1944
>
> I don't know how to explain this. Possibly Emacs tries to convert a
> pixel to RGB, this signals an error, and then Emacs falls back on
> something else that works. Hard to believe that this is the desired
> behavior, so I'll leave Bug#22442 open.

From ./configure --help it looks like emacs automatically picks up
imagemagick. This issue may be the same as reported in bug#21110





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux
  2016-01-23  8:27 bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux Paul Eggert
  2016-01-23  9:24 ` Eli Zaretskii
  2016-01-24  0:31 ` Paul Eggert
@ 2018-12-11  2:29 ` Dmitry Gutov
  2 siblings, 0 replies; 8+ messages in thread
From: Dmitry Gutov @ 2018-12-11  2:29 UTC (permalink / raw)
  To: Paul Eggert, 22442

On 23.01.2016 10:27, Paul Eggert wrote:
> wget 
> https://upload.wikimedia.org/wikipedia/commons/f/f5/All_palaeotemps.png
> emacs -Q All_palaeotemps.png

Seems to work fine now. Latest emacs-26 and master, with Cairo and 
ImageMagick.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-11  2:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-23  8:27 bug#22442: 25.0.50; --with-cairo does not display PNG on GNU/Linux Paul Eggert
2016-01-23  9:24 ` Eli Zaretskii
2016-01-23  9:44   ` Paul Eggert
2016-01-24  0:31 ` Paul Eggert
2016-01-24  6:38   ` Mark Oteiza
2018-12-11  2:29 ` Dmitry Gutov
     [not found] <1453460084-19646-1-git-send-email-kuleshovmail@gmail.com>
     [not found] ` <56A2C41C.7030401@cs.ucla.edu>
     [not found]   ` <20160123062857.GA1205@localhost>
2016-01-23  9:12     ` Paul Eggert
2016-01-23  9:25       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).