• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6329: ChartPlugin has memory leak when non-numeric value supplied for width.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension ChartPlugin Normal Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


ChartPlugin causes a memory leak (or something like it) when a non-numeric value is used for width.



This ate up all available memory on our server several times until we discovered the cause. This is with both ChartPlugin 1.401 and 0 (05 Jul 2008).

The following message was generated in error.log:

Argument "^00" isn't numeric in subroutine entry at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/GD/Image.pm line 83 (#1) (W numeric) The indicated string was fed as an argument to an operator that expected a numeric value instead. If you're fortunate the message will identify which operator was so unfortunate.

There was nothing relevant in debug.txt even with debugging enabled in the ChartPlugin settings.

Clarification -- "0 (05 Jul 2008)" shows as "15561 (12 Dec 2008)" when installed.

-- TWiki:Main.BenEsacove - 25 Sep 2009

Thanks for reporting. This is fixed with release v18184 (23 Oct 2009).

-- TWiki:Main.PeterThoeny - 24 Oct 2009

I tried this out with ChartPlugin v18193, but still noticed the runaway memory usage with a test page when width="^00" was used.

-- TWiki:Main.BenEsacove - 12 Nov 2009

This is now fixed in trunk and TWiki:Plugins/ChartPlugin

-- TWiki:Main.PeterThoeny - 08 Apr 2010

Summary ChartPlugin has memory leak when non-numeric value supplied for width.
ReportedBy TWiki:Main.BenEsacove
Codebase 4.1.1
SVN Range

AppliesTo Extension
Component ChartPlugin
Priority Normal
CurrentState Closed

Checkins TWikirev:18184 TWikirev:18434 TWikirev:18435 TWikirev:18436
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2010-04-08 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback