composer/composer — Issue #162: Solver crashes
Author: mpdude
Created: 2011-12-18 22:19:46+00:00
State: open

```
{
"require":{
"symfony/symfony":"2.0.*",
"symfony/framework-bundle":"2.0.*",
"symfony/assetic-bundle":"master-dev"
}
}
```
causes

```
Warning: assert(): Assertion failed in /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php on line 1484

Call Stack:
0.0003 638376 1. {main}() /opt/local/share/composer/bin/composer:0
0.0101 1851416 2. Composer\Console\Application->run() /opt/local/share/composer/bin/composer:15
0.0125 2103792 3. Symfony\Component\Console\Application->run() /opt/local/share/composer/src/Composer/Console/Application.php:56
0.0138 2301440 4. Composer\Console\Application->doRun() /opt/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:105
0.0181 2787480 5. Symfony\Component\Console\Application->doRun() /opt/local/share/composer/src/Composer/Console/Application.php:66
0.0186 2787480 6. Symfony\Component\Console\Command\Command->run() /opt/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:188
0.0190 2787792 7. Composer\Command\InstallCommand->execute() /opt/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:227
0.0190 2787792 8. Composer\Command\InstallCommand->install() /opt/local/share/composer/src/Composer/Command/InstallCommand.php:59
3.0919 11214416 9. Composer\DependencyResolver\Solver->solve() /opt/local/share/composer/src/Composer/Command/InstallCommand.php:133
3.4811 15433368 10. Composer\DependencyResolver\Solver->runSat() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1070
3.5031 15443216 11. Composer\DependencyResolver\Solver->selectAndInstall() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1986
3.5037 15443480 12. Composer\DependencyResolver\Solver->setPropagateLearn() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1428
3.5088 15490952 13. Composer\DependencyResolver\Solver->analyze() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1390
3.5102 15493640 14. assert() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1484

Fatal error: Call to a member function getPackageId() on a non-object in /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php on line 1489

Call Stack:
0.0003 638376 1. {main}() /opt/local/share/composer/bin/composer:0
0.0101 1851416 2. Composer\Console\Application->run() /opt/local/share/composer/bin/composer:15
0.0125 2103792 3. Symfony\Component\Console\Application->run() /opt/local/share/composer/src/Composer/Console/Application.php:56
0.0138 2301440 4. Composer\Console\Application->doRun() /opt/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:105
0.0181 2787480 5. Symfony\Component\Console\Application->doRun() /opt/local/share/composer/src/Composer/Console/Application.php:66
0.0186 2787480 6. Symfony\Component\Console\Command\Command->run() /opt/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:188
0.0190 2787792 7. Composer\Command\InstallCommand->execute() /opt/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:227
0.0190 2787792 8. Composer\Command\InstallCommand->install() /opt/local/share/composer/src/Composer/Command/InstallCommand.php:59
3.0919 11214416 9. Composer\DependencyResolver\Solver->solve() /opt/local/share/composer/src/Composer/Command/InstallCommand.php:133
3.4811 15433368 10. Composer\DependencyResolver\Solver->runSat() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1070
3.5031 15443216 11. Composer\DependencyResolver\Solver->selectAndInstall() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1986
3.5037 15443480 12. Composer\DependencyResolver\Solver->setPropagateLearn() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1428
3.5088 15490952 13. Composer\DependencyResolver\Solver->analyze() /opt/local/share/composer/src/Composer/DependencyResolver/Solver.php:1390
```