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

Home » Public Forums » archive » Re: X-windows locking up
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: X-windows locking up [message #32542] Wed, 16 October 2002 05:40
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ian Dean (Ian.d.dean@baesystems.com) writes:

> Pro my_test
> tlb = widget_base(column=1)
> message=widget_label(tlb,value='A header')
> my_base = widget_base(tlb, column=1)
> widget_control,my_base,sensitive=0 ; Don't allow the user access yet
> base2 = widget_base(my_base, row=1)
> pulld2 = widget_droplist(base2, value=['aaa','bbb'])
> base3 = widget_base(my_base, row=1)
> pulld3 = widget_droplist(base2, value=['ccc','ddd'])
> ; ... more such bases and widgets
> widget_control, tlb,/realize
> wait,5.0 ; Do some processing
> widget_control,my_base,/sensitive ; Now make structure available
> ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the point when the system hangs
> end

Have you tried realizing the TLB and *then* making
the base insensitive? I wonder if there is something
in the realize step that is not being set up correctly.
I've done this for some of my programs and I have never
heard they locked up on UNIX machines.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: X-windows locking up [message #32544 is a reply to message #32542] Wed, 16 October 2002 05:08 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dear Ian,

it's already posted but it's fine to see others do more tests on
different systems.

I believe nearly the same was asked by Claudia Herklotz at 09.10.2002
with the subject "droplist doesn't work under linux"

regards

Reimar


Ian Dean wrote:
> Hi all,
> Sorry if this has already been posted - the original seems to have
> disappeared.
>
> This request is really for the VMS users out there.!!!!!
>
> Is there a known bug using the sensitive flag on a widget base under
> OpenVMS?
>
> What I want is a widget structure that has greyed out areas until some later
> stage when I need them to be made available. It is at this point the failure
> occurs.
>
> For instance, the following code:
>
> Pro my_test
> tlb = widget_base(column=1)
> message=widget_label(tlb,value='A header')
> my_base = widget_base(tlb, column=1)
> widget_control,my_base,sensitive=0 ; Don't allow the user access yet
> base2 = widget_base(my_base, row=1)
> pulld2 = widget_droplist(base2, value=['aaa','bbb'])
> base3 = widget_base(my_base, row=1)
> pulld3 = widget_droplist(base2, value=['ccc','ddd'])
> ; ... more such bases and widgets
> widget_control, tlb,/realize
> wait,5.0 ; Do some processing
> widget_control,my_base,/sensitive ; Now make structure available
> ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the point when the system hangs
> end
>
> When I run the above under OpenVMS 7.1 and IDL 5.4 and the drop-down
> list is originally unavailable as expected. However, when my_base is made
> sensitive
> the droplist widget is enabled, but all the selections available
> ('aaa','bbb'...) are greyed out. Furthermore, at this point the X-system
> locks up. I can no longer size the screen, close it, minimise it.
> All I can do is reboot - not exactly desirable.
>
> Note: this only happens if the droplist is in a base below the insensitive
> base.
>
> Further investigation indicates that the software is expecting me to make a
> selection, but this is not possible because they are greyed out. Hence the
> systems is stuck on waiting for an event that can never occur.
>
> I believe this is only a problem with VMS, as the same code runs as expected
> on NT
>
> I CAN work round it by not making my_base insensitive, but all the lower
> widgets insensitive. However, in the real code, there is a large structure
> of widgets (base,buttons,pull-downs,etc) under this base, and in order to
> make them sensitive, I'd need to set each widget to sensitive individually -
> messy and time consuming.
>
> I would be grateful for any suggestions.
> Regards,
> Ian
>
>
>


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: X-windows locking up [message #32546 is a reply to message #32544] Tue, 15 October 2002 19:13 Go to previous message
Jeff Guerber is currently offline  Jeff Guerber
Messages: 41
Registered: July 2000
Member
On Tue, 15 Oct 2002, Ian Dean wrote:

> [...]
> For instance, the following code:
>
> Pro my_test
> tlb = widget_base(column=1)
> message=widget_label(tlb,value='A header')
> my_base = widget_base(tlb, column=1)
> widget_control,my_base,sensitive=0 ; Don't allow the user access yet
> base2 = widget_base(my_base, row=1)
> pulld2 = widget_droplist(base2, value=['aaa','bbb'])
> base3 = widget_base(my_base, row=1)
> pulld3 = widget_droplist(base2, value=['ccc','ddd'])
> ; ... more such bases and widgets
> widget_control, tlb,/realize
> wait,5.0 ; Do some processing
> widget_control,my_base,/sensitive ; Now make structure available
> ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the point when the system hangs
> end
>
> When I run the above under OpenVMS 7.1 and IDL 5.4 and the drop-down
> list is originally unavailable as expected. However, when my_base is made
> sensitive
> the droplist widget is enabled, but all the selections available
> ('aaa','bbb'...) are greyed out. Furthermore, at this point the X-system
> locks up. I can no longer size the screen, close it, minimise it.
> All I can do is reboot - not exactly desirable.
> [...]


I can confirm that this also occurs with IDL 5.5 on HP-UX ( !version =
{ hp_pa hp-ux unix hp-ux 5.5 Aug 28 2001 32 64} ), displaying on a
Hummingbird Exceed 7.0.0 x-server running on Windows 2000 Pro. I _was_,
however, able to type "exit" at the IDL> prompt.

I noticed that my_test doesn't have an event handler, so I tried it
with an appropriate xmanager call (first just before the end statement,
then just after the widget_control,/realize) and a simple handler, but it
didn't help. The first time, I neglected the /no_block keyword, it
completely locked up the terminal window... not even ^C worked... and I
had to kill the IDL process from another terminal window, but the second
time, with /no_block, I did still have the IDL command line. There was no
indication that the handler was ever entered (it would have printed out a
message). Good luck!

Jeff Guerber

P.S. Our newsserver received both versions of your posting, so the
first one wasn't lost after all.
Re: X-windows locking up [message #32553 is a reply to message #32546] Tue, 15 October 2002 10:50 Go to previous message
Dave Greenwood is currently offline  Dave Greenwood
Messages: 33
Registered: October 2000
Member
In a previous article, "Ian Dean" <Ian.d.dean@baesystems.com> wrote:
> Hi all,
> Sorry if this has already been posted - the original seems to have
> disappeared.
>
> This request is really for the VMS users out there.!!!!!
>
> Is there a known bug using the sensitive flag on a widget base under
> OpenVMS?
>
> What I want is a widget structure that has greyed out areas until some later
> stage when I need them to be made available. It is at this point the failure
> occurs.
>
> For instance, the following code:
>
> Pro my_test
> tlb = widget_base(column=1)
> message=widget_label(tlb,value='A header')
> my_base = widget_base(tlb, column=1)
> widget_control,my_base,sensitive=0 ; Don't allow the user access yet
> base2 = widget_base(my_base, row=1)
> pulld2 = widget_droplist(base2, value=['aaa','bbb'])
> base3 = widget_base(my_base, row=1)
> pulld3 = widget_droplist(base2, value=['ccc','ddd'])
> ; ... more such bases and widgets
> widget_control, tlb,/realize
> wait,5.0 ; Do some processing
> widget_control,my_base,/sensitive ; Now make structure available
> ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the point when the system hangs
> end
>
> When I run the above under OpenVMS 7.1 and IDL 5.4 and the drop-down
> list is originally unavailable as expected. However, when my_base is made
> sensitive
> the droplist widget is enabled, but all the selections available
> ('aaa','bbb'...) are greyed out. Furthermore, at this point the X-system
> locks up. I can no longer size the screen, close it, minimise it.
> All I can do is reboot - not exactly desirable.

I see the same problem with VMS 7.3 and IDL 5.3. However, if you can
telnet or set host to your VMS box all you need to do is to stop the process
running IDL - no need to reboot. I *also* see this problem using an AIX
system running IDL 5.3 so it may be a problem with IDL and *Xwindows* rather
than a problem with IDL and VMS. However, in my test the X server was still
my VMS system so I can't say whether it's X or VMS for sure. Perhaps some
unix user will be willing to test this and verify where the problem is.

> Note: this only happens if the droplist is in a base below the insensitive
> base.

I have an IDL utility that maps and unmaps bases with various options
depending on what's needed when. The contents of those bases are mutually
exclusive so I just map one base at a time, all in the same screen real
estate. At least one of my mapped bases includes a droplist, although I
don't recall offhand if there are intermediate bases between the mapped base
and the droplist. The same code works on VMS, Windows and Linux.

Dave
--------------
Dave Greenwood Email: Greenwoodde@ORNL.GOV
Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
Re: X-windows locking up [message #32554 is a reply to message #32553] Tue, 15 October 2002 10:26 Go to previous message
Harvey Rarback is currently offline  Harvey Rarback
Messages: 24
Registered: September 1998
Junior Member
"Ian Dean" <Ian.d.dean@baesystems.com> wrote in message
news:3dac27c2$1@baen1673807.greenlnk.net...
>
> This request is really for the VMS users out there.!!!!!

The last of a dying breed :-(


> Is there a known bug using the sensitive flag on a widget base under
> OpenVMS?
>
> What I want is a widget structure that has greyed out areas until some
later
> stage when I need them to be made available. It is at this point the
failure
> occurs.
>
> For instance, the following code:
[...]
>
> When I run the above under OpenVMS 7.1 and IDL 5.4 and the drop-down
> list is originally unavailable as expected. However, when my_base is made
> sensitive
> the droplist widget is enabled, but all the selections available
> ('aaa','bbb'...) are greyed out. Furthermore, at this point the X-system
> locks up. I can no longer size the screen, close it, minimise it.
> All I can do is reboot - not exactly desirable.

I can confirm that the bug exists on an earlier version of IDL (5.3) on a
later version of OpenVMS Alpha (7.3).

Why don't you ask RSI to fix it ;-)

--Harvey
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: X-windows locking me out
Next Topic: Re: connected component labeling problem in a graylevel image without background

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

Current Time: Wed Oct 08 15:28:20 PDT 2025

Total time taken to generate the page: 0.00732 seconds