JDK-8182629 : WebView: Pie charts render in upper left corner, only one quarter shows
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u131,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: other
  • CPU: x86
  • Submitted: 2017-06-20
  • Updated: 2017-08-03
  • Resolved: 2017-08-03
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 10
10Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Reproduces with 1.8.0_131 and 1.9 ea.

ADDITIONAL OS VERSION INFORMATION :
This does not appear to be platform dependent. This is reproducible on Windows, Linux, Mac, etc.

EXTRA RELEVANT SYSTEM CONFIGURATION :
Access to the Internet.

A DESCRIPTION OF THE PROBLEM :
While using JavaFX's WebView, ExtJS Pie charts are working fine in 1.8.0_101, 1.8.0_111, and 1.8.0_121, but don't render properly with 1.8.0_131 or 1.9 ea.

The problem looks the similar to "chart pie origin problem" at https://forums/adobe.com/thread/1272912. However, unlike in this report, the problem DOES NOT also manifest in Chrome and Safari, it only manifests in WebView.

When rendered incorrectly, the pie chart is centered at the upper left of whatever view it currently lives in, thus only presenting one quarter of the circle. (Same presentation as link above.)

(Reporter documentation: 247432)

REGRESSION.  Last worked in version 8u121

ADDITIONAL REGRESSION INFORMATION: 
This problem occurs across all platforms. However, here is what I am running on Linux:
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Because ExtJS is license, I cannot share the code - directly. However, I can point you to the resource on the web.

1. Launch an example WebView application using 1.8.0_131 (or a newer 1.9 ea).
2. Goto https://fiddle.secha.com
3. In the extreme left click on the magnifying glass labeled search.
4. Type "pie chart" in the Title field.
5. Click "Search" at the bottom of the fields.
6. You can select any pie chart example, but I am reporting the two by author "westoncerny", currently 6th and 7th from the top.
7. Notice in the preview that the pie chart renders in the upper left with only one quarter showing.
8. Switch to any other browser and redo steps 2-6.
9. Notice that the pie chart renders correctly.
10. Switch to Java 1.8.0_121 and redo steps 2-6.
11. Notice that the pie chart renders correctly.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
As above in reproduction steps, we expect the pie chart to render correctly in step 7.
ACTUAL -
As above in reproduction steps, we see the pie chart is rendered off in a corner in step 7. It should be rendered the same as in steps 9 and 11.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Any WebView example with a url input will do. 
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
No workaround discovered.


Comments
Pie charts : https://fiddle.sencha.com/#fiddle/1vd7&view/editor Renders as expected (simlar to Firefox and Chrome) post JDK-8183292.
03-08-2017

Issue reproducible in 8u131 & onward but again fixed in early versions of JDK 9. Windows 10 =========== 8 GA : Pass 8u121: Pass 8u131: Fail <---- Introduced here 8u152: Fail 9-ea+112: Pass 9-ea+140 : Pass 9-ea+149 : Pass 9-ea+150 : Fail <-- Again introduced here 9-ea+173 : Fail ============= PFA reproducible test case (WebViewSample.java) and screenshot (PieChartIssue.png) where pie chart is rendered off in a corner.
21-06-2017