kooritea / electronic-wechat

:speech_balloon: A better WeChat on macOS and Linux. Built with Electron by Zhongyi Tong.
MIT License
566 stars 70 forks source link

信息无法发出,老是在那里转 #78

Open shfuzjh opened 5 years ago

shfuzjh commented 5 years ago

文字信息,点击发送后,一直在那里转,不知道咋回事

shfuzjh commented 5 years ago

接收信息正常

shfuzjh commented 5 years ago

重启一下,又回复正常了,有时候,在系统进入屏保或者待机,恢复后,又会出现这种情况,我好像是从2.1.4开始用的,到现在,一直有。

shfuzjh commented 5 years ago

出现过这样的情况的系统有,openSUSE,kdeneon,manjaro-kde和manjaro-gnome,我现在在用manjaro-gnome

kooritea commented 5 years ago

把控制台的信息贴给我看一下

shfuzjh commented 5 years ago

什么控制台?我比较小白一点。

kooritea commented 5 years ago

在出现发送文字转圈的时候 按ctrl + alt +i 然后选择上面的 console

shfuzjh commented 5 years ago

好的,我记下了,我遇到的时候,就这么处理。一般,机器新启动,第一次都是这样,退出重新进,又好了

shfuzjh commented 5 years ago

Uncaught Error: Error parsing your configuration file: [/home/shfuzjh/.ew.json]: Unexpected end of JSON input at exports.File.File.loadSync (/opt/wechat/resources/app.asar/node_modules/nconf/lib/nconf/stores/file.js:170) at loadStoreSync (/opt/wechat/resources/app.asar/node_modules/nconf/lib/nconf/provider.js:443) at Array.map () at loadBatch (/opt/wechat/resources/app.asar/node_modules/nconf/lib/nconf/provider.js:458) at exports.Provider.Provider.load (/opt/wechat/resources/app.asar/node_modules/nconf/lib/nconf/provider.js:505) at Object.readSettings (/opt/wechat/resources/app.asar/src/configuration.js:17) at initModules (/opt/wechat/resources/app.asar/src/inject/preload.js:91) at window.onload (/opt/wechat/resources/app.asar/src/inject/preload.js:107) 10Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure image ''. This content should also be served over HTTPS. eb866d304286de92f07b_2.js:2 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD index_ad43596.js:2 Uncaught TypeError: Cannot read property 'saveHistory' of undefined at /opt/wechat/resources/app.asar/src/inject/preload.js:70 at c.$broadcast (vendor_0b8a6dd.js:11) at Object.addChatMessage (index_ad43596.js:4) at Object.messageProcess (index_ad43596.js:4) at Object.appendMessage (index_ad43596.js:3) at e.$$childScopeClass.$$childScopeClass.e.send (index_ad43596.js:2) at vendor_0b8a6dd.js:12 at i (vendor_0b8a6dd.js:13) at e.$$childScopeClass.$$childScopeClass.$eval (vendor_0b8a6dd.js:11) at e.$$childScopeClass.$$childScopeClass.$apply (vendor_0b8a6dd.js:11) index_ad43596.js:2 Uncaught TypeError: Cannot read property 'saveHistory' of undefined at /opt/wechat/resources/app.asar/src/inject/preload.js:73 at c.$broadcast (vendor_0b8a6dd.js:11) at index_ad43596.js:3 at o (index_ad43596.js:6) at r (index_ad43596.js:6) at vendor_0b8a6dd.js:11 at c (vendor_0b8a6dd.js:11) at c (vendor_0b8a6dd.js:11) at vendor_0b8a6dd.js:11 at c.$eval (vendor_0b8a6dd.js:11) 2index_ad43596.js:2 Uncaught TypeError: Cannot read property 'saveHistory' of undefined at /opt/wechat/resources/app.asar/src/inject/preload.js:70 at c.$broadcast (vendor_0b8a6dd.js:11) at Object.addChatMessage (index_ad43596.js:4) at Object.messageProcess (index_ad43596.js:4) at Object.appendMessage (index_ad43596.js:3) at c.a.sendTextMessage (index_ad43596.js:3) at c.a.editAreaKeydown (index_ad43596.js:3) at vendor_0b8a6dd.js:12 at vendor_0b8a6dd.js:12 at i (vendor_0b8a6dd.js:13)

shfuzjh commented 5 years ago

今天首次登录,准时出现 接收消息没问题

shfuzjh commented 5 years ago

一张图片倒是发出去了,就文字在转圈。

kooritea commented 5 years ago

看起来是配置文件格式化的时候出现了问题,可以贴一下 ~/.ew.json这个配置的文件的内容吗

shfuzjh commented 5 years ago

{ "language": "zh-CN", "prevent-recall": "on", "icon": "black", "multi-instance": "on", "click-notification": "on", "frame": "off", "close": "on", "update": "on", "width": 800, "height": 600, "proxy": "on", "proxy-url": "socks5://127.0.0.1:1080", "chat-area-offset-y": 0, "blur": "off", "hide-notification-body": "off", "tray-color": "white", "css": "on", "css-content": "", "zoom": 1, "history": "on", "select-notification-body": "off", "select-notification-body-ex": []

kooritea commented 5 years ago

少了一个右大括号 } ,手动加上看看还有没有问题?

可能是配置文件读取错误导致保留历史记录模块注入失败导致的

shfuzjh commented 5 years ago

有的,在最下面,没黏贴上

kooritea commented 5 years ago

emmm 我使用了你的配置试了一下没有上面的问题也没有输出错误

shfuzjh commented 5 years ago

我也不知道咋回事,我开机,第一次就这样,退出再进去,就没事了。

shfuzjh commented 5 years ago

那可能是系统问题吧 刚开机的时候,是不是有啥玩意没加载好

kooritea commented 5 years ago

开不管多久之后打开都会吗

shfuzjh commented 5 years ago

这个倒是没试过。

zhangjiaxing commented 5 years ago

遇到了同样的问题, archlinux, 这几天一直出现

huadong commented 5 years ago

经常这样,解决办法就是:退出、登录、退出、登录。。。反复尝试,直到能把消息发出去。

kooritea commented 5 years ago

我这里每天使用12小时+也没有遇到这个情况, 最好是遇到这个情况的时候用ctrl+shift+i打开开发者工具然后把控制台的输出贴出来看一下。。。

最坏的情况是被tx盯上或者wx压力测试

huadong commented 5 years ago

消息无法发送时: image

对应代码: image

kooritea commented 5 years ago

原来是储存消息的indexeddb初始化失败了

估计是消息太多初始化太慢了。。 登录之后多等一会再发消息,试一下?