JDK-8132880 : Unpredictable behaviour when trying to set negative scene width or height
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8,9,10
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-07-30
  • Updated: 2020-07-02
  • Resolved: 2020-04-24
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
8u261 inapplicableFixed
Description
Testsuite name: JavaFXCompatibility manual
Test name:graphics/api/scene/SizeTest.java
JDK version: JDK8u65b07 (64bit)
Platform: Mac10.10 x64, Ubuntu 15.04 (kwin)
Platform-specific: no
Reproducible: always

Steps to reproduce:
1. Execute attached sample
2. Press button "Left" multiple times to shrink the window.
Expected result:
- Window shrinks until some minimal possible value and then refuses to resize or throws an exception
Actual result:
- Window shrinks to minimal size, then its becomes narrow, but with screen height, then it becomes expanded.

Similar thing for Stage with negative width/height.
Probably, that is an expected behavior and negative values are kind of special predefined values like USE_COMPUTED_SIZE/USE_PREF_SIZE, but there is nothing about it in Javadoc.

Comments
We verified the bug with 8u261b10 and the latest workspaces on Win8.1 x86. There is no this issue anymore.
12-06-2020

There is no width and height values can be printed after every key pressing, we attached the logs, please refer to run-1.log,log-2.txt and process_execution.log
22-04-2020

We always have this issue.please confirm the steps like below: 1. Execute attached sample 2. Press button "Left" multiple times shrink the window to smallest, please refer to refer to SizeTest_smallest.png. 3. When the window changing to the smallest, continue to press the "left" key arrow, The actual results: The window will become larger after pressing the "left" key arrow, please refer to SizeTest_end.png.
22-04-2020

[~tmeng] Can you attach the console log. It will print the width and height values after every key press
22-04-2020

[~tmeng] Tested it on Win 10(x64) on different builds 8u221,8u231,8u261 but it is not reproducible. Resizing behaves normally as per test instructions.
22-04-2020

There's the same issue happened on win8.1-x64 with JDK7u251b62-64bit RULE "graphics/api/scene/SizeTest.java" any any
20-03-2020

There's the same issue happened on win10-x64 with JDK8u211b03-64bit. There's the same issue happened on ubuntu18.04-x64 with JDK8u212b05-64bit There's the same issue happened on win10-x64 with JDK8u221b02-64bit. There's the same issue happened on win7-x86 with JDK8u221b03-32bit There's the same issue happened on ubuntu18.04-x64 with JDK8u221b06-64bit There's the same issue happened on win10-x64 with JDK8u231b02-64bit There's the same issue happened on win7-x86 with JDK8u231b03-64bit There's the same issue happened on mac10.13-x64 with JDK8u231b05-64bit There's the same issue happened on win8.1-x86 with JDK8u231b98-64bit There's the same issue happened on OEL8.0-x64 with JDK8u241b02-64bit There's the same issue happened on mac10.15-x64 with JDK8u241b03-64bit. There's the same issue happened on win8.1-x86 with JDK8u251b03-32bit
11-02-2020

There's the same issue happened on Mac10.13-x64 with JDK10.0.2b05-64bit. There's the same issue happened on win8.1-x64 with JDK10.0.2b06-64bit.
15-05-2018

There's the same issue happened on oel7.1-uek-x64 with JDK10.0.1b06-64bit. There's the same issue happened on win8.1-x64 with JDK10.0.1b07-64bit. RULE "graphics/api/scene/SizeTest.java" any any There's the same issue happened on Mac10.13-x64 with JDK10.0.1b07-64bit.
07-03-2018

There's the same issue happened on mac10.11-x64 with JDK8u162b01-64bit. There's the same issue happened on win8.1-x64 with JDK8u162b02-64bit. There's the same issue happened on win8.1-x64 with JDK8u161b04-64bit. There's the same issue happened on win10-x64 with JDK8u162b05-32bit. There's the same issue happened on win10-x64 with JDK8u161b06-32bit. There's the same issue happened on oel7.1-uek-x64 with JDK8u162b08-64bit. There's the same issue happened on oel7.1-uek-x64 with JDK8u161b08-64bit. There's the same issue happened on mac10.13-x64 with JDK8u172b03-64bit. There's the same issue happened on win8.1-x64 with JDK8u172b04-64bit. There's the same issue happened on mac10.12-x64 with JDK8u171b04-64bit. There's the same issue happened on ubuntu17.04-x64 with JDK8u172b05-64bit. There's the same issue happened on win10-x64 with JDK8u171b07-32bit.
27-02-2018

