trazyn / weweChat

💬 Unofficial WeChat client built with React, MobX and Electron.
MIT License
5.75k stars 732 forks source link

启动及登陆相关问题 #15

Closed flyfei closed 7 years ago

flyfei commented 7 years ago

你好,在dev环境下,发现下列问题: 情况一: 控制台打印 webpack: Compiled successfully.后,一段时间后,客户端界面什么也没有 情况二:控制台打印 (node:40092) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: 36:64: execution error: “System Events”遇到一个错误:不能获得“login item "wewechat"”。 (-1728) [1] [1] (node:40092) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [1] (node:40092) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: 36:64: execution error: “System Events”遇到一个错误:不能获得“login item "wewechat"”。 (-1728) 扫描成功后,一直在转圈圈

trazyn commented 7 years ago

第一个是的main process抛出的 第二个一直转圈这个render process,无关联,一直转圈这个可能是初始化的请求调用失败造成的,目前没有做错误检查,出现这种情况建议看看devtools里面的服务调用,后续会加上相关错误提示

flyfei commented 7 years ago

2017-08-27 23:47:59.418 Electron[40404:1077110] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem [1] 2017-08-27 23:48:21.101 Electron[40404:1077110] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem [1] 2017-08-27 23:48:23.601 Electron[40404:1077110] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : NO NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem

出现这个错误的时候,也是一直转圈圈

trazyn commented 7 years ago

启动时候 批量获取会话失败后,去掉 throw 不抛出异常,避免无限loading

aarhub commented 7 years ago

遇到同样的问题,Compiled successfully.后,客户端界面什么也没有; devTool中请求都是404,

trazyn commented 7 years ago

@fachilles 有时候可能需要手动刷一下