Skip to content

Command line graph generation random issue #130

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

Merged
merged 1 commit into from
Apr 22, 2015
Merged

Command line graph generation random issue #130

merged 1 commit into from
Apr 22, 2015

Conversation

fanchuo
Copy link

@fanchuo fanchuo commented Apr 22, 2015

The command line graph generation might fail due to a concurrency issue.
The SimpleChartRenderer is called by 'main' thread, it creates a
ModelChartImpl, initialize it and validates. And calls setScaleFactor
that calls repaint (suspicious). For some reason when paint is called on
the BufferedImage I get an half-drawn graph.
To be sure in any case, I rather do any swing call within the
EventDispatchThread

The command line graph generation might fail due to a concurrency issue.
The SimpleChartRenderer is called by 'main' thread, it creates a
ModelChartImpl, initialize it and validates. And calls setScaleFactor
that calls repaint (suspicious). For some reason when paint is called on
the BufferedImage I get an half-drawn graph.
To be sure in any case, I rather do any swing call within the
EventDispatchThread
@chewiebug chewiebug merged commit 04168ce into chewiebug:develop Apr 22, 2015
@chewiebug chewiebug added this to the 1.35 milestone Apr 22, 2015
@chewiebug chewiebug self-assigned this Apr 22, 2015
@chewiebug
Copy link
Owner

Thanks for your pull request, I have merged it! The latest SNAPSHOT-1.35 contains your commit.

@fanchuo
Copy link
Author

fanchuo commented Apr 23, 2015

You're welcome

@fanchuo fanchuo deleted the render_simple_chart branch April 23, 2015 08:31
chewiebug added a commit that referenced this pull request May 3, 2015
chewiebug added a commit that referenced this pull request May 13, 2015
* develop:
  reduce number of WARNING messages when parsing introduction of a detailed G1 message fails (#128)
  add Àngel Ollé Blázquez to list of contributors
  fix merge problem between #129 and #130
  export graph to PNG fature using the GCViewer GUI
  Command line graph generation random issue
  parallel scavenge collector: handle combination of -XX:+PrintAdaptiveSizePolicy, -XX:+PrintTenuringDistribution, -XX:+PrintApplicationStoppedTime (#128)
  fix negative pause for VM_OPERATION event near parser problem (#128)

Conflicts:
	src/main/java/com/tagtraum/perf/gcviewer/exp/impl/DataWriterFactory.java
	src/main/java/com/tagtraum/perf/gcviewer/view/SimpleChartRenderer.java
	src/test/java/com/tagtraum/perf/gcviewer/imp/TestDataReaderSun1_7_0G1.java
	src/test/java/com/tagtraum/perf/gcviewer/imp/TestDataReaderSun1_8_0G1.java
chewiebug added a commit that referenced this pull request May 13, 2015
* develop:
  reduce number of WARNING messages when parsing introduction of a detailed G1 message fails (#128)
  add Àngel Ollé Blázquez to list of contributors
  fix merge problem between #129 and #130
  export graph to PNG fature using the GCViewer GUI
  Command line graph generation random issue
  parallel scavenge collector: handle combination of -XX:+PrintAdaptiveSizePolicy, -XX:+PrintTenuringDistribution, -XX:+PrintApplicationStoppedTime (#128)
  fix negative pause for VM_OPERATION event near parser problem (#128)
areese pushed a commit to areese/GCViewer that referenced this pull request Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants