Closed
Bug 144450
Opened 24 years ago
Closed 24 years ago
hang on liveconnect with mayscript and scriptable
Categories
(Core Graveyard :: Java: OJI, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: zurk, Assigned: joe.chou)
Details
From Bugzilla Helper:
User-Agent: Mozilla/4.08 [en] (WinNT; I ;Nav)
BuildID: 2002051006
Java plugin 1.3.1_01 with mozilla official 1.0RC2 for win32. running win98 on a
p133 with 80MB ram. attempted to do liveconnect by calling a java class function
from a javascript code located on a different frame. java applet had mayscript
and scriptable set to true. result was a hang not a crash. 100% reproducibility.
netscape 4.x and mozilla 0.9.8 with the same plugin and configuration worked
fine.
Reproducible: Always
Steps to Reproduce:
1. click on a button to execute javascript which calls applet.
2. hang.
3.
Actual Results: hang.
Expected Results: javascript error or worked properly.
Update:
Javascript call to a regular applet function seems to work fine
(although it is very sluggish).
The function it hung on used several parameters :
e.g. myapplet.myfunc(1,2,3,"dfgrdfG","dfgfdg"....12 parameters)
the applet then called another function in a different class file
(the applet was extended from it so it should be loaded into
memory anyway) which then opened a http connection and loaded
a jpeg file (it did not get to the request part for the jpeg
file as the servers logs show no request or connection opening).
this is while the repaint thread was active in the applet.
The java console froze as well so debugging this is very difficult. :(
->OJI
Assignee: Matti → joe.chou
Component: Browser-General → OJI
QA Contact: imajes-qa → pmac
Reporter, could you provide a test case (a .java file and a .html)?
...this turns out to be a java applet library problem not a mozilla one.
the problem occurs when you try and do a Applet.getImage() from a remote URL
with a slow webserver. The applet library breaks the connection causing a
socket write error on the webserver and is unable to get the image properly.
This does not cause the freeze. That occurs when you try and read the width
, height or other parameters from the image using the image observer object.
That freezes the java console, mozilla and the jvm. im guessing the jvm
is frozen so it brings the whole lot down.
Interestingly this occurs only when the method is invoked using liveconnect.
The applet works fine if the exact same code is run when triggered by a mouse
click instead of a liveconnect javascript call.
Resolution : Switch to JDK 1.4 imageio libraries instead of the
potentially buggy Applet.getImage() when using liveconnect.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Last update:
The same code causes no problems when using the netscape 1.1.5 jvm shipped with
netscape 4.78. my guess is the bug creeped into the java libraries sometime
after that. its present in both 1.3.1 and 1.4.
the new 1.4 imageio libraries correct it in any case.
You need to log in
before you can comment on or make changes to this bug.
Description
•