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

Home » Public Forums » archive » IDL object graphics code logs me out?!
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 object graphics code logs me out?! [message #66907] Thu, 18 June 2009 14:21 Go to next message
Paul Van Delst[1] is currently offline  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 #67033 is a reply to message #66907] Thu, 25 June 2009 07:34 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: IDL object graphics code logs me out?! [message #67084 is a reply to message #66907] Tue, 23 June 2009 09:49 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> Anyone know how to set software opengl on a linux box?

If you type this:

IDL> HELP, /PREFERENCES

You will see a list of all the preferences IDL sets. (Add
a /FULL if you want more details.) One of those preferences
is IDL_GR_WIN_RENDERER. This is what you want to set to
"software".

IDL> Set_Pref, 'IDL_GR_WIN_RENDERER', 1, /COMMIT

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 #67165 is a reply to message #66907] Wed, 01 July 2009 11:00 Go to previous message
David Fanning is currently offline  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 Go to previous message
Paul Van Delst[1] is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: In catalyst, how do I decide which object need to be destroyed by hand?
Next Topic: Can't copy from widget table: brainfart

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

Current Time: Sun Oct 12 12:07:21 PDT 2025

Total time taken to generate the page: 0.72430 seconds