JDK-8237833 : Check glyph size before adding to glyph texture cache.
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8,openjfx11,openjfx15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-01-24
  • Updated: 2020-06-22
  • Resolved: 2020-01-31
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.
JDK 8 Other
8u261Fixed openjfx11.0.8Fixed
Description
It was noticed that we do not check if a glyph will fit in the hardware texture cache before trying to add it, even though the information is readily available. Instead we leave it to the texture code to check it, and then catch the exception it throws and then return.
This might all be OK, since the net result is the same but we also print the stack trace of the exception. If this occurs it would be unwelcome noise. That should be wrapped in a check to see if PrismSettings.debug is set. And at the same time do the check up front, so it is less likely to happen anyway.
Comments
Changeset: d05e8fc4 Author: Phil Race <prr@openjdk.org> Date: 2020-01-31 18:21:51 +0000 URL: https://git.openjdk.java.net/jfx/commit/d05e8fc4
31-01-2020