[gradsusr] Segmentation Fault (core dump) when i try to save PNG with printim or gxprint on Ubuntu 20.04
UwBe International - Severe Weather Research
info at uwbeinternational.org
Sun Dec 6 15:33:53 EST 2020
Hello
I have running WRF/UEMS on Ubuntu 20.04 LTS and a Problem with GrADS.
If i try to print a png Image, i become this Error:
Segmentation fault (core dumped)
Here is the q config and the q gxconfig:
Configured on 09/05/17 for x86_64-unknown-linux-gnu
This build of GrADS has the following features:
-+- Byte order is LITTLE ENDIAN
-+- Athena Widget GUI DISABLED
-+- Command line editing ENABLED
-+- GRIB2 interface ENABLED g2clib-1.6.0
-+- NetCDF interface ENABLED netcdf-4.3.3
-+- OPeNDAP gridded data interface ENABLED
-+- OPeNDAP station data interface ENABLED gadap 2.1
-+- HDF4 interface ENABLED hdf-4.2r3
-+- HDF5 interface ENABLED hdf5-1.8.11
-+- KML contour output ENABLED
-+- GeoTIFF and KML/TIFF output ENABLED
-+- Shapefile interface ENABLED
The 'q gxconfig' command returns Graphics configuration information
Running in Batch mode
-+- GX Display "Cairo" /home/uwbe/uems/util/grads/lib/libgxdCairo.so
X11.0 cairo-1.14.10
-+- GX Print "Cairo" /home/uwbe/uems/util/grads/lib/libgxpCairo.so
cairo-1.14.10
==================================================================================
*My Script: *
function main(args)
'reinit'
domain=subwrd(args,1)
openfile=subwrd(args,2)
hours=subwrd(args,3)
if (domain = 'italy_4km') ; dom="it4km" ; endif
if (domain = 'switzerland_4km') ; dom="ch4km" ; endif
file='/home/uwbe/uems/runs/'domain'/emsprd/grads/'openfile'_wrfout_arw_d01.ctl'
'open 'file
i = 1
while (i < hours)
say 'i = 'i
if (domain = 'it4km')
'set lon -5.5 19.5'
'set lat 35 56'
endif
if (domain = 'ch4km')
'set lon 6 11'
'set lat 45 48.5'
endif
'set mpdset hires'
'set map 1 1 7'
'set t 'i
'q time'
if (i = 1)
runwrd=subwrd(result,3)
cyc=substr(runwrd,1,2)
say 'cyc = 'cyc
rundate=substr(runwrd,4,2)
runmo=substr(runwrd,6,3)
runyear=substr(runwrd,9,4)
'q files'
runlin=sublin(result,1)
say 'runlin = 'runlin
runwrd=subwrd(runlin,4)
runfile=substr(runwrd,1,10)
endif
'q time'
fwrd=subwrd(result,3)
fhr=substr(fwrd,1,2)
fdate=substr(fwrd,4,2)
fmo=substr(fwrd,6,3)
fyear=substr(fwrd,9,4)
'set gxout shaded'
'set grads off'
# 'set clevs 1 3 5'
# 'set ccols 15 2 7 0'
# 'd tmp2m-273.15'
'set rgb 39 165 0 190'
'set rgb 40 160 0 200'
'set rgb 41 150 0 205'
'set rgb 42 145 0 210'
'set rgb 43 137 0 215'
'set rgb 44 130 0 220'
'set rgb 45 70 0 230'
'set rgb 46 30 60 255'
'set rgb 47 15 110 255'
'set rgb 48 0 160 255'
'set rgb 49 0 180 255'
'set rgb 50 0 200 200'
'set rgb 51 0 205 170'
'set rgb 52 0 210 140'
'set rgb 53 0 215 70'
'set rgb 54 0 220 0'
'set rgb 55 80 225 25'
'set rgb 56 160 230 50'
'set rgb 57 195 225 50'
'set rgb 58 230 220 50'
'set rgb 59 230 195 47'
'set rgb 60 230 175 45'
'set rgb 61 235 155 42'
'set rgb 62 240 130 40'
'set rgb 63 248 65 20'
'set rgb 64 255 0 0'
'set rgb 65 255 30 30'
'set rgb 66 250 60 60'
'set rgb 67 245 30 95'
'set rgb 68 240 0 130'
'set rgb 69 235 0 150'
'set rgb 70 230 0 160'
#'set clevs -20 -18 -16 -14 -12 -10 -8 -6 -4 -2 0 2 4 6 8 10 12 14 16 18
20 22 24 26 28 30 32 34 36 38 40'
#'set ccols 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
59 60 61 62 63 64 65 66 67 68 69 70'
'set clevs -15 -10 -8 -5 -3 0 3 5 8 10 15 18 20 25 28 30 33 35 40'
'set ccols 41 43 44 45 48 49 50 51 52 53 55 57 58 60 61 63 67 68 69 70'
#Plot Shaded Temps
'd tmp2m-273.15'
#Plot TEmp-Values in the Grid
'set gxout grid'
'set gridln off'
'set grid off'
if (domain = 'switzerland_4km')
'd skip(tmp2m-273.15,3)'
endif
if (domain = 'italy_4km')
'd skip(tmp2m-273.15,3)'
endif
'xcbar -direction horizontal -edge triangle'
'plot_cities_'dom
ghr = i - 1
'draw title \ 2m Temperature (C) - WRF 'rundate' 'runmo'
'runyear'_'cyc' UTC \\ Valid: 'fdate' 'fmo' 'fyear'_'fhr' UTC'
'set string 1 bl 2'
'set strsiz 0.12 0.12'
if (domain = 'switzerland_4km') ; gtx="Switzerland 4km Grid" ; endif
if (domain = 'italy_4km') ; gtx="Italy 4km Grid" ; endif
'draw string 0.4 0.4 'gtx
'draw string 0.4 0.25 www.uwbeinternational.org - UwBe International
Severe Weather Research'
'set string -90 c 2'
'set strsiz 0.12 0.12'
'draw string 4 5.8 Copyright by UwBe International'
if (ghr < 10)
'printim
/home/uwbe/uems/runs/'domain'/wrf_out/temp_2m/'cyc'/temp_2m_'runfile'f0'ghr'.png
x936 y1300 png white'
else
'printim
/home/uwbe/uems/runs/'domain'/wrf_out/temp_2m/'cyc'/temp_2m_'runfile'f'ghr'.png
x936 y1300 png white'
endif
'clear'
i = i + 1
endwhile
========================
Does anyone know what i can or should do to fix this error? ;)
THank you
--
Freundliche Grüsse / Best Regards
Dominic Kurz
Präsident / CEO
*UwBe International*
*Severe Weather Observation*
Einschlagstrasse 30
CH-4622 Egerkingen
Switzerland
Tel.: +41 78 340 46 78
Direct: +41 76 270 70 87
<https://uwbeinternational.org>
--
Freundliche Grüsse / Best Regards
Dominic Kurz
Präsident / CEO
*UwBe International*
*Severe Weather Research & Taskforce*
Einschlagstrasse 30
CH-4622 Egerkingen
Switzerland
Tel.: +41 78 340 46 78
Direct: +41 76 270 70 87
<https://uwbeinternational.org>
E-Mail: info at uwbeinternational.org
Web: www.uwbeinternational.org <https://uwbeinternational.org>
Find us on Facebook <https://facebook.com/uwbeinternational>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201206/fc19a3b3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_uwbe_transparent_black_gross.png
Type: image/png
Size: 190518 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201206/fc19a3b3/attachment-0001.png>
More information about the gradsusr
mailing list