At 2/6/08, you wrote: >Eric, I found the memory leak. Dear Bob,
Yes you did! Hooray! I haven't any idea how you do these amazing things with Jmol, but I am tremendously impressed and grateful! I can now go through the entire JTAT Demo Tutorial (skipping Chapter 2, view 2) with total memory staying below 40 Mb. And I can reload a page, or alternate between pages, many times with it generally staying below 30 Mb. Before, those tests caused it to climb rapidly to max and croak (tested in Win98 Firefox). Indeed, in my testing I tend to click the next view either while the initial moveTo is running, or while the many delays in the drag2rotate.spt are still running. So it makes sense that the problem was related to delays. HOWEVER, I think there is still one big memory leak related to isosurfaces. Chapter 2, view 2, which loads a .iso file, and then calculates a separate cavity isosurface, raises total memory to 71 Mb. That is OK, but when you go back and forth between views 1 and 2 (in chapter 2, waiting for the movie in view 2 to finish each time), total memory quickly goes to max (_memory second value 99.9). Then, when you go to the contents and other simpler chapters (replacing the html and jmol completely), it stays high, in the 70's or 80's. Obviously some memory related to the isosurfaces, or isosurfaces combined with delays, was not released. ALSO, zap zap still doesn't reduce total memory in JTAT (may increase it, e.g. from 18 to 28). And it doesn't clear out the 60-70 megs after chapter 2 view 2. In Safari, at chapter 2, view 2, at 75 Mb, zap zap raises total memory to 99.9 Mb. After this, reloading chapter 2 fails to load the PDB file. Safari on OS 10.5: 71 Mb after chapter 2, view 2, but dropped to 31 upon entering chapter 4, then to 25 as I went through those multi-jmol comparisions. Continuing, molecule failed to load at contents after chapter 6. Simple reload cured the problem, memory at 29. Able to complete tutorial without further memory climb. So Safari is usable with an occasional reload (similar to the previous jmol). Zap zap is poison! WinXP Firefox: Going into each chapter in order (initial view only, not clicking additional view buttons except in chapter 4, multiple jmol comparisons), and then back to contents between each chapter (skipping chapter 2 view 2) gradually increased total memory from 20 to 55 Mb. A zap zap then raised it to 75 Mb. Going through the tutorial again then raised it to 92. So there is still some climbing (polling was off!). But it is usable now. I was able to go through the entire tutorial a 3rd time, with total memory at 99.9, with all molecular views displaying and no browser crash. Firefox on OS 10.5: As I went through the Demo tutorial, memory gradually increased to 48 Mb, then dropped to 17, climbed again to 50. Zap zap increased it to 67. In a new session, chapter 2 view 2 raised total memory to 67. Alternating views 1 and 2 three times did not increase memory further. Zap zap did not change the memory. Continuing on to other simpler chapters, memory spontaneously dropped gradually to 31. Conclusion: Mac Firefox is MUCH MORE USABLE with Jmol 11.5.5_dev. Thanks also for the syncCallback. I haven't implemented it yet in JTAT, but it is a great option to have. I'll certainly implement it if I see any funny business related to polling, but so far (at 1 second intervals) I haven't seen anything that worries me. Most of my memory tests have been done with polling disabled, so it hasn't been a factor in the results. The on-line JTAT Demo (http://bioinformatics.org/jtat-tutorials) has been updated to use Jmol 11.5.5_dev. Polling is disabled, and that is announced in red at the top of each chapter. Automatic zap zap is also disabled, but the manual ZZ link remains at the lower right for testing. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

