Bug #44278

High memory consumption of Debugger::renderObjectDump() prevents display of Exceptions

Added by Benno Weinzierl about 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Must have
Category:
Error
Start date:
2013-01-02
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:
easy

Description

When an arbitrary Exception is thrown i get a "Allowed memory Limit"-Error instead of the Flow Exception-Errormessage.

This seems to occure because \Doctrine\Common\Util\Debug::export($object, 12) is called with 12 nesting levels.
In TYPO3\Flow\Error\Debugger:

        ....
    static protected function renderObjectDump($object, $level, $renderProperties = TRUE, $plaintext = FALSE, $ansiColors = FALSE) {
        $dump = '';
        $scope = '';
        $additionalAttributes = '';

        if ($object instanceof \Doctrine\Common\Collections\Collection) {
            return self::renderArrayDump(\Doctrine\Common\Util\Debug::export($object, 12), $level, $plaintext, $ansiColors);
        }
        ...

if i change the 12 to 6 for example it works.
Sould this not be at least configurable via Settings.yaml?


Related issues

Has duplicate TYPO3.Flow - Bug #30714: \TYPO3\FLOW3\var_dump() memory use causes fatal error debugging objects.Closed2011-10-10

Actions

Also available in: Atom PDF