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

Bug 478975

Summary: [Cocoa][10.11] Can not run Eclipse in full screen mode without it hanging
Product: [Eclipse Project] Platform Reporter: Gary Karasiuk <gary>
Component: SWTAssignee: Markus Keller <markus.kell.r>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: arunkumar.thondapu, ashbygreg, daniel_megert, develop, eclipse, hal.hildebrand, jose, jtweezy19, justin, justnewbee, kane.mx, kristoffer, lshanmug, lukasz.gryzbon, markus.kell.r, massimoromano3, njdoyle, peter, ptessier, py, sarika.sinha, sorin, thatnitind, twmail, vinoch, xcoulon, xgsa
Version: 4.5.1Flags: sarika.sinha: review+
daniel_megert: review+
arunkumar.thondapu: review+
Target Milestone: 4.6 RC3   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/73419
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=97bc6d06ebf7817e9b6aa794dd0f36e41b77181e
https://bugs.eclipse.org/bugs/show_bug.cgi?id=496561
Whiteboard:
Bug Depends on:    
Bug Blocks: 482454    
Attachments:
Description Flags
Screen shot
none
Browse dialog partially hidden by root Import Projects dialog
none
Plugins dialog partially hidden by root About Eclipse dialog none

Description Gary Karasiuk CLA 2015-10-04 09:26:47 EDT
1) I was running Eclipse in full screen mode. 
2) I opened Debug Configurations.
3) I selected the Source Tab
4) I clicked on Add... and my Eclipse application froze. None of the UI controls worked.

I looked at a thread dump, to try to figure out why it was hung, but couldn't find anything. I was about to kill the Eclipse process (which is a pretty drastic step), when I took it out of full screen mode. Then the Add Source modal dialog appeared. It was this dialog that was blocking everything, but there was NO WAY to get to this dialog  while in full screen mode.
Comment 1 Gary Karasiuk CLA 2015-10-04 09:31:19 EDT
Created attachment 257021 [details]
Screen shot

I attached a screenshot of the modal dialog that was blocking everything, but that would not appear in full screen mode. FYI, I'm running OSX 10.11.
Comment 2 Noopur Gupta CLA 2015-10-05 03:19:18 EDT
Moving to Debug for comments.
Comment 3 Sarika Sinha CLA 2015-10-05 04:19:30 EDT
Moving to SWT as other modal dialogs are also behaving similarly with OSX 10.11

FYI - Eclipse 4.5 and 4.5.1 supports OSX 10.10
Comment 4 Lakshmi P Shanmugam CLA 2015-10-09 07:30:46 EDT
*** Bug 479341 has been marked as a duplicate of this bug. ***
Comment 5 Jose M Beleta CLA 2015-12-17 11:36:46 EST
Any new on this bug? It is really very annoying.
Comment 6 Arun Thondapu CLA 2015-12-22 06:56:36 EST
*** Bug 481190 has been marked as a duplicate of this bug. ***
Comment 7 vinoth chinnakonda CLA 2016-01-30 22:30:08 EST
Any update please? very annoying ...
Comment 8 Ricardo Gladwell CLA 2016-02-03 10:21:43 EST
Created attachment 259532 [details]
Browse dialog partially hidden by root Import Projects dialog
Comment 9 Ricardo Gladwell CLA 2016-02-03 10:22:20 EST
Created attachment 259533 [details]
Plugins dialog partially hidden by root About Eclipse dialog
Comment 10 Ricardo Gladwell CLA 2016-02-03 10:23:43 EST
As you can see from my attachments, this is happening for many modal dialogs spawned by modal dialogs.

It also seems to be preventing drop-down boxes in some modal dialogs for displaying properly.
Comment 11 Lukasz Gryzbon CLA 2016-02-07 16:12:18 EST
I can't commit anything to git because I can't see the diff window.

