Skip to content

Memory error when executing cache:clear after installing friendsofsymfony/jsrouting-bundle #487

@ahmed-bhs

Description

@ahmed-bhs

Hey there! 👋

I hope you’re doing well! I wanted to reach out because I'm facing a bit of a challenge after installing the friendsofsymfony/jsrouting-bundle in my Symfony 6.4 project. I've tested both versions 3.0.0 and 3.5, but I'm running into a snag.

Whenever I run the cache:clear command, I get hit with the following error message:

Script cache:clear returned with error code 255

// Clearing the cache for the dev environment with debug true

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php on line 124

Additional Details:

Symfony Version: 6.4
FOS JS Routing Bundle Version: Tested 3.0.0 and 3.5
Symfony Framework Bundle Version: 6.4.8
PHP Version: 8.2
Environment: Development
PHP Configuration:
    Allocated Memory: 128 MB

Steps to Reproduce the Issue:

Install the friendsofsymfony/jsrouting-bundle (version 3.0.0 or 3.5).
Remove Vendor
Run composer install.
Execute php bin/console cache:clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions