You are not logged in.

#1 2010-02-08 22:27:41

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

libpng strikes again -> luxrender. I tried everything (I think..)!

After the big libpng and libjpeg upgrade Luxrender crashes with:

libpng warning: Application was compiled with png.h from libpng-1.4.0
libpng warning: Application  is  running with png.c from libpng-1.2.7

(not when launching but when it tries to write a png file to disk)

This obviously has to do something with the upgrade from 1.2 to 1.4.
I did everything by the book. I have an up to date mirror (checked that) - ftp://archlinux.puzzle.ch
I did yaourt -Syu many times already. Lots and lots of packages updated, and everything works, except for luxrender.
Actually, I think luxrender was updated too, I have it at 0.6.1-2 version right now. 
I also rebuilt most of the AUR packages as well (not all of them though, just they are not related to luxrender as far as I can tell).

The package comes from the community repo and it works with blender, also from the repos, nothing from AUR. Actually I reinstalled all of the dependencies of luxrender, just in case: openexr, boost, libtiff, libpng and nvidia drivers as it uses GL somehow. Blender, by the way, works after the update.

Also, everything from those dependencies above came from the repos, not from AUR on my system. I have nothing in "yaourt -Qm" that has anything to do with luxrender...

I tried this too:

LD_DEBUG=files luxrender 2>&1 | grep "libpng"

But not much came up, like this:

27246:     file=libpng14.so.14 [0];  needed by luxrender [0]
27246:     file=libpng14.so.14 [0];  generating link map
27246:     calling init: /usr/lib/libpng14.so.14

