Closed Bug 86103 Opened 23 years ago Closed 23 years ago

CPU goes to 100% if java enabled when visiting a 'LiveLink' page

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: charles, Assigned: rogerl)

References

()

Details

(Keywords: perf)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.1) Gecko/20010607
BuildID:    2001060703

LiveLink is a collaborative environment sold by OpenText to other companies.  If
I try to visit our LiveLink page with Java disabled, the page loads fine, but I
can't take full advantage of LiveLink.
If Java is enabled (I tried 1.3.0_01 and 1.4.0-beta), the CPU usage on my
machine goes to 100%, and the page never finishes loading.  Part of the applet
is drawn way off to the right, and I have to kill the mozilla process to recover.

The Log Window with trace level 5 shows...

Java(TM) Plug-in: Version 1.4.0
Using JRE version 1.4.0-beta Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator

Proxy Configuration: Browser Proxy Configuration



----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
s:   dump system properties
t:   dump thread list
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Trace level set to 5: basic, net, security, ext, liveconnect ... completed.

Registered modality listener

C:\Documents and Settings\Administrator\.plugin140.log

Referencing classloader: sun.plugin.ClassLoaderInfo@45495e, refcount=1

Cookie Cache: false

Registered modality listener

Referencing classloader: sun.plugin.ClassLoaderInfo@45495e, refcount=2

Loading certificates from JPI session certificate store

Loaded certificates from JPI session certificate store

Added trace listener:
sun.plugin.navig.win32.AppletPluginPanel[Dashboard,0,0,1600x18,invalid,layout=java.awt.BorderLayout]

Added trace listener:
sun.plugin.navig.win32.AppletPluginPanel[FunctionMenu,0,0,1x1,invalid,layout=java.awt.BorderLayout]

Added progress listener:
sun.plugin.navig.win32.AppletPluginPanel[FunctionMenu,0,0,1x1,invalid,layout=java.awt.BorderLayout]

Added progress listener:
sun.plugin.navig.win32.AppletPluginPanel[Dashboard,0,0,1600x18,invalid,layout=java.awt.BorderLayout]

Loading applet...

Loading applet...

Initializing applet...

Starting applet...

Initializing applet...

Starting applet...

Checking JAR installation

Jar cache option: null
Jar archive(s): null
Jar cache version(s): null

Applet installation finished.

Checking JAR installation

Jar cache option: null
Jar archive(s): null
Jar cache version(s): null

Applet installation finished.

Checking HTML installation

HTML installation finished.

Checking HTML installation

HTML installation finished.

Opening https://livelink.mitra.com/Livelinksupport/llheader.jar

java.lang.NullPointerException

	at sun.plugin.javascript.navig5.SecurityContext.getURL(Unknown Source)

	at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(Unknown Source)

	at sun.plugin.javascript.navig5.JSObject.<init>(Unknown Source)

	at sun.plugin.navig.win32.AppletPluginContext.nativeGetJSObject(Unknown Source)

	at sun.plugin.ActivatorAppletContext.showStatus(Unknown Source)

	at sun.plugin.AppletViewer.println(Unknown Source)

	at sun.plugin.usability.Trace.firePrintlnEvent(Unknown Source)

	at sun.plugin.usability.Trace.netPrintln(Unknown Source)

	at
com.sun.net.ssl.internal.www.protocol.https.PluginHttpsURLConnection.connect(Unknown
Source)

	at
