Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another Assertion Failed #530

Closed
canni opened this issue Apr 5, 2012 · 4 comments
Closed

Another Assertion Failed #530

canni opened this issue Apr 5, 2012 · 4 comments
Labels

Comments

@canni
Copy link

canni commented Apr 5, 2012

Here's stack trace:

[ErrorException]            
assert(): Assertion failed  



Exception trace:
 () at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:1481
 Composer\Util\ErrorHandler::handle() at n/a:n/a
 assert() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:1481
 Composer\DependencyResolver\Solver->analyze() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:1355
 Composer\DependencyResolver\Solver->setPropagateLearn() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:1392
 Composer\DependencyResolver\Solver->selectAndInstall() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:1760
 Composer\DependencyResolver\Solver->runSat() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:1019
 Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer.phar/src/Composer/Installer.php:211
 Composer\Installer->run() at phar:///usr/local/bin/composer.phar/src/Composer/Command/UpdateCommand.php:63
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:237
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:70
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:106
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:59
 Composer\Console\Application->run() at phar:///usr/local/bin/composer.phar/bin/composer:9
 require() at /usr/local/bin/composer.phar:15


update [--prefer-source] [--dry-run] [--no-install-recommends] [--install-suggests]

And composer.json

{
    "require": {
        "knplabs/rad-bundle": "dev-master",
        "cleverit/debug-shell-bundle": "1.0.0",
    "mopa/bootstrap-bundle": "dev-master",
    "knplabs/knp-paginator-bundle": "dev-master",
    "knplabs/knp-menu-bundle": "dev-master",
    "craue/formflow-bundle": "dev-master",
    "twitter/bootstrap": "master"
},
"repositories": [
    {
        "type": "package",
        "package": {
            "version": "master",
            "name": "twitter/bootstrap",
            "source": {
                "url": "https://github.com/twitter/bootstrap.git",
                "type": "git",
                "reference": "master"
            },
            "dist": {
                "url": "https://github.com/twitter/bootstrap/zipball/master",
                "type": "zip"
             }
        }
    }
]
}
@RRStoyanov
Copy link

Same here. My composer.json is pretty big, so I don't want to paste it, but I can say that I didn't have problem to run the install command, but after I run update, than I see the assert(): Assertion failed error.

@taxido
Copy link

taxido commented May 2, 2012

I have the same problem.

Problem is in line:
"craue/formflow-bundle": "dev-master",

@stof
Copy link
Contributor

stof commented May 3, 2012

@naderman Can you check it ? It seems like an assertion fails when the dependencies cannot be solved instead of throwing a SolverException

@Seldaek
Copy link
Member

Seldaek commented May 9, 2012

The solver just received a handful of fixes that most likely addressed this issue. Since it is pretty hard to reproduce those assert() bugs as they usually only occured on update, and we can not install your dependencies to an older state to try an update, I am closing this issue. Please run composer.phar self-update and try again. If you encounter another assert() error or any other issue, feel free to report a new issue (or ask that we reopen this one if it is not fixed).

@Seldaek Seldaek closed this as completed May 9, 2012
Seldaek added a commit to Seldaek/composer that referenced this issue Jan 10, 2024
Seldaek added a commit to Seldaek/composer that referenced this issue Jan 10, 2024
Seldaek added a commit that referenced this issue Jan 11, 2024
…env var (#11791)

* Add IPv4 fallback on connection timeout, and adds COMPOSER_IPRESOLVE env var, fixes #530

* Address feedback

* Add warning in diagnose command when COMPOSER_IPRESOLVE is set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants