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

Already on GitHub? Sign in to your account

Distributionbundle is off and WebProfile on = crash #4016

Closed
ConneXNL opened this Issue Apr 19, 2012 · 10 comments

Comments

Projects
None yet
5 participants
Contributor

ConneXNL commented Apr 19, 2012

It seems that whenever i have DistributionBundle off and WebProfilerBundle on Symfony crashes ALMOST always with the following error:

Whoops, looks like something went wrong.
1/1 RuntimeException: Cannot dump definitions which have method calls.

in D:\Localhost\www\won\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php line 997
at PhpDumper->dumpValue(object(Definition)) in D:\Localhost\www\won\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php line 379
at PhpDumper->addServiceMethodCalls('profiler', object(Definition)) in D:\Localhost\www\won\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php line 540
at PhpDumper->addService('profiler', object(Definition)) in D:\Localhost\www\won\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php line 598
at PhpDumper->addServices() in D:\Localhost\www\won\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php line 95
at PhpDumper->dump(array('class' => 'appDevDebugProjectContainer', 'base_class' => 'Container')) in D:\Localhost\www\won\app\bootstrap.php.cache line 909
at Kernel->dumpContainer(object(ConfigCache), object(ContainerBuilder), 'appDevDebugProjectContainer', 'Container') in D:\Localhost\www\won\app\bootstrap.php.cache line 804
at Kernel->initializeContainer() in D:\Localhost\www\won\app\bootstrap.php.cache line 525
at Kernel->boot() in D:\Localhost\www\won\app\bootstrap.php.cache line 568
at Kernel->handle(object(Request)) in D:\Localhost\www\won\web\app_dev.php line 25

I've got a similar issue, did you manage to get what was wrong here ?

Contributor

ConneXNL commented May 10, 2012

Nope, Those 2 bundles go way over my head.
But im 100% sure something is wrong in the bundles themselves.
Removing cache or rebooting apache does not fix it.

Only turning DistributionBundle on.

Contributor

fixe commented Jun 5, 2012

I'm also having this issue.

Commenting SensioDistributionBundle fixes the problem, but commenting another different Bundle also fixes it.

YetiCGN commented Jun 18, 2012

+1

Owner

fabpot commented Jul 10, 2012

I'm not able to reproduce. As quite a few has the same problem, anyone able to send me an archive with a minimal project that has this issue (with the master branch of Symfony and Symfony SE)? Thanks.

Contributor

fixe commented Jul 10, 2012

I think this bug is related to APC. I was having this problem again but it disappeared after clearing APC cache.

Owner

fabpot commented Jul 11, 2012

So, I'm closing this issue.

@fabpot fabpot closed this Jul 11, 2012

YetiCGN commented Jul 11, 2012

I have APC disabled and still this is happening. Minimal test case is very difficult as the project configuration is complex and, as you said, with the Standard Edition it is not reproducable. I have been trying to slowly get SE to a point where the error occurs, but so far unsuccessful.
However, closed is fine by me for now, when I have a test case, I will reopen this issue.

Owner

fabpot commented Jul 11, 2012

@YetiCGN Thanks for the feedback.

YetiCGN commented Jul 12, 2012

More info: I commented on an issue with Doctrine on this (doctrine/DoctrineBundle#45 (comment)), but the fix seems to suggest that it's a Symfony problem. However, this bug is very elusive. I cannot reproduce it after reverting the fixes described below.

Commenting either the "throw new \RuntimeException" in vendor/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php line 993 and returning null or commenting out service id="templating.helper.form" in vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/templating_php.xml did the trick.

Note, this is only a workaround but maybe it leads to the right point in the code. Good luck hunting that bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment