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

Home » Public Forums » archive » Trouble writing very large files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Trouble writing very large files [message #64729] Thu, 15 January 2009 12:39 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Vince Hradil posted a message in September about problems writing
large files. I am encountering the same problem, but with a
variation. Instead of giving a segmentation fault, IDL returns
without writing anything.

IDL> print,!version
{ x86_64 linux unix linux 7.0 Oct 25 2007 64 64}
IDL> im = intarr(4096,4096,256)
IDL> openw,1,'test.dat'
IDL> writeu,1,im
IDL> close,1
IDL> $ls -l test.dat
-rw-r--r-- 1 wlandsma shadow 0 2009-01-15 15:22 test.dat

If I instead do the same thing with a 4096 x 4096 x 255 array, then
IDL does crash with a segmentation fault. My guess is that an
internal IDL counter is not properly defined as 64 bit integer, and
so is being set to zero in my first case (where subscripts are a exact
multiple of two). In the second case it is being set to a negative
number and causing IDL to crash.

In any case this seems to be an internal IDL bug, since I should be
able to write these arrays on a 64 bit machine. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: ENVI IDL script stops running abruptly
Next Topic: Re: Map Projection Bug

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

Current Time: Wed Oct 08 19:10:12 PDT 2025

Total time taken to generate the page: 0.00536 seconds