harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Okomin" <ilya.oko...@gmail.com>
Subject Re: [classlib][awt] An awt bug? (was Re: [application] [feedback] VM crashed when running Poleposition on Harmony)
Date Tue, 17 Oct 2006 11:45:21 GMT
On 10/17/06, Andrew Zhang <zhanghuangzhu@gmail.com> wrote:
>
> On 10/17/06, Denis Kishenko <dkishenko@gmail.com> wrote:
> >
> > Andrew, patch was applied and verified.
> > Could you check, does it fix problem?
>
>
> Thanks Denis! It works!
>
> The generated report looks fine, though has a little problem about text
> position.
>
> The text, which contains lots of spaces, is created with new
> Font("SansSerif", Font.PLAIN, 10); It seems the distance of spaces is a
> little longer than RI. :)


Hello, Andrew!
It's great that you are testing gui in Harmony!!
Now question concerning fonts: if you mean that Harmony's "SansSerif" font
in the application looks different than RI's one and space's width is not
the same, I can explain. RI uses it's own physical fonts if you use logical
name (e.g. "SansSerif", "Dialog", etc) You can find them in the
'jre/lib/fonts', they are redistributed with jdk1.5.0 package. In Harmony
logical font is created according to the font.properties file and if it
is missed - default font created instead. Spaces widths should be the same
(or almost the same +/- 1 pixel) if you choose physical font installed on
your OS instead of logical font, you just have to use create Font
using family name (e.g. "Arial"). If results differs again than it is
possibly a bug.

Regards,
Ilya.


