Error when calling H5Dwrite

All,

When does one come across this error when Write is initiated .

HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back
trace follows.

  #000: ..\..\src\H5Dio.c line 587 in H5Dwrite(): can't write data

    major(15): Dataset interface

    minor(25): Write failed

  #001: ..\..\src\H5Dio.c line 958 in H5D_write(): can't write data

    major(15): Dataset interface

    minor(25): Write failed

  #002: ..\..\src\H5Dio.c line 2139 in H5D_chunk_write(): file gather
failed

    major(05): Low-level I/O layer

    minor(25): Write failed

  #003: ..\..\src\H5Dselect.c line 204 in H5D_select_fgath(): read error

    major(14): Dataspace interface

    minor(24): Read failed

  #004: ..\..\src\H5Distore.c line 2025 in H5D_istore_readvv(): unable
to read raw data chunk

    major(05): Low-level I/O layer

    minor(24): Read failed

  #005: ..\..\src\H5Distore.c line 1628 in H5D_istore_lock(): memory
allocation failed for raw data chunk

    major(02): Resource unavailable

    minor(06): No space available for allocation

Regards

Ramakrishnan

Hi Ramakrishnan,

All,

When does one come across this error when Write is initiated .

  The HDF5 library couldn't allocate space to store a copy of the chunk in memory. Are your chunks very large?

  Quincey

···

On Jul 23, 2008, at 12:53 AM, Ramakrishnan Iyer wrote:

HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back trace follows.

  #000: ..\..\src\H5Dio.c line 587 in H5Dwrite(): can't write data

    major(15): Dataset interface

    minor(25): Write failed

  #001: ..\..\src\H5Dio.c line 958 in H5D_write(): can't write data

    major(15): Dataset interface

    minor(25): Write failed

  #002: ..\..\src\H5Dio.c line 2139 in H5D_chunk_write(): file gather failed

    major(05): Low-level I/O layer

    minor(25): Write failed

  #003: ..\..\src\H5Dselect.c line 204 in H5D_select_fgath(): read error

    major(14): Dataspace interface

    minor(24): Read failed

  #004: ..\..\src\H5Distore.c line 2025 in H5D_istore_readvv(): unable to read raw data chunk

    major(05): Low-level I/O layer

    minor(24): Read failed

  #005: ..\..\src\H5Distore.c line 1628 in H5D_istore_lock(): memory allocation failed for raw data chunk

    major(02): Resource unavailable

    minor(06): No space available for allocation

Regards

Ramakrishnan

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Dear Quincey,

No. The chunks are 1 dimensional and hold only 10 elements . There is
one more problem . My application crashes when either of the 3 functions
are called H5Dwrite , H5Dclose and H5Dopen . These functions make calls
to memory functions like malloc, realloc or free . The parameters passed
to these functions are proper . What do you think the problem could be ?

PS: The crash dosen't occur on every information written into hdf5 .

Regards,
Ramakrishnan

···

-----Original Message-----
From: Quincey Koziol [mailto:koziol@hdfgroup.org]
Sent: Thursday, July 24, 2008 5:30 PM
To: Ramakrishnan Iyer
Cc: HDF forum; HDF help
Subject: Re: [hdf-forum] Error when calling H5Dwrite

Hi Ramakrishnan,

On Jul 23, 2008, at 12:53 AM, Ramakrishnan Iyer wrote:

All,

When does one come across this error when Write is initiated .

  The HDF5 library couldn't allocate space to store a copy of the
chunk
in memory. Are your chunks very large?

  Quincey

HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0.
Back trace follows.

  #000: ..\..\src\H5Dio.c line 587 in H5Dwrite(): can't write data

    major(15): Dataset interface

    minor(25): Write failed

  #001: ..\..\src\H5Dio.c line 958 in H5D_write(): can't write data

    major(15): Dataset interface

    minor(25): Write failed

  #002: ..\..\src\H5Dio.c line 2139 in H5D_chunk_write(): file
gather failed

    major(05): Low-level I/O layer

    minor(25): Write failed

  #003: ..\..\src\H5Dselect.c line 204 in H5D_select_fgath(): read
error

    major(14): Dataspace interface

    minor(24): Read failed

  #004: ..\..\src\H5Distore.c line 2025 in H5D_istore_readvv():
unable to read raw data chunk

    major(05): Low-level I/O layer

    minor(24): Read failed

  #005: ..\..\src\H5Distore.c line 1628 in H5D_istore_lock(): memory
allocation failed for raw data chunk

    major(02): Resource unavailable

    minor(06): No space available for allocation

Regards

Ramakrishnan

Hi Ramakrishnan,

Dear Quincey,

No. The chunks are 1 dimensional and hold only 10 elements . There is
one more problem . My application crashes when either of the 3 functions
are called H5Dwrite , H5Dclose and H5Dopen . These functions make calls
to memory functions like malloc, realloc or free . The parameters passed
to these functions are proper . What do you think the problem could be ?

PS: The crash dosen't occur on every information written into hdf5 .

  Sounds like the memory in your application been corrupted. Can you try using valgrind or Purify to determine where? Let me know if you track it down into HDF5, or you can duplicate the error with a simple program for us to look at.

  Quincey

···

On Jul 24, 2008, at 7:06 AM, Ramakrishnan Iyer wrote:

Regards,
Ramakrishnan

-----Original Message-----
From: Quincey Koziol [mailto:koziol@hdfgroup.org]
Sent: Thursday, July 24, 2008 5:30 PM
To: Ramakrishnan Iyer
Cc: HDF forum; HDF help
Subject: Re: [hdf-forum] Error when calling H5Dwrite

Hi Ramakrishnan,

On Jul 23, 2008, at 12:53 AM, Ramakrishnan Iyer wrote:

All,

When does one come across this error when Write is initiated .

  The HDF5 library couldn't allocate space to store a copy of the
chunk
in memory. Are your chunks very large?

  Quincey

HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0.
Back trace follows.

#000: ..\..\src\H5Dio.c line 587 in H5Dwrite(): can't write data

   major(15): Dataset interface

   minor(25): Write failed

#001: ..\..\src\H5Dio.c line 958 in H5D_write(): can't write data

   major(15): Dataset interface

   minor(25): Write failed

#002: ..\..\src\H5Dio.c line 2139 in H5D_chunk_write(): file
gather failed

   major(05): Low-level I/O layer

   minor(25): Write failed

#003: ..\..\src\H5Dselect.c line 204 in H5D_select_fgath(): read
error

   major(14): Dataspace interface

   minor(24): Read failed

#004: ..\..\src\H5Distore.c line 2025 in H5D_istore_readvv():
unable to read raw data chunk

   major(05): Low-level I/O layer

   minor(24): Read failed

#005: ..\..\src\H5Distore.c line 1628 in H5D_istore_lock(): memory
allocation failed for raw data chunk

   major(02): Resource unavailable

   minor(06): No space available for allocation

Regards

Ramakrishnan

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.