geeeeeeeeek / electronic-wechat

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

Exiting app will cause "Uncaught Exception" #378

Open tianshuo opened 7 years ago

tianshuo commented 7 years ago

Description

在mac下,当程序在扫二维码状态(长期停留),按ctrl-q会试图退出报错,并且不退出。通过Electronic Wechat菜单=>Quit(ctrl-q),出现一样的错误。

Specifications

A JavaScript error occurred in the main process

Uncaught Exception:
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: undefined.
    at callIntoRenderer (/Applications/Electronic WeChat.app/Contents/Resources/electron.asar/browser/rpc-server.js:189:19)
    at MenuItem.click (/Applications/Electronic WeChat.app/Contents/Resources/electron.asar/browser/api/menu-item.js:59:9)
    at Function.executeCommand (/Applications/Electronic WeChat.app/Contents/Resources/electron.asar/browser/api/menu.js:121:15)
tianshuo commented 7 years ago

Could this possibly be related to this? https://github.com/electron/electron/issues/5908

Kulbear commented 7 years ago

Will check later

Kulbear commented 7 years ago

https://github.com/electron/electron/issues/3778