Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows系统打开后白屏 / White screen in Windows #887

Open
qishibo opened this issue Jun 29, 2022 · 24 comments
Open

Windows系统打开后白屏 / White screen in Windows #887

qishibo opened this issue Jun 29, 2022 · 24 comments
Labels
Readme this is a readme

Comments

@qishibo
Copy link
Owner

qishibo commented Jun 29, 2022

某些情况下,带独立显卡的Windows打开后会直接白屏/黑屏,需手动禁用GPU。如图在快捷方式上右键,追加 --disable-gpu参数即可。另外建议Windows非管理员下安装,否则更新时可能会出现旧版本被删除而新版本无法安装的问题

In some cases, Windows with independent GPU will got white/blank screen, the solution is disable GPU. Right click the link icon and append --disable-gpu param. It is recommended that install Another by no-admin permission, or there will be some issues when update version.

image

image

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

按截图中添加后依旧无法启动
image
image
不知道什么原因这个9988端口没有启动成功
安装环境:win10

@qishibo
Copy link
Owner Author

qishibo commented Oct 5, 2022

@zhousibo
你是浏览器打开的吧,,只能用electron打开。还有你是exe安装还是打算启动开发环境,开发环境的话需要保证第一步到100%才能继续使用electron打开

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 这个不是浏览器打开的,是app。安装的是exe。
image
image

@qishibo
Copy link
Owner Author

qishibo commented Oct 5, 2022

最新版本么?打开App后,你使用浏览器访问localhost:9988有反应么

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 版本是1.5.8.exe, 打开这个软件后,浏览器也无法访问这个地址。我查看我电脑启动的端口,没有这个端口,应该是应用在我电脑上没启动成功。这个软件启动有什么特殊配置要求吗?

@qishibo
Copy link
Owner Author

qishibo commented Oct 5, 2022

那就怪了,是仅为自己安装还是全局,重启有效么

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 仅为自己和全局都安装过,1.5.7的版本也安装过,都重启过。没有一次成功的。我怀疑是我电脑什么设置导致的,但是找不到是什么原因

@qishibo
Copy link
Owner Author

qishibo commented Oct 5, 2022

不对不对…我忽略了一个问题,exe安装的是从本地文件启动的…不会启动端口的啊!

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 那我打开这个软件的控制台怎么会去访问9988这个端口呢?

@qishibo
Copy link
Owner Author

qishibo commented Oct 5, 2022

所以有点怪,你本地有node环境么,手动设置过NODE_ENV环境变量么.
重新手动打了个包,强制使用本地文件的,试试有问题么: https://pan.baidu.com/s/1NSlpq04x0IwwhrmzFt1SJg?pwd=a4bz

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 这个可以了,非常感谢!我之前下载的版本,在电脑上无法使用,可能是什么原因呢?
image

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 我看了下我本地的NODE_ENV是dev 。是不是这个影响的。以前好像起一个前端项目改成dev的

@zhousibo
Copy link

zhousibo commented Oct 5, 2022

@qishibo 已验证,是那个变量的原因,我把那个变量删除了,之前下载下来的版本可以打开了!太感谢了,感谢!!!

@qishibo
Copy link
Owner Author

qishibo commented Oct 5, 2022

而且你设置的是全局变量吧,因为程序里判断是否是开发环境也是依据这个变量😂

不过刚好测出了这个隐藏的bug

@qishibo
Copy link
Owner Author

qishibo commented Oct 6, 2022

@zhousibo f64a43e 修好了,本地变量不会对App有影响了

@yangdi99
Copy link

yangdi99 commented Oct 9, 2022

@qishibo Windows系统下打开后白屏,控制台报No resource with given URL found,找不到LoadURL是什么原因呢

@qishibo
Copy link
Owner Author

qishibo commented Oct 9, 2022

@qishibo Windows系统下打开后白屏,控制台报No resource with given URL found,找不到LoadURL是什么原因呢

什么版本,新安装的么

@yangdi99
Copy link

yangdi99 commented Oct 9, 2022

@qishibo 1.5.8版本的
image
image

@qishibo
Copy link
Owner Author

qishibo commented Oct 9, 2022

最新的1.5.9修了个类似的问题,release页下载装一下试试

@yangdi99
Copy link

@qishibo 1.5.9还是无法解决我的问题😔

@qishibo
Copy link
Owner Author

qishibo commented Oct 11, 2022

@yangdi99 你黑色的日志是启动日志么,看着像是开发环境下启动的吧

@KnightBlood
Copy link

image

最新版本manajro打开也白屏

@PandaJu
Copy link

PandaJu commented Jun 21, 2024

只打开一个是正常的,但是如果打开第二个就一定是白屏

版本:1.6.6
系统:Windows

image

@qishibo
Copy link
Owner Author

qishibo commented Jun 21, 2024

只打开一个是正常的,但是如果打开第二个就一定是白屏

版本:1.6.6

系统:Windows

已知问题,Electron应用不支持多开的,因为localstorage只能一个窗口读取,所以第二个没有链接,准确来说是读不到配置,不是白屏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Readme this is a readme
Projects
None yet
Development

No branches or pull requests

5 participants