Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44992001 bytes) in /app/vendor/imagine/imagine/src/Gd/Image.php on line 795

Warning: session_id(): Session ID cannot be changed after headers have already been sent in /app/vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php on line 74
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44992001 bytes) (500 Internal Server Error)

Symfony Exception

OutOfMemoryError

HTTP 500 Internal Server Error

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44992001 bytes)

Exception

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Show exception properties
Symfony\Component\ErrorHandler\Error\OutOfMemoryError {#778
  -error: array:4 [
    "type" => 1
    "message" => "Allowed memory size of 134217728 bytes exhausted (tried to allocate 44992001 bytes)"
    "file" => "/app/vendor/imagine/imagine/src/Gd/Image.php"
    "line" => 795
  ]
}
  1. if (function_exists('imageantialias')) {
  2. imageantialias($resource, true);
  3. }
  4. $transparent = imagecolorallocatealpha($resource, 255, 255, 255, 127);
  5. imagefill($resource, 0, 0, $transparent);
  6. imagecolortransparent($resource, $transparent);
  7. return $resource;
  8. }

Logs 1

Level Channel Message
INFO 03:57:26 deprecation User Deprecated: The Liip\ImagineBundle\Templating\FilterTrait trait is deprecated since version 2.7 and will be removed in 3.0; use Twig instead.
{
    "exception": {}
}
INFO 03:57:26 deprecation User Deprecated: The Liip\ImagineBundle\Templating\FilterExtension class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead.
{
    "exception": {}
}
INFO 03:57:26 request Matched route "liip_imagine_filter".
{
    "route": "liip_imagine_filter",
    "route_parameters": {
        "_route": "liip_imagine_filter",
        "_controller": "Liip\\ImagineBundle\\Controller\\ImagineController::filterAction",
        "filter": "mini",
        "path": "media/produits/melga_fr-305-317.png"
    },
    "request_uri": "https://melgav2.conception-jc.fr/media/cache/resolve/mini/media/produits/melga_fr-305-317.png",
    "method": "GET"
}
CRITICAL 03:57:26 request Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\OutOfMemoryError: "Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44992001 bytes)" at Image.php line 795
{
    "exception": {}
}

Stack Trace

OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44992001 bytes)

  at vendor/imagine/imagine/src/Gd/Image.php:795                
Loading…
Loading the web debug toolbar…
Attempt #