-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6204: Flight recorder launcher tab bugs out #265
6204: Flight recorder launcher tab bugs out #265
Conversation
👋 Welcome back mwengner! A progress list of the required criteria for merging this PR into |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were a few grammatical errors, and I made a comment wondering if ConnectionToolkit.isOarcle()
could be of any help in automating the process as I see you've added a //TODO
to JfrLaunchModel to get information dynamically. If you're adding a TODO here maybe open a JMC bug that can be used to track progress on fixing it.
Is there an easy and reproduce-able way to verify the bug and this fix?
...ation/org.openjdk.jmc.ide.launch/src/main/java/org/openjdk/jmc/ide/launch/JfrLaunchPage.java
Outdated
Show resolved
Hide resolved
...de.launch.test/src/test/java/org/openjdk/jmc/ide/launch/model/JfrArgsBuilderJfrArgsTest.java
Outdated
Show resolved
Hide resolved
...rg.openjdk.jmc.ide.launch/src/main/java/org/openjdk/jmc/ide/launch/model/JfrArgsBuilder.java
Outdated
Show resolved
Hide resolved
...ation/org.openjdk.jmc.ide.launch/src/main/java/org/openjdk/jmc/ide/launch/JfrLaunchPage.java
Outdated
Show resolved
Hide resolved
…204_Flight_Recorder_launcher_tab_bugs_out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me longer to figure out how to get to this page than I had originally thought. For anyone else curious, here's what it looks like:
Steps:
- Run as JMC-Eclipse IDE
- Import a project
- Highlight project in the package explorer and select "Run as" -> "Run as Java Application with Flight Recorder"
- Go back to the context menu under the package explorer, but this time go "Run as" -> "Run Configurations.."
- Find the Launcher under "Java Application", then use the "Flight Recorder" tab at the top
At first observation, compared to master these changes allow for the "Run as Java Application with Flight Recorder" to be used, otherwise I was experiencing and error trying to enable flight recorder features, so that's nice.
However using this changeset I'm hitting a NPE at RecordingWizardPage line 222: https://github.com/openjdk/jmc/blob/master/application/org.openjdk.jmc.flightrecorder.controlpanel.ui/src/main/java/org/openjdk/jmc/flightrecorder/controlpanel/ui/wizards/RecordingWizardPage.java#L222
Running through with the debugger I found that the shell is actually null
, so this blows up trying to layout()
. Simply removing this line looks to fix it.
Is this what the bug is? I'm trying to select a template in the template manager but nothing seems to be working:
...ation/org.openjdk.jmc.ide.launch/src/main/java/org/openjdk/jmc/ide/launch/JfrLaunchPage.java
Outdated
Show resolved
Hide resolved
...ation/org.openjdk.jmc.ide.launch/src/main/java/org/openjdk/jmc/ide/launch/JfrLaunchPage.java
Outdated
Show resolved
Hide resolved
...ation/org.openjdk.jmc.ide.launch/src/main/java/org/openjdk/jmc/ide/launch/JfrLaunchPage.java
Outdated
Show resolved
Hide resolved
@bric3 : Thank you ! I've moved them properly to the bundle |
@aptmac it also doesn't allow you to select a template, even when you have created one in previous recording. This is bug and should be IMHO solved in another ticket, what do you think ? |
To be honest I thought from reading the bug description on JMC-6204 that this was the actual issue needing to be solved. It reads:
So I see this PR as addressing a separate issue where the addition of commercial features flags was preventing the launcher tab from opening, but JMC-6204 is concerned with the template manager within the launcher. @thegreystone could you confirm? If you still wanted to go the separate bug route then a new bug could be opened for tracking this PR, and leave 6204 for the template manager work. For Linux there still needs to be a resolution for this line: https://github.com/openjdk/jmc/blob/master/application/org.openjdk.jmc.flightrecorder.controlpanel.ui/src/main/java/org/openjdk/jmc/flightrecorder/controlpanel/ui/wizards/RecordingWizardPage.java#L222. I'm not sure if that issue reported for Oracle JDK 7.1 is still valid, but to be safe there could also just be a quick check on |
@aptmac I've fixed the commercial flag issue, but seems your are right. |
this behavior is caused by wrong schema version (1.0) which comes from JfrLaunchModel, I've changed it now to JDK_11. which should allows at least more JDKs. issue is again Oracle JDK. Trying to figure out how to update properly the configuration. I need to find a way how to override the schema configuration when the RecordingWizard is open. Currently all works when you just configure JFR and push Apply for Oracle JDK 1.8 |
I'll open a bug according to the issue with Oracle JDK 1.8 and Template Manager. @aptmac |
Seem this bug is fixed for most of use-cases |
@mirage22 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:
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 8 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 1d7397e.
Your commit was automatically rebased without conflicts. |
Adding check box to the launcher tab to select Oracle JDK < 11.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jmc pull/265/head:pull/265
$ git checkout pull/265
Update a local copy of the PR:
$ git checkout pull/265
$ git pull https://git.openjdk.java.net/jmc pull/265/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 265
View PR using the GUI difftool:
$ git pr show -t 265
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jmc/pull/265.diff