Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: continued threading issues

Bill/Stuart-

Bill Hibbard wrote:
I doubt that hacking the ThreadPool to create just one
thread will work. We have had lots of trouble with
offscreen rendering over the years. To track down the
cause of this hang, I'd run in jdb (haven't done so in
years) and when the systems hangs, enter "where all" to
see where all the threads are and why they are all hung
(deadlock or whatever).

I agree that hacking the ThreadPool would be dangerous.
You can get a stack trace without running the jdb by:

- pressing Ctrl-Break (windows)
- sending a kill -3 to the java process (unix)

which will show any deadlocks.

Jeff McWhirter ran into some problems with the screen
capture in the IDV using the wait flag.  We've since
moved to using java.awt.Robot to capture images:

              Dimension dim   = comp.getSize();
              Point     loc   = comp.getLocationOnScreen();
              Robot     robot = new Robot();
              BufferedImage image
                    robot.createScreenCapture(new Rectangle(loc.x,
                               loc.y, dim.width, dim.height));

which allows us to capture the UI portion as well as the
VisAD component.  Jeff's out this week, but could
fill you in on the details when he returns.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


==============================================================================
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690