Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117233

tests crash on ubuntu due to missing primaryFontData

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 7u6
    • 7u6
    • javafx
    • None
    • Ubuntu 64-bit Linux.

    • web

      Many of the tests in javafx-ui-webnode crash under Linux (tested on Ubuntu).
      I traced this down to Font::fontMetrics failing. fontMetrics calls Font::primaryFont, which calls fontFallbackList::primarySimpleFontData, which calls FontFallbackList::primaryFontData, which returns null.

      This was introduced with the check-in for RT-20733.
      Specifically, with these versions as the working directory (as reported by hg parents), things work:
      . 1101:2fee67835377
      apps 2116:e91adea3eefe
      deploy 1217:ae3e7371b75e
      media 1790:9690a6b13050
      rt 802:dfbb8f49cd7a
      rt-closed 15907:35c6d161a9bd
      tests 1560:bfbbfd8b06cb
      webnode 461:a9054928225a
      With these versions, things crash:
      . 1101:2fee67835377
      apps 2116:e91adea3eefe
      deploy 1217:ae3e7371b75e
      media 1790:9690a6b13050
      rt 802:dfbb8f49cd7a
      rt-closed 15908:8ed36a9250ec
      tests 1560:bfbbfd8b06cb
      webnode 462:877428f4c393
      where the difference is:

      $ cd rt-closed; hg log -r 15908
      changeset: 15908:8ed36a9250ec
      user: malenkov
      date: Fri Apr 13 13:31:50 2012 +0400
      summary: RT-20733: CSS Font Family not applied correctly
      $ cd ../webnode/; ]hg log -r 462
      changeset: 462:877428f4c393
      user: malenkov
      date: Fri Apr 13 13:35:51 2012 +0400
      summary: RT-20733: CSS Font Family not applied correctly

            peterz Peter Zhelezniakov
            pbothner Per Bothner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: