Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19544

Showing/hiding a large number of objects generates fatal error.

    Details

      Description

      When showing or hiding a large number of objects, a fatal error is generated. PHP degug generates the following output:

      Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/45ezfc.com/lib/ezdb/classes/ezmysqlidb.php on line 509
      Call Stack: 0.0001 642304 
       
      1. {main}() /var/www/45ezfc.com/index.php:0 0.0497 7444272 
      2. eZModule->run() /var/www/45ezfc.com/index.php:716 0.0499 7470000 
      3. eZProcess::run() /var/www/45ezfc.com/lib/ezutils/classes/ezmodule.php:1571 0.0500 7470528 
      4. eZProcess->runFile() /var/www/45ezfc.com/lib/ezutils/classes/ezprocess.php:38 0.0501 7488552 
      5. include('/var/www/45ezfc.com/kernel/content/hide.php') /var/www/45ezfc.com/lib/ezutils/classes/ezprocess.php:63 0.0839 13787696 
      6. eZContentOperationCollection::changeHideStatus() /var/www/45ezfc.com/kernel/content/hide.php:45 0.0848 13800136 
      7. eZContentObjectTreeNode::unhideSubTree() /var/www/45ezfc.com/kernel/content/ezcontentoperationcollection.php:1063 0.2499 13813104 
      8. eZContentObjectTreeNode::clearViewCacheForSubtree() /var/www/45ezfc.com/kernel/classes/ezcontentobjecttreenode.php:5848 21.5253 133848968 
      9. eZContentCacheManager::clearContentCacheIfNeeded() /var/www/45ezfc.com/kernel/classes/ezcontentobjecttreenode.php:5929 21.5253 133849128 
      10. eZContentCacheManager::clearObjectViewCacheIfNeeded() /var/www/45ezfc.com/kernel/classes/ezcontentcachemanager.php:989 21.5254 133849128 
      11. eZContentCacheManager::clearObjectViewCache() /var/www/45ezfc.com/kernel/classes/ezcontentcachemanager.php:765 21.5254 133849128 
      12. eZContentCacheManager::nodeList() /var/www/45ezfc.com/kernel/classes/ezcontentcachemanager.php:703 21.5261 133855376 
      13. eZContentCacheManager::nodeListForObject() /var/www/45ezfc.com/kernel/classes/ezcontentcachemanager.php:674 21.5293 133871384 
      14. eZContentCacheManager::appendKeywordNodeIDs() /var/www/45ezfc.com/kernel/classes/ezcontentcachemanager.php:531 21.5293 133871856 
      15. eZContentObject->contentObjectAttributes() /var/www/45ezfc.com/kernel/classes/ezcontentcachemanager.php:209 21.5294 133874144 
      16. eZMySQLiDB->arrayQuery() /var/www/45ezfc.com/kernel/classes/ezcontentobject.php:2019 21.5306 133927200 
      17. mysqli_fetch_array() /var/www/45ezfc.com/lib/ezdb/classes/ezmysqlidb.php:509 Fatal error: eZ Publish did not finish its request
       
      The execution of eZ Publish was abruptly ended, debug information can be found in the log files normally placed in var/log/* or by enabling 'DebugOutput'
      

      Steps to reproduce

      1. Configure PHP to display errors by setting "display_errors=On" on php.ini;
      2. Create a large number of objects on eZ Publish (created 2000 articles on 'articles' folder using loremipsum extension);
      3. Show or hide all objects (right-clicked on 'articles' folder and selected Advanced->Hide / unhide). After a few moments, the fatal error message will be displayed. eZ Publish's error log reports no errors at all, but php error reporting feature offers more clues.

        Issue Links

          Activity

          Show
          Patrick Allaert added a comment - - edited Fixed in: eZ Publish master (merge commit): https://github.com/ezsystems/ezpublish/commit/4b373016cbd464f71720935029e5e256a25b0991 eZ Publish master: https://github.com/patrickallaert/ezpublish/commit/e11bea9e162d974b3354c714f90b3facc80999d4
          Show
          André R added a comment - Regression fixed in master: https://github.com/ezsystems/ezpublish/commit/d11db7aa3f786b1451efb03a6dfd9fe46121db11
          Show
          Chen Xiongjie added a comment - Enhancement added: https://github.com/ezsystems/ezpublish/commit/3912045ea16ca068583a2ef1453ed706fe0d23e3
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A. on eZ Publish 4.5, 4.6, 4.7

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A. on eZ Publish 4.5, 4.6, 4.7

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 54 minutes
                3h 54m