easy-swoole / easyswoole

swoole,easyswoole,swoole framework
https://www.easyswoole.com/
Apache License 2.0
4.74k stars 510 forks source link

重启渲染引擎有异常报错 #342

Closed fuheng1993 closed 8 months ago

fuheng1993 commented 4 years ago

`<?php namespace App\HttpController;

use EasySwoole\Http\AbstractInterface\Controller; use EasySwoole\Template\Render;

class Index extends Controller {

function index()
{
    $this->response()->write(Render::getInstance()->render('index.tpl',[
        'user'=>'easyswoole',
        'time'=>time()
    ]));
}

function reload(){
    Render::getInstance()->restartWorker();
    $this->response()->write(1);
}

}` 访问index/reload 报以下异常 [2020-06-06 16:27:01 $4478.0] WARNING swManager_check_exit_status: worker#7[pid=4490] abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.4.16, please report it. The Swoole developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can read How to report a bug doc before submitting any bug reports:

https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md Please do not send bug reports in the mailing list or personal letters. The issue page is also suitable to submit feature requests.

[2020-06-06 16:27:01][debug][error]:[Argument 1 passed to EasySwoole\Http\Response::write() must be of the type string, null given, called in /www/wwwroot/cxy.qcq.cc/App/HttpController/Index/Base.php on line 201 at file:/www/wwwroot/cxy.qcq.cc/vendor/easyswoole/http/src/Response.php line:76] [2020-06-06 16:27:01 $4478.0] WARNING swManager_check_exit_status: worker#6[pid=4489] abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.4.16, please report it. The Swoole developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can read How to report a bug doc before submitting any bug reports:

https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md Please do not send bug reports in the mailing list or personal letters. The issue page is also suitable to submit feature requests.

[2020-06-06 16:27:01 @6330.0] WARNING swSignalfd_setup: signalfd has been created [2020-06-06 16:27:01 @6331.0] WARNING swSignalfd_setup: signalfd has been created

tccStu commented 2 years ago

解决了吗这个问题

tccStu commented 2 years ago

您的邮件我已经收到!

Player626 commented 2 years ago

解决了吗这个问题

https://github.com/easy-swoole/easyswoole/issues/342#issuecomment-988526423

tccStu commented 8 months ago

您的邮件我已经收到!