amphp / process

An async process dispatcher for Amp.
MIT License
233 stars 30 forks source link

Connection failed: Amp\TimeoutException: Operation timed out in amphp\amp\lib\functions.php:275 #43

Closed gitusersara closed 1 year ago

gitusersara commented 4 years ago

I got this error when trying to login in to Madeline ! how I can fix it?

samyomar commented 4 years ago

Me too ... my function worked normally but at the end of the execution it throws this exception, very weird


PHP Amp\TimeoutException:  Operation timed out in C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\functions.php on line 275
PHP Stack trace:
PHP   1. Amp\Parallel\Worker\TaskWorker::Amp\Parallel\Worker\{closure:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:48-67}() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:0
PHP   2. Amp\Promise\wait() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:61
PHP Amp\Process\ProcessException:  The process was killed in C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\process\lib\Internal\Windows\Runner.php on line 170
PHP Stack trace:
PHP   1. Amp\Parallel\Worker\TaskWorker::Amp\Parallel\Worker\{closure:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:48-67}() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:0
PHP   2. Amp\Parallel\Worker\Internal\WorkerProcess->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:64
PHP   3. Amp\Parallel\Context\Process->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\Internal\WorkerProcess.php:57
PHP   4. Amp\Process\Process->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Context\Process.php:395
PHP   5. Amp\Process\Internal\Windows\Runner->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\process\lib\Process.php:141
PHP   6. Amp\Deferred->fail() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\process\lib\Internal\Windows\Runner.php:170
PHP   7. {anonymous-class:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Deferred.php:22-27}->fail() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Deferred.php:65
PHP   8. {anonymous-class:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Deferred.php:22-27}->resolve() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Internal\Placeholder.php:177
PHP   9. Amp\Failure->onResolve() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Internal\Placeholder.php:143
PHP  10. Amp\Coroutine->Amp\{closure:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Coroutine.php:91-148}() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Failure.php:33
PHP  11. Generator->throw() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Coroutine.php:115
PHP Amp\Process\ProcessException:  The process was killed in C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\process\lib\Internal\Windows\Runner.php on line 170
PHP Stack trace:
PHP   1. Amp\Parallel\Worker\TaskWorker::Amp\Parallel\Worker\{closure:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:48-67}() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:0
PHP   2. Amp\Parallel\Worker\Internal\WorkerProcess->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\TaskWorker.php:64
PHP   3. Amp\Parallel\Context\Process->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Worker\Internal\WorkerProcess.php:57
PHP   4. Amp\Process\Process->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\parallel\lib\Context\Process.php:395
PHP   5. Amp\Process\Internal\Windows\Runner->kill() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\process\lib\Process.php:141
PHP   6. Amp\Deferred->fail() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\process\lib\Internal\Windows\Runner.php:170
PHP   7. {anonymous-class:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Deferred.php:22-27}->fail() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Deferred.php:65
PHP   8. {anonymous-class:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Deferred.php:22-27}->resolve() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Internal\Placeholder.php:177
PHP   9. Amp\Failure->onResolve() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Internal\Placeholder.php:143
PHP  10. Amp\Coroutine->Amp\{closure:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Coroutine.php:91-148}() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Failure.php:33
PHP  11. Amp\Coroutine->fail() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Coroutine.php:137
PHP  12. Amp\Coroutine->resolve() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Internal\Placeholder.php:177
PHP  13. Amp\Failure->onResolve() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Internal\Placeholder.php:143
PHP  14. Amp\Coroutine->Amp\{closure:C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Coroutine.php:91-148}() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Failure.php:33
PHP  15. Generator->throw() C:\Bitnami\wampstack-7.4.6-1\apache2\htdocs\amp-test\vendor\amphp\amp\lib\Coroutine.php:115
kelunik commented 3 years ago

Do you have a simple reproduction script?