geo-data / cesium-terrain-builder

A C++ library and associated command line tools designed to create terrain tiles for use in the Cesium JavaScript library
Other
706 stars 338 forks source link

ctb-tile Segmentation fault with bash-script #70

Open Crare opened 6 years ago

Crare commented 6 years ago

Hi! I have few tif-files in a folder that I would like to convert to terrain files. Same folder has the "terrain-tiles"-folder under it. Some of the files convert ok, but most doesn't. I get segmentation fault error inconsistently. Is it because I'm running these commands back-to-back? Do I need to clear cache or something in between?

My bash script:

#!/bin/sh
for tif in *.tif
do
  echo "converting file:" $tif "to terrain-tiles.."
  ctb-tile -e ./terrain-tiles $tif
done
echo "all done!"

Terminal output:

converting file: K4242.tif to terrain-tiles..
0...10...20...30...40...50...60...70...80...90...100 - done.
converting file: K4244.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
0Segmentation fault
converting file: K4422.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
Segmentation fault
converting file: L4131.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
Segmentation fault
converting file: L4132.tif to terrain-tiles..
0...10...20...30...40...50...60...70...80...90...100 - done.
converting file: L4133.tif to terrain-tiles..
0...10...20...30...40...50...60...70...80...90...100 - done.
converting file: L4134.tif to terrain-tiles..
0...10...20...30...40...50...60...70...80...90...100 - done.
converting file: L4141.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
Segmentation fault
converting file: L4143.tif to terrain-tiles..
0...10...20...30...40...50...60...70...80...90...100 - done.
converting file: L4311.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
0Segmentation fault
converting file: L4312.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
Segmentation fault
converting file: L4321.tif to terrain-tiles..
ERROR 3: Read of file /usr/share/gdal/2.2/pcs.csv failed.
0Segmentation fault
all done!
SurajitChowbey commented 5 years ago

Hi, I also got stuck on the same issue. Have you got any solution?

nedclimaterisk commented 5 years ago

We've been seeing similar problems with a python-flask based data server. We've seen errors with /usr/share/gdal/2.4/pcs.csv and /usr/share/gdal/2.4/gdal_datum.csv. It kills our server, which is pretty annoying...