Skip to content

castor execute causes PHP out of memory error #662

@TheoD02

Description

@TheoD02

Description

Running the command castor execute symplify/easy-coding-standard results in a PHP fatal error due to memory exhaustion.

Error Message

castor execute symplify/easy-coding-standard
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in phar:///Users/theod/.local/bin/castor/vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php on line 232

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in phar:///Users/theod/.local/bin/castor/vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php on line 232
16:38:49 ERROR     [castor] Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) ["exception" => Symfony\Component\ErrorHandler\Error\OutOfMemoryError^ { …}]
Symfony\Component\ErrorHandler\Error\OutOfMemoryError^ {#127090
  #message: "Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)"
  #code: 0
  #file: "phar:///Users/theod/.local/bin/castor/vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php"
  #line: 232
  -error: array:4 [
    "type" => 1
    "message" => "Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)"
    "file" => "phar:///Users/theod/.local/bin/castor/vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php"
    "line" => 232
  ]
}

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.⏎  

Steps to Reproduce

  1. Run the command:
   castor execute symplify/easy-coding-standard

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