Mon, Jul 5 2004
22:51:38
|
|
Request created by guest
|
|
Subject: Segfault in r.in.gdal on importing tiff
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: grass-5.7.cvs-i686-pc-linux-gnu-26_06_20
Tried to import a tiff-file in 5.7, but r.in.gdal segfaulted consistently. I
managed to import it
using r.in.tiff in 5.3. It might of cource be some problem with my libraries
(using debian
testing) but all the other gdal-binaries works. Please contact me if you need
some more
information, I can submit the maps if they are needed.
|
|
Fri, Jul 9 2004
13:37:10
|
|
Mail sent by mneteler
|
|
Morten,
could you provide a (small) sample location and the
file to import?
Markus
|
|
Sun, Jul 11 2004
12:41:56
|
|
Mail sent by Morten@sickel.net
|
|
Return-Path |
<morten@sickel.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Morten Sickel <morten@sickel.net>
|
Reply-To |
Morten@sickel.net
|
To |
Markus Neteler via RT <grass-bugs@intevation.de>
|
Subject |
Re: [bug #2522] (grass) Segfault in r.in.gdal on importing tiff
|
Date |
Sun, 11 Jul 2004 12:41:26 +0200
|
User-Agent |
KMail/1.6.2
|
References |
<20040709113711.1DDEC13BDF@lists.intevation.de>
|
In-Reply-To |
<20040709113711.1DDEC13BDF@lists.intevation.de>
|
MIME-Version |
1.0
|
Content-Disposition |
inline
|
Content-Type |
Multipart/Mixed; boundary="Boundary-00=_WlR8AVotOrdyIij"
|
Message-Id |
<200407111241.28240.morten@sickel.net>
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
--Boundary-00=_WlR8AVotOrdyIij
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Friday 09 July 2004 13:37, Markus Neteler via RT wrote:
> Morten,
>
> could you provide a (small) sample location and the
> file to import?
>
No problem. Here you are. In the location in test.tar.gz
(/home/grassdata/test) any attempts to import the map BR0712R.TIF using
r.in.gdal in grass-5.7.cvs-i686-pc-linux-gnu-26_06_2004 consistently
segfaults,
GRASS 5.7.cvs:~ > r.in.gdal -o NinaSather/Kart/BR0712R.TIF output=test
Minnesegmentsfeil
GRASS 5.7.cvs:~ >
(Minnesegmentsfeil, Norwegian, segmentation fault)
but it works fine with r.in.tiff or r.in.gdal in 5.3 (using the -o switch).
5.3, same location, same machine:
GRASS:~ > r.in.gdal -o NinaSather/Kart/BR0712R.TIF output=test
100%
CREATING SUPPORT FILES FOR test
COPYING COLOR TABLE FOR test
GRASS:~ >
My other gdal-related utilities seems to work fine. I am using v 1.2 of gdal,
by the way. Please tell me if you need some more information about my system.
(Of cource the file is only for debugging usage...)
Morten
--Boundary-00=_WlR8AVotOrdyIij
Content-Type: application/x-tgz;
name="test.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="test.tar.gz"
H4sIAEEW8UAAA+2aXU/bMBSGuc6vsLigV2lsN3FQJ5CqUQYb/VBbtE3bVIVg2mxpUsXpyrjYb9lP
nZPQwhCkaVMZDc4jofRgpyfOm9cfdcbhhBujyBHi0okdI+YiNna2DJbYtp0dmZkciW3hNL5lh8ii
mvwjRNYjlmWbO8ja9oU8xkzEToTQziSMYh48XW9V+aIhi+N/wvgR/bOmbu8xKKq/SQm1a0TqbxNM
QH8V5OhfjSfTrTwEqe6WVcz/1Ez0T4pBfwWs0t91In5d8ikoqn/qf1P+nxIsq4P+CiimP2HSndVN
G5XcD8bYOvozIv2v5CaC/oX1Jxvm2Eh/AvqrYB396YY5NtKfgv4qyNH/42n7aCs5Vukv5X6w/rMt
VgP9VTCNwu91lFHTbsKALyKsBbLJ49uQtDURzpYh1rgj4kVV0tTm/C7Emhv6YlmoReH8XsT1OYq4
CP16EgW6uBc99914feT1/xeOGEdu+Ryp/03zSf+zGvt3/U9xzbTA/ypIBEf6DUJ7e6iKDB67huwS
rjyfa1lRhH4bVcf3HJFVWUTabOKIHwhTqnV7nVZ3MHzbabUa7aODineFsnOvkJHzfLnc941Wo/8B
vUHxmAeIu+MQfenJjoVHKC2Yyq6BB/E3WePKq2jdPjmovOs1+n1kVe2q+1PUv87RIapo/HoqvxR1
G4OTg11jJiLDD13HzzLf1tU9ts/0qav7XjC71kfBTKdsiNmQYmwaF15Q3+hE4UbeNBb3T15+V/ph
GX0ipMfuwpEz4aK+u7j2k06rKa89vWHZHdpV0B/m+X/kCdmeH6VzrJ7/mQ/9b1Eb/K+CP4fPfQXA
c7Jq/B+OPRGH0a8yOVL/31rjUf9bd/N/KvsCuSCwGKz/leA68eODdLfZk6N5sz0w5PD+fnjaPu4g
mJ+/OPKl306O1PeF939puv9HYf9HCfn6b2cLMNW96P4fTvW3bdj/VUIB/UtvAa6lf+J/SjC8/6GG
gkN/qRzp/C/n9x9s2Q/0xyZlMP9TQeBMeB2dObEXzy65fhYGo/STlv0w7Psa9/2pqKP5SOybMAF8
aeT7fztbQKn/C+//WMn4zzD4Xwmw//O6KTD+n7dPB/0yOVaP/w/nf9hi4H8lzAJP+vaSjyLOtSQQ
i0hoEx7zSMakisGZL5R8/7c+txutZtkcq8Z/2QEs/S97gMT/uAbv/ykhERzM/XrJ9/9R87hxfjYY
llsHrD3/p9i24P0/JcD8HwAAAAAAAAAAAAAAAAAAAAAA4GXxFwc4x4oAUAAA
--Boundary-00=_WlR8AVotOrdyIij--
|
|
Sun, Jul 11 2004
14:10:37
|
|
Mail sent by Morten@sickel.net
|
|
Return-Path |
<morten@sickel.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Morten Sickel <morten@sickel.net>
|
Reply-To |
Morten@sickel.net
|
To |
Markus Neteler via RT <grass-bugs@intevation.de>
|
Subject |
Re: [bug #2522] (grass) Transaction (mneteler)
|
Date |
Sun, 11 Jul 2004 14:10:44 +0200
|
User-Agent |
KMail/1.6.2
|
References |
<20040709113710.F380E13BDB@lists.intevation.de>
|
In-Reply-To |
<20040709113710.F380E13BDB@lists.intevation.de>
|
MIME-Version |
1.0
|
Content-Disposition |
inline
|
Content-Type |
text/plain; charset="iso-8859-1"
|
Content-Transfer-Encoding |
8bit
|
Message-Id |
<200407111410.44646.morten@sickel.net>
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
Sorry, as far too often, I sent it without all the attachments. Please pick up
the map at http://sickel.net/BR0712R.TIF (490k) (sorry but no ftp, please use
wget to fetch it, it is quite high res and at least knoqueror didn't like it)
--
Morten Sickel
http://sickel.net/
Drøbak, Norway
|
|
Wed, Jul 14 2004
12:08:27
|
|
Mail sent by pkelly
|
|
A bug was fixed on Monday that was causing segmentation faults when importing
non-georeferenced files using 5.7 r.in.gdal:
(It consists of two lines deleted from lib/proj/convert.c:
http://freegis.org/cgi-bin/viewcvs.cgi/grass51/lib/proj/convert.c.diff?
r1=1.9&r2=1.10 )
If you can, please try now (after re-compiling lib/proj) and see if it works.
|
|
Sun, Jul 25 2004
09:32:46
|
|
Mail sent by Morten@sickel.net
|
|
Return-Path |
<morten@sickel.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Morten Sickel <morten@sickel.net>
|
Reply-To |
Morten@sickel.net
|
To |
Paul Kelly via RT <grass-bugs@intevation.de>
|
Subject |
Re: [bug #2522] (grass) Segfault in r.in.gdal on importing tiff
|
Date |
Sun, 25 Jul 2004 11:32:53 +0200
|
User-Agent |
KMail/1.6.2
|
References |
<20040714100827.CDBF913BE7@lists.intevation.de>
|
In-Reply-To |
<20040714100827.CDBF913BE7@lists.intevation.de>
|
MIME-Version |
1.0
|
Content-Disposition |
inline
|
Content-Type |
text/plain; charset="iso-8859-1"
|
Content-Transfer-Encoding |
8bit
|
Message-Id |
<200407251132.53088.morten@sickel.net>
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
On Wednesday 14 July 2004 12:08, Paul Kelly via RT wrote:
> A bug was fixed on Monday that was causing segmentation faults when
> importing non-georeferenced files using 5.7 r.in.gdal:
> (It consists of two lines deleted from lib/proj/convert.c:
> http://freegis.org/cgi-bin/viewcvs.cgi/grass51/lib/proj/convert.c.diff?
> r1=1.9&r2=1.10 )
>
> If you can, please try now (after re-compiling lib/proj) and see if it
> works.
>
Sorry, I still have not had any time for testing it. I'll give a feedback as
soon as I have had a look at it.
--
Morten Sickel
http://sickel.net/
Drøbak, Norway
|
|
Wed, Aug 11 2004
15:47:42
|
|
Mail sent by mneteler
|
|
I have tested it:
gdalinfo BR0712R.TIF
Driver: GTiff/GeoTIFF
Size is 12800, 9600
Coordinate System is `'
Metadata:
TIFFTAG_SOFTWARE=FYSAK Versjon E21.03, 2002-04-22
TIFFTAG_XRESOLUTION=508
TIFFTAG_YRESOLUTION=508
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 9600.0)
Upper Right (12800.0, 0.0)
Lower Right (12800.0, 9600.0)
Center ( 6400.0, 4800.0)
Band 1 Block=12800x9600 Type=Byte, ColorInterp=Palette
Color Table (RGB with 2 entries)
0: 255,255,255,255
1: 0,0,0,255
r.in.gdal in=BR0712R.TIF out=test loc=morten
ERROR 1: BR0712R.TIF:CCITT Group 4 compression support is not configured
ERROR 1: TIFFReadEncodedStrip() failed.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
100%
CREATING SUPPORT FILES FOR test
COPYING COLOR TABLE FOR test
mygrass57 ~/grassdata/morten/PERMANENT/
r.info -r test
min=0
max=0
So: r.in.gdal no longer crashes, but GDAL cannot decipher the
CCITT Group 4 compression.
Some tries:
tiffcp -c none BR0712R.TIF BR0712R_none.TIF
BR0712R.TIF: Warning, unknown field with tag 292 (0x124) encountered.
geotifcp -c none BR0712R.TIF BR0712R_none.TIF
BR0712R.TIF: Warning, unknown field with tag 292 (0x124) encountered.
TIFFSetField: BR0712R_none.TIF: Invalid tag "Group4Options" (not supported by
codec).
The data set is in an inappropriate TIFF encoding (at least for my
installation).
In any case r.in.gdal works now.
Closing the bug
Markus |
|
Wed, Aug 11 2004
15:48:01
|
|
Status changed to resolved by mneteler
|
|