Bug on Grads after update v18.12

Questions and other topics related to UEMS 18.
Post Reply
meteo60
Posts: 112
Joined: Tue Apr 17, 2012 4:50 pm

Bug on Grads after update v18.12

Post by meteo60 » Thu Dec 27, 2018 4:36 pm

Hi,
I updated my UEMS from 18.8 to 18.12, since I have some bugs on grads (which is on 2.2.0 version vs 2.1 before update):
It's impossible to open grads:

Code: Select all

grads: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
So I made symbolic link:

Code: Select all

ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 /usr/lib/libssl.so.10
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 /usr/lib/libcrypto.so.10
But new error:

Code: Select all

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
This user had the same error but he don't use grads in UEMS: http://gradsusr.org/pipermail/gradsusr/ ... 41576.html

I tried to put libpng15.so.15 in grads/lib directory, I can open grads but printim or gxprint is impossible:

Code: Select all

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
How I "solved" my problem? I made apt-get install grads, then I renamed grads/bin/grads to grads/bin/oldgrads and I made a symbolic link in this directory to open /usr/bin/grads. That's ok but I have grads 2.1 instead 2.2...

Any idea to use grads 2.2 in new UEMS?

meteo60
Posts: 112
Joined: Tue Apr 17, 2012 4:50 pm

Re: Bug on Grads after update v18.12

Post by meteo60 » Fri Dec 28, 2018 10:16 pm

I forgot to write the result of ldd command:

Code: Select all

ldd grads
	linux-vdso.so.1 (0x00007ffd07a2c000)
	libssl.so.10 => /usr/lib/libssl.so.10 (0x00002ba23c0e1000)
	libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00002ba23c34a000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00002ba23c7b0000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00002ba23c9cd000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00002ba23cbd1000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00002ba23cdd9000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00002ba23d0dd000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00002ba23d45f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00002ba23d676000)
	/lib64/ld-linux-x86-64.so.2 (0x00002ba23bebb000)


dominic
Posts: 336
Joined: Thu Jun 14, 2012 7:19 am

Re: Bug on Grads after update v18.12

Post by dominic » Sat Dec 29, 2018 6:56 pm

I use opengrads 2.1 appositively and I find myself very well

meteo60
Posts: 112
Joined: Tue Apr 17, 2012 4:50 pm

Re: Bug on Grads after update v18.12

Post by meteo60 » Sun Dec 30, 2018 9:31 pm

Robert answered me:
The problem is that my path was left in the grads/lib/*.la (or ls/*la) file. You can edit the file to reflect your path or just remove
the grads directory and replace it with v2.1 from the previous release.
But there is another bug after, my answer:
I tested what you advised me, grads opens but immediately it closes with a "segmentation fault".
I export LD_LIBRARY_PATH to the good path before open.
Here the last lines of the result with strace -f grads -b command:

Code: Select all

open("/usr/lib/x86_64-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\23\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22728, ...}) = 0
mmap(NULL, 2117872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae6eb281000
mprotect(0x2ae6eb286000, 2093056, PROT_NONE) = 0
mmap(0x2ae6eb485000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x2ae6eb485000
close(3)                                = 0
mprotect(0x2ae6eae52000, 4096, PROT_READ) = 0
mprotect(0x2ae6eb485000, 4096, PROT_READ) = 0
mprotect(0x2ae6eb27f000, 4096, PROT_READ) = 0
mprotect(0x2ae6eb07b000, 4096, PROT_READ) = 0
mprotect(0x2ae6eac3d000, 4096, PROT_READ) = 0
mprotect(0x2ae6ea822000, 4096, PROT_READ) = 0
mprotect(0x2ae6eaa38000, 4096, PROT_READ) = 0
mprotect(0x2ae6ea4e2000, 4096, PROT_READ) = 0
mprotect(0x2ae6ea2c9000, 4096, PROT_READ) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
+++ killed by SIGSEGV +++
Segmentation fault
For the moment I keep grads installed by apt-get... I keep too the last grads v2.1.a3 from previous version.

meteo60
Posts: 112
Joined: Tue Apr 17, 2012 4:50 pm

Re: Bug on Grads after update v18.12

Post by meteo60 » Thu Jan 03, 2019 10:32 am

Here is Robert's answer, I think these issues will be fixed at the next update:
You are opening the wrong libraries. For the time being just use grads 2.1 from the previous release.

hinsberj
Posts: 4
Joined: Tue May 28, 2013 8:15 am
Contact:

Re: Bug on Grads after update v18.12

Post by hinsberj » Tue Jan 08, 2019 8:38 am

One thing I noticed in $UEMS/util/grads/grads/data/udpt, the directories were pointing to /usr1/UEMS/Development/UEMS/uems/util/grads/lib/libXXXX.so

I changed it to $UEMS/util/grads/lib/libXXXX.so and it worked.

meteo60
Posts: 112
Joined: Tue Apr 17, 2012 4:50 pm

Re: Bug on Grads after update v18.12

Post by meteo60 » Thu Jan 10, 2019 11:11 am

hinsberj wrote:
Tue Jan 08, 2019 8:38 am
One thing I noticed in $UEMS/util/grads/grads/data/udpt, the directories were pointing to /usr1/UEMS/Development/UEMS/uems/util/grads/lib/libXXXX.so

I changed it to $UEMS/util/grads/lib/libXXXX.so and it worked.
I changed too but I have this error:

Code: Select all

 libpng15.so.15: cannot open shared object file: No such file or directory

neeraj7
Posts: 8
Joined: Sun Nov 22, 2015 3:49 am

Re: Bug on Grads after update v18.12

Post by neeraj7 » Thu Jun 27, 2019 6:27 pm

👆I also changed the path $UEMS/util/grads/grads/data/udpt, and it worked. Thanks hinsberj :) :)

amides28
Posts: 1
Joined: Mon Jan 05, 2015 3:04 pm

Re: Bug on Grads after update v18.12

Post by amides28 » Wed Jul 03, 2019 5:58 pm

Hi all, i resolved taking off the UEMS grads, i commented the section named: "# Set the GrADS environment variables" from $UEMS/etc/EMS.profile and in "PATH" definition i cuted the part: ":${EMS_UTIL}/grads/bin", later i was installed manually grads with the command: sudo apt install grads and that worked for me. :D

figueroa28
Posts: 4
Joined: Fri Jun 14, 2019 3:00 am

Re: Bug on Grads after update v18.12

Post by figueroa28 » Thu Jul 18, 2019 2:06 am

I noticed from Robert to switch from Linux Mint/Ubuntu/etc... to CentOS 7 and works for me.

Post Reply