Tencent / GameAISDK

基于图像的游戏AI自动化框架
Other
2.13k stars 449 forks source link

调试GameReg过程中显示TBus Send To GameReg Addr return code[-3] #7

Open qwertymj opened 4 years ago

qwertymj commented 4 years ago

感谢开源~ 使用过程中我照着https://github.com/Tencent/GameAISDK/blob/master/doc/SDKTool/TaskConf.md 第五小节配置了手机调试相关参数(SDKTool.ini里),调试过程中在收到第一帧图像后就再也无法收到手机传来的图片,求问是什么原因?

以下为调试过程中SDKTool的log

2020-08-28 15:52:03,658][F:/GameAISDK/GameAISDK/tools/SDKTool/main.py:1232][WARNING] : parent of currentItem is None
[2020-08-28 15:52:03,680][F:/GameAISDK/GameAISDK/tools/SDKTool/main.py:1164][WARNING] : CurrentItemChange failed, currentItem is None
[INFO   ] AgentMsgMgr:Initialize:91 - gamereg addr is 16908545, self addr is 17105153
[2020-08-28 15:52:11,583][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:91][INFO] : gamereg addr is 16908545, self addr is 17105153
2020-08-28 15:52:11.1730|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\main.cpp|ParseArg:65|INFO|Run SDKTool Test Model
2020-08-28 15:52:11.1970|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\gameregframework.cpp|CGameRegFrameWork::RunForSDKTool:258|INFO|recv image from sdktool width 2160, height 1080
2020-08-28 15:52:11.1970|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\gameregframework.cpp|CGameRegFrameWork::RunForSDKTool:258|INFO|recv image from sdktool width 0, height 0
2020-08-28 15:52:11.2470|f:\gameaisdk\gameaisdk\src\imgproc\gamerecognize\src\gameregframework.cpp|CGameRegFrameWork::RunForSDKTool:258|INFO|recv image from sdktool width 0, height 0
[2020-08-28 15:52:13,996][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:259][ERROR] : TBus Send To  GameReg Addr return code[-3]
[2020-08-28 15:52:13,997][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\GameRegDebug.py:49][ERROR] : send frame failed
[2020-08-28 15:52:13,998][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[2020-08-28 15:52:13,998][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[ERROR  ] AgentMsgMgr:_Send:259 - TBus Send To  GameReg Addr return code[-3]
[ERROR  ] AgentMsgMgr:_Send:259 - TBus Send To  GameReg Addr return code[-3]
[2020-08-28 15:52:14,027][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:259][ERROR] : TBus Send To  GameReg Addr return code[-3]
[2020-08-28 15:52:14,029][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\GameRegDebug.py:49][ERROR] : send frame failed
[2020-08-28 15:52:14,029][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[2020-08-28 15:52:14,029][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\Debug\AbstractDebug.py:163][DEBUG] : frame is None
[2020-08-28 15:52:14,046][F:\GameAISDK\GameAISDK\tools\SDKTool\libs\AgentAPI\AgentMsgMgr.py:259][ERROR] : TBus Send To  GameReg Addr return code[-3]

SDKTool界面也只显示了第一帧图像后就再也不动了

image

qwertymj commented 4 years ago

另外,https://github.com/Tencent/GameAISDK/blob/master/doc/SDKTool/TaskConf.md 第六小节中说的

4、使用GameReg调试时,注意SDKTools的bus.ini与GameReg的bus.ini通信端口一致

GameReg的bus.ini具体是指哪个目录下的文件?

dijinzhou commented 4 years ago

GameReg的bus.ini用的是cfg\platform下面的配置文件。

dijinzhou commented 4 years ago

TBus Send To GameReg Addr return code[-3],检查下bus通道的相关配置项是否按文档要求设置

LincolnLian commented 3 years ago

TBus Send To GameReg Addr return code[-3],检查下bus通道的相关配置项是否按文档要求设置

请问这里bus通道配置是根据哪个文档来的,好像没有在doc中找到,我debug->start后也是出现了这个错误码,一直处于runing debug gameReg module的状态

elric00 commented 3 months ago

TBus Send To GameReg Addr return code[-3],检查下bus通道的相关配置项是否按文档要求设置

请问这个tbus是在什么时候安装的?我现在到运行sdktool启动时,tbus并没有被发现 微信图片_20240815091450