JDK-8196100 : javax/swing/text/JTextComponent/5074573/bug5074573.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u221,9,10,11,14,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-01-24
  • Updated: 2024-12-20
  • Resolved: 2020-11-26
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 11 JDK 13 JDK 15 JDK 16 JDK 8
11.0.12-oracleFixed 13.0.10Fixed 15.0.6Fixed 16 b27Fixed 8u301Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
windows 7, jdk 10+11
----------configuration:(3/43)----------
Boot Layer
  add modules: java.desktop

----------System.out:(5/485)----------
javax.swing.UIManager$LookAndFeelInfo[Metal javax.swing.plaf.metal.MetalLookAndFeel]
javax.swing.UIManager$LookAndFeelInfo[Nimbus javax.swing.plaf.nimbus.NimbusLookAndFeel]
javax.swing.UIManager$LookAndFeelInfo[CDE/Motif com.sun.java.swing.plaf.motif.MotifLookAndFeel]
javax.swing.UIManager$LookAndFeelInfo[Windows com.sun.java.swing.plaf.windows.WindowsLookAndFeel]
javax.swing.UIManager$LookAndFeelInfo[Windows Classic com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel]
----------System.err:(17/996)----------
sun.awt.SunToolkit$InfiniteLoop
	at java.desktop/sun.awt.SunToolkit.realSync(SunToolkit.java:1474)
	at java.desktop/sun.awt.SunToolkit.realSync(SunToolkit.java:1402)
	at java.desktop/java.awt.Robot.waitForIdle(Robot.java:692)
	at bug5074573.test(bug5074573.java:76)
	at bug5074573.main(bug5074573.java:54)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:844)

JavaTest Message: Test threw exception: sun.awt.SunToolkit$InfiniteLoop
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: sun.awt.SunToolkit$InfiniteLoop
Comments
Fix request (13u, 15u) I'd like to backport this and 8266949 fix to improve realSync and remove (when useful and possible) some exception. This one gets rid of InfiniteLoopException. The patch goes cleanly. Tests directly calling realSync all pass at least on X11.
02-11-2021

Fix Request (11u) Should get backported for parity with 11.0.12-oracle. Fix itself applies cleanly, but removing test from problem list needs to get done manually (unrelated context changes in problem list file). I guess there's no need for a review thread.
25-05-2021

Changeset: 973255c4 Author: Sergey Bylokhov <serb@openjdk.org> Date: 2020-11-26 08:43:29 +0000 URL: https://github.com/openjdk/jdk/commit/973255c4
26-11-2020

closed test javax/swing/text/html/HTMLEditorKit/LinkNavigationTest/LinkNavigationTest.java fails on WIndows very often with the same issue : sun.awt.SunToolkit$InfiniteLoop at java.desktop/sun.awt.SunToolkit.realSync(SunToolkit.java:1474) at java.desktop/sun.awt.SunToolkit.realSync(SunToolkit.java:1402) at java.desktop/java.awt.Robot.waitForIdle(Robot.java:688) at JRobot.waitForIdle(JRobot.java:189) at SwingTestHelper.waitForEDTToFinish(SwingTestHelper.java:598) at SwingTestHelper.controlLoop(SwingTestHelper.java:575) at SwingTestHelper$4.run(SwingTestHelper.java:497) at java.base/java.lang.Thread.run(Thread.java:832) STATUS:Failed.`main' threw exception: sun.awt.SunToolkit$InfiniteLoop
18-04-2020

This issue is not reproducible on Windows 10 with jdk11
29-01-2018