Memory leaks #4613

Open
opened 2026-02-20 16:20:34 -05:00 by deekerman · 0 comments
Owner

Originally created by @raciasolvo on GitHub (Sep 2, 2021).

Issue

We have issue with memory:

Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/data/BeanFactory.php on line 118

Expected Behavior

Actual Behavior

Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in /var/www/html/data/BeanFactory.php on line 249

Error: Maximum function nesting level of '256' reached, aborting! in /var/www/html/data/BeanFactory.php on line 249

Possible Fix

Issue is here (SugarBean.php):

        if ((!$this->disable_vardefs && empty($loaded_definitions[$this->object_name]))
            || !empty($GLOBALS['reload_vardefs'])) {
            VardefManager::loadVardef($this->module_dir, $this->object_name);

Steps to Reproduce

Context

High priority

Your Environment

  • SuiteCRM Version used: 7.10.27
  • Operating System and version Debian 9
Originally created by @raciasolvo on GitHub (Sep 2, 2021). #### Issue We have issue with memory: ``` Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/data/BeanFactory.php on line 118 ``` #### Expected Behavior #### Actual Behavior ``` Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in /var/www/html/data/BeanFactory.php on line 249 Error: Maximum function nesting level of '256' reached, aborting! in /var/www/html/data/BeanFactory.php on line 249 ``` #### Possible Fix Issue is here (SugarBean.php): ```php if ((!$this->disable_vardefs && empty($loaded_definitions[$this->object_name])) || !empty($GLOBALS['reload_vardefs'])) { VardefManager::loadVardef($this->module_dir, $this->object_name); ``` #### Steps to Reproduce #### Context High priority #### Your Environment * SuiteCRM Version used: 7.10.27 * Operating System and version Debian 9
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4613
No description provided.