Broken/incomplete package ncl-ncarg

Bug #1808217 reported by Diego Remolina
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ncl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Package ncl-ncarg from Ubuntu 18.04 is missing files, which make the program malfunction when running some simple test cases.

cfanprod@prod:~/ncl-test$ exit
logout
root@prod:/usr/lib/ncarg# dpkg -l ncl-ncarg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=================================-=====================-=====================-=======================================================================
ii ncl-ncarg 6.4.0-9 amd64 NCAR Command Language and NCAR graphics

To reproduce:

Install the package, download the examples:

https://www.ncl.ucar.edu/Applications/Scripts/maponly_3.ncl
https://www.ncl.ucar.edu/Applications/Scripts/maponly_9.ncl
https://www.ncl.ucar.edu/Applications/Scripts/maponly_10.ncl

run:

ncl maponly_3.ncl

Works OK, now try any of the other two:

cfanprod@prod:~/ncl-test$ ncl maponly_9.ncl
 Copyright (C) 1995-2017 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.4.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]
fatal:MapV41DHInitialize: error initializing map outline records
 ERROR 2 IN MPLNRI/MDLNRI - Can't open the ".names" file
 ERROR 1 IN MPSETR - UNCLEARED PRIOR ERROR
 ERROR 1 IN MAPPOS - UNCLEARED PRIOR ERROR
 ERROR 1 IN MAPSTI - UNCLEARED PRIOR ERROR
 ERROR 1 IN MAPROJ - UNCLEARED PRIOR ERROR
 ERROR 2 IN MAPSET/MDPSET - UNCLEARED PRIOR ERROR
fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR
fatal:(null): Error setting transformation
fatal:MapPlotSetValues: error managing TickMarks
warning:["SetValues.c":474]:SetValuesChild never occurred on map.PlotManager: Error in mapPlotClass
Segmentation fault (core dumped)
cfanprod@prod:~/ncl-test$ ncl maponly_10.ncl
 Copyright (C) 1995-2017 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.4.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12]
fatal:MapV41DHInitialize: error initializing map outline records
 ERROR 2 IN MPLNRI/MDLNRI - Can't open the ".names" file
 ERROR 1 IN MPSETR - UNCLEARED PRIOR ERROR
 ERROR 1 IN MAPPOS - UNCLEARED PRIOR ERROR
 ERROR 1 IN MAPSTI - UNCLEARED PRIOR ERROR
 ERROR 1 IN MAPROJ - UNCLEARED PRIOR ERROR
 ERROR 2 IN MAPSET/MDPSET - UNCLEARED PRIOR ERROR
fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR
fatal:(null): Error setting transformation
fatal:MapPlotSetValues: error managing TickMarks
warning:["SetValues.c":474]:SetValuesChild never occurred on map.PlotManager: Error in mapPlotClass
warning:tiMainString is not a valid resource in map at this time
Segmentation fault (core dumped)

Program fails as shown above. This is because the Ubuntu package is missing some files in the folder:/usr/lib/ncarg/database

These are the files in the Ubuntu provided package

root@prod:/usr/lib/ncarg# ls -l /usr/lib/ncarg/database
total 14920
-rw-r--r-- 1 root root 239286 Mar 9 2018 Earth..1.areas
-rw-r--r-- 1 root root 743392 Mar 9 2018 Earth..1.lines
-rw-r--r-- 1 root root 342556 Mar 9 2018 Earth..2.areas
-rw-r--r-- 1 root root 1507872 Mar 9 2018 Earth..2.lines
-rw-r--r-- 1 root root 290424 Mar 9 2018 Earth..3.areas
-rw-r--r-- 1 root root 1035728 Mar 9 2018 Earth..3.lines
-rw-r--r-- 1 root root 4901852 Mar 9 2018 Earth..4.areas
-rw-r--r-- 1 root root 4528784 Mar 9 2018 Earth..4.lines
-rw-r--r-- 1 root root 36832 Mar 9 2018 ezmap_area_ids
-rw-r--r-- 1 root root 58979 Mar 9 2018 EzmapAreaInfo.CO
-rw-r--r-- 1 root root 122563 Mar 9 2018 EzmapAreaInfo.PO
-rw-r--r-- 1 root root 111767 Mar 9 2018 EzmapAreaInfo.PS
-rw-r--r-- 1 root root 9201 Mar 9 2018 EzmapAreaInfo.US
-rw-r--r-- 1 root root 587264 Mar 9 2018 ezmapdata
-rw-r--r-- 1 root root 76280 Mar 9 2018 EzmapOutlines.CO
-rw-r--r-- 1 root root 138680 Mar 9 2018 EzmapOutlines.PO
-rw-r--r-- 1 root root 240752 Mar 9 2018 EzmapOutlines.PS
-rw-r--r-- 1 root root 107952 Mar 9 2018 EzmapOutlines.US
-rw-r--r-- 1 root root 23021 Mar 9 2018 NhlMapData
-rw-r--r-- 1 root root 37640 Mar 9 2018 PlotcharData
-rw-r--r-- 1 root root 37680 Mar 9 2018 pwritdata
-rw-r--r-- 1 root root 20250 Mar 9 2018 ranfdata
-rw-r--r-- 1 root root 4096 Mar 9 2018 rgb.dir
-rw-r--r-- 1 root root 16384 Mar 9 2018 rgb.pag
-rw-r--r-- 1 root root 16992 Mar 9 2018 rgb.txt

