Skip to content

Conversation

@RoiSoleil
Copy link
Contributor

@RoiSoleil RoiSoleil commented Mar 28, 2025

Fix tooltip on Flamegraph not showing after switching to Stack Trace view

The bug : Open a JFR file, open the Flamegraph view, see the tooltip on Flamegraph working, activate the Stack Trace view, get back to Flamegraph ==> the tooltip is not showing anymore on Flamegraph


Progress

  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JMC-8373: Fix tooltip on Flamegraph not showing after switching to Stack Trace view (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/635/head:pull/635
$ git checkout pull/635

Update a local copy of the PR:
$ git checkout pull/635
$ git pull https://git.openjdk.org/jmc.git pull/635/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 635

View PR using the GUI difftool:
$ git pr show -t 635

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/635.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 28, 2025

👋 Welcome back RoiSoleil! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@RoiSoleil
Copy link
Contributor Author

@aptmac Could you open a ticket ?

@openjdk
Copy link

openjdk bot commented Mar 28, 2025

@RoiSoleil This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8373: Fix tooltip on Flamegraph not showing after switching to Stack Trace view

Reviewed-by: bdutheil

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 4 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@bric3, @aptmac) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@thegreystone thegreystone changed the title Fix tooltip on Flamegraph not showing after switching to Stack Trace view 8373: Fix tooltip on Flamegraph not showing after switching to Stack Trace view Apr 1, 2025
@openjdk openjdk bot added the rfr label Apr 1, 2025
@thegreystone thegreystone requested a review from bric3 April 1, 2025 23:15
@thegreystone
Copy link
Member

@aptmac Could you open a ticket ?

Ticket opened.

@thegreystone thegreystone requested a review from aptmac April 1, 2025 23:16
@mlbridge
Copy link

mlbridge bot commented Apr 1, 2025

Webrevs

@RoiSoleil
Copy link
Contributor Author

@aptmac Could you open a ticket ?

Ticket opened.

Thx.

@bric3
Copy link
Collaborator

bric3 commented Apr 2, 2025

At first glance the changes looks good to me!
About the scenario, is it just moving the mouse from the flamegraph to the click on the stack trace tab. Also, is there an a specific OS where this is happening ?

tooltip.setPopupDelay(500);
tooltip.setShift(new Point(10, 5));

embeddingComposite.addListener(SWT.MouseExit, event -> Display.getDefault().timerExec(300, tooltip::hide));
Copy link
Collaborator

@bric3 bric3 Apr 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: I wonder if this listener is still needed, in case the mouse event is not received on the swing component. E.g. in weird situations like : Alt Tab (on macOs) to change app but in the end selecting back to JMC. Not sure it's a real scenario, but i could imagine the Swing component not properly receiving mouse events.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the listener i still have the bug.

@RoiSoleil
Copy link
Contributor Author

At first glance the changes looks good to me!
About the scenario, is it just moving the mouse from the flamegraph to the click on the stack trace tab. Also, is there an a specific OS where this is happening ?

Yes just click on the stack trace on Windows (didn't try on linux or macos).

@RoiSoleil
Copy link
Contributor Author

@bric3 it's ok for you ?

@RoiSoleil RoiSoleil requested a review from bric3 April 8, 2025 09:14
@bric3
Copy link
Collaborator

bric3 commented Apr 8, 2025

@RoiSoleil I tested on macos this morning. The chat get looks good.

@openjdk openjdk bot added the ready label Apr 8, 2025
@RoiSoleil
Copy link
Contributor Author

@RoiSoleil I tested on macos this morning. The chat get looks good.

Thx
@aptmac it's ok for you ?

Copy link
Member

@aptmac aptmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I noticed that not all of the usual checks are happening on the PR. IIRC these were enabled in the actions tab of the user's fork, @RoiSoleil could you see if there's anything for you to enabled at: https://github.com/RoiSoleil/jmc/actions ?

@RoiSoleil
Copy link
Contributor Author

On https://github.com/RoiSoleil/jmc/actions :

Workflows aren’t being run on this forked repository
Because this repository contained workflow files when it was forked, we have disabled them from running on this fork. Make sure you understand the configured workflows and their expected usage before enabling Actions on this repository.

@RoiSoleil
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor label Apr 8, 2025
@openjdk
Copy link

openjdk bot commented Apr 8, 2025

@RoiSoleil
Your change (at version abb4390) is now ready to be sponsored by a Committer.

@RoiSoleil
Copy link
Contributor Author

/sponsor

@openjdk
Copy link

openjdk bot commented Apr 8, 2025

@RoiSoleil Only Committers are allowed to sponsor changes.

@RoiSoleil
Copy link
Contributor Author

@aptmac could you sponsor ?

@aptmac
Copy link
Member

aptmac commented Apr 8, 2025

On https://github.com/RoiSoleil/jmc/actions :

Workflows aren’t being run on this forked repository Because this repository contained workflow files when it was forked, we have disabled them from running on this fork. Make sure you understand the configured workflows and their expected usage before enabling Actions on this repository.

Ah, would you be able to try and enable the actions? If the enable option isn't on that page, it may be here: https://github.com/RoiSoleil/jmc/settings/actions

I'm not sure if when enabled Skara will kick off the other actions for this PR, but it would be nice to make sure you're set up for any PRs in the future.

@RoiSoleil
Copy link
Contributor Author

On https://github.com/RoiSoleil/jmc/actions :
Workflows aren’t being run on this forked repository Because this repository contained workflow files when it was forked, we have disabled them from running on this fork. Make sure you understand the configured workflows and their expected usage before enabling Actions on this repository.

Ah, would you be able to try and enable the actions? If the enable option isn't on that page, it may be here: https://github.com/RoiSoleil/jmc/settings/actions

I'm not sure if when enabled Skara will kick off the other actions for this PR, but it would be nice to make sure you're set up for any PRs in the future.

I did it and run validate.yml

@aptmac
Copy link
Member

aptmac commented Apr 8, 2025

On https://github.com/RoiSoleil/jmc/actions :
Workflows aren’t being run on this forked repository Because this repository contained workflow files when it was forked, we have disabled them from running on this fork. Make sure you understand the configured workflows and their expected usage before enabling Actions on this repository.

Ah, would you be able to try and enable the actions? If the enable option isn't on that page, it may be here: https://github.com/RoiSoleil/jmc/settings/actions
I'm not sure if when enabled Skara will kick off the other actions for this PR, but it would be nice to make sure you're set up for any PRs in the future.

I did it and run validate.yml

Great, thanks! I see they are running on the PR, I'll sponsor once the runs complete

@aptmac
Copy link
Member

aptmac commented Apr 8, 2025

/sponsor

@openjdk
Copy link

openjdk bot commented Apr 8, 2025

Going to push as commit 6a048a8.
Since your change was applied there have been 4 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated label Apr 8, 2025
@openjdk openjdk bot closed this Apr 8, 2025
@openjdk
Copy link

openjdk bot commented Apr 8, 2025

@aptmac @RoiSoleil Pushed as commit 6a048a8.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants