Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 530267 - Plugin App fails to receive mouse/keyboard input with Java 8u152 or higher
Summary: Plugin App fails to receive mouse/keyboard input with Java 8u152 or higher
Status: CLOSED DUPLICATE of bug 477979
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5.2   Edit
Hardware: Macintosh Mac OS X
: P3 blocker with 3 votes (vote)
Target Milestone: 4.6   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 526533 531107 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-01-24 16:21 EST by keith knight CLA
Modified: 2018-02-27 03:40 EST (History)
7 users (show)

See Also:


Attachments
Git patch for 4.5.2 branch (3.54 KB, patch)
2018-01-29 01:00 EST, Lakshmi P Shanmugam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description keith knight CLA 2018-01-24 16:21:43 EST
I have a production Eclipse application that fails to receive mouse/keyboard input when using the Java JDK 8u152, or later. The Java JDK 8u151 works just fine though.

I found a sample plugin app that I downloaded from the following Eclipse tutorial where was able to demonstrate switching between the JDKs using Eclipse 4.5.2.

https://www.eclipse.org/articles/Article-RCP-3/tutorial3.html
https://www.eclipse.org/articles/Article-RCP-3/part3.zip

Steps to reproduce...

- Download and import the project from https://www.eclipse.org/articles/Article-RCP-3/part3.zip

- Download and configure Eclipse to use Java JDK 8u151 and any later version (I used 8u152)

- Run the plugin app from Eclipse using JDK 8u151 and it will work fine.

- Run the plugin app from Eclipse using JDK 8u152 and the app will fail to receive any mouse/keyboard input.
Comment 2 Dani Megert CLA 2018-01-25 04:24:45 EST
*** Bug 526533 has been marked as a duplicate of this bug. ***
Comment 3 Noopur Gupta CLA 2018-01-25 05:46:42 EST
This issue is not reproducible on Windows 7 with Java v1.8.151 or Java v1.8.161  using Eclipse 4.5 or Eclipse 4.8.
Comment 4 Lakshmi P Shanmugam CLA 2018-01-25 07:32:10 EST
Eclipse 4.4 and 4.5 hangs when launched with jre version 8u161. I'm not able to reproduce the problem with 4.6 and newer versions. My Mac OS version is 10.12.
Comment 5 Lakshmi P Shanmugam CLA 2018-01-25 07:34:39 EST
(In reply to keith knight from comment #0)
What version of Mac OS are you using?
Comment 6 keith knight CLA 2018-01-25 10:04:46 EST
(In reply to Lakshmi Shanmugam from comment #5)
> (In reply to keith knight from comment #0)
> What version of Mac OS are you using?

I'm running 10.13.3, but I was also running 10.13.2 when the problem first happened.
Comment 7 keith knight CLA 2018-01-25 10:35:33 EST
I wasn't very clear in the original comment, but the problem is occurring on macOS (several different versions) with all Java updates since 8u151 (8u152, 8u161 and 8u162)  using a commercial Eclipse RCP application. The problem of losing mouse/keyboard input to the application began with Java 8u152 and the only solution has been to limit the JDK/JRE to 8u151, which is now becoming more impossible because of mandatory updates that patch critical vulnerabilities.
Comment 8 keith knight CLA 2018-01-25 10:36:00 EST
I wasn't very clear in the original comment, but the problem is occurring on macOS (several different versions) with all Java updates since 8u151 (8u152, 8u161 and 8u162)  using a commercial Eclipse RCP application. The problem of losing mouse/keyboard input to the application began with Java 8u152 and the only solution has been to limit the JDK/JRE to 8u151, which is now becoming more impossible because of mandatory updates that patch critical vulnerabilities.
Comment 9 Dani Megert CLA 2018-01-25 11:15:32 EST
Keith, please check whether it works for you when using 4.6.3 (http://archive.eclipse.org/eclipse/downloads/drops4/R-4.6.3-201703010400/) or newer.
Comment 10 keith knight CLA 2018-01-25 11:53:49 EST
I'm unable to import the example project and run it in any version of Eclipse higher that 4.5. Is there a trick to reconfiguring the example project?
Comment 11 keith knight CLA 2018-01-25 12:11:23 EST
I was able to verify the same example code using Eclipse 4.6.3 with both JDKs (8u151 and 8u152) and I did not experience the same mouse/keyboard problems I have with previous versions.
Comment 12 keith knight CLA 2018-01-25 12:21:50 EST
The following community forum mentions the exact same problem using 4.6 too.

https://www.eclipse.org/forums/index.php?t=rview&goto=1780621#msg_1780621
Comment 13 keith knight CLA 2018-01-26 11:12:29 EST
This is exactly the same problem I'm reporting. UI not responding and thread dump shows no evidence of deadlocks.

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8190319
Comment 14 Lakshmi P Shanmugam CLA 2018-01-29 00:44:48 EST
The problem has been fixed in 4.6 via Bug 477979. This was a problem with non-standard JVMs, but now happens with Java > JDK 8u152 as well.
Comment 15 Lakshmi P Shanmugam CLA 2018-01-29 01:00:35 EST
Created attachment 272443 [details]
Git patch for 4.5.2 branch

I've attached the patch that can be applied on the 4.5 maintenance branch. The patch is quite straightforward and doesn't involve native changes.
Comment 16 Jorge Daniel D\\\'Alessandro CLA 2018-01-29 09:40:25 EST
Any chance you can publish the patched artifacts? Thanks a lot! :)
Comment 17 Shami Willms CLA 2018-01-29 09:46:24 EST
My team has a project that is currently stuck on Eclipse 4.4.* which has this same issue.  Any chance this patch will work for that version as well?  (I wish we could back-port and create a hotfix for that one too - see bug 526533)
Comment 18 Lakshmi P Shanmugam CLA 2018-01-30 00:26:57 EST
(In reply to Shami Willms from comment #17)
> My team has a project that is currently stuck on Eclipse 4.4.* which has
> this same issue.  Any chance this patch will work for that version as well? 
> (I wish we could back-port and create a hotfix for that one too - see bug
> 526533)
Yes, the same patch will apply to the R4_4_maintenance branch.
Comment 19 Dani Megert CLA 2018-02-07 09:31:22 EST

*** This bug has been marked as a duplicate of bug 477979 ***
Comment 20 Bouchet Stéphane CLA 2018-02-27 03:40:18 EST
*** Bug 531107 has been marked as a duplicate of this bug. ***