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

windows 11 中, 在命令行无法构建项目, 会卡住. #16987

Open
finscn opened this issue May 13, 2024 · 1 comment
Open

windows 11 中, 在命令行无法构建项目, 会卡住. #16987

finscn opened this issue May 13, 2024 · 1 comment
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@finscn
Copy link
Contributor

finscn commented May 13, 2024

Cocos Creator version

3.8.2

System information

window 11

Issue description

构建过程进行到

- log: [build-script]enter sub process 35512, C:\ProgramData\cocos\editors\Creator\3.8.2\CocosCreator.exe,C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\builder\static\sub-process-index

时 卡住, 无报错 无任何反馈, 命令行终端就停在那里. 等几十分钟也不行.
反复重试 重启均无果.

同样的构建配置, 同样的命令和参数, 在 macOS 下可正常编译. 基本上可排除构建配置文件 以及 参数错误.

操作系统: windows 11
git bash 版本为 官网下载的 最新版本 https://www.git-scm.com/download/win (2.45) windows 64位安装版.

Relevant error log output

No response

Steps to reproduce

如上所述.

Minimal reproduction project

No response

@finscn finscn added Bug Needs Triage Needs to be assigned by the team labels May 13, 2024
@finscn finscn changed the title windows 11 中, 在git bash下命令行无法构建项目, 会卡住. windows 11 中, 在命令行无法构建项目, 会卡住. May 13, 2024
@finscn
Copy link
Contributor Author

finscn commented May 13, 2024

补充:

在 windows 自带的 命令行中, 直接运行 CocosCreator + 参数 可以正常构建.
但是 如果 通过 node 的 'child_process.spwan("CocosCreator", [参数])` 的方式运行, 也会出现同样的问题.

怀疑是 CocosCreator 在windows下执行子进程的方式 有一些缺陷, 导致进程嵌套 (在另一个子进程中编译cocos项目) 时会出错.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

2 participants