http://chemapps.stolaf.edu/jmol/docs/examples-11/testmac.htm


On Thu, Apr 23, 2009 at 11:32 PM, Robert Hanson <hansonr@stolaf.edu> wrote:
I have put up a test page at (see above)

There's an applet way down the page. A spinning animation is invoked with the "testmac" link. A steady stream of messages comes out on the Java console (a plug-in for Firefox on the Mac).

What I see is that all works fine -- the cycle:

Jmol to OS: display.repaint(); // tell the OS to upate the page
OS to Jmol: update(); // tell Jmol to construct a new screen buffer and display it in the window.

repeats endlessly until this quirk appears. The OS just doesn't return Jmol's call.

I can confidently say this is not a Jmol issue. Jmol is operating properly. It's either:

1) the browser
2) Java
3) the Mac OS

The fact that both Safari and Firefox have the problem suggests not (1).
The likelyhood that it is the Mac OS seems remote to me.
Thus, I suggest the culprit may be Java. if that's the case, then different versions should behave differently. The one I have, from going to the Java Console and pressing the 's' key, is:

java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version = 1.5.0_16-b06-284
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.5
java.vendor = Apple Inc.
java.vendor.applet = true
java.vendor.url = http://www.apple.com/
java.vendor.url.applet = true
java.vendor.url.bug = http://bugreport.apple.com/
java.version = 1.5.0_16
java.version.applet = true
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Apple Inc.
java.vm.version = 1.5.0_16-133
javaplugin.maxHeapSize = 96m
javaplugin.nodotversion = 150
javaplugin.proxy.config.type = direct
javaplugin.version = 1.5.0


Also, if this is not a Jmol issue, then someone should be able to reproduce it with a different applet. Anyone know of an applet that does a lot of free-running animation? Maybe something we can hack to show messages? That would certainly support our case if we need present this as an important bug to fix.

Bob



On Thu, Apr 23, 2009 at 9:35 PM, Dean Johnston <djohnston66@gmail.com> wrote:
I was able to reproduce this problem with my pages (symmetry.otterbein.edu) on OS X 10.5.6, using both Firefox 3.0.9 and Safari 4 (public beta 5528.16).  It seem to happen much more often (almost always) with Firefox, but Safari eventually froze after lots of activity.  With Firefox, Jmol came back to life with a simple window resize.  With Safari, the Jmol applet goes completely blank (black in my case - the background is normally white) and doesn't come back without reloading the page.

Dean

On Thu, Apr 23, 2009 at 6:12 PM, Robert Hanson <hansonr@stolaf.edu> wrote:
OK, I have an idea. Is it possible that the problem only arises when the page the browser is opening has an applet that is not fully visible on the page -- down further on the page perhaps, or just a bit too large? That could be why we've missed this. It looks to me like the effect is only when the  applet is not fully visible.

Thomas, please do the following test: Please reduce the size of your applet so that appropriately fits the user's screen.  I think you are trying to do that anyway, but it is just a bit too high no matter what I do with the browser window. Then let us test your page again.

Others with Macs. Please try setting the window size of your browser to a smaller window and then open pages that you know should work. Look for a page where the applet is not fully visible. Start tapping, dragging, anything to get the refreshes coming. Do you see the applet freeze? http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm is a fine page to try.

I will put out a version of Jmol that sends messages to the Java console indicating what messages it is getting from the OS and what state it is in.

Bob


--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers



------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers




--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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



--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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