These are the files in a manually compile built of ncl (6.5.0) from source code:

root@prod:/usr/lib/ncarg# ls -l database.FIXED/
total 15276
-rw-r--r-- 1 root root 239286 Dec 12 19:04 Earth..1.areas
-rw-r--r-- 1 root root 743392 Dec 12 19:04 Earth..1.lines
-rw-r--r-- 1 root root 30565 Dec 12 19:04 Earth..1.names
-rw-r--r-- 1 root root 342556 Dec 12 19:04 Earth..2.areas
-rw-r--r-- 1 root root 1507872 Dec 12 19:04 Earth..2.lines
-rw-r--r-- 1 root root 103535 Dec 12 19:04 Earth..2.names
-rw-r--r-- 1 root root 290424 Dec 12 19:04 Earth..3.areas
-rw-r--r-- 1 root root 1035728 Dec 12 19:04 Earth..3.lines
-rw-r--r-- 1 root root 38552 Dec 12 19:04 Earth..3.names
-rw-r--r-- 1 root root 4901852 Dec 12 19:04 Earth..4.areas
-rw-r--r-- 1 root root 4528784 Dec 12 19:04 Earth..4.lines
-rw-r--r-- 1 root root 176790 Dec 12 19:04 Earth..4.names
-rw-r--r-- 1 root root 36832 Dec 12 19:04 ezmap_area_ids
-rw-r--r-- 1 root root 58979 Dec 12 19:04 EzmapAreaInfo.CO
-rw-r--r-- 1 root root 122563 Dec 12 19:04 EzmapAreaInfo.PO
-rw-r--r-- 1 root root 111767 Dec 12 19:04 EzmapAreaInfo.PS
-rw-r--r-- 1 root root 9201 Dec 12 19:04 EzmapAreaInfo.US
-rw-r--r-- 1 root root 587264 Dec 12 19:04 ezmapdata
-rw-r--r-- 1 root root 76280 Dec 12 19:04 EzmapOutlines.CO
-rw-r--r-- 1 root root 138680 Dec 12 19:04 EzmapOutlines.PO
-rw-r--r-- 1 root root 240752 Dec 12 19:04 EzmapOutlines.PS
-rw-r--r-- 1 root root 107952 Dec 12 19:04 EzmapOutlines.US
drwxr-xr-x 2 root root 4096 Dec 12 19:04 ftfonts
-rw-r--r-- 1 root root 23021 Dec 12 19:04 NhlMapData
-rw-r--r-- 1 root root 37640 Dec 12 19:04 PlotcharData
-rw-r--r-- 1 root root 37680 Dec 12 19:04 pwritdata
-rw-r--r-- 1 root root 20250 Dec 12 19:04 ranfdata
-rw-r--r-- 1 root root 4096 Dec 12 19:04 rgb.dir
-rw-r--r-- 1 root root 16384 Dec 12 19:04 rgb.pag
-rw-r--r-- 1 root root 16992 Dec 12 19:04 rgb.txt

The missing file names with ".names" extension are breaking some of the example runs. Once the missing files are added to the database folder, things work.

