tingobol / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

Allowed memory size e #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /index.php/user/role/update/id/2
2. userTables with 110 users

What is the expected output? What do you see instead?
edit role, blank page

What version of the product are you using? On what operating system?
0.7, macosx

Please provide any additional information below.
in php log this stack trace:

[22-Dec-2010 16:17:37] PHP Fatal error:  Allowed memory size of 67108864 bytes 
exhausted (tried to allocate 16 bytes) in 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/collections/CList.php on line 57
[22-Dec-2010 16:17:37] PHP Stack trace:
[22-Dec-2010 16:17:37] PHP   1. {main}() 
/Users/markux/Lavoro/mamp/htdocs/test/index.php:0
[22-Dec-2010 16:17:37] PHP   2. CApplication->run() 
/Users/markux/Lavoro/mamp/htdocs/test/index.php:14
[22-Dec-2010 16:17:37] PHP   3. CWebApplication->processRequest() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CApplication.php:135
[22-Dec-2010 16:17:37] PHP   4. CWebApplication->runController() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CWebApplication.php:121
[22-Dec-2010 16:17:37] PHP   5. CController->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CWebApplication.php:324
[22-Dec-2010 16:17:37] PHP   6. CController->runActionWithFilters() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:257
[22-Dec-2010 16:17:37] PHP   7. CFilterChain->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:283
[22-Dec-2010 16:17:37] PHP   8. CInlineFilter->filter() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CFilterChain.php:130
[22-Dec-2010 16:17:37] PHP   9. CController->filterAccessControl() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CInlineFilter.php:59
[22-Dec-2010 16:17:37] PHP  10. CFilter->filter() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:1084
[22-Dec-2010 16:17:37] PHP  11. CFilterChain->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CFilter.php:41
[22-Dec-2010 16:17:37] PHP  12. CController->runAction() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CFilterChain.php:133
[22-Dec-2010 16:17:37] PHP  13. CInlineAction->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:300
[22-Dec-2010 16:17:37] PHP  14. YumRoleController->actionUpdate() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/actions/CInlineAction.php:57
[22-Dec-2010 16:17:37] PHP  15. CController->render() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/controllers/YumRole
Controller.php:48
[22-Dec-2010 16:17:37] PHP  16. CController->renderPartial() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:746
[22-Dec-2010 16:17:37] PHP  17. CBaseController->renderFile() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:833
[22-Dec-2010 16:17:37] PHP  18. CBaseController->renderInternal() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:88
[22-Dec-2010 16:17:37] PHP  19. require() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:119
[22-Dec-2010 16:17:37] PHP  20. CController->renderPartial() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/views/role/update.p
hp:24
[22-Dec-2010 16:17:37] PHP  21. CBaseController->renderFile() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:833
[22-Dec-2010 16:17:37] PHP  22. CBaseController->renderInternal() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:88
[22-Dec-2010 16:17:37] PHP  23. require() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:119
[22-Dec-2010 16:17:37] PHP  24. CBaseController->widget() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/views/role/_form.ph
p:30
[22-Dec-2010 16:17:37] PHP  25. Relation->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:166
[22-Dec-2010 16:17:37] PHP  26. Relation->renderManyManySelection() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/components/Relation
.php:593
[22-Dec-2010 16:17:37] PHP  27. Relation->renderManyManyDropDownListSelection() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/components/Relation
.php:445
[22-Dec-2010 16:17:37] PHP  28. CActiveRecord->findAll() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/components/Relation
.php:473
[22-Dec-2010 16:17:37] PHP  29. CActiveRecord->query() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1323
[22-Dec-2010 16:17:37] PHP  30. CActiveRecord->populateRecords() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1237
[22-Dec-2010 16:17:37] PHP  31. CActiveRecord->populateRecord() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1735
[22-Dec-2010 16:17:37] PHP  32. CComponent->attachBehaviors() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1711
[22-Dec-2010 16:17:37] PHP  33. CComponent->attachBehavior() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:300
[22-Dec-2010 16:17:37] PHP  34. CBehavior->attach() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:333
[22-Dec-2010 16:17:37] PHP  35. CComponent->attachEventHandler() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CBehavior.php:47
[22-Dec-2010 16:17:37] PHP  36. CComponent->getEventHandlers() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:523
[22-Dec-2010 16:17:37] PHP  37. CList->__construct() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:481
[22-Dec-2010 16:18:26] PHP Fatal error:  Allowed memory size of 134217728 bytes 
exhausted (tried to allocate 41 bytes) in 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/collections/CList.php on line 75
[22-Dec-2010 16:18:26] PHP Stack trace:
[22-Dec-2010 16:18:26] PHP   1. {main}() 
/Users/markux/Lavoro/mamp/htdocs/test/index.php:0
[22-Dec-2010 16:18:26] PHP   2. CApplication->run() 
/Users/markux/Lavoro/mamp/htdocs/test/index.php:14
[22-Dec-2010 16:18:26] PHP   3. CWebApplication->processRequest() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CApplication.php:135
[22-Dec-2010 16:18:26] PHP   4. CWebApplication->runController() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CWebApplication.php:121
[22-Dec-2010 16:18:26] PHP   5. CController->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CWebApplication.php:324
[22-Dec-2010 16:18:26] PHP   6. CController->runActionWithFilters() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:257
[22-Dec-2010 16:18:26] PHP   7. CFilterChain->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:283
[22-Dec-2010 16:18:26] PHP   8. CInlineFilter->filter() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CFilterChain.php:130
[22-Dec-2010 16:18:26] PHP   9. CController->filterAccessControl() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CInlineFilter.php:59
[22-Dec-2010 16:18:26] PHP  10. CFilter->filter() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:1084
[22-Dec-2010 16:18:26] PHP  11. CFilterChain->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CFilter.php:41
[22-Dec-2010 16:18:26] PHP  12. CController->runAction() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/filters/CFilterChain.php:133
[22-Dec-2010 16:18:26] PHP  13. CInlineAction->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:300
[22-Dec-2010 16:18:26] PHP  14. YumRoleController->actionUpdate() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/actions/CInlineAction.php:57
[22-Dec-2010 16:18:26] PHP  15. CController->render() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/controllers/YumRole
Controller.php:48
[22-Dec-2010 16:18:26] PHP  16. CController->renderPartial() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:746
[22-Dec-2010 16:18:26] PHP  17. CBaseController->renderFile() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:833
[22-Dec-2010 16:18:26] PHP  18. CBaseController->renderInternal() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:88
[22-Dec-2010 16:18:26] PHP  19. require() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:119
[22-Dec-2010 16:18:26] PHP  20. CController->renderPartial() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/views/role/update.p
hp:24
[22-Dec-2010 16:18:26] PHP  21. CBaseController->renderFile() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CController.php:833
[22-Dec-2010 16:18:26] PHP  22. CBaseController->renderInternal() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:88
[22-Dec-2010 16:18:26] PHP  23. require() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:119
[22-Dec-2010 16:18:26] PHP  24. CBaseController->widget() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/views/role/_form.ph
p:30
[22-Dec-2010 16:18:26] PHP  25. Relation->run() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/web/CBaseController.php:166
[22-Dec-2010 16:18:26] PHP  26. Relation->renderManyManySelection() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/components/Relation
.php:593
[22-Dec-2010 16:18:26] PHP  27. Relation->renderManyManyDropDownListSelection() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/components/Relation
.php:445
[22-Dec-2010 16:18:26] PHP  28. CActiveRecord->findAll() 
/Users/markux/Lavoro/mamp/htdocs/test/protected/modules/user/components/Relation
.php:473
[22-Dec-2010 16:18:26] PHP  29. CActiveRecord->query() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1323
[22-Dec-2010 16:18:26] PHP  30. CActiveRecord->populateRecords() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1237
[22-Dec-2010 16:18:26] PHP  31. CActiveRecord->populateRecord() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1735
[22-Dec-2010 16:18:26] PHP  32. CComponent->attachBehaviors() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/db/ar/CActiveRecord.php:1711
[22-Dec-2010 16:18:26] PHP  33. CComponent->attachBehavior() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:300
[22-Dec-2010 16:18:26] PHP  34. CBehavior->attach() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:333
[22-Dec-2010 16:18:26] PHP  35. CComponent->attachEventHandler() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CBehavior.php:47
[22-Dec-2010 16:18:26] PHP  36. CComponent->getEventHandlers() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:523
[22-Dec-2010 16:18:26] PHP  37. CList->__construct() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/base/CComponent.php:481
[22-Dec-2010 16:18:26] PHP  38. CList->setReadOnly() 
/Users/markux/Lavoro/mamp/htdocs/yii/framework/collections/CList.php:61

Original issue reported on code.google.com by marco.pa...@gmail.com on 22 Dec 2010 at 3:27

GoogleCodeExporter commented 9 years ago
i think this happens because he tries to load all roles at once. the Relation 
should be limited to display the 10 first roles/users. will rework this section 
later.

Original comment by thyseus on 22 Dec 2010 at 7:37