2006/10/16, Andrew Zhang <zhanghuangzhu@gmail.com>:
> > > On 10/16/06, Denis Kishenko <dkishenko@gmail.com> wrote:
> > > >
> > > > This issue has been filed and patched three weeks ago but wasn't
> > > > applied yet (as many others).
> > >
> > >
> > > Thanks Denis! Look forward to committers. :-)
> > >
> > > See
> > > > http://issues.apache.org/jira/browse/HARMONY-1585
> > > >
> > > > 2006/10/15, Andrew Zhang <zhanghuangzhu@gmail.com>:
> > > > > PolePosition(actually JFreeChat) throws IllegalPathStateException
> > when
> > > > > generating test report.The error message looks like (I added a
> > > > sysout(shape)
> > > > > in CommonGraphics2D#fill method):
> > > > >
> > > > > java.awt.geom.Rectangle2D$Double[x=0.0,y=0.0,width=750.0,height=
> > 500.0]
> > > > > java.awt.geom.RoundRectangle2D$Double@288c288c
> > > > > java.awt.geom.IllegalPathStateException: First segment should be
> > > > SEG_MOVETO
> > > > > type
> > > > >  at java.awt.geom.GeneralPath.checkBuf(GeneralPath.java:24)
> > > > >  at java.awt.geom.GeneralPath.closePath(GeneralPath.java:260)
> > > > >  at java.awt.geom.GeneralPath.append(GeneralPath.java:296)
> > > > >  at java.awt.geom.AffineTransform.createTransformedShape(
> > > > > AffineTransform.java:535)
> > > > >  at org.apache.harmony.awt.gl.CommonGraphics2D.fill(
> > > > CommonGraphics2D.java
> > > > > :723)
> > > > >  at org.jfree.chart.StandardLegend.drawLegendBox(
> StandardLegend.java
> > > > :875)
> > > > >  at org.jfree.chart.StandardLegend.draw(StandardLegend.java:757)
> > > > >  at org.jfree.chart.StandardLegend.draw(StandardLegend.java:578)
> > > > >
> > > > >
> > > > > On 10/15/06, Andrew Zhang <zhanghuangzhu@gmail.com> wrote:
> > > > > >
> > > > > > I simplified  test scenario in PolePosition. Now it throws
> > unexpected
> > > > > > exception when generating test report:
> > > > > > java.awt.geom.IllegalPathStateException: First segment should
be
> > > > > > SEG_MOVETO type
> > > > > >  at java.awt.geom.GeneralPath.checkBuf(GeneralPath.java:204)
> > > > > >  at java.awt.geom.GeneralPath.closePath(GeneralPath.java:260)
> > > > > >  at java.awt.geom.GeneralPath.append(GeneralPath.java:296)
> > > > > >  at java.awt.geom.AffineTransform.createTransformedShape(
> > > > > > AffineTransform.java:535)
> > > > > >  at org.apache.harmony.awt.gl.CommonGraphics2D.fill(
> > > > CommonGraphics2D.java:722)
> > > > > >
> > > > > >  at org.jfree.chart.StandardLegend.drawLegendBox(
> > StandardLegend.java
> > > > :875)
> > > > > >  at org.jfree.chart.StandardLegend.draw(StandardLegend.java:757)
> > > > > >  at org.jfree.chart.StandardLegend.draw(StandardLegend.java:578)
> > > > > >  at org.jfree.chart.JFreeChart.draw(JFreeChart.java:966)
> > > > > >  at org.jfree.chart.JFreeChart.createBufferedImage(
> JFreeChart.java
> > > > :1157)
> > > > > >  at org.jfree.chart.JFreeChart.createBufferedImage(
> JFreeChart.java
> > > > :1136)
> > > > > >  at org.jfree.chart.JFreeChart.createBufferedImage (
> > JFreeChart.java
> > > > :1121)
> > > > > >  at org.polepos.reporters.HTMLReporter.renderLapGraph(
> > > > HTMLReporter.java
> > > > > > :121)
> > > > > >  at org.polepos.reporters.HTMLReporter.report(HTMLReporter.java
> > :58)
> > > > > >  at org.polepos.reporters.GraphReporter.endSeason (
> > GraphReporter.java
> > > > :13)
> > > > > >  at org.polepos.framework.Racer.run(Racer.java:114)
> > > > > >  at org.polepos.framework.Racer.<init>(Racer.java:44)
> > > > > >  at org.polepos.RunSeason.main(RunSeason.java:93)
> > > > > >
> > > > > >
> > > > > >  On 10/14/06, Andrew Zhang <zhanghuangzhu@gmail.com> wrote:
> > > > > > >
> > > > > > > PolePosition is a benchmark test suite to compare database
> > engines
> > > > and
> > > > > > > object-relational mapping technology. (
> http://www.polepos.org/).
> > I
> > > > > > > tried to run PolePosition on Harmony(lastest build), but
> > > > unfortunately vm
> > > > > > > crashed during the execution.
> > > > > > >
> > > > > > > The DRLVM crashes at the very early stage, while IBM VME
> crashes
> > > > after a
> > > > > > > while. No error message is printed out from DRLVM, while
IBM
> VME
> > > > gives
> > > > > > > following message [1]. Any comments about "jclclear_23.dll"
> and
> > "the
> > > > extra
> > > > > > > info 0012FB7C" ?
> > > > > > >
> > > > > > > [1] IBM VME error message:
> > > > > > > Unhandled exception
> > > > > > > Type=Segmentation error vmState=0x00040000
> > > > > > > J9Generic_Signal_Number=00000004 ExceptionCode=c0000005
> > > > > > > ExceptionAddress=7F96A8EC ContextFlags=0001003f
> > > > > > > Handler1=7FE50390 Handler2=7FD074F0
> InaccessibleAddress=0137D580
> > > > > > > EDI=0074BB40 ESI=0081F100 EAX=11761268 EBX=0137D568
> > > > > > > ECX=0000000C EDX=00000004
> > > > > > > EIP=7F96A8EC ESP=0012F81C EBP=001D5500
> > > > > > > Module=D:\Harmony\deploy\jdk\jre\bin\default\jclclear_23.dll
> > > > > > > Module_base_address=7F950000 Offset_in_DLL=0001a8ec
> > > > > > > Target=2_30_20060727_07300_lHdSMR (Windows XP 5.1 build
2600
> > Service
> > > > > > > Pack 2)
> > > > > > > CPU=x86 (1 logical CPUs) (0x1f77c000 RAM)
> > > > > > > ...
> > > > > > >     _org.apache.harmony.vmi.portlib (extra info: 0012FB7C)
> > > > > > >     -Xjcl:jclclear_23
> > > > > > >     _j2se_j9=136448
> > > > > > >
> > > > > > > --
> > > > > > > Best regards,
> > > > > > > Andrew Zhang
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Best regards,
> > > > > > Andrew Zhang
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Best regards,
> > > > > Andrew Zhang
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Denis M. Kishenko
> > > > Intel Middleware Products Division
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > For additional commands, e-mail:
> harmony-dev-help@incubator.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Best regards,
> > > Andrew Zhang
> > >
> > >
> >
> >
> > --
> > Denis M. Kishenko
> > Enterprise Solutions Software Division
> >
> > ---------------------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
> >
>
>
> --
> Best regards,
> Andrew Zhang
>
>


-- 
--
Ilya Okomin
Intel Middleware Products Division

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message