Bug 545024 - Macbook freezes when Accessibility is activated for Eclipse
Summary: Macbook freezes when Accessibility is activated for Eclipse
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.11   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2019-03-04 11:33 EST by Nobody - feel free to take it CLA
Modified: 2020-02-07 04:20 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody - feel free to take it CLA 2019-03-04 11:33:11 EST
I am using Eclipse 2018-12 on MacOS 10.14.2 and have been facing the issue that my Macbook would freeze whenever I start my Eclipse Development IDE, my Eclipse Target IDE or when a PDE Test starts an instance of Eclipse. During this freeze my Macbook does not react to any Keyboard and Mouse interactions, but they are executed at once after the freeze ends.

Today I have found the issue for this annoying behavior. I had activated the Accessibility Settings for Eclipse under System Preferences > Security & Privacy > Privacy > Accessibility. After deactivating this setting Eclipse starts normally. 

I had activated this setting for Eclipse in order to use the Screenreader on Mac to test the accessibility of my plugin.

However, this is only a workaround and should be addressed properly.
Comment 1 Lakshmi P Shanmugam CLA 2019-03-12 04:25:15 EDT
I don't see this behavior on my Mac 10.14.3. I always had the Accessibility setting enabled for eclipse. I tried disabling and enabling again, still no problem.

Did you see this issue with older versions of Eclipse like 4.8 or 4.9?
Comment 2 Nobody - feel free to take it CLA 2019-03-12 10:48:27 EDT
I am now also running 10.14.3 Mojave but the issue is still occurring with 4.11 and the accessibility setting enabled.

Also I have just tried it with a Photon 4.8.0 Release, which I had still installed.
With 4.8.0 I am also facing this issue. I am running on Java 1.8.0_172.
Next I will try to update to a more current release of Java to see if this changes anything.

Looking at https://stackoverflow.com/questions/20116958/java-apps-freeze-mac-os-10-9 this kind of issue seems to have a history on Mac even though it could be just a coincidence.
Comment 3 Lakshmi P Shanmugam CLA 2019-03-20 01:16:05 EDT
(In reply to Ivo Gosemann from comment #2)
> 
> Looking at
> https://stackoverflow.com/questions/20116958/java-apps-freeze-mac-os-10-9
> this kind of issue seems to have a history on Mac even though it could be
> just a coincidence.

From the SO thread, looks like this is caused by some background application. Can you check that on your system?
Comment 4 Nobody - feel free to take it CLA 2019-03-22 10:54:07 EDT
As far as I understood the SO thread is, that the background application is causing the issue for other Java Apps to start. So disabling this background app in the accessibility settings solved the issue of some other app freezing. In my case the app freezing and the one where removing the accessibility setting are the same app.

The problem is, that I have no access to the activity monitor or anything else during the eclipse startup when the accessibility setting is enabled since the whole OS freezes. Is there any debug settings, which I could activate during startup to create some useful data?

I have one apple process that is always not responding: com.apple.hiservices-xpcservice. But it does not matter how the accessibility settings are set, it will always be unresponsive.
Comment 5 Lakshmi P Shanmugam CLA 2019-04-03 07:46:02 EDT
(In reply to Ivo Gosemann from comment #4)
> As far as I understood the SO thread is, that the background application is
> causing the issue for other Java Apps to start. So disabling this background
> app in the accessibility settings solved the issue of some other app
> freezing. In my case the app freezing and the one where removing the
> accessibility setting are the same app.
> 
It may not be exactly the same case but it'll be good to verify if it's caused by other background applications as it works fine for me and a few other systems.
Can you disable all the applications other than eclipse in the accessibility settings and check if it helps?
Did you get a chance to try Eclipse with a newer Java version?
Comment 6 Lakshmi P Shanmugam CLA 2019-12-10 00:50:15 EST
Is this still an issue?
Comment 7 Lakshmi P Shanmugam CLA 2020-02-07 04:20:41 EST
Closing as there was no response. Please reopen if it's still an issue.