IDL object graphics code logs me out?! [message #66907] |
Thu, 18 June 2009 14:21  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hello,
I think I may be losing my mind, but just in case I'll post the question here:
Has anyone had any weird experiences where using object graphics in IDL causes them to be
logged out of their system?
It's happened to me four times in about the last 30 minutes and I can now reproduce it
relatively regularly with the code I'm testing.
My system is a Red Hat Enterprise 5.0 jobbie with,
IDL> print, !version
{ x86 linux unix linux 7.0 Oct 25 2007 32 64}
I also have the patch installed such that I can get the IDL help running (however the
problem occurs whether or not I start the idlhelp server.)
My *original* direct graphics code looked like:
psave = !P
!P.MULTI = [0,self.n_Bands,1]
FOR i = 0L, self.n_Bands-1L DO BEGIN
PLOT, *(*self.Frequency)[i], *(*self.Response)[i], $
TITLE='Band #'+STRTRIM(i+1,2), $
XTITLE='Frequency', $
YTITLE='Relative response',yrange=[-0.2,1.2]
IF ( N_ELEMENTS(OverPlot) GT 0 ) THEN BEGIN
OPLOT, *(*OverPlot.Frequency)[i], *(*OverPlot.Response)[i], $
COLOR=RED, PSYM=-4
ENDIF
ENDFOR
!P = psave
That's been working fine for a couple weeks now. I started to play around with object
graphics using the examples pretty much directly from the online help and came up with the
following initial code:
mywindow = OBJ_NEW('IDLgrWindow')
myview = OBJ_NEW('IDLgrView', VIEWPLANE_RECT=[-10,-10,20,20])
mymodel = OBJ_NEW('IDLgrModel')
myview->Add, mymodel
myplot = OBJARR(self.n_Bands)
myoplot = OBJARR(self.n_Bands)
FOR i = 0L, self.n_Bands-1L DO BEGIN
myplot[i] = OBJ_NEW('IDLgrPlot', $
*(*self.Frequency)[i], $
*(*self.Response)[i] )
mymodel->Add, myplot[i]
IF ( N_ELEMENTS(OverPlot) GT 0 ) THEN BEGIN
myoplot[i] = OBJ_NEW('IDLgrPlot', $
*(*OverPlot.Frequency)[i], $
*(*OverPlot.Response)[i], $
COLOR=RED)
myoplot[i]->SetProperty, SYMBOL=OBJ_NEW('IDLgrSymbol',COLOR=RED,DATA=4)
mymodel->Add, myoplot[i]
ENDIF
ENDFOR
mywindow->Draw, myview
The fact that the above OG code doesn't actually produce any output in the created object
graphics window is overwhelmingly trivial next to the fact that it also logs me out of my
system (shutting down everything else I had running as well).
Anyone have any ideas, memories, etc about this rather bizarre effect?
cheers,
paulv
|
|
|
|
|
Re: IDL object graphics code logs me out?! [message #67165 is a reply to message #66907] |
Wed, 01 July 2009 11:00  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
> If by solved you mean "removed all object graphics from my IDL code" then, yes.
Yeah, that's what I meant. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: IDL object graphics code logs me out?! [message #67166 is a reply to message #67033] |
Wed, 01 July 2009 10:44  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
David Fanning wrote:
> Paul van Delst writes:
>
>> Has anyone had any weird experiences where using object graphics in IDL causes them to be
>> logged out of their system?
>
> Did you solve this problem?
Hi David,
If by solved you mean "removed all object graphics from my IDL code" then, yes.
In reality, no, I haven't been able to test the suggested fix(es). I have too many things
running in the background/on other desktops right now so I will need to wait for some
scheduled system downtime (we get that about once every two or so months for our linux
systems).
Thanks for checking up, though. :o)
cheers,
paulv
|
|
|