There's the same issue happened on win7-x64 with JDK9.0.3b06-64bit. RULE "graphics/api/scene/SizeTest.java" any any There's the same issue happened on oel7.1-uek-x64 with JDK9.0.4b05-64bit. There's the same issue happened on win8.1-x64 with JDK9.0.4b07-64bit. There's the same issue happened on Mac10.11-x64 with JDK9.0.4b07-64bit.
29-11-2017

There's the same issue happened on win10-x64 with JDK7u171b04-32bit. There's the same issue happened on ubuntu16.04-x86 with JDK7u171b04-32bit.
31-10-2017

There's the same issue happened on win7-x64 with JDK8u131b07-64bit There's the same issue happened on win8.1-x64 with JDK8u152b12-64bit There's the same issue happened on win10-x86 with JDK8u152b12-32bit There's the same issue happened on oel7.1-uek-x64 with JDK8u152b14-64bit. There's the same issue happened on oel7.1-uek-x64 with JDK8u151b12-64bit. There's the same issue happened on win10-x64 with JDK8u151b12-64bit.
13-09-2017

There is the same issue happened on Win7-x86+jdk8u121b07-32bit.
07-11-2016

There is the same issue happened on Mac10.12-Beta-x64-jdk8u102b14-64bit RULE "graphics/api/scene/SizeTest.java" any any
26-08-2016

Reproduced the same issue on Mac10.11-x64+jdk9b126-64bit.
25-08-2016

There is the same issue happened on Win7-x64+jdk8u112b09-64bit. RULE "graphics/api/scene/SizeTest.java" any any
19-08-2016

There is the same issue happened on Mac10.11-x64+jdk8u112b08-64bit. RULE "graphics/api/scene/SizeTest.java" any any
12-08-2016

There is the same issue happened on Win7-x86+jdk8u111b07-32bit RULE "graphics/api/scene/SizeTest.java" any any
09-08-2016

There is the same issue happened on Ubuntu16.04-x64+jdk8u112b07-64bit. RULE "graphics/api/scene/SizeTest.java" any any
09-08-2016

Verified the issue on Ubuntu16.04-x64+jdk9b128-64bit.
01-08-2016

There is the same issue happened on Ubuntu16.04-x64+jdk9b128-64bit. RULE "graphics/api/scene/SizeTest.java" any any
25-07-2016

There is the same issue happened on Ubuntu16.04-x64+jdk9b126-64bit. RULE "graphics/api/scene/SizeTest.java" any any
13-07-2016

There is the same issue happened on Mac10.11-x64+jdk9b126-64bit. RULE "graphics/api/scene/SizeTest.java" any any
11-07-2016

There is the same issue happened on Mac10.11-x64+jdk9b125-64bit. RULE "graphics/api/scene/SizeTest.java" any any
06-07-2016

There is the same issue happened on Windows10-x64+jdk9b125-64bit. RULE "graphics/api/scene/SizeTest.java" any any
04-07-2016

There is the same issue happened on Mac10.11-x64+jdk8u101b11-64bit. RULE "graphics/api/scene/SizeTest.java" any any
12-06-2016

There is the same issue happened on Windows7-x64+jdk8u102b07-64bit. RULE "graphics/api/scene/SizeTest.java" any any
13-05-2016

There is the same issue happened on ubuntu14.04-x64+jdk8u102b06-64bit. RULE "graphics/api/scene/SizeTest.java" any any
10-05-2016

There is the same issue happened on Win7-x86+jdk8u101b06-32bit. RULE "graphics/api/scene/SizeTest.java" any any
04-05-2016

There is the same issue happened on Win7-x64+jdk9b113-64bit.
13-04-2016

There is the same issue happened on ubuntu16.04-x64-beta2+jdk9b113-64bit.
12-04-2016

There is the same issue happened on Ubuntu16.04-x64+jdk8u73b02-64bit.
23-03-2016

There is the same issue happened on win7-x64+jdk8u76b08-64bit.
17-02-2016

The same issue happened on Ubuntu13.10 x64+jdk8u76b06-64bit. RULE "graphics/api/scene/SizeTest.java" any any
04-02-2016

There is the same issue happened on win7-x86+jdk8u75b06-32bit. RULE "graphics/api/scene/SizeTest.java" any any
02-02-2016

There is the same issue happened on Ubuntu14.04 x86+jdk8u75b04-32bit.
24-01-2016

There is the same issue happened on Mac10.11 x64+jdk8u76b03-64bit.
21-01-2016

Confirmed.
03-08-2015

Keywords: unconfirmed-vendor-evergreen
30-07-2015

RULE graphics/api/scene/SizeTest.java any any
30-07-2015