Comments (7)
I'm also experiencing same problem. This happens only at level 0. Probably this is because my GeoTIFF is > 4 GB ?
from cesium-terrain-builder.
There is information about dealing with overflow on the main page:
ctb-tile will resample data from the source dataset when generating tilesets for the various zoom levels. This can lead to performance issues and datatype overflows at lower zoom levels (e.g. level 0) when the source dataset is very large. To overcome this the too...
from cesium-terrain-builder.
This also happened to me but only if Gtiff type was float32 if I converted it to Int16 and used latest master it converted without errors. cbt-export export tiles that look OK but cesium only renders edges.
from cesium-terrain-builder.
This workaround solves the problem
#37 (comment)
from cesium-terrain-builder.
Also what part of code produce Integer overflow
? I can't find it inside terrain builder code, is it inside some part of GDAL lib?
from cesium-terrain-builder.
Still have about the same error using fresh master (8dd633c):
In maps/terrain_tiles
I have only these levels generated when ctb
fails: 12 13 14 15 16 17 18 19
What other debug info I can provide?
ctb-tile -c 28 -m 32000000000 -s 19 -e 0 maps/global_dem.vrt -o maps/terrain_tiles
0...10...20...30...40...50...60...70...80...90...ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=32003
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=44633
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=22703
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=32003
ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=22703
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=32003
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=22703
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=32003
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Error: Error: Could not read heights from rasterError: Could not read heights from raster
Error: Could not read heights from rasterError: Could not read heights from raster
Error: Could not read heights from raster
Could not read heights from raster
Error: Error: Error: Could not read heights from raster
Error: Could not read heights from raster
Error:
Could not read heights from raster
Error: Could not read heights from raster
Could not read heights from raster
Could not read heights from raster
Error: Could not read heights from raster
Could not read heights from raster
Error: Could not read heights from raster
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=22703
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=32003
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=22703
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=32003
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=44633, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Error: Could not read heights from raster
from cesium-terrain-builder.
After build with #64 ctb
fails with Integer overflow and also with Segmentation fault:
ctb-tile -c 28 -m 32000000000 -s 19 -e 0 maps/global_dem.vrt -o maps/terrain_tiles
0...10...20...30...40...50...60...70...80...90...ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=32003
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: Integer overflow : nSrcXSize=26975, nSrcYSize=44633
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
/home/my_user/bin/cesium_web_tiler/run_dem_terrain_tiler.sh: line 36: 24909 Segmentation fault (core dumped) /home/my_user/bin/cesium_web_tiler/ctb-tile -c $NUMBER_OF_THREADS -m $MEMORY_LIMIT_BYTES -s $LEVELS_OF_DETAIL -e 0 $MAPS/global_dem.vrt -o $TERRAIN_TILE_OUTPUT_DIR
My dataset is pretty large:
chunks/1/dem_1_ctb.tif Size is 19959, 4899
chunks/2/dem_2_ctb.tif Size is 23586, 12074
chunks/3/dem_3_ctb.tif Size is 17645, 9986
chunks/4/dem_4_ctb.tif Size is 17852, 10201
chunks/5/dem_5_ctb.tif Size is 11980, 13273
chunks/6/dem_6_ctb.tif Size is 3936, 15193
chunks/7/dem_7_ctb.tif Size is 21975, 12461
chunks/8/dem_8_ctb.tif Size is 18397, 10634
chunks/9/dem_9_ctb.tif Size is 18992, 11043
chunks/10/dem_10_ctb.tif Size is 18638, 10974
chunks/11/dem_11_ctb.tif Size is 19068, 10738
chunks/12/dem_12_ctb.tif Size is 20782, 11839
chunks/13/dem_13_ctb.tif Size is 22171, 11949
chunks/14/dem_14_ctb.tif Size is 18362, 9974
chunks/15/dem_15_ctb.tif Size is 18707, 10209
chunks/16/dem_16_ctb.tif Size is 18369, 9883
chunks/17/dem_17_ctb.tif Size is 19283, 10605
chunks/18/dem_18_ctb.tif Size is 21028, 7391
chunks/19/dem_19_ctb.tif Size is 26781, 6805
chunks/20/dem_20_ctb.tif Size is 26591, 6870
chunks/21/dem_21_ctb.tif Size is 26338, 6924
chunks/22/dem_22_ctb.tif Size is 26377, 6675
chunks/23/dem_23_ctb.tif Size is 26541, 6901
chunks/24/dem_24_ctb.tif Size is 25901, 6841
chunks/25/dem_25_ctb.tif Size is 24106, 6593
chunks/26/dem_26_ctb.tif Size is 24038, 6470
chunks/27/dem_27_ctb.tif Size is 24681, 6460
chunks/28/dem_28_ctb.tif Size is 23563, 6441
chunks/29/dem_29_ctb.tif Size is 24438, 6528
chunks/30/dem_30_ctb.tif Size is 23882, 4632
chunks/31/dem_31_ctb.tif Size is 25720, 2267
chunks/32/dem_32_ctb.tif Size is 25769, 2346
chunks/33/dem_33_ctb.tif Size is 26187, 2304
chunks/34/dem_34_ctb.tif Size is 25747, 2438
chunks/35/dem_35_ctb.tif Size is 24563, 2666
chunks/36/dem_36_ctb.tif Size is 24310, 2578
chunks/37/dem_37_ctb.tif Size is 25335, 2485
chunks/38/dem_38_ctb.tif Size is 23609, 2598
chunks/39/dem_39_ctb.tif Size is 16040, 7366
chunks/40/dem_40_ctb.tif Size is 18516, 9021
98M chunks/1/dem_1_ctb.tif
136M chunks/2/dem_2_ctb.tif
107M chunks/3/dem_3_ctb.tif
106M chunks/4/dem_4_ctb.tif
109M chunks/5/dem_5_ctb.tif
122M chunks/6/dem_6_ctb.tif
136M chunks/7/dem_7_ctb.tif
113M chunks/8/dem_8_ctb.tif
115M chunks/9/dem_9_ctb.tif
116M chunks/10/dem_10_ctb.tif
113M chunks/11/dem_11_ctb.tif
128M chunks/12/dem_12_ctb.tif
143M chunks/13/dem_13_ctb.tif
112M chunks/14/dem_14_ctb.tif
114M chunks/15/dem_15_ctb.tif
111M chunks/16/dem_16_ctb.tif
123M chunks/17/dem_17_ctb.tif
117M chunks/18/dem_18_ctb.tif
138M chunks/19/dem_19_ctb.tif
138M chunks/20/dem_20_ctb.tif
141M chunks/21/dem_21_ctb.tif
140M chunks/22/dem_22_ctb.tif
144M chunks/23/dem_23_ctb.tif
142M chunks/24/dem_24_ctb.tif
132M chunks/25/dem_25_ctb.tif
132M chunks/26/dem_26_ctb.tif
134M chunks/27/dem_27_ctb.tif
128M chunks/28/dem_28_ctb.tif
136M chunks/29/dem_29_ctb.tif
127M chunks/30/dem_30_ctb.tif
136M chunks/31/dem_31_ctb.tif
136M chunks/32/dem_32_ctb.tif
139M chunks/33/dem_33_ctb.tif
137M chunks/34/dem_34_ctb.tif
137M chunks/35/dem_35_ctb.tif
134M chunks/36/dem_36_ctb.tif
149M chunks/37/dem_37_ctb.tif
144M chunks/38/dem_38_ctb.tif
136M chunks/39/dem_39_ctb.tif
123M chunks/40/dem_40_ctb.tif
from cesium-terrain-builder.
Related Issues (20)
- Error tiling with output format set to Leveller
- Can't change terrain tile size from 65x65 to 256x256
- GDALOpenEx - not found Windows build HOT 1
- ctb.dll not found Windows HOT 2
- Trouble building with CMAKE: GDAL not found
- ERROR 1: PROJ: webmerc: Invalid latitude HOT 1
- Resume is not a valid parameter anymore
- quantized-mesh tiles has no “metadata” extension HOT 5
- empty tiles
- undefined reference to `GDALCreateOverviewDataset(GDALDataset*, int, int)' HOT 10
- why cesium can not display the terrain? HOT 5
- ctb-tile gets killed after "90..." HOT 4
- The command line ran successfully, but was not generated file "layer.json"? HOT 1
- Error while running make install HOT 4
- Cesium Terrain generated using DSM is way higher than the base map
- Cesium is not rendered after reaching level 4 terrain HOT 1
- Can not add the terrain data in cesium HOT 17
- Possibility to merge several regions with different resolutions? HOT 1
- Tile coordinates are not consistent with Google or TMS standard
- @alienatorZ , @aberenyi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cesium-terrain-builder.