SwitchHosts A JavaScript error occurred in the main process

l7wslrjt  于 4个月前  发布在  Java
关注(0)|答案(4)|浏览(145)

System (Mac, Windows 7/8/10, Linux) / 操作系统

macOS Catalina
version:10.15.6

SwitchHosts! Version / SwitchHosts! 版本

我尝试了2个不同版本,均出现问题
3.5.4.5517
3.5.3.5514

Description / 描述

Uncaught Exception:
Error: callback can only be called for once
    at Object.module.<computed> [as getAllDisplays] (electron/js2c/browser_init.js:6737:30)
    at ensureWindowVisibleOnSomeDisplay (/Applications/SwitchHosts!.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:58:28)
    at validateState (/Applications/SwitchHosts!.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:77:7)
    at module.exports (/Applications/SwitchHosts!.app/Contents/Resources/app.asar/node_modules/electron-window-state/index.js:165:3)
    at createWindow (/Applications/SwitchHosts!.app/Contents/Resources/app.asar/main.js:43:25)
    at App.<anonymous> (/Applications/SwitchHosts!.app/Contents/Resources/app.asar/main.js:194:5)
    at App.emit (events.js:203:13)

How to reproduce / 重现步骤

安装首次启动,正常使用,电脑重启后,再次启动,启动失败,弹窗报错,报错内容如 描述
后续无法正常启动,重启也无济于事

w9apscun

w9apscun1#

+1
看起来和多屏幕相关

2ekbmq32

2ekbmq322#

+1
多屏幕相关,关掉多屏幕就好了

j2cgzkjk

j2cgzkjk3#

@joostshao @programluo 是指多显示器吗?

2exbekwf

2exbekwf4#

@joostshao @programluo 是指多显示器吗?

是的,笔记本外接了个显示器就打不开报这个错误,把外接显示器拔掉就可以打开了。

相关问题