Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 553366 - [Mac][HiDPI][13] Child eclipse launched with Java 13 has compressed text when the part is made smaller
Summary: [Mac][HiDPI][13] Child eclipse launched with Java 13 has compressed text when...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.13   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-22 11:07 EST by Sarika Sinha CLA
Modified: 2021-02-10 00:28 EST (History)
6 users (show)

See Also:


Attachments
Content is squeezed (731.10 KB, image/png)
2019-11-22 11:08 EST, Sarika Sinha CLA
no flags Details
Video to show squeezed text (13.49 MB, video/mp4)
2019-11-22 11:38 EST, Sarika Sinha CLA
no flags Details
Refresh Issues while debugging (44.20 KB, image/png)
2019-11-25 00:52 EST, Sarika Sinha CLA
no flags Details
Refresh issue While Debugging 2 (239.69 KB, image/png)
2019-11-25 01:00 EST, Sarika Sinha CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sarika Sinha CLA 2019-11-22 11:07:09 EST
Can reproduce with 4.13 as well as 4.14 M3 build.
Steps to reproduce:
1. Launch Eclipse with any Java version
2. Launch Child Eclipse with Java 13
3. Making a part smaller, reduces the font size but shows the whole content. The other part will have increased font.
Comment 1 Sarika Sinha CLA 2019-11-22 11:08:38 EST
Created attachment 280763 [details]
Content is squeezed
Comment 2 Dani Megert CLA 2019-11-22 11:18:47 EST
> 3. Making a part smaller,
Any view or editor? Please provide exact steps.

On Windows 10 it works fine for me for Package Explorer and Outline. Can someone else on Mac confirm this?
Comment 3 Sarika Sinha CLA 2019-11-22 11:38:33 EST
Created attachment 280764 [details]
Video to show squeezed text
Comment 4 Sarika Sinha CLA 2019-11-22 11:40:17 EST
(In reply to Dani Megert from comment #2)
> > 3. Making a part smaller,
> Any view or editor? Please provide exact steps.
> 

Added video to describe.
Comment 5 Dani Megert CLA 2019-11-22 11:45:44 EST
(In reply to Sarika Sinha from comment #4)
> (In reply to Dani Megert from comment #2)
> > > 3. Making a part smaller,
> > Any view or editor? Please provide exact steps.
> > 
> 
> Added video to describe.
I only see it in the editor and only while dragging. After that, the font looks OK again. Correct? Please also test with the Text editor.

Works for me on Windows 10.
Comment 6 Noopur Gupta CLA 2019-11-22 12:16:08 EST
Works fine with I20191120-2335 on Windows 10 using steps from comment #0.
Comment 7 Sarika Sinha CLA 2019-11-22 12:41:25 EST
(In reply to Dani Megert from comment #5)
> (In reply to Sarika Sinha from comment #4)
> > (In reply to Dani Megert from comment #2)
> > > > 3. Making a part smaller,
> > > Any view or editor? Please provide exact steps.
> > > 
> > 
> > Added video to describe.
> I only see it in the editor and only while dragging. After that, the font
> looks OK again. Correct? Please also test with the Text editor.
> 
> Works for me on Windows 10.

Text Editor, Ant Edit behaves the same. It's not only while dragging, looks like it depends on some lemgth less than it remains distorted even after the drag. Even Outline view gets distorted.

Another fact is: It happens only in Java Perspective. Works well in Debug perspective.
Comment 8 Sarika Sinha CLA 2019-11-25 00:52:42 EST
Created attachment 280771 [details]
Refresh Issues while debugging
Comment 9 Sarika Sinha CLA 2019-11-25 01:00:04 EST
Created attachment 280772 [details]
Refresh issue While Debugging 2

Another refresh issues while Debugging - Mac only Java 13 issue which works on Linux and Win 10

Lines are shown sometime twice , sometime in different fonts or misplaced. See attachments
Comment 10 Till Brychcy CLA 2019-11-25 03:05:29 EST
I observed this behavior when experimenting with native dark mode, see Bug 540357 Comment 7 (see Bug 540357 Comment 2 for link to cocoa release notes).

I looks like Java 13 is linked on newer macOS, so usage of newer macOS APIs is triggered when launching as nested eclipse.
Comment 11 Lakshmi P Shanmugam CLA 2019-12-09 03:29:21 EST
I can't reproduce this problem on macOS 10.15.1 with child eclipse launched with Java 13.
Comment 12 Lakshmi P Shanmugam CLA 2019-12-09 05:19:26 EST
Tried on Sarika's machine, the problem happens with Java 13 but not with Java 12.
But, looks like both Java 12 and Java 13 are linked with 10.12 (checked with otool -l). Also, it's strange that it happens with Java & Plug-in perspective, but not in Debug or Git perspective.
Comment 13 Alexander Kapralov CLA 2019-12-17 13:54:43 EST
I have same bug with Liberica JDK 11.0.5
Comment 14 Lakshmi P Shanmugam CLA 2020-12-01 07:10:18 EST
@Sarika, do you still see this with the 4.18 latest builds?
Comment 15 Sarika Sinha CLA 2021-02-10 00:28:08 EST
Works fine with I20210207-1800 and child Eclipse launched with Java 13.