eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

Win: Eclipse IDE freeze with Hover across screens with different UI scaling

Open jukzi opened this issue 2 years ago • 15 comments

Describe the bug Eclipse IDE is hanging for ever if a long Hover Text is shown across multiple screens, 100% reproducible on some eclipse installations, but does not occur on other eclipse installations with same eclipse version on same computer - i could not find the difference.

To Reproduce Use windows 10. Have 2 Screens. Left configured to 100% and right configured to 125% UI Scaling in Windows setting.

Having a Class

class Long {
    public void veryLongMethodName1veryLongMethodName2veryLongMethodName3veryLongMethodName4() {
    }
}

And Show the Outline, Hover the method name with the mouse.

image The freeze ends as soon as the second display is changed back to 100%.

Sampling shows, that the CPU is busy and debugging shows Windows OS sends Events again and again and SWT is doing some things, but the hover text is never shown. image

Expected behavior No freeze.

Version since First seen in Eclipse 4.26

Workaround Use 100% UI Scaling on all Monitors.

Ideas welcome. It feels like Windows/SWT is not sure which scaling to use and is hung in an endless resizing loop.

jukzi avatar Feb 22 '23 11:02 jukzi