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

Home » Public Forums » archive » idl_idlbridge weirdness on unix systems
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
idl_idlbridge weirdness on unix systems [message #79434] Tue, 28 February 2012 09:49
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
I encountered a strange problem today while working with IDL child
processes instantiated using the IDL_IDLBridge class. Specifically, I
want to be able to use a lot of subprocesses on a 4 CPU x 12-kernel
server, so I tried using 48 IDL_IDLBridge objects to test the system.
But no cigar. IDL hangs apparently at random. I narrowed down the
problem to the following.

The simple code below just instantiates an array of objects, and then
tries to destroy them one by one. What happens (for me) is that when
it encounters index ii=16, the entire IDL process hangs.

N = 17
b = objarr(N)
for ii=0, N-1 do b[ii]=obj_new('idl_idlbridge')

for ii=0, N-1 do begin
status = b[ii]->status() ; Just to make sure the object is idle
(status = 0)
print, ii, status
obj_destroy, b[ii]
endfor

Now comes the weird part; the following almost identical code, where I
just destroy the objects in the opposite order, works fine always!

N = 17
b = objarr(N)
for ii=0, N-1 do b[ii]=obj_new('idl_idlbridge')

for ii=N-1,0,-1 do begin
status = b[ii]->status() ; Just to make sure the object is idle
(status = 0)
print, ii, status
obj_destroy, b[ii]
endfor

I have tried this with identical results on the following systems:
IDL 7.0.8, Linux 2.6.20 (old Fedora system)
IDL 8.1, Linux 2.6.32 (new Red Hat system)
IDL 8.1 Linux 2.6.32 (Ubuntu 10.04 LTS)
IDL 7.1.1, Mac OS X 10.6.8

However, I tested it on the following system with no problems:
IDL 6.4, Windows XP

Anyone else with similar experience?

--
Yngvar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL arrays having more than 8 dimensions
Next Topic: Interesting "Feature" Discovered!

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

Current Time: Wed Oct 08 13:48:00 PDT 2025

Total time taken to generate the page: 0.00499 seconds