View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
07995 | Bug reports | Other | public | 2013-07-11 01:02 | 2013-08-04 21:54 |
Reporter | litotes | Assigned To | DenisChenu | ||
Priority | high | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 07995: Survey Activation Causes PHP Out-of-Memory | ||||
Description | In
This query is returning results from ALL surveys, whereas, surely, it only needs to return results from the survey being activated, thus:
| ||||
Steps To Reproduce | Activate any survey. To fail (with a PHP out-of-memory error), you need to have sufficient existing surveys of sufficient complexity to cause the result set from the above query to exceed the PHP memory limit, as configured in the ""php.ini" file. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 130708 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Any | ||||
Database type & version | mysql 5 | ||||
Server OS (if known) | OS X 10.8 | ||||
Webserver software & version (if known) | Apache 2 | ||||
PHP Version | PHP 5.3 | ||||
Hello, We already have {{conditions}}.qid={{questions}}.qid then set sid don't filter anything (because qid => gid => sid). Can you upload a lss example file and tell us how many memory PHO can have ? |
|
Hi, I don't fully understand your comment that the "sid" filter won't do anything as: qid => gid => sid The original query gets data from {{conditions}}, {{questions}}, {{groups}} Please try activating a survey in the LS2 DB that has 2 surveys, and see that the original query fetches data from both surveys, even though we are only activating one. I can provide example LSS files, but this issue occurs regardless of their contents. In my case, I had memory limit of 512M, but needed to increase it to 2048M to activate a new survey (of only 4 questions!) due to this query returning 1.3M rows :-) Thanks, Chris |
|
Oh !!!! You're totaly right ! Beter reading, have to sleep .... Argl ! fixnumbering too .... all are to be updated ! |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=12717 |
|
Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=12719 |
|
2.00+ Build 130802 released |
|
LimeSurvey: master 8da619af 2013-07-11 20:52 Details Diff |
Fixed issue 07995: Memory issue in Survey Activation Dev: fixnumbering need to be review Dev: All SQL need reviewing (put this for 2.05) |
Affected Issues 07995 |
|
mod - application/helpers/admin/activate_helper.php | Diff File | ||
mod - application/models/Questions.php | Diff File | ||
LimeSurvey: 2.05 b160034c 2013-07-11 21:00 Details Diff |
Fixed issue 07995: Memory issue in Survey Activation Dev: fixnumbering need to be review Dev: All SQL need reviewing (put this for 2.05) |
Affected Issues 07995 |
|
mod - application/helpers/admin/activate_helper.php | Diff File | ||
mod - application/models/Question.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-07-11 01:02 | litotes | New Issue | |
2013-07-11 08:47 | DenisChenu | Note Added: 25755 | |
2013-07-11 19:57 | litotes | Note Added: 25757 | |
2013-07-11 20:14 | DenisChenu | Note Added: 25758 | |
2013-07-11 20:14 | DenisChenu | Assigned To | => DenisChenu |
2013-07-11 20:14 | DenisChenu | Status | new => assigned |
2013-07-11 20:16 | DenisChenu | Note Edited: 25758 | |
2013-07-11 20:57 | DenisChenu | Changeset attached | => LimeSurvey master 8da619af |
2013-07-11 20:57 | DenisChenu | Note Added: 25759 | |
2013-07-11 20:57 | DenisChenu | Resolution | open => fixed |
2013-07-11 21:04 | DenisChenu | Changeset attached | => LimeSurvey 2.05 b160034c |
2013-07-11 21:04 | DenisChenu | Note Added: 25760 | |
2013-07-11 21:31 | DenisChenu | Status | assigned => resolved |
2013-07-11 21:31 | DenisChenu | Fixed in Version | => 2.00+ |
2013-08-04 21:54 | c_schmitz | Note Added: 25922 | |
2013-08-04 21:54 | c_schmitz | Status | resolved => closed |