High CPU Usage, Browser Crash with wmode and Multiple Graphs
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


«««34567»»»

High CPU Usage, Browser Crash with wmode and... Expand / Collapse
Author
Message
Posted 6/29/2008 2:07:02 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/26/2008 12:05:07 PM
Posts: 1, Visits: 19
I am still experiencing the issue reported by everyone else. Firefox (2 or 3, doesn't matter) consistently reports "Transferring data from x ..." and the CPU hangs at 50% when only loading 4 charts in an Extjs layout.

In IE 7, once the charts "load", all content loading/rendering is done. No extra CPU cycles, no worries (other than this only works in IE).


I'm also providing XML via the Rails renderChart functions. This is not due to Extjs nor Rails, as the issue persists with plain HTML and the basic fusioncharts JS functions.


edit: This only happens with fusionchartsWMode.js. fusioncharts.js is not affected.


edit: I really hope this can be resolved by the fusioncharts team, if it isn't purely a "Firefox bug".
Regards.
Post #7084
Posted 7/3/2008 7:57:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/3/2008 7:57:45 AM
Posts: 1, Visits: 2
Firstly, I'm really glad to have found this topic - and therefore know I'm not the only one suffering this issue.

I had thought it was something dodgy in my coding - but couldn't figure why IE was ok - but FF not.

I use FusionCharts for internal corp dashboards. As IE is the only 'officially' supported browser by IT - I can use that excuse for a while. However, there are > 20 key customers (and me) who are FF users, so this is not really workable.

I eagerly await a fix - either from the FC team or the outcome of the Bugzilla report....
Post #7166
Posted 7/9/2008 4:39:42 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/9/2008 4:28:42 AM
Posts: 1, Visits: 1
Hi everybody,

I use fusionchart to create dashboard and reporting in my company.

I had this problem but I'd fixed it, It seems that is due to the fps of the swf files.

So the solution I choose is to use a new swf file with a 20 fps frame rate as bernard sugest it (thanks to him).

If you want to use a lot of swf without animation you can put the frame rate to 0 but I realy don't know if it change a lot, I have to test.

Here's the procedure :

1. Install the PEAR Package.

2. Install the FILE PEAR PACKAGE.

3. Download the PEAR::File class (by Alessandro Crugnola) here : http://www.sephiroth.it/weblog/archives/2004/07/pearswf_updating_read_and_modify_swf.php

4. Include the class to your php file.

require_once('File_SWF.php');

5. Here's the script I use in the top of my page :

I test if my new swf file exist, if doesn't I create new one with the old one and a 20fps.

if(!file_exists('packing_by_agency.swf'))
{
 $flash = new File_SWF("Doughnut2D.swf");
 if($flash->is_valid())
 {
  $flash->setFrameRate(20);
  $flash->write("packing_by_agency.swf", 1);
 }
}

6 . Then you include the new file created to your dashboard, for exemple :

renderChartHTML("packing_by_agency.swf", "", $str_xml, "packing_by_agency", 958, 500, false, false);

For 35 to 45 swf in the same web page :

- Before this I have always a cpu ~45-55%.

- Now I have always a cpu ~00-05%.

N.B. : It's better if the wmode is not transparent.

Post #7248
Posted 7/9/2008 12:13:50 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/9/2008 12:05:43 PM
Posts: 1, Visits: 1
Hi everybody,

unfortunately the official browser in my company is Firefox... and I have to create both static pages (HTML) and dynamic pages (PHP). I'm using the free version and I hope that this bug will be fixed as soon as possible.

I've just cut & copied the sample HTML code 5 times, in order to show 5 different charts referring the same XML, and my CPU simply has gone at 100%. No *special* attributes have been specified... just the one provided in sample code.
Post #7258
Posted 7/22/2008 12:56:26 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 7/22/2008 3:50:41 PM
Posts: 14, Visits: 30
Now celebrating 7 months of poor customer service! I should start planning some sort of cake for when this makes it to a year.
Post #7490
Posted 7/23/2008 5:19:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/23/2008 5:19:58 AM
Posts: 1, Visits: 2
Hi everybody,
I am new to FusionCharts and using V3 evaluation version. I have implemented 10 charts in a HTML page with wmode='transparent' and bgAlpha='20', also set a landscape image as HTML background. Surprisingly my FireFox does not produce high CPU usages or any crash etc. same on IE. May be I think it depends on Processor, Memory, OS, etc.


Thankx
Post #7505
Posted 7/24/2008 11:39:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/1/2008 3:55:37 PM
Posts: 9, Visits: 10
Hi all,

I'm on the verge of (as in hours away from) spending at least ~$5,000 on this suite of software, but to be perfectly honest this thread has me quite worried. We've spent the last couple days doing a great deal of diligence on this decision (including a bunch of work to work out our own solution for server-side image generation from the Flash, so that we can use the charts in PDF/Prints), but then we hit a roadblock which *sounds* like its described here.

Basically in Firefox, if we have more than a few charts displayed (as few as ~6) our CPU spikes up out of control. I'm on a dual-core machine myself, and one of the cores hits 100%, and effectively stops Firefox entirely. IE on the other hand barely shows any CPU usage at all (~1%). Opera seems to use very little CPU, but is generally unresponsive, and Safari is about as bad as Firefox (completely unusable, halts). My developer doing the work is experiencing the same effects on his box.

Unfortunately in our scenario, we're replacing a simple html based chart system (mocked bar graphs with gifs basically) where our customers can create a number of reports on one screen (anywhere from 4 to 25 is common) - so we need that capability in our new solution.

One thing that is strange to me, is that the talk of wmode stuff doesn't apply to us at all. We've actually tried with or without that option enabled (ultimately I *think* we'll need it, as we have a semi-transparent lightbox which covers the screen on session expiration) - but regardless, we have the problem in either case.

Outside the software itself, as said in a previous post, the customer support on this issue is troubling to me. It seems as though one user has figured out a solution for this (the 20 fps thing), which it seems could have been modded into the software to potentially solve the problem - but the FusionCharts team doesn't seem to have commented on this at all (unless I missed it). And while I'd like to try the hack - the solution presented is a PHP solution, and we're dealing with a legacy ASP system. Not to mention - I'm not really comfortable settling on a hack for our brand new system, nor do I feel I should have to with what we're paying.

That said, I appreciate that a bug has been filed with Mozilla, but that doesn't do anything for us today - and apparently it wasn't a big enough issue to keep FF3 from being launched, so who knows what priority that will ultimately get. On top of that - many of our customers use Firefox, or Safari - both which are currently unusable for us.

Anyway, I'd appreciate some feedback on this. As I said, this Problem/Thread is keeping me from buying. If I can find a workable resolution, I think we (and our customers) will be really happy with this solution.

Thanks,
Luke


~
Luke Freiler
CTO @ Centercode, Inc.
IM: lukefreiler
~
Post #7528
Posted 7/25/2008 2:51:49 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/26/2008 10:57:14 AM
Posts: 4, Visits: 58
The solution from emageren above works perfectly. Here's a more detailed step by step process of getting it up and running if needed. By the way, I'm testing this on a wamp stack installed on Windows XP Pro running MySQL 5.1.24rc, PHP 5.2.6, and Apache 2.2.8 so these instructions are for that type of environment. If you're on Linux none of this should be an issue.

1. Download and install PEAR from http://pear.php.net/package/PEAR/download. Read through the documentation to get it installed. If you don't have a program to unzip tar.gz files then download 7zip and install it. You'll have to extract the gz 1st which will leave you with a tar to extract. If you have wamp installed just go to the wamp\bin\php\your-php-version\ folder and run go-pear.bat. Take note of where PEAR.php are and tell it to add the path to your environment and htaccess docs.

2. Download the PEAR File extension from http://pear.php.net/package/File and extract it. Place File.php and the File and tests folders where ever you want, but be sure to tell File.php where the folders and PEAR.php are.
require_once('path to PEAR.php')
etc.

3. Download the PEAR SWF writer from the link emageren gave in number 3. Place it where ever on your web server and tell it where File.php is.

4. In your pages that load these charts add the php require statement to the top with the correct path to File_SWF.php.
  
require_once('File_SWF.php');
?>


5. After the body section of you page before the queries and settings that feed your chart place the code in step 5. posted by emageren. Change the swf file names and paths on the first and last lines to