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

使用#scanp扫描插件后线程会越来越多 #2543

Open
2 tasks done
Flatfish99 opened this issue Mar 3, 2025 · 3 comments
Open
2 tasks done

使用#scanp扫描插件后线程会越来越多 #2543

Flatfish99 opened this issue Mar 3, 2025 · 3 comments

Comments

@Flatfish99
Copy link

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.10

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

No response

问题描述 😯

No response

终端日志 📒

<此处粘贴终端日志>
@Flatfish99
Copy link
Author

每次#scanp后子线程不会销毁,后台线程越来越多,后台可以看到同一插件的多次触发信息

@6vision
Copy link
Collaborator

6vision commented Mar 10, 2025

可以提供log日志或者具体信息看看

@pigracing
Copy link

同样的问题,具体表现是例如正常一个插件,一条对话只会被插件捕获一次,但是每一次scanp,或者每一次reloadp的时候,重新创建多一个插件的实例,同时旧的没有清除,导致了每一次上面的操作,就会让一条对话被插件捕获多一次,看了源码,感觉应该是在plugin_manage.py里面的activate_plugins的处理逻辑的问题导致的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants