Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
617 stars 93 forks source link

linuxlualsp进程占满CPU #140

Open developerdong opened 1 year ago

developerdong commented 1 year ago

当安装了此插件,然后在vscode中打开lua文件时,系统会卡死,查看后发现linuxlualsp这个进程占满了所有CPU核。

插件版本:v0.2.19 系统信息:Linux debian 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

yinfei8 commented 1 year ago

请问,卡死是长久的现象,还是一小会?

developerdong commented 1 year ago

一直持续占满CPU。

yinfei8 commented 1 year ago

能单独QQ联系下吗? qq:313745207

Lyon1994 commented 1 year ago

何止是cpu占满啊,对于大型的lua项目来说,如果是存储在机械硬盘上,会直接将机械硬盘的读写给占满,整个系统都会卡死,只能重启计算机解决,十分严重的bug了

使用环境:linux 进程名称:linuxlualsp

Dongyang0810 commented 1 year ago

对windows系统来说,打开多个检查规则刚开始的cpu占有率也很高, 而且内存一直是7g左右

lazebird commented 1 year ago

linux下也遇到同样问题,初步看问题的在于将文件软链接当目录进行了查找,失败后异常处理可能不够合理导致内存消耗 其他内存管理方面和异常处理方面可能也需要完善下

lazebird commented 1 year ago

Error 2023/08/22 14:17:11.311934 dir_manager.go:263: ReadDir pathname=u-boot/tools/microcode-tool/: not a directory

Mirac-Le commented 8 months ago

MacOS遇到同样情况。设备:ARM M3 pro mbp.