Giter Site home page Giter Site logo

Comments (7)

yimelia avatar yimelia commented on May 22, 2024

看一下和IDE一起启动的那个黑色命令行窗口里面报的错是什么,截个图看看?

from poco-sdk.

brighthead avatar brighthead commented on May 22, 2024

initializing Cocos-js poco.
connecting server..
on error url is invalid
[rpc]closed
[rpc]waiting for connection...0
on close
[rpc]closed
Traceback (most recent call last):
File "app\plugins\poco\poco_probe.py", line 209, in initPoco
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 30, in wait_connected
return self.connect()
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 23, in connect
self._wait_connected(timeout)
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 40, in _wait_connected
raise RpcConnectionError("Rpc Connection Closed")
poco.utils.simplerpc.simplerpc.RpcConnectionError: Rpc Connection Closed

命令行窗口 报错

from poco-sdk.

brighthead avatar brighthead commented on May 22, 2024

Traceback (most recent call last):
File "app\plugins\poco\poco_probe.py", line 209, in initPoco
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 30, in wait_connected
return self.connect()
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 23, in connect
self._wait_connected(timeout)
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 40, in _wait_connected
raise RpcConnectionError("Rpc Connection Closed")
poco.utils.simplerpc.simplerpc.RpcConnectionError: Rpc Connection Closed
[03:26:12][DEBUG]<airtest.core.android.adb> D:\AirtestIDE_2019-09-10_py3_win64\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s K3V7N19131000043 forward tcp:5003 tcp:5003
[03:26:12][DEBUG]<airtest.core.android.adb> D:\AirtestIDE_2019-09-10_py3_win64\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s K3V7N19131000043 forward --no-rebind tcp:13649 tcp:5003
initializing Cocos-js poco.
connecting server..
[rpc]waiting for connection...0
on error [WinError 10054] 远程主机强迫关闭了一个现有的连接。
[rpc]closed

from poco-sdk.

brighthead avatar brighthead commented on May 22, 2024

initializing Cocos-js poco.
connecting server..
on error url is invalid
[rpc]waiting for connection...0
[rpc]closed
on close
[rpc]closed
Traceback (most recent call last):
File "app\plugins\poco\poco_probe.py", line 209, in initPoco
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 30, in wait_connected
return self.connect()
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 23, in connect
self._wait_connected(timeout)
File "D:\AirtestIDE_2019-09-10_py3_win64\poco\utils\simplerpc\rpcclient.py", line 40, in _wait_connected
raise RpcConnectionError("Rpc Connection Closed")
poco.utils.simplerpc.simplerpc.RpcConnectionError: Rpc Connection Closed
[03:44:14][DEBUG]<airtest.core.android.adb> D:\AirtestIDE_2019-09-10_py3_win64\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s K3V7N19131000043 forward tcp:5037 tcp:5003
Traceback (most recent call last):
File "app\plugins\poco\poco_probe.py", line 195, in initPoco
File "airtest\core\android\adb.py", line 459, in forward
self.cmd(cmds + [local, remote])
File "airtest\core\android\adb.py", line 187, in cmd
raise AdbError(stdout, stderr)
airtest.core.error.AdbError: stdout[] stderr[error: internal error

from poco-sdk.

yimelia avatar yimelia commented on May 22, 2024

connecting server..
on error url is invalid
这个log是你们游戏打出来的么?

from poco-sdk.

brighthead avatar brighthead commented on May 22, 2024

airtest命令行窗口打印出来的,是我在用airtest跑我们游戏时候,打开 pocojs 时候 airtest的命令行窗口打印出来的

因为我们游戏 的引擎用的是3.10的,所以

WebSocketServer::WebSocketServer()
: _readyState(State::STARTING)
, _port(80)
, _wsHelper(nullptr)
, _wsContext(nullptr)
, _isDestroyed(std::make_shared<std::atomic>(false))
, _delegate(nullptr)
, _SSLConnection(0)
, _wsProtocols(nullptr)
{
// reserve data buffer to avoid allocate memory frequently
_receivedData.reserve(WS_RESERVE_RECEIVE_BUFFER_SIZE);

// std::shared_ptr<std::atomic<bool>> isDestroyed = _isDestroyed;
// _resetDirectorListener = Director::getInstance()->getEventDispatcher()->addCustomEventListener(Director::EVENT_RESET, [this, isDestroyed](EventCustom*){
//     if (*isDestroyed)
//         return;
//     stop();
// });

}

websocketserver 这里 ,有部分代码被我注了,是这个原因吗?

from poco-sdk.

brighthead avatar brighthead commented on May 22, 2024

是我3.10无法支持你们js版本提供的sdk,我关掉这个issue了

from poco-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.