JDK-8112239 : Pasting long text into TextBox locks the application
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-04-06
  • Updated: 2015-06-16
  • Resolved: 2011-06-23
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.
Other
fx2.0Fixed
Related Reports
Blocks :  
Blocks :  
Duplicate :  
Description
If I run the apps/internal/JFXControls example and attempt to paste the attached text (as a single line) into the text box, the application hangs. According to the thread dump, it has something to do with the Quantum toolkit. If you wonder what that text is, paste it into the URL field in Firefox.
Comments
Verified for b35
13-07-2011

Fixed in graphics-scrum #2276 with changeset 12654:2c16d392e90e
23-06-2011

There should be no need to set that transparent stroke. It was a workaround to a bug in the initial port to Java in Oct 2010 .. we spotted one usage and fixed it in April but the one in TextBoxSkin was not spotted. http://beethoven.us.oracle.com/shared-webrev/thor/RT-12159/webrevCurrent/ So simply removing the old workaround from TextInputSkin.java will help enormously.
20-06-2011

TextBox is affected by RT-14356 and RT-14358 (unlike simple Text) because setStroke(Color.TRANSPARENT) is called on it in TextBoxSkin.java. A test for Text that also sets stroke exhibits the same performance problem.
20-06-2011

Making issue public, as I referred to it from RT-13965.
14-06-2011

@Greg: I think this should be targeted to be fixed for Presidio, and probably with a higher priority than is currently the case. What do you think?
14-06-2011

I agree - this seems like a pretty serious issue.
14-06-2011