sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Why screen recording?

Open swiftech opened this issue 5 years ago • 4 comments

When I launch the SDK, the system will notify me that java would like to recoding my screen and ask for permission. what does this recording used for?

Screen Shot 2020-02-14 at 2 01 55 PM

SDK v3.3.0-beta1-sdk1 macOS Catalina 10.15.3

swiftech avatar Feb 14 '20 06:02 swiftech

I don't know, you can safely Deny this, I guess. I have no clue where this comes from, maybe from Netbeans?

MeFisto94 avatar Feb 14 '20 14:02 MeFisto94

More info, the dialog shows at the first time I popup a context menu over any widgets, and it will happen again next time I startup the SDK. It's annoying, please pay some attention on this issue, I guess it's from some bundled plugins because the Netbeans 11 that I installed never showed up this dialog.

swiftech avatar Mar 07 '20 11:03 swiftech

Without actually looking at the code, my guess is that this is related to the way popups (at the JVM level) have to be configured in order to show up over native rendering like an OpenGL window. By default, popups are rendered in such a way that they won't get rendered on top of the OpenGL window.

My guess is that when using the native mode or whatever allows them to be rendered over another window that maybe Swing wants to screencap what's behind the popup. Maybe to support transparency or round borders or whatever. Just a guess, though.

pspeed42 avatar Mar 09 '20 22:03 pspeed42

on mac.

  1. launch profiler like visualvm.
  2. launch sdk.
  3. connect profiler to sdk, and start cpu sampler.
  4. open any context menu on sdk. the security warning occure.
  5. wait few minutes.
  6. stop cpu sampler, and search method that consume long time.

lifeinwild avatar Nov 12 '20 01:11 lifeinwild