comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Readu, Writeu Causing Segmentation Fault
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Readu, Writeu Causing Segmentation Fault [message #67903 is a reply to message #67902] Mon, 07 September 2009 01:10 Go to previous messageGo to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Sep 7, 6:21 am, "A.R." <alrom...@gmail.com> wrote:

> I have created rather large volumes (3-D binary arrays) in IDL that I
> save as unformatted data (i.e. writeu). When the volume gets above a
> certain size (around 2.2 GB) when I attempt to writeu or readu the
> volume, I am kicked out of IDL with a segmentation fault. I don't
> think it's a memory issue, I'm running 64-bit IDL on a 64-bit linux
> running redhat enterprise with 12 GB of ram.

Could it be a file-system issue? Or perhaps IDL uses 32-bit integers
somewhere for the internal file pointer, you never know...

> One workaround I've used for 'writeu' is to write to the file in
> chunks, by using a for loop to write each slice of the volume
> individually. This works for saving the volume, but then I have no
> way to re-open the volume in IDL without the readu segmentation fault!
>
> Anyone have any ideas for what could be causing this? I'm running IDL
> Version 6.2.
>
> I appreciate any suggestions/ideas you smart people might have! In
> the meantime, I'll continue banging my head against the wall over this
> one.

IDL 6.2 can just do this: use HDF-5 as an alternative to writeu/readu.
It will allow you to selectively write and read chunks of data,
without size limitations (note before you run out of 12 GB main
memory). HDF-4 won't let you write file of the size you apparently
need to use, neither will netcdf.

Be aware though that IDL 6.2 is the first version with write support
for HDF-5, and if I recall correctly, you may encounter some funny
features that have since been removed...

Best,

Maarten
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stacking Map Projections for 3D depiction
Next Topic: Re: referencing structure arrays

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:41 PDT 2025

Total time taken to generate the page: 0.00408 seconds