cesium-terrain-builder icon indicating copy to clipboard operation
cesium-terrain-builder copied to clipboard

ctb-tile Segmentation fault with bash-script

Open Crare opened this issue 6 years ago • 2 comments

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!

Crare avatar Jul 11 '18 07:07 Crare

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

SurajitChowbey avatar Apr 30 '19 08:04 SurajitChowbey

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...

nedclimaterisk avatar Jun 07 '19 05:06 nedclimaterisk