[#587] gdal 1.5.0-3 (from Debian sid) leads to error messages and test failures

Date:
2008-02-03 00:26
Priority:
3
State:
Closed
Submitted by:
Bernhard Reiter (bernhard)
Assigned to:
Nobody (None)
Category:
none
Version:
none
Resolution:
none
Summary:
gdal 1.5.0-3 (from Debian sid) leads to error messages and test failures

Detailed description
Thuban svn rev2830 and Debian sid
python-gdal 1.5.0-3,
python thuban.py Data/iceland_sample_raster.thuban

leads to error message for each display on the command line
ERROR 1: Missing required field (one of PIXELS, LINES or DATAPOINTER)
Unable to access in-memory array.

Still the raster image is displayed.

When running tests, this is different, e.g.

python test_baserenderer.py
ERROR 4: `/mobilehome/bernhard/hacking/thuban/probe/Thuban-1.2.1/Data/iceland/island.tif' not recognised as a supported file format.

On the second call of gdal.Open() there is 'None' returned with the error message above and the test failing.
Message  ↓
Date: 2009-07-10 07:19
Sender: Didrik Pinte

r2881 closes this ticket. All the tests in test_baserenderer.py are running fine now. This was caused by a call to GDALDestroyDriverManager in gdalwarp.cpp.

Date: 2008-11-18 09:51
Sender: Didrik Pinte

I've commited a small change solving the ERROR 1 problem (see revision 2866). The information comes from here :

http://article.gmane.org/gmane.comp.gis.gdal.devel/16644

The ERROR 4 is still present ...

Date: 2008-11-18 09:28
Sender: Didrik Pinte

Bugs seems related to gdalwarp the error message :

--------------------------------------------------------
ERROR 1: Missing required field (one of PIXELS, LINES or DATAPOINTER)
Unable to access in-memory array.
--------------------------------------------------------

appears just after the call to the class ProjectRasterFile from gdalwarp.

Didrik

Date: 2008-04-03 14:58
Sender: Didrik Pinte

It seems to be worse here :


did@ddp:~/projets/python/thuban/current/thuban/test$ python runtests.py
/usr/lib/python2.4/site-packages/osgeo/gdal.py:81: DeprecationWarning: gdal.py was placed in a namespace, it is now available as osgeo.gdal
DeprecationWarning)
................................SSSS............SSSS..................................SSSSSSS......................................ERROR 1: Missing required field (one of PIXELS, LINES or DATAPOINTER)
Unable to access in-memory array.
ERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

EERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

EERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

E..............................ERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

E...............ERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

EERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

E.....................................................................................................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS..SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...............................SSS.....................SSSSERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

E....ERROR 4: `/home/did/projets/python/thuban/current/thuban/Data/iceland/island.tif' not recognised as a supported file format.

E.......................................................................FF...........
======================================================================
ERROR: test_baserenderer.TestBaseRenderer.test_projected_raster_decimalcommalocale
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_baserenderer.py", line 372, in test_projected_raster_decimalcommalocale
img_data1 = _do_project_island()
File "/home/did/projets/python/thuban/current/thuban/test/test_baserenderer.py", line 356, in _do_project_island
"island.tif"))
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_baserenderer.TestBaseRenderer.test_projected_raster_layer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_baserenderer.py", line 288, in test_projected_raster_layer
"island.tif"))
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_baserenderer.TestBaseRenderer.test_raster_no_projection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_baserenderer.py", line 390, in test_raster_no_projection
"island.tif"))
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_load_0_8.TestRasterLayer.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_load_0_8.py", line 447, in test
session = load_session(self.filename())
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/load.py", line 688, in load_session
handler.read(filename)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/xmlreader.py", line 75, in read
parser.parse(self.__file)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 353, in start_element_ns
AttributesNSImpl(newattrs, qnames))
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/xmlreader.py", line 114, in startElementNS
getattr(self, method_name[0])(name, qname, attrs)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/load.py", line 524, in start_rasterlayer
masktype = masktypes[masktype])
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_layer.TestLayer.test_raster_layer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_layer.py", line 232, in test_raster_layer
layer = RasterLayer("Test RasterLayer", filename)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_layer.TestLayerModification.test_raster_layer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_layer.py", line 482, in test_raster_layer
layer = RasterLayer("Test RasterLayer", filename)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_load_0_9.TestRasterLayer.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_load_0_9.py", line 469, in test
session = load_session(self.filename())
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/load.py", line 688, in load_session
handler.read(filename)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/xmlreader.py", line 75, in read
parser.parse(self.__file)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 353, in start_element_ns
AttributesNSImpl(newattrs, qnames))
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/xmlreader.py", line 114, in startElementNS
getattr(self, method_name[0])(name, qname, attrs)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/load.py", line 524, in start_rasterlayer
masktype = masktypes[masktype])
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
ERROR: test_save.SaveSessionTest.testRasterLayer
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/test_save.py", line 270, in testRasterLayer
layer = RasterLayer("My RasterLayer", imgfile)
File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/layer.py", line 443, in __init__
raise IOError()
IOError

======================================================================
FAIL: Extensions.ogr.test.test_OGRShapestore.TestOGRTable.test_Column
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/../Extensions/ogr/test/test_OGRShapestore.py", line 200, in test_Column
self.assertEquals(self.table.Column(0).type, FIELDTYPE_INT)
AssertionError: 'double' != 'int'

======================================================================
FAIL: Extensions.ogr.test.test_OGRShapestore.TestOGRTable.test_Columns
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/did/projets/python/thuban/current/thuban/test/../Extensions/ogr/test/test_OGRShapestore.py", line 194, in test_Columns
self.assertEquals(self.table.Columns()[0].type, FIELDTYPE_INT)
AssertionError: 'double' != 'int'

----------------------------------------------------------------------
Ran 578 tests in 6.034s

FAILED (failures=2, errors=8)
skipped = 166
-0x4bab05f4 LAYER_VISIBILITY_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 MAP_PROJECTION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 EXTENSION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 LAYER_PROJECTION_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 LAYER_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 MAP_LAYERS_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab05f4 EXTENSION_OBJECTS_CHANGED
method forward of <Thuban.Model.session.Session instance at 0xb454fc6c>
-0x4bab0434 CHANGED
method forward of <Thuban.Model.map.Map instance at 0xb454fa0c>
-0x4bae5134 CHANGED
method forward of <Thuban.Model.map.Map instance at 0xb4522cac>
-0x4b7e3ad4 CHANGED
method forward of <Thuban.Model.map.Map instance at 0xb481c74c>
-0x4bad86b4 CHANGED
method forward of <Thuban.Model.map.Map instance at 0xb45273ac>
XML validation attempts ignored because pyRXP is not available

No attached documents

Field Old Value Date By
status_idOpen2009-07-10 07:19Didrik Pinte
close_date2009-07-10 07:192009-07-10 07:19Didrik Pinte