Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 493491

Summary: [HiDPI][win32] Garbled editors if autoscaling is enabled
Product: [Eclipse Project] Platform Reporter: tarvo hirs <tarvo.hirs>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: arunkumar.thondapu, loskutov, niraj.modi, peter
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=493462
Whiteboard:
Bug Depends on:    
Bug Blocks: 479614    
Attachments:
Description Flags
Screenshots from Java file, properties file editor none

Description tarvo hirs CLA 2016-05-12 04:32:35 EDT
Created attachment 261666 [details]
Screenshots from Java file, properties file editor

Partial repainting can totally garble the screen (of any text editor window).
For ex: Drag hor/vert scrollbar button with mouse or use mouse scroll button, then hover the cursor over lines or move the cursor by arrow buttons: single text line at a time may jump both horizontally and vertically when a 'local small area repaint' gets activated (by Ctrl-down or just highliting the current line ).
Comment 1 Lars Vogel CLA 2016-05-12 04:36:35 EDT
Can you try Neon and see if it still happens? download.eclipse.org/eclipse/downloads/
Comment 2 Andrey Loskutov CLA 2016-05-12 04:42:14 EDT
Do you have UI scaling enabled in Windows? If yes, this is a known fallout of hidpi changes, see bug 493462. The solution today is to disable hidpi via JVM argument swt.enable.autoScale=false, the solution in RC2 see bug 493462.
Comment 3 tarvo hirs CLA 2016-05-12 04:48:44 EDT
(In reply to Lars Vogel from comment #1)
> Can you try Neon and see if it still happens?
> download.eclipse.org/eclipse/downloads/

Yes, Neon it is. I applied the latest Neon updates by 'Check for updates', about few hours ago. Other notices: Eclipse main window was about 20% wider after restart; all icons are distorted because of stretching.
Comment 4 tarvo hirs CLA 2016-05-12 04:51:53 EDT
(In reply to Andrey Loskutov from comment #2)
> Do you have UI scaling enabled in Windows? If yes, this is a known fallout
> of hidpi changes, see bug 493462. The solution today is to disable hidpi via
> JVM argument swt.enable.autoScale=false, the solution in RC2 see bug 493462.

Indeed, I found it to be 125%
Comment 5 tarvo hirs CLA 2016-05-12 06:19:04 EDT
Setting -Dswt.enable.autoScale=false in eclipse.ini under -vmargs solved the issue for me for now, the UI is back to normal and I didn't have to reset my windows scaling (is 125%). 
The only remaining effect is that Eclipse's splash screen content diminishes during loading, background image gets tiled and text appears in a wrong place.
Comment 6 Arun Thondapu CLA 2016-05-12 06:36:14 EDT
(In reply to tarvo hirs from comment #5)
> Setting -Dswt.enable.autoScale=false in eclipse.ini under -vmargs solved the
> issue for me for now, the UI is back to normal and I didn't have to reset my
> windows scaling (is 125%). 
> The only remaining effect is that Eclipse's splash screen content diminishes
> during loading, background image gets tiled and text appears in a wrong
> place.

This is tracked via bug 493192 and should be fixed in RC2.
Comment 7 Niraj Modi CLA 2016-05-12 06:59:13 EDT

*** This bug has been marked as a duplicate of bug 489817 ***