This is a very annoying bug :(
Comment 12 Lukasz Gryzbon CLA 2016-02-07 16:34:31 EST
This problem seems to be caused by Java 8 (u71). When I downgraded the JDK to 7u79 it started displaying the dialogs correctly.

I tried on Mars and Luna.
Comment 13 Ricardo Gladwell CLA 2016-02-08 04:34:25 EST
I'm using Java 8 (u60) and I'm getting this issue, so not sure its a JVM problem.
Comment 14 Kristoffer Peterhänsel CLA 2016-02-08 08:10:10 EST
(In reply to Ricardo Gladwell from comment #13)
> I'm using Java 8 (u60) and I'm getting this issue, so not sure its a JVM
> problem.

As far as I can tell. Lukas Gryzbon seemed to say it is affecting all versions of Java 8 and not Java 7. So it could be.

I have been seeing similar issues in Paw (a native Mac app for testing HTTP requests). So it seems something may have changed in 10.11.
Comment 15 Lakshmi P Shanmugam CLA 2016-02-09 02:07:46 EST
*** Bug 487470 has been marked as a duplicate of this bug. ***
Comment 16 Brian de Alwis CLA 2016-02-13 22:11:45 EST
*** Bug 484364 has been marked as a duplicate of this bug. ***
Comment 17 Brian de Alwis CLA 2016-02-27 21:07:35 EST
*** Bug 488632 has been marked as a duplicate of this bug. ***
Comment 18 Lakshmi P Shanmugam CLA 2016-03-28 06:06:16 EDT
(In reply to Lukasz Gryzbon from comment #12)
> This problem seems to be caused by Java 8 (u71). When I downgraded the JDK
> to 7u79 it started displaying the dialogs correctly.
> 
> I tried on Mars and Luna.

I tried Mars.2 on jre1.7.0_76 and still see the same problem. But, I'm unable to create a SWT only snippet to reproduce the issue.
Comment 19 Lakshmi P Shanmugam CLA 2016-04-23 02:51:49 EDT
Will try to address this in RC1.
Comment 20 Arun Thondapu CLA 2016-05-02 13:49:38 EDT
*** Bug 480232 has been marked as a duplicate of this bug. ***
Comment 21 Arun Thondapu CLA 2016-05-06 07:11:32 EDT
*** Bug 479529 has been marked as a duplicate of this bug. ***
Comment 22 Lakshmi P Shanmugam CLA 2016-05-16 04:51:27 EDT
I'm investigating the bug. The problem doesn't happen in debug mode, making debugging the issue harder.
Comment 23 Lakshmi P Shanmugam CLA 2016-05-20 04:04:49 EDT
I haven't been able to make much progress in debugging the issue. Moving to 4.6.1.
Comment 24 Hal Hildebrand CLA 2016-05-20 07:27:14 EDT
This is going on 7 months now since this was reported.  And now we're pushing it again?

It's really annoying to have IntelliJ users laugh at you because you literally can't do anything when in full screen mode.

:: sigh ::
Comment 25 Lukasz Gryzbon CLA 2016-05-20 07:34:25 EDT
I agree. This must be causing a major user drop out/switch to IntelliJ.

I also don't understand how this isn't considered high priority?!
Comment 26 Greg Ashby CLA 2016-05-22 22:46:12 EDT
I just switched from Windows to Mac and am constantly having this issue too. Thought Eclipse was completely freezing until I started noticing larger dialogs opening in behind, and then found this bug report. Let me know if I can help with testing or debugging at all.
Comment 27 Markus Keller CLA 2016-05-23 14:28:42 EDT
This bug breaks a very common use case, and it can lead to data loss if the user doesn't realize it's possible to close the hidden dialog via the ESC key, or that the full-screen mode can be terminated by moving the mouse to the menu bar and then clicking the green button in the top-level window's title bar.


To debug an Eclipse app that was launched by the Eclipse launcher, use a command line like this to start the runtime Eclipse:

$ Eclipse.app/Contents/MacOS/eclipse -data runtime-workspace -vmargs -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:54321

Then use Debug Configuration..., create a new "Remote Java Application" launch configuration, and launch it.

However, this only helps you debug problems in SWT, but this bug looks like a bug in the OS. Everything in Shell#setWindowVisible(boolean, boolean) looks normal to me (and the same as when I debug a normal Eclipse Application launch config that is in fullscreen mode).

Although I don't fully understand the cause of the problem, I think we need a fix for Neon, even if it's not perfect. I'll submit a Gerrit with a workaround that is not nice, but it does the job and is restricted to the configuration that is already unusable.

Lakshmi, please reconsider for RC3.
Comment 28 Eclipse Genie CLA 2016-05-23 14:30:49 EDT
New Gerrit change created: https://git.eclipse.org/r/73419
Comment 29 Markus Keller CLA 2016-05-23 14:38:51 EDT
(In reply to Markus Keller from comment #27)
> [..] and is restricted to the configuration that is already unusable.

That statement only applies to the Eclipse use case. However, I didn't see any adverse effects in apps that don't use the Eclipse launcher, and I think the risk for those applications is bearable.
Comment 30 Markus Keller CLA 2016-05-25 10:07:48 EDT
Filed bug 494533 and bug 494534 for remaining problems brought up in the Gerrit:

> Project properties -> Java build path -> Libraries Tab -> Add library -> 
> JRE System Library -> Click on Installed JREs or Environments
> - The preference dialog opens behind Add Library dialog.

These are corner cases that can be fixed later. The proposed fix doesn't affect these scenarios in non-full-screen mode.
Comment 31 Arun Thondapu CLA 2016-05-25 11:41:25 EDT
(In reply to Markus Keller from comment #30)
> Filed bug 494533 and bug 494534 for remaining problems brought up in the
> Gerrit:
> 
> > Project properties -> Java build path -> Libraries Tab -> Add library -> 
> > JRE System Library -> Click on Installed JREs or Environments
> > - The preference dialog opens behind Add Library dialog.
> 
> These are corner cases that can be fixed later. The proposed fix doesn't
> affect these scenarios in non-full-screen mode.

+1 to merge the patch. I don't have a Mac to test myself but I do know that Lakshmi has already verified the fix and reported the exceptional cases mentioned which can be dealt with later.
Comment 33 Lakshmi P Shanmugam CLA 2016-05-26 08:07:24 EDT
Verified in I20160525-2000. Markus, thanks for the fix.
Comment 34 Arun Thondapu CLA 2016-05-31 03:21:19 EDT
*** Bug 494981 has been marked as a duplicate of this bug. ***
Comment 35 Pierre-Yves DIENST CLA 2016-06-22 11:16:47 EDT
I am using:
Eclipse for PHP Developers
Version: Neon Release (4.6.0)
Build id: 20160613-1800
(OSX 10.11.5)

I still have this kind of problem:
I am in full screen mode
I click on File Search
The Dialog appear, but i can't open the combobox "Containing text" and "File name patterns".

Any Idea?
Thanks.
Comment 36 Ricardo Gladwell CLA 2016-06-23 05:08:43 EDT
This appears to still be happening for Eclipse Neon: was this expected?
Comment 37 Lakshmi P Shanmugam CLA 2016-06-24 03:40:31 EDT
(In reply to Ricardo Gladwell from comment #36)
> This appears to still be happening for Eclipse Neon: was this expected?

I tried out the Neon build with several dialogs but don't see the problem. There are a few known cases where the bug still happens (ps comment 30). But, it should be fixed in other cases. Can you provide steps to the problem you are seeing?
Comment 38 Ricardo Gladwell CLA 2016-06-24 04:42:08 EDT
I'm seeing problems with interactions between SWT and native dialogues. To reproduce:

1. File -> Import...
2. General -> Existing Projects into Workspace
3. Click Next
4. Click Browse... next to the "Select root directory:" input box

Expected result: "Select root directory of the projects to import" native file selector dialog should appear over the "Import Projects" dialog

Actual result: Native dialog is behind "Import Projects" dialog obscuring it and making interactions difficult
Comment 39 Pierre-Yves DIENST CLA 2016-06-24 05:15:23 EDT
Click on button File Search:
The Dialog appear, but can't open the combobox "Containing text" and "File name patterns".
Comment 40 Lakshmi P Shanmugam CLA 2016-06-27 07:35:52 EDT
I'm able to reproduce both the problems. I opened separate bugs to track them.

(In reply to Ricardo Gladwell from comment #38)
> I'm seeing problems with interactions between SWT and native dialogues.
Bug 496825

(In reply to Pierre-Yves DIENST from comment #39)
> Click on button File Search:
> The Dialog appear, but can't open the combobox "Containing text" and "File
> name patterns".
Bug 496824
Comment 41 Andreas Schaller CLA 2017-05-19 16:12:59 EDT
I'm also getting this kind of bug in my neon.3 running on Ubuntu gnome 16.04
I just tried to delete a file while running in full screen and eclipse freezes...
Comment 42 Dani Megert CLA 2017-05-23 11:22:34 EDT
(In reply to Lakshmi Shanmugam from comment #40)
> I'm able to reproduce both the problems. I opened separate bugs to track
> them.

Please post the bug reports here.