Closed
Bug 108831
Opened 23 years ago
Closed 22 years ago
JAVA applet doesn't display graphic.
Categories
(Core :: Layout, defect, P1)
Tracking
()
RESOLVED
DUPLICATE
of bug 131065
People
(Reporter: apksr, Assigned: peterl-bugs)
References
()
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
47.87 KB,
image/jpeg
|
Details | |
496 bytes,
text/html
|
Details | |
1.52 KB,
patch
|
Details | Diff | Splinter Review |
The JAVA applet to display image doesn't render image on this site.
Comment 1•23 years ago
|
||
OJI Bug
Assignee: ashuk → joe.chou
Component: Java APIs for DOM → OJI
QA Contact: avm → pmac
Comment 2•23 years ago
|
||
Reporter, what is your build ID and java version? The applet does not work under 0.9.5 and 2001110612 with blackdown java 1.3.1.
Keywords: 4xp
Comment 4•23 years ago
|
||
confirming on Win2k with build 2001110703 + JRE 1.4b2.
Comment 5•23 years ago
|
||
Does not work for me with 1.4 beta3 too. Despite the fact it is reproducible with both blackdown's and sun's jdk i feel it still likely to be jdk problems. (From java console i see that actual image to be presented is requested). I am going to file bug on this against sun's plugin.
Comment 6•23 years ago
|
||
bugtraq 4524739
Comment 7•23 years ago
|
||
When runnign with a debug build, I get the assertions: ###!!! ASSERTION: bad height: 'metrics.height>=0', file nsLineLayout.cpp, line 1169 ###!!! Break: at file nsLineLayout.cpp, line 1169 ###!!! ASSERTION: bad height: 'metrics.height>=0', file nsLineLayout.cpp, line 1169 ###!!! Break: at file nsLineLayout.cpp, line 1169 ###!!! ASSERTION: bad height: 'metrics.height>=0', file nsLineLayout.cpp, line 1169 ###!!! Break: at file nsLineLayout.cpp, line 1169 the html code for the applet is: <applet code="gov.nist.chemdata.jdx.JDXApplet" codebase="../classes/" archive="jars/JDX.jar" width="90%" height="90%"> Maybe the reason for this bug is, that the width and height entries are not parsed correctly !?!
Comment 8•23 years ago
|
||
Still a problem in 0.9.6 (Sun java 1.3.1) ---> NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 9•23 years ago
|
||
still a problem in 0.9.7
Reporter | ||
Comment 10•23 years ago
|
||
Confirned with 0.9.7 and Windows 2000
Comment 11•22 years ago
|
||
Still present in Linux 0.9.9.
Comment 12•22 years ago
|
||
The only suspisious lines I see in java console: Child: VM Received Command >>>JAVA_PLUGIN_WINDOW Child: Window 50331940 872x0 23x715 Child: MAV(50331940) setWindow: call before applet exists:50331940 Child: MAV(50331940) Init ? Child: MAV(50331940) Yes, init Child: Sending OK reply Child: Plugin: Reading next code... Child: MAV(50331940) Bounds before init:java.awt.Rectangle[x=0,y=0,width=872,height=0] <--- NB: height == 0! Child: MAV(50331940) Trying (and failing) to get a parameter from the html:classid Child: MAV(50331940) Trying (and failing) to get a parameter from the html:java_code Child: VM Received Command >>>JAVA_PLUGIN_WINDOW <--- NB: 872x0 Child: Window 50331940 872x0 23x715 Child: MAV(50331940) setWindow: Same winid. Child: Sending OK reply Child: Plugin: Reading next code... Child: VM Received Command >>>JAVA_PLUGIN_WINDOW Child: Window 50331940 858x0 71x728 Child: MAV(50331940) setWindow: Same winid. Child: Sending OK reply Probably this is really sizing problem...
Comment 13•22 years ago
|
||
wfm using build 2002032803 on Win2k + JRE 1.4.0, at least it seems to be as it renders as IE6 + JRE 1.4.0 and NS4.76 + JRE 1.1.5.
Comment 14•22 years ago
|
||
This is layout problem. nsPluginWindow passed to plugin has height == 0. In nsObjectFrame::GetDesiredSize() : if (NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight) aMetrics.height = NSToCoordRound (factor * aReflowState.availableHeight); else // unconstrained percent case aMetrics.height = (NS_UNCONSTRAINEDSIZE == aReflowState.mComputedHeight) ? 0 : aReflowState.mComputedHeight; and we hit case where aReflowState.mComputedHeight == NS_UNCONSTRAINEDSIZE. I don't know yet why mComputedHeight has such value, but we get it from layout code.
Comment 15•22 years ago
|
||
This is pure layout bug. When we have applet with percentage width/height inside the table, it's not displayed. But w/o table it displayed just fine ->Layout
Assignee: joe.chou → attinasi
Component: OJI → Layout
QA Contact: pmac → petersen
Comment 16•22 years ago
|
||
You can put any applet here. It will not display inside table
Updated•22 years ago
|
Priority: -- → P1
Target Milestone: --- → Future
Comment 17•22 years ago
|
||
-->peterl I think this is my bug caused from bug 106602.
Comment 18•22 years ago
|
||
It is :-) Probably for NS_UNCONSTRAINEDSIZE == aReflowState.mComputedHeight case we should apply percentage to visible area size to get desired height?
Comment 19•22 years ago
|
||
I'm not sure this is the right way to fix this nor do I even know if this patch fixes the crash. Could someone who's seeing this crash try this?
Comment 20•22 years ago
|
||
Attachment #79027 -
Attachment is obsolete: true
Comment 21•22 years ago
|
||
Peter, I just applied your patch to my tree and rebuilt. I do not see the graph with Java 1.3.1-b24 and I do not see the blank space that Mozilla leaves without your patch applied. Seems like we're not quite there yet...
Comment 22•22 years ago
|
||
I not took a look at context, but bare patch looks wrong for me. All it does (AFAIU) is replaces zero size with size of 1, right? But 1 is not the same as, say, 90% of 800 pixels? Am I missing something here? (I'll take a closer look at it tomorrow)
Comment 23•22 years ago
|
||
Yeah, this only happens with XHTML and when you have a % height. Marking dup of bug 131065. *** This bug has been marked as a duplicate of 131065 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•