Search found 10 matches

by daveb48
Tue Nov 23, 2010 5:50 pm
Forum: JFreeChart
Topic: Memory Leak, ChartUtilities.saveChartAsPNG
Replies: 3
Views: 5374

Re: Memory Leak, ChartUtilities.saveChartAsPNG

While my last change to adding -Djava.awt.headless=true to the JRE seemed to work, gradually the memory leaks been reappearing: It happens a lot less, but it is still occurring.
I'm really at a loss at this point.
by daveb48
Fri Nov 19, 2010 4:55 pm
Forum: JFreeChart
Topic: Memory Leak, ChartUtilities.saveChartAsPNG
Replies: 3
Views: 5374

Re: Memory Leak, ChartUtilities.saveChartAsPNG

I believe I have finally figured it out:

I added the following option in the cron job runtime command: -Djava.awt.headless=true

I had it in the class constructor, but it didn't seem to have any effect.
by daveb48
Thu Nov 18, 2010 8:37 pm
Forum: JFreeChart
Topic: Memory Leak, ChartUtilities.saveChartAsPNG
Replies: 3
Views: 5374

Re: Memory Leak, ChartUtilities.saveChartAsPNG

Just an update, I removed the saveChartAsPNG portion of the code (using jpg instead)... get the same error message... sometimes. I still believe it is associated with JFreeChart somehow (but is it because there is a OS X java lib glitch it is running into?). Any suggestion on how to isolate the prob...
by daveb48
Fri Nov 05, 2010 6:56 pm
Forum: JFreeChart
Topic: Memory Leak, ChartUtilities.saveChartAsPNG
Replies: 3
Views: 5374

Memory Leak, ChartUtilities.saveChartAsPNG

I'm getting a memory leak with a class that has operated for about a year, but starting with Java 1.5 - and it seems since upgrading to 1.6, the problem became severe: all my Jfreechart applications are leaking. Re-compiling with Java 1.5 makes no difference, however. It could be that I have added 6...
by daveb48
Sat Jan 16, 2010 1:55 am
Forum: JFreeChart
Topic: LogAxis minor tick marks not showing
Replies: 6
Views: 7434

Re: LogAxis minor tick marks not showing

I have found something that did work: (LogAxis, see Axis API) setMinorTickMarkInsideLength( float );
by daveb48
Fri Jan 15, 2010 11:22 pm
Forum: JFreeChart
Topic: LogAxis minor tick marks not showing
Replies: 6
Views: 7434

Re: LogAxis minor tick marks not showing

Thanks for the suggestion, however, neither setRangeMinorGridlinesVisible(true) or setRangeMinorGridlinesPaint(true) worked. I did a get*() on both attributes, and they seem correct. I tried setWeight(int) and a few other methods as well, without effect. Could it be that LogAxis is "immune" to the s...
by daveb48
Thu Jan 14, 2010 10:31 pm
Forum: JFreeChart
Topic: LogAxis minor tick marks not showing
Replies: 6
Views: 7434

Re: LogAxis minor tick marks not showing

Bingo. It creates the tic marks on the side of the axis (would be nicer if they extended across the plot, but this helps). Thanks!
by daveb48
Wed Jan 13, 2010 9:13 pm
Forum: JFreeChart
Topic: LogAxis minor tick marks not showing
Replies: 6
Views: 7434

LogAxis minor tick marks not showing

In a TimeSeries plot, using LogAxis, I am unable to get the minor tick marks to display correctly (Like LogarithmicAxis does, and I want only the major tick labels). In vers 1.0.12 I could not get them to display at all, and now in vers 1.0.13 only a single minor tick mark between a decade (see http...
by daveb48
Tue Dec 29, 2009 9:48 pm
Forum: JFreeChart
Topic: JfreeChart Apps under Mac OSX 10.6? Can't connect to window
Replies: 2
Views: 10354

Re: The end of JfreeChart Apps under Mac OSX 10.6? Server Err

Bingo. Thanks so much for your help - I just took out the "extends ApplicationFrame" from the class definition, and it works fine now from launchd daemon (which now replaces cron) on Mac OS X Snow Leopard. I should have seen that.
by daveb48
Fri Dec 18, 2009 8:12 pm
Forum: JFreeChart
Topic: JfreeChart Apps under Mac OSX 10.6? Can't connect to window
Replies: 2
Views: 10354

JfreeChart Apps under Mac OSX 10.6? Can't connect to window

Re: Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions. Unless there is someone out there who has found a work-around, I am going to have to switch to a new graphics application and re-write a lot of code. I've spend several days trying to fin...