When converting latex source documents to pdf files with pdflatex the inclusion of png images no longer works after upgrading to libpng-1.2.7. Downgrading to libpng-1.2.5-r8 "solves" the problem Reproducible: Always Steps to Reproduce: 1. Create latex file (file.tex): \documentclass{article} \usepackage{graphicx} \begin{document} \begin{center} \includegraphics[width=\textwidth]{an_image.png} \end{center} \end{document} 2. pdflatex file.tex 3. Actual Results: A segmentation fault occurs and pdflatex crashes Expected Results: a pdf file named file.pdf which includes the png image Portage 2.0.50-r11 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1) ================================================================= System uname: 2.6.8.1 x86_64 12 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.tiscali.nl/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode esd f77 fftw foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde ldap libg++ libwww mikmod motif mozilla mpeg mysql ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby sdl slang spell ssl tcltk tcpd tetex tiff truetype xml2 xmms xprint xv zlib"
Happens on i86 as well. Argh. I can't change the settings. Grrr. I propose: - Setting Hardware to "all". - Using 2004.2 currently. - Severity is critical imho. Would be nice if this could be resolved soon. Strace showed a munmap that segfaults.
I'm seeing this as well and reported it in 60835 I tried tetex-2.99.1.20041026 with the same result. The errors are a bunch of libpng warning: Ignoring bad adaptive filter type followed by: libpng error: incorrect data check Error: pdfelatex: libpng: internal error ==> Fatal error occurred, the output PDF file is not finished!
It doesn't fail on my machine with libpng-1.2.7 and tetex-2.99.3.20041109. Could you attach the png image file you actually failed to run pdflatex on?
Created attachment 44328 [details] Test PNG file
Using: \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} \includegraphics[width=5in]{test.png} \end{document} on libpng-1.2.7 and pdfeTeX, Version 3.141592-1.20a-2.2 (from tetex 2.99.1.20041026)
Thanks, this was a bug introduced in libpng-1.2.7. libpng-1.2.8beta4 isn't affected by this bug, but I extracted a patch to fix it for libpng-1.2.7 and added to CVS as libpng-1.2.7-r1.ebuild. Please run `emerge --sync` and test if this solves your problem.
Yes. Problem is solved by using 1.2.7-r1. Thanks.
I can confirm that upgrading to libpng-1.2.7-r1 resolves the problem. Many thanks! Anthony
Works for me as well, thanks!