Closed AienTech closed 8 years ago
Hi. Can you provide a stack trace? It might be useful.
ok, so here is the dev.log... it's all I get dev.log.txt
it happens after clicking on 'Edit ACL'
Use the symfony profiler to query the corresponding url and get a real stack trace.
the thing is that symfony profiler also stops working. I can't get any traces on this error. :( that why I said it's a bug... nothing is working after this error
Use the profiler in a page that works. There is a form in it to find the profile you are looking for.
Please also update your issue body according to the GitHub template.
@greg0ire noting is traced! seriously! after entering '{id}/edit' there is no more logging... I even used Profiler to trace stacks! but nothing!
I even used Profiler to trace stacks!
What do you mean by that?
Maybe I was not clear enough:
Is this what you really mean by "use the profiler to trace stacks"? If yes this is probably a php Fatal error that cannot be recovered from. If yes, check the log of your web server instead of the log of your application.
And also, calm down.
@AienTech Please also again: https://github.com/sonata-project/SonataAdminBundle/blob/3.x/.github/ISSUE_TEMPLATE.md
This is not an option.
Ref: https://github.com/sonata-project/SonataAdminBundle/blob/3.x/CONTRIBUTING.md#issues
Oh, I'm really sorry, I am calm actually, but I use too much emotions when I write comments :) my bad.
And yes, that was exactly what I did.
So, here is logs, after clicking Edit ACL (I really hope that memory exhaustion is not the reason!)
[05-Jul-2016 15:18:38 Europe/Berlin] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php on line 45
[05-Jul-2016 15:18:38 Europe/Berlin] PHP Stack trace:
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 1. {main}() /home/aien/Web/MrAlef/MRA/web/app_dev.php:0
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 2. Symfony\Component\HttpKernel\Kernel->handle() /home/aien/Web/MrAlef/MRA/web/app_dev.php:30
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 3. Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:193
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 4. Symfony\Component\HttpKernel\HttpKernel->handle() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php:69
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:64
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 6. call_user_func_array:{/home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:144}() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:144
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 7. Sonata\AdminBundle\Controller\CRUDController->aclAction() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:144
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 8. Symfony\Component\Form\Form->createView() /home/aien/Web/MrAlef/MRA/vendor/sonata-project/admin-bundle/Controller/CRUDController.php:910
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 9. Symfony\Component\Form\Form->createView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1062
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 10. Symfony\Component\Form\Form->createView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1062
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 11. Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1059
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 12. Symfony\Component\Form\ResolvedFormType->buildView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:120
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 13. Symfony\Component\Form\Extension\Core\Type\CheckboxType->buildView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php:209
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 14. array_replace() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php:45
[05-Jul-2016 15:18:38 Europe/Berlin] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/OutOfMemoryException.php on line 1
[05-Jul-2016 15:18:38 Europe/Berlin] PHP Stack trace:
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 1. {main}() /home/aien/Web/MrAlef/MRA/web/app_dev.php:0
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 2. Symfony\Component\HttpKernel\Kernel->handle() /home/aien/Web/MrAlef/MRA/web/app_dev.php:30
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 3. Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:193
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 4. Symfony\Component\HttpKernel\HttpKernel->handle() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php:69
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:64
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 6. call_user_func_array:{/home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:144}() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:144
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 7. Sonata\AdminBundle\Controller\CRUDController->aclAction() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:144
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 8. Symfony\Component\Form\Form->createView() /home/aien/Web/MrAlef/MRA/vendor/sonata-project/admin-bundle/Controller/CRUDController.php:910
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 9. Symfony\Component\Form\Form->createView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1062
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 10. Symfony\Component\Form\Form->createView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1062
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 11. Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1059
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 12. Symfony\Component\Form\ResolvedFormType->buildView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:120
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 13. Symfony\Component\Form\Extension\Core\Type\CheckboxType->buildView() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php:209
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 14. array_replace() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php:45
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 15. Symfony\Component\Debug\ErrorHandler::handleFatalError() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:0
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 16. spl_autoload_call() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:642
[05-Jul-2016 15:18:38 Europe/Berlin] PHP 17. Symfony\Component\Debug\DebugClassLoader->loadClass() /home/aien/Web/MrAlef/MRA/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:642
I really hope that memory exhaustion is not the reason
Of course it is lol! What else could it be? Closing.
LOL... I don't want to believe this!! please say something else... why it is so heavy???
128 Mo is indeed quite big. Should we reopen this @sonata-project/contributors ?
You are on a dev env. 128 Mo is a very high limit for this.
An another issue could be opened if this report a real and precise reason of too much memory consumption (e.g. other thing than "I have a 500 on my application).
@Soullivaneuh sure... I'll report it as soon as I can
Environment
env = dev
Sonata packages
Symfony packages
PHP version
Subject
When accessing ACL editor for Admin Class, server returns 500. It seems that the problem is in Memory limit, which is in this situation 128 Mo.
Steps to reproduce
Expected results
Sonata ACL Editor
Actual results
Server Error 500 (Memory exhaustion)