(this was the launching part, and below's where it crashes)

libpng warning: Application was compiled with png.h from libpng-1.4.0
libpng warning: Application  is  running with png.c from libpng-1.2.7
libpng error: Incompatible libpng version in application and library
zsh: segmentation fault  LD_DEBUG=files luxrender 2>&1 | grep "libpng"

Just in case: I have not created any symlinks faking libpng12 or other "ugly hacks" as they are called smile neither have I installed 1.2 from AUR. I have just the 1.4 version in my system right now.
(actually, this is not true entirely. As 'locate' tells me, there is libpng12.so.0 in /opt/dropbox/ but just because dropbox ships with its own library for some strange reason... that's proprietary software for you! But I doubt that's the cause here. Or is it?)

One more thing I tried was downloading the official PKGBUILD tarball from svn and doing makepkg, the package built and later installed fine, there was even some libpng.patch applied before the compilation, but the end result was (no surprise there) exactly the same as with the prebuilt option.

Right now I can only see two options: A. install libpng 1.2 from AUR or B. create a bug report in flyspray for luxrender (I'm not really sure this calls for a but though and I don't want to make a fuss...). Or both.

Is there any other option to try before I go for A or B? And is doing B okay if not?
What should I do?

Thank you

Offline

#2 2010-02-08 23:13:18

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

I have luxrender 0.6.1-2 and it runs fine here. I don't know what to suggest in your case.


Matt

"It is very difficult to educate the educated."

Offline

#3 2010-02-08 23:25:16

sdolim
Member
Registered: 2010-01-20
Posts: 67

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Try:
ldd /usr/bin/luxrender | grep libpng
Does it point to /opt/dropbox?

Offline

#4 2010-02-09 08:54:37

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

I did

ldd /usr/bin/luxrender | grep libpng

And the result was just this:

libpng14.so.14 => /usr/lib/libpng14.so.14 (0x00007f3f0982d000)

Still no dice... Thanks though!
Also, good to know that somebody got it going, at least I know it's possible smile

Thanks

Offline

#5 2010-02-09 09:38:51

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

I installed and played 'monkey with a mouse' for a while, just to check. I can confirm that something is broken: I got one segmentation fault and one desktop freeze requiring crtl+alt+bkspc.

Interestingly I also have dropbox installed and had it running. So maybe it *is* related after all. Could you try:
1. with / without dropbox running
2. hide /opt/dropbox somewhere else


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#6 2010-02-09 20:04:58

sdolim
Member
Registered: 2010-01-20
Posts: 67

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Something else to try:

    ldconfig -p | grep libpng

I also second the idea of hiding /opt/dropbox, as an experiment.

Offline

#7 2010-02-09 22:13:04

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

First of all thank you for all the suggestions and help. Here's what I tried:
Stopping dropbox and moving /opt/dropbox out of the way doesn't change a thing so I don't think the libpng there is used.

I tried ldconfig:

ldconfig -p | grep libpng

Results look good (to me...):

libpng14.so.14 (libc6,x86-64) => /usr/lib/libpng14.so.14
libpng14.so (libc6,x86-64) => /usr/lib/libpng14.so

Looks like I'm still stuck. I would create this bug report but since it looks like it works for some of you then maybe I shouldn't after all.
Any more ideas?

Thank you!

Offline

#8 2010-02-09 22:46:42

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

here is a list of packages that you might want to reinstall:

libtiff
cairo 
libcups
gtk2
wxgtk

Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2010-02-10 23:33:25

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Thank you for the suggestion, I removed the packages and installed them again. Still no dice, luxrender crashes in the same way, unfortunately sad

Offline

#10 2010-02-13 13:19:25

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Just in case anybody has the same problem, I did not get it working yet, so it might be some difficult bug. The workaround is just to switch to TGA files and then convert them later in any external converter to PNG.

Offline

#11 2010-02-13 15:32:06

jorchube
Member
Registered: 2009-04-05
Posts: 57

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

I have the same problem.

As a "solution", I dont use anymore .png files for texturing my models (are also not user in lux, with an error reported in the log), and to avoid the crash when attempt to saving a .png, simply disable the option in the blender-exporter GUI.


(I think it would be a good idea to report the bug xD)

Offline

#12 2010-02-13 20:48:08

leepesjee
Member
Registered: 2008-11-06
Posts: 57

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Hi,
I don't know anything about this app, but nonetheless, I do find the phrase "Application  is  running with png.c" rather strange. Why would at an application be running with a source file! In fact, it is strange to have a png.c on your system at all, unless you compiled libpng yourself.
My suggestion would be to track down where this png.c resides and which package put it there.

Offline

#13 2010-02-13 21:00:29

jorchube
Member
Registered: 2009-04-05
Posts: 57

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

locate outputs anything if I look for png.c (but yes, I have the png.c warning)

Offline

#14 2010-02-14 12:17:48

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Same here, no png.c file in the system (locate)

Offline

#15 2010-02-14 13:47:24

leepesjee
Member
Registered: 2008-11-06
Posts: 57

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Apparently, this is the standard way of libpng to report library incompatibilities.
Cannot help you any further. Still the dropbox thing seems to be a possible source of trouble. Are you sure that the dropbox install script didn't 'drop' (sorry about that wink ) anything outside /opt?
You could also check if ld.conf.cache still contains a reference to libpng12:

ldconfig -p | grep png

Offline

#16 2010-02-14 14:38:56

jorchube
Member
Registered: 2009-04-05
Posts: 57

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

forgot to mention: I never installer dropbox on this machine, and I don't have the dropbox folders, neither the libpng12 into /opt/dropbox (thas does not exist)

no reference in ld.conf.cache:

[jorchube@satanic-laptop ~]$ ldconfig -p | grep png
    libpng14.so.14 (libc6) => /usr/lib/libpng14.so.14
    libpng14.so (libc6) => /usr/lib/libpng14.so
[jorchube@satanic-laptop ~]$

Offline

#17 2010-02-14 21:45:01

kosmiciatakuja
Member
Registered: 2010-01-27
Posts: 46

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

Yes, I checked the ldconfig cache before (above in the thread), no references to 1.2...

Offline

#18 2010-02-15 14:40:09

Scifi
Member
Registered: 2010-02-15
Posts: 3

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

I am having this same issue with luxrender.
I have neither had dropbox installed on my system so it shouldnt be related to that, propably.
Got no idea if this is of any assistance, but there atleast they seem to have libpng statically linked on the new CVS build..

from their forum:

"LuxRender Linux CVS build of 02-02-2010
...
Additionally, libpng-1.2.42 is also linked statically since this release. Lets hope we won't see any version incompatibilities anymore."

Offline

#19 2010-04-22 17:17:10

thesame
Member
Registered: 2009-02-13
Posts: 13

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

I have the same problem. Problem is that luxrender is linked to wxgtk that is still built against libpng-1.2.7. We need ask maintainer to rebuild wxgtk.

Offline

#20 2010-04-22 17:32:41

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: libpng strikes again -> luxrender. I tried everything (I think..)!

thesame wrote:

I have the same problem. Problem is that luxrender is linked to wxgtk that is still built against libpng-1.2.7. We need ask maintainer to rebuild wxgtk.

i'm 100% sure that is not the case. before submitting this  on our tracker, you should start debugging your system. look at what packages from aur do you have(point the finger to cairo-lcd/ubuntu/whatever), check the system to see if you symlink so names (libpng12.so to libpng14 and yeah a lot of user do this crap).


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB