256MbTeam / Redmine-Scrumbler

Easy to use plugin for Redmine. It allows users to use the Scrum/Agile process in projects. Scrumbler have interactive dashboard with the ability to configure for each sprint. Plugin adds Scrum Points field in every issue in project. Scrumbler as possible using the standard redmine structure of projects.
GNU General Public License v2.0
112 stars 41 forks source link

Generating Sprints statistics hangs and CPU 100% #28

Closed be-st closed 12 years ago

be-st commented 12 years ago

Hi, when I try to get Statistics for a sprint (for example projects/test/scrumbler_sprints/1/burndown) Redmine hangs and CPU goes to 100%.

Redmine 1.3.1 - Scrumbler 1.4 SQLite and Windows (with Mingle)

zloydadka commented 12 years ago

how many tasks in your sprint?

be-st commented 12 years ago

Only 1... I'm testing Scrumbler

zloydadka commented 12 years ago

it,s strange. we used scrumbler with sprints with 20-30 issues. and it working perfectly on statistics. unfortunately dont have windows instances of redmine and cant test it.

what version of ruby and browser do you use?

be-st commented 12 years ago

I'm using Chrome 16.0.912.77 and Ruby 1.8.7.

Now I've tried also with Firefox. I get a script busy message on:

http://localhost:3000/plugin_assets/redmine_scrumbler/javascripts/highstock/highstock.js?1329219754:232

be-st commented 12 years ago

Seems it hangs on this row:

function(a,c){if(a.visible!==!1&&(b=b.concat(a.processedXData),c)){b.sort(function(a,b){return a-b});for(c=b.length-1;c--;)b[c]===b[c+1]&&b.splice(c,1)}});a=b.length;if(a>2){d=b[1]-b[0];for(e=a-1;e--&&!c;)b[e+1]-b[e]!==d&&(c=!0)}c?

zloydadka commented 12 years ago

try lastest version from master

zloydadka commented 12 years ago

fixed in 1.4.2

be-st commented 12 years ago

It works. Thank you very much