JDK-8214234 : Using Window tiling apps on Mac causes Java programs to become laggy
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.accessibility
  • Affected Version: 8u152
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • OS: os_x
  • CPU: x86
  • Submitted: 2018-10-23
  • Updated: 2019-02-18
  • Resolved: 2018-11-22
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Mac with JRE 8u152

A DESCRIPTION OF THE PROBLEM :
Here are a few links referencing this issue:
https://apple.stackexchange.com/questions/283941/macbook-pro-2016-left-click-lag-in-games
https://github.com/rstudio/rstudio/issues/1539
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_mac-mso_mac2016/word-2016-still-slow-laggy-after-1530-update/3b07b70a-5be9-4865-8d54-66792b3ee842
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-and-the-editor-in-matlab-r2018b-respond-slowly-on-macos

It looks like these apps use some CAccessibility classes.  In JRE 8u152 there was another bug that was addressed (https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8085799).  Following this update, instead of a Java error, these performance issues started occurring.

Specifically with MATLAB R2018a there was an issue for bug_id=8085799.  With R2018b, MATLAB shipped with 8u152 and started to see the same performance issues that other programs are.

REGRESSION : Last worked in version 8u172

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use one of the programs from the description as well as a tiling app on Mac (Magnet, HyperDock, BetterTouchTool.  See the other program is very slow to react to user input (clicks)

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No lag
ACTUAL -
Laggy user input

CUSTOMER SUBMITTED WORKAROUND :
For Magnet, specifying to "Ignore Program" is a workaround or stop using the Magnet app.

FREQUENCY : often



Comments
Additional information from submitter: ================================= As a follow up, we were able to try this behavior with BetterTouchTool and MATLAB on Mac with both 8u152 and 8u181. Both exhibited the issue. I haven't heard back from the Oracle rep in a few months now so any input would be appreciated ==================================
18-02-2019

This is a performance issue reported with macOSx running JRE 8u152, shipped with MATLAB R2018a post a fix in 8u152 (JDK-8085799) w.r.t CAccessibility classes. Written back to the submitter requesting status with current Java version 8u191 and 12 ea build.
22-11-2018