Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调用 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",2000)出现卡死 #139

Open
qilishidai opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@qilishidai
Copy link

使用opdll调用系统命令时,调用 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",2000)会让程序完全卡死,
如果等待时间设置得很小则没有问题 op.GetCmdStr("D:/Games/leidian/LDPlayer9/ldconsole.exe list2",5)

使用正常情况命令会输出如下内容
0,雷电模拟器,0,0,0,-1,-1,800,600,160
1,雷电模拟器-1,0,0,0,-1,-1,800,600,160

使用py自带的调用也没有问题,唯独opdll会卡死
''' python
import subprocess

command = r"D:\Games\leidian\LDPlayer9\ldconsole.exe list2"
result = subprocess.run(command, shell=True, capture_output=True, text=True)
print(result.stdout)

‘’‘

@WallBreaker2 WallBreaker2 added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants