Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

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

Open
shfuzjh opened this issue Dec 6, 2018 · 24 comments
Open

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

shfuzjh opened this issue Dec 6, 2018 · 24 comments

Comments

@shfuzjh
Copy link

shfuzjh commented Dec 6, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 6, 2018

接收信息正常

@shfuzjh
Copy link
Author

shfuzjh commented Dec 6, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 6, 2018

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

@kooritea
Copy link
Owner

kooritea commented Dec 6, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 6, 2018

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

@kooritea
Copy link
Owner

kooritea commented Dec 6, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 10, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 11, 2018

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
Copy link
Author

shfuzjh commented Dec 11, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 11, 2018

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

@kooritea
Copy link
Owner

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 12, 2018

{
"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
Copy link
Owner

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

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 12, 2018

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

@kooritea
Copy link
Owner

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 12, 2018

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 12, 2018

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

@kooritea
Copy link
Owner

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

@shfuzjh
Copy link
Author

shfuzjh commented Dec 13, 2018

这个倒是没试过。

@zhangjiaxing
Copy link

zhangjiaxing commented Jan 9, 2019

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

@huadong
Copy link

huadong commented Jan 23, 2019

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

@kooritea
Copy link
Owner

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

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

@huadong
Copy link

huadong commented Jan 25, 2019

消息无法发送时:
image

对应代码:
image

@kooritea
Copy link
Owner

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

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

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

No branches or pull requests

4 participants