mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[GH-ISSUE #1220] 安装了桌面版的comfyui点开软件启动需要2-3分钟才能进入,重装系统重新安装也是老样子,以下是启动日志和截图,请问如何解决? #342
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#342
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kenny00968 on GitHub (Jul 11, 2025).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/1220
┆Issue is synchronized with this Notion page by Unito
@dosubot[bot] commented on GitHub (Jul 11, 2025):
Hi @kenny00968! I'm Dosu and I’m helping the desktop team.
你的启动日志显示 ComfyUI 桌面端启动缓慢,主要可能由以下几个方面导致:
自定义节点过多或有冲突:日志显示加载了大量 custom_nodes,部分节点(如 comfyui-easy-use、was-ns)加载耗时较长。社区反馈自定义节点冲突或异常会显著拖慢启动,建议尝试临时禁用所有 custom_nodes,确认是否启动变快。如果变快,再逐步排查是哪个节点导致卡顿。相关讨论
依赖或虚拟环境异常:日志有
Failed to restore comfyui-frontend-package和Failed to initialize database报错,说明依赖或数据库初始化有问题。可以尝试删除 ComfyUI 安装目录下的.venv文件夹,然后重启桌面端让其自动重建虚拟环境并重新安装依赖。相关建议配置文件损坏或路径错误:部分社区案例显示 config.json、extra_model_config.yaml 配置损坏或路径异常也会导致启动慢或卡死。可尝试备份并删除这些配置文件,重启桌面端让其自动生成新配置。相关案例
数据库初始化失败:日志中的 sqlite3 报错目前不会阻断启动,但未来可能影响功能和性能。确保没有权限或磁盘占用问题,必要时清理 user 目录下的数据库相关文件。
依赖缺失警告:如 xformers、onnxruntime 缺失会导致部分节点降级为 CPU 推理,虽然不直接影响启动速度,但建议补全依赖以避免后续推理慢。
外部环境影响:杀毒软件、磁盘IO慢、网络不畅也可能拖慢启动,建议排查是否有安全软件拦截、磁盘空间不足或网络异常。
如果上述方法无效,建议升级到最新版 ComfyUI 桌面端和依赖,近期有多次依赖和虚拟环境相关的更新,可能已修复部分启动慢的问题。依赖更新PR
如需进一步定位,可逐步排查 custom_nodes、依赖、配置文件,或提供更详细的日志。
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
@webfiltered commented on GitHub (Jul 11, 2025):
Hi there, the logs you've posted start after the screenshot you're showing. Please upload main.log:
https://docs.comfy.org/installation/desktop/windows#feedback-installation-failure
@kenny00968 commented on GitHub (Aug 3, 2025):
comfyui.log_2025-08-01T16-03-51-986Z.log @webfiltered
@webfiltered commented on GitHub (Oct 4, 2025):
Sincere apologies, it appears notifications & bot both acted a little strangely, here. That log shows ComfyUI taking ~25sec to start up, but also contains no custom nodes. It is very likely that you were experiencing was caused by the extensions/custom nodes. For this kind of issue, it helps to disable them to determine which is acting up (you can temporarily move them from the custom_nodes dir).
@dosubot[bot] commented on GitHub (Jan 3, 2026):
Hi, @kenny00968. I'm Dosu, and I'm helping the desktop team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thanks for your understanding and contribution!