Opened 8 years ago

Closed 8 years ago

#3158 closed defect (invalid)

r.watershed: PredictorSetup:Horizontal differencing "Predictor" not supported with 64-bit samples

Reported by: neteler Owned by: grass-dev@…
Priority: major Milestone: 7.2.0
Component: Raster Version: svn-releasebranch72
Keywords: libtiff, r.watershed, libraster Cc:
CPU: Unspecified Platform: Unspecified

Description

GRASS 7.2.svn (nc_spm_08_grass7): > g.region raster=elev_lid792_1m
GRASS 7.2.svn (nc_spm_08_grass7): > r.watershed elevation=elev_lid792_1m accumulation=elev_lid792_1m_accu
SECTION 1a (of 4): Initiating Memory.
SECTION 1b (of 4): Determining Offmap Flow.
 100%
SECTION 2: A* Search.
 100%
SECTION 3a: Accumulating Surface Flow with MFD.
 100%
SECTION 3b: Adjusting drainage directions.
 100%
SECTION 4: Closing Maps.
ERROR 1: PredictorSetup:Horizontal differencing "Predictor" not supported with 64-bit samples
ERROR 1: PredictorSetup:Horizontal differencing "Predictor" not supported with 64-bit samples

g.version -eg
version=7.2.svn
date=2016
revision=r69482M
build_date=2016-09-14
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
proj4=4.9.2
gdal=2.0.2
geos=3.5.0
sqlite=3.13.0

Do we have a namespace collision with GDAL?

[neteler@oboe gdal-2.1.svn]$ !find
find . -type f | grep -v 'svn/pristine'  | xargs grep PredictorSetup
./frmts/gtiff/libtiff/gdal_libtiff_symbol_rename.h:#define PredictorSetup gdal_PredictorSetup
./frmts/gtiff/libtiff/gdal_libtiff_symbol_rename.h:#define PredictorSetupDecode gdal_PredictorSetupDecode
./frmts/gtiff/libtiff/gdal_libtiff_symbol_rename.h:#define PredictorSetupEncode gdal_PredictorSetupEncode
./frmts/gtiff/libtiff/tif_predict.c:PredictorSetup(TIFF* tif)
./frmts/gtiff/libtiff/tif_predict.c:	static const char module[] = "PredictorSetup";
./frmts/gtiff/libtiff/tif_predict.c:PredictorSetupDecode(TIFF* tif)
./frmts/gtiff/libtiff/tif_predict.c:	if (!(*sp->setupdecode)(tif) || !PredictorSetup(tif))
./frmts/gtiff/libtiff/tif_predict.c:PredictorSetupEncode(TIFF* tif)
./frmts/gtiff/libtiff/tif_predict.c:	if (!(*sp->setupencode)(tif) || !PredictorSetup(tif))
./frmts/gtiff/libtiff/tif_predict.c:	tif->tif_setupdecode = PredictorSetupDecode;
./frmts/gtiff/libtiff/tif_predict.c:	tif->tif_setupencode = PredictorSetupEncode;

System:

uname -a
Linux oboe.localdomain 4.6.6-300.fc24.x86_64 #1 SMP Wed Aug 10 21:07:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/6.1.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 6.1.1 20160621 (Red Hat 6.1.1-3) (GCC)

Change History (3)

in reply to:  description comment:1 by mmetz, 8 years ago

Replying to neteler:

GRASS 7.2.svn (nc_spm_08_grass7): > g.region raster=elev_lid792_1m
GRASS 7.2.svn (nc_spm_08_grass7): > r.watershed elevation=elev_lid792_1m accumulation=elev_lid792_1m_accu
SECTION 1a (of 4): Initiating Memory.
SECTION 1b (of 4): Determining Offmap Flow.
 100%
SECTION 2: A* Search.
 100%
SECTION 3a: Accumulating Surface Flow with MFD.
 100%
SECTION 3b: Adjusting drainage directions.
 100%
SECTION 4: Closing Maps.
ERROR 1: PredictorSetup:Horizontal differencing "Predictor" not supported with 64-bit samples
ERROR 1: PredictorSetup:Horizontal differencing "Predictor" not supported with 64-bit samples

g.version -eg
version=7.2.svn
date=2016
revision=r69482M
build_date=2016-09-14
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
proj4=4.9.2
gdal=2.0.2
geos=3.5.0
sqlite=3.13.0

Do we have a namespace collision with GDAL?

What is the output of r.external.out -p ?

This error can only happen with PREDICTOR=2 as a GTiff creation option.

comment:2 by neteler, 8 years ago

Oh, I completely forgot that I had set r.external.out some months ago in that mapset.

r.external.out -p
directory: /home/neteler/tmp
extension: .tif
format: GTiff
options: COMPRESS=LZW,PREDICTOR=2

It would be great to improve the error message above with a related hint to check r.external.out.

comment:3 by neteler, 8 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.