From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex =?UTF-8?Q?Schr=C3=B6der?= Newsgroups: gmane.emacs.bugs Subject: bug#30670: 26.0.91; PNG files on Windows Date: Fri, 2 Mar 2018 14:17:30 +0000 Message-ID: References: <4qtvtz7g6x.fsf@gmail.com> <83y3jbwq5q.fsf@gnu.org> <83o9k6x2vi.fsf@gnu.org> <83efl2wp1b.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c192da8cc238405666ea467" X-Trace: blaine.gmane.org 1520000267 2955 195.159.176.226 (2 Mar 2018 14:17:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2018 14:17:47 +0000 (UTC) Cc: 30670@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 02 15:17:43 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erlVG-0000ER-Rp for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2018 15:17:43 +0100 Original-Received: from localhost ([::1]:35324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erlXJ-0004JJ-B3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Mar 2018 09:19:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erlWc-0003rR-H2 for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 09:19:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erlWY-0003ot-Gv for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 09:19:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60683) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erlWY-0003oK-CA for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 09:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erlWY-0001bf-6V for bug-gnu-emacs@gnu.org; Fri, 02 Mar 2018 09:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alex =?UTF-8?Q?Schr=C3=B6der?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Mar 2018 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30670 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30670-submit@debbugs.gnu.org id=B30670.15200002886113 (code B ref 30670); Fri, 02 Mar 2018 14:19:02 +0000 Original-Received: (at 30670) by debbugs.gnu.org; 2 Mar 2018 14:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:40347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erlVg-0001aX-DU for submit@debbugs.gnu.org; Fri, 02 Mar 2018 09:18:08 -0500 Original-Received: from mail-wm0-f45.google.com ([74.125.82.45]:51342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erlVe-0001ZS-L9 for 30670@debbugs.gnu.org; Fri, 02 Mar 2018 09:18:07 -0500 Original-Received: by mail-wm0-f45.google.com with SMTP id h21so3449721wmd.1 for <30670@debbugs.gnu.org>; Fri, 02 Mar 2018 06:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6zpfSDxny8Q05SWBQpxglMQWCkpVV4qZleI7IsFvthg=; b=FW//xV9dIXbCrZxDiIp7O0LVjBYMCYTkUOY38b9YznglFe1/u40TDSKp3S2SShCtud gl5Yk0ryYn2RMbbFCJxwXuqyVmY/iZXAxRheqQMvHb2IDaaO5Jux4vD6l+64lDKaWmov GBEK9CoWTDaPWP7g6g/6azmcc8+AiFpKyGrJt+m5yhyuA7tFPouxAbtG0ev2lxwXs+4U 7xceR4lffdD2A/w0DNhV5kcxpmgEW9iUOYmRr9anCZA3Nlwohcb5UY9z51sQsg5LgxVQ Sz0h6mGaKW0NtcolDvJEhKuOVy5aur/h/UDbSap+kNTJ/9AIlYL/0GX34uilVx2M8yam 9BmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6zpfSDxny8Q05SWBQpxglMQWCkpVV4qZleI7IsFvthg=; b=AUY1/JuUpdVri3GDCaibr9pFSexBKG/wPRjWmCS1jH2jRg+laObd5fftG9l9oJCCHe TnvqTdo9CO6mOVwc8gRgwS0ASbB2dWQgub/oqC2dsXr9Mu2skgYI+zbgvmaVqBjsg409 k9oIBxdwr/f8u7II7H1NH/WFoRyov5VVUjG9qyCApuPB4bdKATh2Ug8jX36RzbTFpzMR SAxZs9NDngHOTOSThbBm+RjFQAtp1RCP8uKWupsESOOMKnO8sd5tTqY40+UcW8K7BRZ2 Is8tu9wiqycO8KXahfHtxrwo0XsCq7YbtKDbW2NHRGoF/Y6IxI//NM+PDr1G09U0HqC2 k18A== X-Gm-Message-State: AElRT7HqEM+x3fwTpRzFXW03N/yyGBRkRlMnPwHiSq0YmDHEEHJ4OlqW P6TOunjYaWCg6iBX+iA37oQ2XOUGHRJdxo6oGts= X-Google-Smtp-Source: AG47ELsuEaIWNKTtNxCnqS9bFrp+w2PLu5aJvQFMn2kRKIeyP8AmtjiJwq0ku8f2uvOH/sdEn4jOOmJqvRUROYpJNkg= X-Received: by 10.28.196.143 with SMTP id u137mr1803454wmf.140.1520000280827; Fri, 02 Mar 2018 06:18:00 -0800 (PST) Original-Received: by 10.28.67.68 with HTTP; Fri, 2 Mar 2018 06:17:30 -0800 (PST) In-Reply-To: <83efl2wp1b.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143838 Archived-At: --94eb2c192da8cc238405666ea467 Content-Type: text/plain; charset="UTF-8" On Fri, Mar 2, 2018 at 2:05 PM, Eli Zaretskii wrote: > > Are there any other versions of libpng16-16.dll on that system? > > > > I ran the following: > > $ find.exe / -name libpng16-16.dll > > /cygdrive/c/Portable Programs/emacs-26.0.91-x86_64/bin/libpng16-16.dll > > /cygdrive/c/Portable Programs/inkscape/libpng16-16.dll > > /cygdrive/c/Program Files/emacs-25.1-x86_64-w64- > mingw32/bin/libpng16-16.dll > > > > I found the old C:\Program Files\emacs-25.1-x86_64-w64-mingw32\bin on > my path, removed it and restarted > > Emacs, verified that it was not listed in (getenv "PATH"), but no luck. > I still cannot display PNG images. > > > > Does pngfix.exe work (it should be in the same directory as > > libpng16-16.dll)? > > > > Yes it does. > > > > $ ./pngfix ../lib/python2.7/idlelib/Icons/idle_16.png > > IDAT OK maximum 12 12 1070 2064 ../lib/python2.7/idlelib/ > Icons/idle_16.png > > > > And finally, what is the value of libpng-version in your Emacs? > > > > libpng-version > > 10634 > > Strange. I can only suggest stepping with a debugger through > init_png_functions, to see what exactly fails there and why. > I did a binary search of my config and found the culprit. Sorry for the noise! I had the following hidden away in one of the gazillion config files: (add-to-list 'dynamic-library-alist '(png "libpng15-15.dll")) Removing this file fixed PNG support for Emacs 26. Again, I'm very sorry I didn't think of this any sooner. Alex --94eb2c192da8cc238405666ea467 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On F= ri, Mar 2, 2018 at 2:05 PM, Eli Zaretskii <eliz@gnu.org> wrote:
= >=C2=A0 Are there any other versions of libpng16-16.dll on that system?<= br> >
> I ran the following:
> $ find.exe / -name libpng16-16.dll
> /cygdrive/c/Portable Programs/emacs-26.0.91-x86_64/bin/libpng16-1= 6.dll
> /cygdrive/c/Portable Programs/inkscape/libpng16-16.dll
> /cygdrive/c/Program Files/emacs-25.1-x86_64-w64-mingw32/bin/libpn= g16-16.dll
>
> I found the old C:\Program Files\emacs-25.1-x86_64-w64-mingw32\bi= n on my path, removed it and restarted
> Emacs, verified that it was not listed in (getenv "PATH"), b= ut no luck. I still cannot display PNG images.
>
>=C2=A0 Does pngfix.exe work (it should be in the same directory as
>=C2=A0 libpng16-16.dll)?
>
> Yes it does.
>
> $ ./pngfix ../lib/python2.7/idlelib/Icons/idle_16.png
> IDAT OK=C2=A0 maximum 12 12 1070 2064 ../lib/python2.7/idlelib/Ic= ons/idle_16.png
>
>=C2=A0 And finally, what is the value of libpng-version in your Emacs?<= br> >
> libpng-version
> 10634

Strange.=C2=A0 I can only suggest stepping with a debugger through init_png_functions, to see what exactly fails there and why.

I did a binary sear= ch of my config and found the culprit. Sorry for the noise!

I had the following hidden away in one of the gazi= llion config files:

(add-to-list &#= 39;dynamic-library-alist '(png "libpng15-15.dll"))

Removing this file fixed PNG support for Emac= s 26.

Again, I'm very sorry I d= idn't think of this any sooner.
Ale= x

--94eb2c192da8cc238405666ea467--