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

Home » Public Forums » archive » Re: IDL_IDL Bridge crashing when setting large variables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL_IDL Bridge crashing when setting large variables [message #51624] Sat, 02 December 2006 10:41
Pierre V. is currently offline  Pierre V.
Messages: 13
Registered: December 2006
Junior Member
Ahah! That's it! Thank you soo much! Too bad the IDL documentation
didn't hint at this issue.

-Pierre
Re: IDL_IDL Bridge crashing when setting large variables [message #51625 is a reply to message #51624] Sat, 02 December 2006 10:27 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Sat, 1 Dec 2006, villeneuve@spacecomputer.com wrote:

> 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'
>
>

max. shared memory size:

cat /proc/sys/kernel/shmmax

you can change it (as root):

echo 1073741824 > /proc/sys/kernel/shmmax


regards,
lajos
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: min_curve_surf
Next Topic: min_curve_surf

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

Current Time: Fri Oct 10 14:03:19 PDT 2025

Total time taken to generate the page: 0.47910 seconds