Opened 15 years ago

Closed 14 years ago

Last modified 11 years ago

#2718 closed defect (worksforme)

hdf4_read.py and hdf4_write.py tests failed on 64-bit Debian Lenny

Reported by: dron Owned by: dron
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.6.0
Severity: normal Keywords: hdf4
Cc: warmerdam

Description

I have a lot of HDF4 tests failed on my 64-bit box using GDAL 1.6.0 RC3. I haven't much time to dig into this now, but I will return back ASAP. Meanwhile anyone interested is welcome to try to reproduce.

Script: gcore/hdf4_read.py
  TEST: Open: byte_3.hdf ... fail
    Checksum for band 1 in "byte_3.hdf" is 0, but expected 4672.
  TEST: Open: int16_3.hdf ... fail
    Checksum for band 1 in "int16_3.hdf" is 0, but expected 4672.
  TEST: Open: uint16_3.hdf ... fail
    Checksum for band 1 in "uint16_3.hdf" is 0, but expected 4672.
  TEST: Open: int32_3.hdf ... fail
    Checksum for band 1 in "int32_3.hdf" is 0, but expected 4672.
  TEST: Open: uint32_3.hdf ... fail
    Checksum for band 1 in "uint32_3.hdf" is 0, but expected 4672.
  TEST: Open: float32_3.hdf ... fail
    Checksum for band 1 in "float32_3.hdf" is 0, but expected 4672.
  TEST: Open: float64_3.hdf ... fail
    Checksum for band 1 in "float64_3.hdf" is 0, but expected 4672.
  TEST: Open: utmsmall_3.hdf ... fail
    Checksum for band 1 in "utmsmall_3.hdf" is 0, but expected 50054.
  TEST: Open: byte_2.hdf ... fail
    Checksum for band 1 in "byte_2.hdf" is 0, but expected 4672.
  TEST: Open: int16_2.hdf ... fail
    Checksum for band 1 in "int16_2.hdf" is 0, but expected 4672.
  TEST: Open: uint16_2.hdf ... fail
    Checksum for band 1 in "uint16_2.hdf" is 0, but expected 4672.
  TEST: Open: int32_2.hdf ... fail
    Checksum for band 1 in "int32_2.hdf" is 0, but expected 4672.
  TEST: Open: uint32_2.hdf ... fail
    Checksum for band 1 in "uint32_2.hdf" is 0, but expected 4672.
  TEST: Open: float32_2.hdf ... fail
    Checksum for band 1 in "float32_2.hdf" is 0, but expected 4672.
  TEST: Open: float64_2.hdf ... fail
    Checksum for band 1 in "float64_2.hdf" is 0, but expected 4672.
  TEST: Open: utmsmall_2.hdf ... fail
    Checksum for band 1 in "utmsmall_2.hdf" is 0, but expected 50054.
Script: gcore/hdf4_write.py
  TEST: CreateCopy: byte.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: byte.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: byte.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: int16.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: int16.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: int16.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: uint16.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: uint16.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: uint16.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: int32.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: int32.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: int32.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: uint32.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: uint32.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: uint32.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: float32.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: float32.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: float32.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: float64.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: Create: float64.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: float64.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 4672.
  TEST: CreateCopy: utmsmall.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 50054.
  TEST: Create: utmsmall.tif rank=3 ... fail
    Did not get expected checksum on reopened file.
  TEST: CreateCopy: utmsmall.tif rank=2 ... fail
    Did not get expected checksum on reopened file.
    Got 0 instead of 50054.

Change History (3)

comment:1 by warmerdam, 15 years ago

Cc: warmerdam added
Component: defaultGDAL_Raster
Keywords: hdf4 added; hdf removed

Andrey,

These tests pass fine for me on 64bit linux (ubuntu) but I use my own build of HDF4.2r1. I'd suggest starting investigations with the version and build of the hdf4 libraries. Perhaps build a local copy of hdf4 libs for comparison.

comment:2 by Even Rouault, 14 years ago

Resolution: worksforme
Status: newclosed

My experience is that a recent build of HDF4 lib is necessary on 64bit Linux. I've no problem with HDF4.2r4, but got crashes with earlier versions

comment:3 by Even Rouault, 11 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.