Mungo,

Ha! Earlier today I was thinking of you and talking about Dundee and
JalView since now we are well on the way to a full implementation of
SwingJS. It is possible that we will be interested in getting back this
later this summer. But that is another story.

If the hover threads are accumulating, that's certainly a bug. I was not
aware of that, and I don't see how it can happen. If you can identify where
those are coming from, that would be great.

That code is there because during most JmolThread activity (spinning,
vibrating, Moveto) the hover thread is interrupted, so when they are
interrupted, they need to restart it.  It will not create another copy of
itself if one already exists, so I'm not sure where the multitude of hover
threads that you are observing is coming from. startHoverWatcher will not
start a new one if the thread that is actuating it is the
HoverWatcherThread itself, as it is already running at that time, and that
is checked. At least as far as I can see.

The standard way to turn hover off is:

viewer.startHoverWatcher(false)

This will definitely stop the HoverWatcherThread. It's the action of the
script command

hover off


Bob





On Fri, Jun 17, 2016 at 10:15 AM, Mungo Carstairs (Staff) <
g.m.carsta...@dundee.ac.uk> wrote:

> Hi,
>
>
> Jalview can start Jmol (v14.2.14) to view 3D structures, and shuts it down
> when finished with:
>
>
> viewer.dispose()
>
>
> However I notice that despite this, multiple instances of
> HoverWatcherThread accumulate in the JVM.
>
> I'm guessing this is maybe to do with the code at
>
>
> JmolThread
>
>   @Override
>
>   public void interrupt() {
>
>     stopped = true;
>
>     vwr.startHoverWatcher(true);
>
> Is there a correct way to shut down Jmol including all started threads?
>
>
> Thanks,
>
>
> Mungo
>
>
> Mungo Carstairs
> Jalview Computational Scientist
> The Barton Group
> Division of Computational Biology
> School of Life Sciences
> University of Dundee, Dundee, Scotland, UK.
> www.jalview.org
> www.compbio.dundee.ac.uk
>
> The University of Dundee is a registered Scottish Charity, No: SC015096
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports. http://sdm.link/zohomanageengine
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to