[gradsusr] Grads 2.2.0 gxprint libpng error
Jennifer M Adams
jadams21 at gmu.edu
Fri Mar 16 08:46:50 EDT 2018
Hi, Marco —
Well, there’s your problem! One thing you could try to fix it is to grab the relevant tarball from
ftp://cola.gmu.edu/grads/Supplibs/2.2/builds/
and use your LD_LIBRARY_PATH to point to my build of the Cairo library instead of your local /usr/lib64/libcairo.so.
—Jennifer
> On Mar 16, 2018, at 4:25 AM, Marco Biordi - PODOS3D <marcobiordi at podos3d.sm> wrote:
>
> Hello, Jennifer
>
> output from
>
> > ldd /usr/util/grads/lib/libgxpCairo.so | grep png
>
> is
>
> libpng15.so.15 => /usr/util/grads/libpng-1.5.12/lib/libpng15.so.15 (0x00002b2420612000)
> libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002b242289e000)
>
> So libgxpCairo.so uses two version of the libpng, libpng15 that is the one I have compiled, libpng12 that is the system one. Should the problem related version conflict?
>
> Output from
>
> > ldd -v /usr/util/grads/lib/libgxpCairo.so | grep png
>
> show that libpng12 is used by system libcairo:
>
> Version information:
>
> ...
> /usr/lib64/libcairo.so.2:
> libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
> libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
> libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
> libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
> libc.so.6 (GLIBC_2.11) => /lib64/libc.so.6
> libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
> libpng12.so.0 (PNG12_0) => /usr/lib64/libpng12.so.0
> ...
>
> Thanks
> Marco
>
>
> Il 15/03/2018 17:16, Jennifer M Adams ha scritto:
>> Hi, Marco —
>> Did you see this post
>> http://gradsusr.org/pipermail/gradsusr/2017-December/041377.html
>> ?
>>
>> What is the output from
>>
>>> ldd /usr/util/grads/lib/libgxpCairo.so | grep png
>>>
>> Also, what size image are you trying to create?
>>
>> # define PNG_USER_HEIGHT_MAX 1000000
>> # define PNG_USER_WIDTH_MAX 1000000
>>
>> —Jennifer
>>
>>
>>> On Mar 15, 2018, at 11:46 AM, Marco Biordi - PODOS3D <marcobiordi at podos3d.sm>
>>> wrote:
>>>
>>> Hello users,
>>>
>>> when I run grads and make an hardcopy with the command gxprint I get an empty PNG image and GrADS return the following error
>>>
>>>
>>> libpng warning: Image width exceeds user limit in IHDR
>>> libpng warning: Image height exceeds user limit in IHDR
>>> gd-png: fatal libpng error: Invalid IHDR data
>>>
>>>
>>> I run GrADS 2.2.0, pre-built grads-2.2.0-bin-rhel6.4-x86_64.tar.gz.
>>>
>>> My system (Centos-6.5-x86_64) is still on libpng-1.2.49; when I run grads, it fails with error "GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo", "libpng15.so.15: cannot open shared object file: No such file or directory".
>>>
>>> So I have build myself libpng-1.15.12 and all commands except gxprint now seem to work.
>>>
>>>
>>> Before to run grads I do commands:
>>>
>>>
>>>> setenv LD_LIBRARY_PATH /usr/util/grads/libpng-1.5.12/lib
>>>>
>>>> setenv GADDIR /usr/util/grads/data
>>>>
>>>> setenv GAUDPT /usr/util/grads/udpt [ maybe redundant ]
>>>>
>>> File udpt contains these lines:
>>>
>>> # Type Name Full path to shared object file
>>> # ---- ---- -------------------------------
>>> gxdisplay Cairo /usr/util/grads/lib/libgxdCairo.so
>>> gxdisplay X11 /usr/util/grads/lib/libgxdX11.so
>>> gxdisplay gxdummy /usr/util/grads/lib/libgxdummy.so
>>> *
>>> gxprint Cairo /usr/util/grads/lib/libgxpCairo.so
>>> gxprint GD /usr/util/grads/lib/libgxpGD.so
>>> gxprint gxdummy /usr/util/grads/lib/libgxdummy.so
>>>
>>>
>>> Folder /usr/util/grads/lib contains these files:
>>>
>>> /usr/wrfems/util/grads/lib/libgxdCairo.la
>>> /usr/wrfems/util/grads/lib/libgxdCairo.so
>>> /usr/wrfems/util/grads/lib/libgxdCairo.so.0
>>> /usr/wrfems/util/grads/lib/libgxdCairo.so.0.0.0
>>> /usr/wrfems/util/grads/lib/libgxdummy.la
>>> /usr/wrfems/util/grads/lib/libgxdummy.so
>>> /usr/wrfems/util/grads/lib/libgxdummy.so.0
>>> /usr/wrfems/util/grads/lib/libgxdummy.so.0.0.0
>>> /usr/wrfems/util/grads/lib/libgxdX11.la
>>> /usr/wrfems/util/grads/lib/libgxdX11.so
>>> /usr/wrfems/util/grads/lib/libgxdX11.so.0
>>> /usr/wrfems/util/grads/lib/libgxdX11.so.0.0.0
>>> /usr/wrfems/util/grads/lib/libgxpCairo.la
>>> /usr/wrfems/util/grads/lib/libgxpCairo.so
>>> /usr/wrfems/util/grads/lib/libgxpCairo.so.0
>>> /usr/wrfems/util/grads/lib/libgxpCairo.so.0.0.0
>>> /usr/wrfems/util/grads/lib/libgxpGD.la
>>> /usr/wrfems/util/grads/lib/libgxpGD.so
>>> /usr/wrfems/util/grads/lib/libgxpGD.so.0
>>> /usr/wrfems/util/grads/lib/libgxpGD.so.0.0.0
>>>
>>> Please can anybody help?
>>>
>>> Thanks in advance
>>>
>>> Marco
>>> _______________________________________________
>>> gradsusr mailing list
>>>
>>> gradsusr at gradsusr.org
>>> http://secure-web.cisco.com/1Q04si8BmlHol2T-Zo_GyLZ_jUTLPsD4uBPja_b4sPLFkOeCjdUUc8v4w0KCH2_XywFnbkvo9fF1O6LF2Jq7PbEPjI49yc_qQIsMyK8kNqgDRubNlI5EP5mqiCAYg-M_hsMNjFpzuT5gEXnLxYoVIyev-Qr7eazIyqvGwBoJ8CjuOaFNrmeuqMIxXtLY3NJU6nWsNAhf22LgMw7LFeLwMo2dAHeSdZ32LLjkoKvZ0zvwjR64aL_dBxHq0zt1_TXp9HBeON0yzqt-HJgBRc5l-gt5fG-xLl1iLwx6IsFXj6kb5sUuxndY4zE-_dkH2nhfj2Pwow2dQYoFDa2wBLNIMmc4m-Tw47HaFOgV3ucdHdlwi9UExbEOy8hGtVYzI_22lxIaPxXXEPSrW2cMCrsNISLTAeDoU-5KEHmEFaUKaEXUxAblC2QZ3b-m4BXP0Omyi/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
>> --
>> Jennifer Miletta Adams
>> Center for Ocean-Land-Atmosphere Studies (COLA)
>> George Mason University
>>
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>>
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> Marco Biordi
> ——————————————————————————
>
> Dati Geografici | Cartografia Digitale | G.I.S. | Modellistica Ambientale | Meteorologia
> Indirizzo Sede: viale Antonio Onofri 16 - 47890 S. Marino Città - Repubblica S. Marino
> Codice Operatore Economico: 20035
> Tel / FAX: (+378) 0549 995487 | Email: marcobiordi at podos3d.sm | Web: podos3d.sm
> ——————————————————————————
> <logo_h25px.png>_______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://secure-web.cisco.com/1EMthYH9aJA_dkVJVBetLmiprdRUztG2hBqCFTArCAezNcbLv8z8JMjJ7ydSNtIcbnSbeD0RXeOIcu1kB6rsC9WqnpGrBCQu71VQh_ugUWvdVcLTUaKGx-MgtcHjZJ6GLgi30Byql561rDghE-AQeE9ylo-TOfz_e_e02pfgop_ioUBVm6UyIPtbER90zHuO7xXv-pWr9aQABUYXz7zM3u-qd_f-2Aw1V88wPQnFYmU5tm3PV4Wa1vNaJ7m0b0kke-BN5mTINI1GIjdwxhHuTWxrcBC-LSdo6547I4CyR4WSZh4F_mNFjP8vuG-4pDRBkG81My17KNGgtxoi-3XI_3WtrQJPC7ZA1rITt68DSEoObYZi3tchGSS-SO2lbE-3WQ8mQExkhe-VReBTBzaZTBxgo9aJvVZb3a82Dr1s3TjF23l9u0cjt3Cvwg9tayHev/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
More information about the gradsusr
mailing list