visualvm icon indicating copy to clipboard operation
visualvm copied to clipboard

2.1.4 on Mac M1: fails to detect app shutdown, freezes

Open andy-goryachev-oracle opened this issue 3 years ago • 1 comments

Describe the bug

  • fails to detect the app has shut down
  • UI freezes once the user double clicks on the app that has shut down
  • there is a long delay (8-20 sec.) before VVM detects a newly started app

To Reproduce Steps to reproduce the behavior:

Running 2.1.4 on 2021 Mac M1, macOS Monterey 12.5.1

  • launching a javafx app from Eclipse
  • open said app in VisualVM
  • Monitor -> Perform GC, Heap Dump
  • shutdown javafx app via the mac os toolbar close button
  • (may need to repeat the cycle several times)

at some point, VisualVM still thinks the app is running, as indicated by the black text in the Applications side panel. double clicking on the app item in the Application side panel freezes the UI.

Expected behavior

  • expect VVM to detect shutdown immediately
  • expect UI not to freeze
  • expect VVM to detect newly launched app immediately (well, almost)

VisualVM log Please attach VisualVM messages.log file to help diagnose your problem.

messages.log is available via Help | About | Logfile and via VisualVM | About VisualVM | Logfile on macOS

Screenshots to be attached

Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • JDK version [18.0.1.1, vendor Oracle Corporation]
  • Version [e.g. 2.1.4]

Additional context

  1. It is possible there is a bit of interplay with Eclipse, though it works fine with the same sequence on a windows machine.
  2. Sometimes, the VVM UI recovers after a loooong delay (minutes), with the shutdown app entry going gray as expected

andy-goryachev-oracle avatar Sep 29 '22 20:09 andy-goryachev-oracle

Screen Shot 2022-09-29 at 13 09 41

screenshot

andy-goryachev-oracle avatar Sep 29 '22 20:09 andy-goryachev-oracle