Safari hanging

User 870ab5b546

16-09-2009 20:33:20

I have now upgraded to Marvin 5.2.3.  I find that Safari now hangs frequently, which was not a problem when I used Marvin 4.1.  It tends to hang when I press a button that causes the JSP page to grab the structure from the applet.  Has anyone else reported his problem?

ChemAxon 0a9e2a55e1

18-09-2009 10:24:59

Hi Bob,


We will check this problem, no one else has reported it before as far as I know.


Best Regards,


Peter

ChemAxon 7c2d26e5cf

24-09-2009 16:17:52

We have tested the applet with Mac OS X Safari 4.0.2 ( Java 1.5.0_19) but we have not found any freezing or hanging issue. Please give a detailed scenario where we can reproduce it.

User 870ab5b546

24-09-2009 16:26:23

You need to log in to ACE.  I will send instructions by email.

ChemAxon 7c2d26e5cf

28-09-2009 10:12:48

Thanks for the ACE accout. We are testing it.

User 870ab5b546

01-10-2009 16:20:15

Any progress on this problem?  This problem and the tab-change problem make Marvin 5.2 unusable for us.

ChemAxon 7c2d26e5cf

05-10-2009 11:41:52

We are checking these issues.

User 870ab5b546

06-10-2009 00:33:22

Bringing all hanging problems together in the same post...


Another hanging problem, which may or may not be related:  When I go to your Marvin demo page with Safari, draw a structure, and try to get the image, a popup starts to open, but then Safari hangs.  The same thing happens when I try to get the SMILES source. 


Firefox doesn't hang, but there is about a 3-second delay between any action I make and Marvin's response.  


MacOS 10.5.8, Safari 4.0.3, Firefox 2.0.0.20 and 3.0.10.

ChemAxon 7c2d26e5cf

07-10-2009 08:03:43

I assume we have found the cause of the Safari freezing. Since Marvin 5.2.5, the default value of "legacy_lifecycle" parameter is "true". In earlier versions, the value of this parameter was false.


http://www.chemaxon.com/marvin/help/developer/sketchman.html#parameters.legacy_lifecycle


We could reproduce Safari freezing with Marvin 5.2.5 but Safari was stable with 5.2.4.


We have done the following scenario.


1. Jump to this page in OS X Safari:
http://www.chemaxon.com/marvin/examples/applets/view/editable.html

2. Select a cell in the applet and get the molecule by submit the "Get
molecule data" button below the applet.

3. Leave the applet page, navigate somewhere.

4. Return to the applet page.

5. Repeat step 2 - 4.


When "legacy_lifecycle" is "false", the freezing issue eliminated in our test case.


I recommend to switch of "legacy_lifecycle".


msketch_param("legacy_lifecycle","false");

User 870ab5b546

07-10-2009 18:20:52

That change fixed not only this problem; it also fixed a separate problem in which I could not get two Marvin applets to load on a single page.  Good work!


You said this parameter is useful in certain other browsers.  Will setting it to "false" have a deleterious effect on browsers other than Safari?

ChemAxon 7c2d26e5cf

09-10-2009 13:35:02

No, it can not cause problem in other browsers.


If legacy_lifecycle is false in current Marvin applet, it behave as earlier Marvin versions (before 5.2.5). Actually, legacy_lifecycle is an extra JVM feature: it keeps alive the applet after when you leave the applet page to be able to reuse it when you return there. With other words, it can reduce the reloading time of an applet page.


http://www.chemaxon.com/forum/viewpost22989.html


We have modified default settings in marvin.js. Since next release (5.2.6), legacy_lifecycle is false under OS X Safari but it stays enabled in other browsers. We have investigated applet lifecycle, actually legacy_lifecycle cause problem in OS X Safari.