scrutinizer-ci / scrutinizer

Legacy repository - archives past feature requests/bug reports
https://scrutinizer-ci.com/docs
140 stars 36 forks source link

Too many open files when called with code-coverage #362

Open rufinus opened 8 years ago

rufinus commented 8 years ago

Is there some way to get around this?

phpdbg -qrr -d zend.enable_gc=0 bin/phpunit -c ./phpunit.xml.dist --coverage-clover=./coverage.clover src/
[PHP Warning:  include(/home/scrutinizer/build/vendor/phpunit/phpunit/src/Util/Filter.php): failed to open stream: Too many open files in /home/scrutinizer/build/vendor/composer/ClassLoader.php on line 412]
[PHP Stack trace:]
[PHP   1. {main}() /home/scrutinizer/build/vendor/phpunit/phpunit/phpunit:0]
[PHP   2. spl_autoload_call() /home/scrutinizer/build/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php:81]
[PHP Fatal error:  Method PHPUnit_Framework_ExceptionWrapper::__toString() must not throw an exception in /home/scrutinizer/build/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php on line 0]
[PHP Stack trace:]
[PHP   1. {main}() /home/scrutinizer/build/vendor/phpunit/phpunit/phpunit:0]

Example ID b5cd7554-526e-4992-93d9-c0ac9679e912

rufinus commented 8 years ago

ping @schmittjoh ?

NicoHaase commented 8 years ago

Any news on this?

schmittjoh commented 8 years ago

Do you have a recent inspection where this is happening?

rufinus commented 8 years ago

@schmittjoh 5c5c7d5c-08ed-426b-b445-8a16bc92b3e6

in the current branches (develop/master) i had to disable code-coverage generation.

schmittjoh commented 8 years ago

Thanks, I've created an internal issue to investigate this.

rufinus commented 8 years ago

@schmittjoh any news on this? 250172a3-41e9-49dc-837e-0b2848223e04

DeepDiver1975 commented 6 years ago

I'm facing the same issue with phpdbg and phpunit. @schmittjoh did you find a solution yet? THX

schmittjoh commented 6 years ago

Could you open a support ticket (bottom right on the website)? That would help in tracking this down quicker.

DeepDiver1975 commented 6 years ago

Could you open a support ticket (bottom right on the website)? That would help in tracking this down quicker.

nevermind - this was on a local run of phpdbg. I could fix it by increasing max number of open files.

helhum commented 6 years ago

For reference: http://blog.servergrove.com/2012/08/17/dealing-with-too-many-open-files-when-running-tests-with-phpunit/