cfanprod@prod:~/ncl-test$ ls -l /usr/lib/ncarg/database/
total 15276
-rw-r--r-- 1 root root 239286 Dec 12 19:04 Earth..1.areas
-rw-r--r-- 1 root root 743392 Dec 12 19:04 Earth..1.lines
-rw-r--r-- 1 root root 30565 Dec 12 19:04 Earth..1.names
-rw-r--r-- 1 root root 342556 Dec 12 19:04 Earth..2.areas
-rw-r--r-- 1 root root 1507872 Dec 12 19:04 Earth..2.lines
-rw-r--r-- 1 root root 103535 Dec 12 19:04 Earth..2.names
-rw-r--r-- 1 root root 290424 Dec 12 19:04 Earth..3.areas
-rw-r--r-- 1 root root 1035728 Dec 12 19:04 Earth..3.lines
-rw-r--r-- 1 root root 38552 Dec 12 19:04 Earth..3.names
-rw-r--r-- 1 root root 4901852 Dec 12 19:04 Earth..4.areas
-rw-r--r-- 1 root root 4528784 Dec 12 19:04 Earth..4.lines
-rw-r--r-- 1 root root 176790 Dec 12 19:04 Earth..4.names
-rw-r--r-- 1 root root 36832 Dec 12 19:04 ezmap_area_ids
-rw-r--r-- 1 root root 58979 Dec 12 19:04 EzmapAreaInfo.CO
-rw-r--r-- 1 root root 122563 Dec 12 19:04 EzmapAreaInfo.PO
-rw-r--r-- 1 root root 111767 Dec 12 19:04 EzmapAreaInfo.PS
-rw-r--r-- 1 root root 9201 Dec 12 19:04 EzmapAreaInfo.US
-rw-r--r-- 1 root root 587264 Dec 12 19:04 ezmapdata
-rw-r--r-- 1 root root 76280 Dec 12 19:04 EzmapOutlines.CO
-rw-r--r-- 1 root root 138680 Dec 12 19:04 EzmapOutlines.PO
-rw-r--r-- 1 root root 240752 Dec 12 19:04 EzmapOutlines.PS
-rw-r--r-- 1 root root 107952 Dec 12 19:04 EzmapOutlines.US
drwxr-xr-x 2 root root 4096 Dec 12 19:04 ftfonts
-rw-r--r-- 1 root root 23021 Dec 12 19:04 NhlMapData
-rw-r--r-- 1 root root 37640 Dec 12 19:04 PlotcharData
-rw-r--r-- 1 root root 37680 Dec 12 19:04 pwritdata
-rw-r--r-- 1 root root 20250 Dec 12 19:04 ranfdata
-rw-r--r-- 1 root root 4096 Dec 12 19:04 rgb.dir
-rw-r--r-- 1 root root 16384 Dec 12 19:04 rgb.pag
-rw-r--r-- 1 root root 16992 Dec 12 19:04 rgb.txt
cfanprod@prod:~/ncl-test$ ncl maponly_9.ncl
 Copyright (C) 1995-2017 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.4.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
cfanprod@prod:~/ncl-test$ ls -l
total 148
-rw------- 1 cfanprod cfanprod 3143 Jul 24 2009 gsun03n.ncl
-rw------- 1 cfanprod cfanprod 3400 Nov 28 17:33 maponly_10.ncl
-rw------- 1 cfanprod cfanprod 1059 Nov 28 17:33 maponly_3.ncl
-rw------- 1 cfanprod cfanprod 1930 Nov 28 17:33 maponly_9.ncl
-rw------- 1 cfanprod cfanprod 117266 Dec 12 19:27 maponly.png
cfanprod@prod:~/ncl-test$ rm maponly.png
cfanprod@prod:~/ncl-test$ ncl maponly_10.ncl
 Copyright (C) 1995-2017 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.4.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
cfanprod@prod:~/ncl-test$ ls -l
total 376
-rw------- 1 cfanprod cfanprod 3143 Jul 24 2009 gsun03n.ncl
-rw------- 1 cfanprod cfanprod 198176 Dec 12 19:27 maponly.000001.png
-rw------- 1 cfanprod cfanprod 77992 Dec 12 19:27 maponly.000002.png
-rw------- 1 cfanprod cfanprod 67940 Dec 12 19:27 maponly.000003.png
-rw------- 1 cfanprod cfanprod 3400 Nov 28 17:33 maponly_10.ncl
-rw------- 1 cfanprod cfanprod 1059 Nov 28 17:33 maponly_3.ncl
-rw------- 1 cfanprod cfanprod 1930 Nov 28 17:33 maponly_9.ncl

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ncl-ncarg 6.4.0-9
ProcVersionSignature: Ubuntu 4.15.0-39.42-generic 4.15.18
Uname: Linux 4.15.0-39-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Wed Dec 12 19:16:24 2018
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ncl
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Diego Remolina (dijuremo) wrote :
Revision history for this message
Diego Remolina (dijuremo) wrote :

There are more problems with the 6.4.0 package from Ubuntu 18.04. The color maps have no color.

To reproduce, install ncl and then try one of the examples of maps that have colors:

wget https://www.ncl.ucar.edu/Applications/Scripts/maponly_6.ncl
ncl maponly_6.ncl

Take a look at the png file (it only has color in the lower section/bar, where it should have color in the map itself.

wget https://www.ncl.ucar.edu/Applications/Scripts/maponly_16.ncl
ncl maponly_16.ncl
Take a look at the three new maps, they do not have color.

Compare to the images at:
https://www.ncl.ucar.edu/Applications/maponly.shtml

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ncl - 6.5.0-2

---------------
ncl (6.5.0-2) unstable; urgency=medium

  * Standards-Version: 4.3.0
  * Ship *.names files in libncarg-data. LP: #1808217
  * Sanitise build paths in scripts for bit-reprodubcibility

 -- Alastair McKinstry <email address hidden> Sun, 20 Jan 2019 09:46:03 +0000

Changed in ncl (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.