在读作曲家更新时,作曲家VirtualAlloc()失败

时间:2019-05-30 17:05:50

标签: php composer-php

正在运行composer update -vvv作曲家时

  

PHP致命错误:在以下位置的phar:// C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php中内存不足(已分配1570766848)(试图分配> 4096字节)第223行

     

致命错误:在第223行的phar:// C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php中,内存不足(已分配1570766848)(试图分配4096字节) `

如果有其他疑问,它会出现2次。当作曲家试图从缓存中读取文件时出现

  

从缓存中读取C:/ Users / B0re-DELL / AppData / Local / Composer / repo / https --- repo.packagist.org/provider-behat$transliterator.json


composer.json内容:

{
    "name": "",
    "license": "",
    "type": "",
    "autoload": {
        "psr-4": {
            "AppBundle\\": "src/AppBundle",
            "UserBundle\\": "src/UserBundle",
            "EABundle\\": "src/EABundle"
        },
        "classmap": [
            "app/AppKernel.php",
            "app/AppCache.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        },
        "files":[
"vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
        ]
    },
    "require": {
        "php": ">=5.5.9",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/orm": "^2.5",
        "egeloen/ckeditor-bundle": "^6.0",
        "friendsofsymfony/user-bundle": "^2.0",
        "gufy/pdftohtml-php": "~2",
        "incenteev/composer-parameter-handler": "^2.0",
        "javiereguiluz/easyadmin-bundle": "^1.17",
        "knplabs/knp-paginator-bundle": "^2.8",
        "openpayu/openpayu": "^2.2",
        "sensio/distribution-bundle": "^5.0.19",
        "sensio/framework-extra-bundle": "^3.0.2",
        "symfony/monolog-bundle": "^3.1.0",
        "symfony/polyfill-apcu": "^1.0",
        "symfony/swiftmailer-bundle": "^2.3.10",
        "symfony/symfony": "3.3.*",
        "tecnickcom/tcpdf": "^6.2",
        "twig/twig": "^1.0||^2.0",
        "vich/uploader-bundle": "^1.5"
    },
    "require-dev": {
        "sensio/generator-bundle": "^3.0",
        "symfony/phpunit-bridge": "^3.0"
    },
    "scripts": {
        "symfony-scripts": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
        ],
        "post-install-cmd": [
            "@symfony-scripts"
        ],
        "post-update-cmd": [
            "@symfony-scripts"
        ]
    },
    "config": {
        "sort-packages": true
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web",
        "symfony-tests-dir": "tests",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": null
    }
}

操作系统:Windows 10 64bit
PHP版本:7.0.33 64bit
作曲者版本:1.8.5
到目前为止已尝试:
-使用composer clear-cache清除作曲家的缓存
-在php.ini中将memory_limit增加到2048M
-运行composer diagnose 0条警告
-已检查是否启用了ACU和xdebug扩展功能(它们在php.ini文件中不存在)
我没有解决该问题的想法,奇怪的是它一天才停止工作。我希望有人能帮助我找出可能出问题的地方。

0 个答案:

没有答案