{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/7780","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/7780/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/7780/comments","events_url":"https://api.github.com/repos/composer/composer/issues/7780/events","html_url":"https://github.com/composer/composer/issues/7780","id":380130910,"node_id":"MDU6SXNzdWUzODAxMzA5MTA=","number":7780,"title":"Fatal Error : out of memory with Composer Update","user":{"login":"zayders","id":38069754,"node_id":"MDQ6VXNlcjM4MDY5NzU0","avatar_url":"https://avatars1.githubusercontent.com/u/38069754?v=4","gravatar_id":"","url":"https://api.github.com/users/zayders","html_url":"https://github.com/zayders","followers_url":"https://api.github.com/users/zayders/followers","following_url":"https://api.github.com/users/zayders/following{/other_user}","gists_url":"https://api.github.com/users/zayders/gists{/gist_id}","starred_url":"https://api.github.com/users/zayders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zayders/subscriptions","organizations_url":"https://api.github.com/users/zayders/orgs","repos_url":"https://api.github.com/users/zayders/repos","events_url":"https://api.github.com/users/zayders/events{/privacy}","received_events_url":"https://api.github.com/users/zayders/received_events","type":"User","site_admin":false},"labels":[{"id":66814887,"node_id":"MDU6TGFiZWw2NjgxNDg4Nw==","url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-13T09:25:49Z","updated_at":"2018-12-14T15:58:42Z","closed_at":null,"author_association":"NONE","body":"My `composer.json`:\r\n\r\n```json\r\n{\r\n    \"name\": \"symfony/framework-standard-edition\",\r\n    \"license\": \"MIT\",\r\n    \"type\": \"project\",\r\n    \"description\": \"The \\\"Symfony Standard Edition\\\" distribution\",\r\n    \"autoload\": {\r\n        \"psr-4\": { \"\": \"src/\" },\r\n        \"classmap\": [ \"app/AppKernel.php\", \"app/AppCache.php\" ]\r\n    },\r\n    \"autoload-dev\": {\r\n        \"psr-4\": { \"Tests\\\\\": \"tests/\" }\r\n    },\r\n    \"require\": {\r\n        \"php\": \">=5.5.12\",\r\n        \"symfony/symfony\": \"3.4.*\",\r\n        \"doctrine/orm\": \"^2.5\",\r\n        \"doctrine/doctrine-bundle\": \"^1.6\",\r\n        \"doctrine/doctrine-cache-bundle\": \"^1.2\",\r\n        \"symfony/swiftmailer-bundle\": \"^2.3\",\r\n        \"symfony/monolog-bundle\": \"^3.0\",\r\n        \"symfony/polyfill-apcu\": \"^1.0\",\r\n        \"sensio/distribution-bundle\": \"^5.0\",\r\n        \"sensio/framework-extra-bundle\": \"^3.0.2\",\r\n        \"incenteev/composer-parameter-handler\": \"^2.0\",\r\n        \"twig/extensions\": \"~1.0\",\r\n        \"doctrine/doctrine-fixtures-bundle\": \"~2.3\",\r\n        \"symfony/assetic-bundle\": \"^2.7.1\",\r\n        \"leafo/scssphp\": \"~0.6\",\r\n        \"patchwork/jsqueeze\": \"~1.0\",\r\n        \"coresphere/console-bundle\": \"dev-master\",\r\n        \"friendsofsymfony/user-bundle\": \"dev-master\",\r\n        \"egeloen/ckeditor-bundle\": \"^4.0\",\r\n        \"jms/serializer\": \"^1.7\",\r\n        \"vich/uploader-bundle\": \"^1.4\",\r\n        \"liuggio/excelbundle\": \"^2.1\",\r\n        \"spipu/html2pdf\": \"^5.0\",\r\n        \"ob/highcharts-bundle\": \"^1.6\",\r\n        \"ocramius/proxy-manager\": \"^1.0\",\r\n        \"oneup/uploader-bundle\": \"^1.9\"\r\n    },\r\n    \"require-dev\": {\r\n        \"sensio/generator-bundle\": \"^3.0\",\r\n        \"symfony/phpunit-bridge\": \"^4.1\"\r\n    },\r\n    \"scripts\": {\r\n        \"symfony-scripts\": [\r\n            \"Incenteev\\\\ParameterHandler\\\\ScriptHandler::buildParameters\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::clearCache\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installAssets\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installRequirementsFile\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::prepareDeploymentTarget\"\r\n        ],\r\n        \"post-install-cmd\": [\r\n            \"@symfony-scripts\"\r\n        ],\r\n        \"post-update-cmd\": [\r\n            \"@symfony-scripts\"\r\n        ]\r\n    },\r\n    \"config\": {\r\n        \"platform\": {\r\n            \"php\": \"5.5.12\"\r\n        }\r\n    },\r\n    \"extra\": {\r\n        \"symfony-app-dir\": \"app\",\r\n        \"symfony-bin-dir\": \"bin\",\r\n        \"symfony-var-dir\": \"var\",\r\n        \"symfony-web-dir\": \"web\",\r\n        \"symfony-tests-dir\": \"tests\",\r\n        \"symfony-assets-install\": \"relative\",\r\n        \"incenteev-parameters\": {\r\n            \"file\": \"app/config/parameters.yml\"\r\n        },\r\n        \"branch-alias\": {\r\n            \"dev-master\": \"3.2-dev\"\r\n        }\r\n    }\r\n}\r\n\r\n```\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\r\nChecking composer.json: WARNING\r\nDefining autoload.psr-4 with an empty namespace prefix is a bad idea for performance\r\nrequire.coresphere/console-bundle : unbound version constraints (dev-master) should be avoided\r\nrequire.friendsofsymfony/user-bundle : unbound version constraints (dev-master) should be avoided\r\nChecking platform settings: OK\r\nChecking git settings: OK\r\nChecking http connectivity to packagist: OK\r\nChecking https connectivity to packagist: OK\r\nChecking github.com rate limit: OK\r\nChecking disk free space: OK\r\nChecking pubkeys: \r\nTags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642\r\nDev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952\r\nOK\r\nChecking composer version: OK\r\nComposer version: 1.7.3\r\nPHP version: 5.5.12 - Package overridden via config.platform (same as actual)\r\nPHP binary path: D:\\wamp\\bin\\php\\php5.5.12\\php.exe\r\n\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\nphp ..composer.phar update\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\nFatal error: Out of memory (allocated 1520435200) (tried to allocate 268435456 b\r\nytes) in phar://D:/wamp/www/composer.phar/src/Composer/DependencyResolver/Solver\r\n.php on line 220\r\n```\r\n\r\nAnd I expected this to happen:\r\n\r\nUpdate all dependencies\r\n\r\nI try several solution but nothing is working :\r\n\r\n- My php.ini is already modify with memory_limit = -1\r\n\r\n- the command php -d memory_limit=-1 ../composer.phar update\r\n\r\n- The command php ../composer.phar install (work fine but after i have the same error when i run composer update)\r\n\r\n- Try composer self-update to get last version\r\n\r\n- Try to edit composer.bat to up the memory\r\n\r\n- I'm on php 5.5.12, i can't upgrade to php 7.X due to my restrictions. And i tried to upgrade to php 5.6 and it not solve the problem, always this error : \"Out of memory\"\r\n\r\nMy computer has 4Gb RAM and about 2,4 available when i want to execute the command\r\n"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/447367867","html_url":"https://github.com/composer/composer/issues/7780#issuecomment-447367867","issue_url":"https://api.github.com/repos/composer/composer/issues/7780","id":447367867,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzM2Nzg2Nw==","user":{"login":"YetiCGN","id":447119,"node_id":"MDQ6VXNlcjQ0NzExOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/447119?v=4","gravatar_id":"","url":"https://api.github.com/users/YetiCGN","html_url":"https://github.com/YetiCGN","followers_url":"https://api.github.com/users/YetiCGN/followers","following_url":"https://api.github.com/users/YetiCGN/following{/other_user}","gists_url":"https://api.github.com/users/YetiCGN/gists{/gist_id}","starred_url":"https://api.github.com/users/YetiCGN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YetiCGN/subscriptions","organizations_url":"https://api.github.com/users/YetiCGN/orgs","repos_url":"https://api.github.com/users/YetiCGN/repos","events_url":"https://api.github.com/users/YetiCGN/events{/privacy}","received_events_url":"https://api.github.com/users/YetiCGN/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T15:58:42Z","updated_at":"2018-12-14T15:58:42Z","author_association":"NONE","body":"Now that's a great idea. I've done so here and there, updating constraints to newer versions but not excessively. This is a rather long-running project which saw it's first incarnation in April 2017. Some dependencies haven't been updated since in the `composer.json`.\r\n\r\nBut I can totally live with that recommendation, often update your constraints to exclude older versions that are irrelevant. If Composer would ship a command to do that on `\"type\": \"project\"` like you sketched out, that would be wonderful!\r\n\r\nBy the way, I was able to successfully update now after closing everything else down. Composer peaked at 5,780 MiB RAM usage for quite a few minutes but it worked."}}
{"actor":{"display_login":"YetiCGN"}}