Ted,

This sounds like a memory problem.  Browsers seem to have different problems 
with the memory allocation to the Java applets.  What I have found is that 
killing and reloading the applet solves the problem.  With an applet size of 
400 x 400, about 5 simultaneously active Jmols is the safe limit.  My solution 
if you have more than one Jmol on a page is to put some to sleep to limit the 
total open to about 5.  For reloads I am not sure what the limit is, but I bet 
that if you reload the applet after every 5-10 loads the problem will go away 
in most browsers (no guarantee for IE, as I  have had trouble getting even 
standard buttons to work reliable in IE).

Jonathan
On Jan 17, 2012, at 7:58 PM, jmol-users-requ...@lists.sourceforge.net wrote:

> Message: 4
> Date: Tue, 17 Jan 2012 14:58:40 -0600
> From: "Ted Cohen" <j...@monona.us>
> Subject: [Jmol-users] Issue with Jmol applet turning black
> To: jmol-us...@lists.sf.net
> Message-ID: <190c21bd7f64ff66ccdb07e4e35901cb.squir...@www.monona.us>
> Content-Type: text/plain;charset=iso-8859-1
> 
> jmol version is 12.2.10
> I am using the default, unsigned jar file
> I am serving it from a LAMP server that uses light speed.
> The client I am observing this on is Windows 7 Enterprise
> I am currently testing with both IE 9.0.8xxx and Firefox 9.01.
> I am using the Jmol.js interface with load inline.
> 
> I have one applet in the web page.
> Based on user input, I change the
> structure file that is loaded.
> 
> After an arbitrary number of inline
> loads, the applet turns black including the
> Jmol image in the lower right corner.
> 
> I have seen it take as long as 36 structure loads
> to go black or as few as 2. Onve it turns black,
> it stays black. There are no warnings in red
> like a typical black screen would show. Everything
> in the java console looks normal.
> 
> The applet is actually loading the new structure
> file as evidenced by the java console and also
> by  clicking the lower right of the applet
> (where the Jmol image should be). The menu
> displays, clicking on "about..." and then "string"
> shows that the correct structure is in fact loaded.
> 
> About->system shows that only 5mb out of 495mb of
> ram avaialable to java has been used.
> 
> I am going to run an experiment where I "tear
> down" (java console terminology) and recreate the
> applet to see if that changes anything.
> 
> 1) Has anyone seen this before?
> 2) Is anyone else successfully doing repeated inline loads of
> a single applet?
> 
> All suggestions appreciated,
> Thanks,
> Ted

                         Dr. Jonathan H. Gutow
Chemistry Department                                 gu...@uwosh.edu
UW-Oshkosh                                           Office:920-424-1326
800 Algoma Boulevard                                 FAX:920-424-2042
Oshkosh, WI 54901
                 http://www.uwosh.edu/facstaff/gutow






------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to