JDK-8157145 : DRT crash at fast/css-generated-content/initial-letter-basic.html
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,windows
  • Submitted: 2016-05-17
  • Updated: 2017-09-07
  • Resolved: 2016-05-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u112Fixed 9Fixed
DRT intermittent crash for fast/css-generated-content/initial-letter-basic.html

WebView crash (On Windows) while loading fast/css-generated-content/initial-letter-basic.html
changeset: 80bb45522223 user: ghb date: Wed May 25 13:37:00 2016 +0530 summary: 8157145: DRT crash at fast/css-generated-content/initial-letter-basic.html URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/80bb45522223


lgtm +1

webrev : http://cr.openjdk.java.net/~ghb/8157145/webrev.00/ Root cause : 1. Missing implementation of setCapHeight 2. Due to FontMetrics::m_capHeight wasn't initialized to default value in its constructor and it was expected to be set from platform specific implementation from "Font::platformInit()". FontCascade::floatWidthForSimpleText was returning infinite value "1.#INF00" Solution : r173217 "Letters size to a specified number of paragraph lines, and align to the cap-height of the first line and the baseline of the last line.". Added the setCapHeight from PrismContext (WCFont). GTK has implemented in http://trac.webkit.org/changeset/174002. (By setting the cap height) Test : executed the DRT (fast/css-generated-content/initial-letter-basic.html) for ~10 times (windows x64) and same content from in HelloWebView 10 times didn't see any crash.

I ran the specific test case on Mac and wasn't able to reproduce the crash. I can reproduce it intermittently on Windows x64.