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

Home » Public Forums » archive » IDL_IDL Bridge crashing when setting large variables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL_IDL Bridge crashing when setting large variables [message #51629] Fri, 01 December 2006 17:45
Pierre V. is currently offline  Pierre V.
Messages: 13
Registered: December 2006
Junior Member
I thought I'd try out the IDL-IDL bridge today and my first attempt was
to try to save a large chunk of data to a file in the background while
my program did other work. I kept getting weird error messages like
"Error, could not get error information." And then sometimes IDL would
segmentation fault and dump me back to the command line.

I am working on a dual CPU intel machine running Redhat linux, and
obviously I am running version 6.3 IDL.

I cooked up an example script using the IDL bridge that makes IDL
crash. It creates two bytarrays, the second just 1 byte larger than
the first. IDL craps out for me when I try to pass the variable C2
over to the bridge. The variable C1 goes over just fine. The variable
N is just 76 bytes shy of 32 megabytes. Is that meaningful?

Anybody have any insight into this? The documentation says nothing
about limits on the size of data that can be passed over the bridge.
Has anyone seen this before?


N = 33554356 ; number of bytes
c1 = bytarr(N)
c2 = bytarr(N + 1)

print, 'OK 1'
idl_o = obj_new('idl_idlbridge')

print, 'OK 2'
idl_o->setvar, 'c1', c1 ;; <== this line runs OK for me.

print, 'OK 3'
idl_o->setvar, 'c2', c2 ;; <== this line crashes on my
machine!!!!

print, 'OK 4'
[Message index]
 
Read Message
Previous Topic: Re: format questions
Next Topic: min_curve_surf

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

Current Time: Fri Oct 10 04:57:45 PDT 2025

Total time taken to generate the page: 1.11596 seconds