com.sun.net.ssl.internal.www.protocol.https.PluginHttpsURLConnection.getInputStream(Unknown
Source)

	at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)

	at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)

	at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)

	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)

	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)

	at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)

	at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)

	at sun.misc.URLClassPath$2.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at sun.misc.URLClassPath.getLoader(Unknown Source)

	at sun.misc.URLClassPath.getLoader(Unknown Source)

	at sun.misc.URLClassPath.getResource(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.net.URLClassLoader.findClass(Unknown Source)

	at sun.applet.AppletClassLoader.findClass(Unknown Source)

	at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.applet.AppletClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.applet.AppletClassLoader.loadCode(Unknown Source)

	at sun.applet.AppletPanel.createApplet(Unknown Source)

	at sun.plugin.AppletViewer.createApplet(Unknown Source)

	at sun.applet.AppletPanel.runLoader(Unknown Source)

	at sun.applet.AppletPanel.run(Unknown Source)

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

java.lang.NullPointerException

	at sun.plugin.javascript.navig5.SecurityContext.getURL(Unknown Source)

	at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(Unknown Source)

	at sun.plugin.javascript.navig5.JSObject.<init>(Unknown Source)

	at sun.plugin.navig.win32.AppletPluginContext.nativeGetJSObject(Unknown Source)

	at sun.plugin.ActivatorAppletContext.showStatus(Unknown Source)

	at sun.plugin.AppletViewer.println(Unknown Source)

	at sun.plugin.usability.Trace.firePrintlnEvent(Unknown Source)

	at sun.plugin.usability.Trace.netPrintln(Unknown Source)

	at
com.sun.net.ssl.internal.www.protocol.https.PluginHttpsURLConnection.connect(Unknown
Source)

	at
com.sun.net.ssl.internal.www.protocol.https.PluginHttpsURLConnection.getInputStream(Unknown
Source)

	at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)

	at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)

	at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)

	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)

	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source)

	at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)

	at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)

	at sun.misc.URLClassPath$2.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at sun.misc.URLClassPath.getLoader(Unknown Source)

	at sun.misc.URLClassPath.getLoader(Unknown Source)

	at sun.misc.URLClassPath.getResource(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.net.URLClassLoader.findClass(Unknown Source)

	at sun.applet.AppletClassLoader.findClass(Unknown Source)

	at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.applet.AppletClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.applet.AppletClassLoader.loadCode(Unknown Source)

	at sun.applet.AppletPanel.createApplet(Unknown Source)

	at sun.plugin.AppletViewer.createApplet(Unknown Source)

	at sun.applet.AppletPanel.runLoader(Unknown Source)

	at sun.applet.AppletPanel.run(Unknown Source)

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

Connecting https://livelink.mitra.com/Livelinksupport/llheader.jar with no proxy



Reproducible: Always
Steps to Reproduce:
1.Um, find a livelink implementation which is visible to the public.
2.Go to the main page
3.

Actual Results:  CPU usage goes up to 100%
Page never finishes loading.
Errors in Java console.

Expected Results:  Beatiful page with applets running as in NS4.7 and IE5.0
I saw on the "release notes" that java on linux does not work in "liveconnect"
sites or something. 
This problem is on Windows 2000 using LiveLink.
It is not on Linux using LiveConnect.
Very different.
Xiaobin, can you please evaluate this one?
Assignee: edburns → xiaobin.lu
Reporter:
    Would you mind give me a testcase or a website so that I can reproduce?
Thanks in advance!
I can't give you our site for security reasons, but OpenText has a demo which
causes the exact same problem.

To Reproduce:

Go to http://www.opentext.com/tour/index_ns.html

Click the right arrow (->) in the upper left corner of the screen 15 times.
You will see the 'Pat Millar logs in to Livelink...' page.
Click the right arrow one more time.
CPU goes to 100%
Mozilla becomes unresponsive.

Let me know what you find out.

Thanks.
I tried my reproduce case, and it doesn't cause the problem every time... ug.
Give it a try.
Maybe going to opentext.com first and then to the guided tour will help.
On an unrelated note, all the applets load up with progress bars and then show 
only a black square for me.

Let me know what you find out.

Thanks.
  I tested with JRE1.3.1 and it works fine to me.

XLU
   I have tried accessing the page with the Java Control Panel modified to use 
the Java 1.3.1 Runtime, and the CPU no longer goes to 100% on the internal page.
   I do see some SecurityExceptions when I try to do some things (which work in 
Netscape 4.x) which may be unrelated.
   I will try using a pristine computer with java 1.3.1 only installed and 
Mozilla 0.9.1 (or 0.9.2 possibly) to see if my configuration is part of the 
problem.
Strangely, I can click on some buttons on the page now, and watch the Java
console show javascript calls (the same two over and over) while my CPU goes to
100%.  I wonder if this is somehow JavaScript related...
  I do see the CPU hit to 100% when I click the arrow every time, but it will go 
down very fast. I think the problem here is a performace problem of mozilla 
rather than a specific Java problem. Mayve should be assigned to Mozilla 
gerneral.
Target Milestone: --- → Future
reassigning to browser-general based on xiaobin's comment. perf issue, i guess
Component: OJI → Browser-General
QA Contact: shrir → doronr
reassigning
Assignee: xiaobin.lu → asa
Keywords: perf
js engine?
Assignee: asa → rogerl
Component: Browser-General → Javascript Engine
QA Contact: doronr → pschwartau
> Strangely, I can click on some buttons on the page now, and watch the Java
> console show javascript calls (the same two over and over) while my CPU 
> goes to 100%.  I wonder if this is somehow JavaScript related...

charles@mitra.com: what two JavaScript calls are these? 
I'm not seeing them...  Here's what I get in the Java Console
after I click that right arrow for the 16th time:

No image specified!
No tile image specified!
No locality specified, defaulting to US-English.

Copyright 1996-1998 Open Text Corporation and Open Text U.S.A. Inc.
Unable to deduce color from string "333333"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "000000"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "666666"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "CCCCCC"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "CCCCCC"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "CCCCCC"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "CCCCCC"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "CCCCCC"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFCC33"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "444444"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFFFFF"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "330033"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFFFFF"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "444444"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFFFFF"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "444444"; substituting 
java.awt.Color[r=0,g=0,b=0]
Unable to deduce color from string "FFFFFF"; substituting 
java.awt.Color[r=0,g=0,b=0]
##--## Newscaster Applet started ##--##
load: class com.opentext.scroller.Scroller.class not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: 
http://www.opentext.com/tour/images/com/opentext/scroller/Scroller/class.class
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
        (Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream
        (Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField
        (Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader
        (Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream
        (Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What I'm seeing is what Xiaobin noted: 

> I do see the CPU hit to 100% when I click the arrow every time, 
> but it will go down very fast.

By contrast, in NN4.7 the CPU never goes up to 100% ...
The story so far: 

From the original report above:

> If Java is enabled (I tried 1.3.0_01 and 1.4.0-beta), the CPU usage on my
> machine goes to 100%, and the page never finishes loading.  Part of the
> applet is drawn way off to the right, and I have to kill the mozilla process
> to recover.


From 2001-07-05 13:17 above: 

> Strangely, I can click on some buttons on the page now, and watch the Java
> console show javascript calls (the same two over and over) while my CPU 
> goes to 100%.  I wonder if this is somehow JavaScript related...


From today: 

I'm not getting any hang by following the steps to reproduce at 
2001-06-28 14:28 above. Neither Xiaobin nor I have been able to reproduce 
the problem. The applet is drawn in the proper place, the CPU only hits 100% 
for a moment, and Mozilla doesn't hang -


Let me resolve this as WORKSFORME.

BTW, I'm using Mozilla trunk binary 2001072108 WinNT, and using this Plug-in:
File name: (etc.)\bin\plugins\NPOJI600.dll
Java Plug-in 1.3.0_01 for Netscape Navigator (DLL Helper)

charles@mitra.com: can you try a more recent build and see if the 
problem has gone away for you, too? If so, you can mark this bug
verifed. If not, you can reopen it - thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.