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

Bug 493197

Summary: [HiDPI] 4.6 M7 does not show any icons in toolbar and perspective changer and strange lines in editors
Product: [Eclipse Project] Platform Reporter: Henning Riedel <kesselhaus>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3 CC: loskutov, niraj.modi, peter, sravankumarl
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Bug Depends on:    
Bug Blocks: 479614    
Attachments:
Description Flags
UI Screenshot without icons and with strange lines in editor
none
Eclipse M7 64 bit @200% on windows 10 Pro none

Description Henning Riedel CLA 2016-05-08 22:41:04 EDT
Created attachment 261541 [details]
UI Screenshot without icons and with strange lines in editor

Just installed several different M7 build (installer and also eclipse-SDK-4.6-M7_win32-x86_64.zip) to my Windows 10 machine (Surface Pro 3).
It does not show any toolbar icons and perspective selection bar icons.
When I open another perspective, it adds the space for it, but not the buttons/icons. I can not select anything in the toolbar and the perspective changer bar.

Also in the the source code editors, there are strange lines shown.

See the screenshot.

And I get this entry in the .log file
!SESSION 2016-05-09 04:24:39.580 -----------------------------------------------
eclipse.buildId=4.6.0.I20160428-0800
java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 0 2016-05-09 04:25:01.832
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:4514)
	at org.eclipse.swt.SWT.error(SWT.java:4448)
	at org.eclipse.swt.SWT.error(SWT.java:4419)
	at org.eclipse.swt.graphics.GC.drawBitmap(GC.java:1226)
	at org.eclipse.swt.graphics.GC.drawImage(GC.java:1059)
	at org.eclipse.swt.graphics.GC.drawImageInPixels(GC.java:994)
	at org.eclipse.swt.graphics.GC.drawImage(GC.java:983)
	at org.eclipse.e4.ui.widgets.ImageBasedFrame.drawFrame(ImageBasedFrame.java:285)
	at org.eclipse.e4.ui.widgets.ImageBasedFrame$1.paintControl(ImageBasedFrame.java:68)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:231)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4415)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1088)
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1685)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4828)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:359)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5116)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2552)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3819)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1119)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1020)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Comment 1 Henning Riedel CLA 2016-05-08 23:03:37 EDT
Just realized, when adding the

-Dswt.enable.autoScale=false

to the eclipse.ini file, the icons are shown again. Even though, they are not very big to actually see, what that icons mean.

So it seems, that the Icons/Toolbaritems are just sooo small on my HighDPI screen, when autoscale=true, that I can't see them at all.
Comment 2 Niraj Modi CLA 2016-05-09 04:53:36 EDT
The toolbar issue duplicate of bug 492312 and strange line is editor is due to issue mentioned in bug 489817

*** This bug has been marked as a duplicate of bug 492312 ***
Comment 3 Sravan Kumar Lakkimsetti CLA 2016-05-09 08:15:52 EDT
Created attachment 261555 [details]
Eclipse M7 64 bit @200% on windows 10 Pro

Here is the screen shot I got when I run eclipse.

The machine is new so I do not have any old eclipse workspaces to use.

@Niraj,

Can you please analyze how the stacktrace can occur. may that might give us clue on what is happening here.