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

终端连接失效 再连接会弹出“ error Cannot set properties of undefined (setting 'onclose')” #3339

Closed
xiediedie opened this issue Apr 3, 2024 · 21 comments
Labels

Comments

@xiediedie
Copy link

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.38.43-win-x64

Platform detail (平台详情)

windows10

What steps will reproduce the bug?(重新问题的详细步骤)

连接centos,vim修改文件,按了ctrl+s 就卡死在那里,然后强制关闭后再开窗口,过一会在右下角弹出“error Cannot set properties of undefined (setting 'onclose')”

What should have happened?(期望的结果)

能够正常使用

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

@darkknightxb
Copy link

确实,从1.38.41版本开始就有这个问题,目前能正常使用的最新版本是1.38.30

@zxdong262 zxdong262 added the bug label Apr 4, 2024
@xiediedie
Copy link
Author

我用回旧版本就没问题了

@zxdong262
Copy link
Member

可以试试最新版吗 1.38.50

@LLIUZC
Copy link

LLIUZC commented Apr 5, 2024

更新了vite版本好像还是不行,基本上只要关闭了会话就会直接报错,然后无法再进行输入指令

@xiediedie
Copy link
Author

可以试试最新版吗 1.38.50

不行,1.38.50版本刚打开就冒出失败,不知道哪里有electerm-1.38.43-win-x64版本使用的缓存数据,导致刚打开就冒出“error Cannot set properties of undefined (setting 'onclose')”
image

@zxdong262
Copy link
Member

可以删除 C:\Users\your-user-name\AppData\Roaming\electerm 里面除了users以外的文件和文件夹试试吗

@xiediedie
Copy link
Author

可以删除 C:\Users\your-user-name\AppData\Roaming\electerm 里面除了users以外的文件和文件夹试试吗

老样子,删完能用,一按ctrl+s就用不了了,重新删了那些缓存才用的了
image

@LLIUZC
Copy link

LLIUZC commented Apr 7, 2024 via email

@zxdong262
Copy link
Member

可以试试1.38.60吗,应该修复了

@LLIUZC
Copy link

LLIUZC commented Apr 8, 2024

1712537993510
我试了安装了应用程序还有dev启动还是会出现这个问题,dev启动的时候我切换了不同的node版本(18.13.0、18.15.0、18.16.1),但是报错仍然是v18.16.1

@xiediedie
Copy link
Author

可以试试1.38.60吗,应该修复了

试了1.38.60版本,ok了

@LLIUZC
Copy link

LLIUZC commented Apr 8, 2024

那可能是我这边环境问题了

@darkknightxb
Copy link

我换了新版仍然是有这个问题,在切换标签的时候,发现有这个图标在闪,一会就消失了,感觉像是连接断开了?但我用的是本地命令行啊。
基本上是有三种问题,第一种是长时间运行的任务会自动停止,第二种是光标处无法输入新的内容,第三种是新的Tab页打开后无法连接。
删掉用户目录下的electerm文件夹仍然无效。
image

@huu3301
Copy link

huu3301 commented Apr 15, 2024

用的最新版本v1.38.65,也是出现同样的问题。连接到centos,啥都没做,只是cd 到某个目录,等一会就出现连接断开,之后怎么都连接不上,关闭整个electerm后再打开可以连接,但是cd后又会出现同样的问题。

@zxdong262
Copy link
Member

zxdong262 commented Apr 21, 2024

用的最新版本v1.38.65,也是出现同样的问题。连接到centos,啥都没做,只是cd 到某个目录,等一会就出现连接断开,之后怎么都连接不上,关闭整个electerm后再打开可以连接,但是cd后又会出现同样的问题。

可以设置里试试保活间隔设为0试试吗

@zxdong262
Copy link
Member

可以试试最新版吗

@darkknightxb
Copy link

试了最新的portable版本,还是一样的,开始好用,过段时间就不好用了。敲击键盘没反应,按回车会出现这样的绿色符号。
image

zxdong262 added a commit that referenced this issue May 2, 2024
@zxdong262
Copy link
Member

zxdong262 commented May 2, 2024

@zxdong262
Copy link
Member

@LLIUZC
Copy link

LLIUZC commented May 6, 2024

是的能正常关闭本地会话了

可以试试 https://github.com/electerm/electerm/releases/tag/v1.38.86

@darkknightxb
Copy link

可以试试 https://github.com/electerm/electerm/releases/tag/v1.38.86

用了一天,目前没发现问题

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

No branches or pull requests

5 participants