Marvin Sketch AWT : strange behaviour

User 86810cf9fa

10-01-2006 08:12:48

Dear Support,





I'm using Marvin 4.0.3 AWT. with JDK 1.4.2





When I open the popup menu to select bond type (single up, aromatic, double cis, double trans, etc) many times (nearly 10 times),


there is one moment when the popup menu doesn't disappears. And if I click on it again and again,


the browser and the applet block themselves.





I discovered it on Internet explorer but I tried it on Opera 8.5, Firefox 1.0.7 with the JDK 1.5 too,


I empty Internet explorer cache and the Java cache and it is the same for all cases.





When I click on a bond I have with the JDK 1.5 the message:


Code:
network: Connexion de


http://www.chemaxon.com/marvin/chemaxon/marvin/sketch/modules/AtomActions.class avec proxy=DIRECT


basic: Chargement de


http://www.chemaxon.com/marvin/chemaxon/marvin/sketch/modules/AtomActions.class à partir du cache






Did you ever heard about it?





Best regards


Severine

ChemAxon 7c2d26e5cf

10-01-2006 21:12:47

Try to clear the cache of the Java Plugin. You can do it on the control panel of Java Plugin.


See the Sun's documentation about it:


http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/control_panel.html


http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html

User 86810cf9fa

11-01-2006 06:31:15

I already did that. I cleared all caches but that does not change anything.





Best regards,


Severine

ChemAxon 7c2d26e5cf

12-01-2006 21:16:11

We have not managed to reproduce this error.


Can you send us a thread dump? Press "v" in the Java console when the popup menu freezes to print it to the console.

User 86810cf9fa

16-01-2006 12:39:13

Tamas,





You can reproduce the error on http://www.chemaxon.com/marvin :


Demo/Applets/MarvinSketch AWT.





- Open Marvin Sketch.


- Try to select a bond ("single up" for example).


- Repeat that at least 10 times.





When I do that, I click on "single up" each time. The strange behaviour appears at the end of 8 times. The popup doesn't disappears after clicking on "single up". And if I continue, Internet Explorer seems to work a lot and is bloqued, like Marvin and the Java console. In the task manager, iexplore.exe use 50% of the processor and when I succeed in closing the window, my web browser "Opera" is killed.





I hope these explanations will help you to reproduce the error if it is one.


It doesn't seem to do that with Marvin Sketch Swing.





When I press "v" on the Java console with JDK 1.4, after having the error, Internet Explorer is killed.





Best regards


Severine

ChemAxon 7c2d26e5cf

17-01-2006 21:06:05

I have followed your instructions to check this strange behaviour of MarvinSketch. I have tested it on several machines with both Java 1.4 and 1.5 in Internet Explorer but I have not found any problem.


Have you managed reproduce it on several machines? What is the exact version number of Java where this freezing has occured?





By the way, I do not understand why you use the AWT version of the Marvin applets if your browsers support Swing.


The Swing version is more sophisticated than AWT.


E.g.:


- copy/paste between Marvin and other applications


- save molecule source / image into file


- load molecules from your local machine


- save your own templates


- calculation plugins

User 86810cf9fa

19-01-2006 09:59:37

Tamas,





Marvin AWT was easier to use and install than Swing version with last versions of Java.


Moreover, some people have versions of browsers that don't support Swing version. And with Swing version you need to accept the applet while there is no popup with AWT version of Marvin.





This behaviour occurs on several machines with different versions of Java (Java 1.4.2_03 and Java 1.5.0_05 for example),


different OS and different versions of Internet Explorer and with other browsers than Internet Explorer like Opera and Firefox.


With the image called "error.jpg" (attached file) you can see that if I open a new IE window, the popup appears in front of it.





This is the message we can have with Java 1.5 when it occurs:


Code:
Exception in thread "AWT-EventQueue-3" java.lang.InternalError: Insufficient space to treat this order.





   at sun.awt.windows.WToolkit.eventLoop(Native Method)


   at sun.awt.windows.WToolkit.run(Unknown Source)


   at java.lang.Thread.run(Unknown Source)








You can see the full dump in the attached file (full dump.txt)





I hope that it will help you.


And if you want, we can also make a demo movie of this behavior to show you how that occurs.





Best regards,


Severine

ChemAxon 7c2d26e5cf

20-01-2006 23:25:39

Dear Severine,


After all, I have managed to reproduce what you talked about (the strange behaviour of the applet). How did you selecte the bond? Did you click into the bond button on the toolbar? I could reproduce this error by selecting it several times.


It may be an event handling problem. Probably, too much event are invoked and the applet can not process them so fast.


We will debug this issue.

User 86810cf9fa

21-01-2006 06:19:57

Dear Tamas,





Yes, it is. I click on the bond button to select another bond, several times. And After 8 times, there is this strange behaviour. I suppose you are right because in the statute bar, we can see there is a work which occurs.





I will wait for your conclusions.


Best regards,


Severine

ChemAxon 7c2d26e5cf

24-01-2006 14:21:40

Thanks for the verification.


I will notify you when we have solved it.

ChemAxon 43e6884a7a

02-03-2006 18:09:46

We are considering to stop AWT support. Please follow this link for more: http://www.chemaxon.com/forum/ftopic1265.html