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

微软账户登录时,弹出窗口在随机的时间自动关闭并报错 #5

Closed
happyme531 opened this issue Jan 26, 2021 · 8 comments

Comments

@happyme531
Copy link

rt

.\gml-windows.exe -ms -run 1.12.2-forge1.12.2-14.23.4.2705 -email [email protected]
panic: MsLogin: getCode: Getcode: ErrChromeWasClose

goroutine 1 [running]:
github.com/xmdhs/gomclauncher/flag.msLogincheakErr(0x1548ac0, 0xc000310020)
        github.com/xmdhs/gomclauncher/flag/mslogin.go:67 +0x351
github.com/xmdhs/gomclauncher/flag.(*Flag).MsLogin(0xc000162000)
        github.com/xmdhs/gomclauncher/flag/mslogin.go:36 +0x598
main.main()
        command-line-arguments/main.go:61 +0x497
@xmdhs
Copy link
Owner

xmdhs commented Jan 26, 2021

我这里似乎是正常的。

能否告知下你使用的 edge 版本,以及若不是 88 版本的话,更新到 88 后是否依然如此。

5.zip
如果依然如此,可以试试用命令行打开这个程序,然后登录下账户,看下返回的内容是什么。这个是默认使用 chrome 来显示登录界面的。

@happyme531
Copy link
Author

似乎重启电脑后问题不在发生了.....
这里我的gml启动器显示的登录界面是chromium的窗口,chromium版本是 84.0.4147.105

@xmdhs
Copy link
Owner

xmdhs commented Jan 27, 2021

那现在也可以正常的用微软账号登录了吗。那么在观察一下吧。

@happyme531
Copy link
Author

happyme531 commented Jan 27, 2021

...........在经过一段时间以后又发现了这个问题

在Ubuntu 20.10,chromium 88.0.4324.96下测试也有同样的问题
现象:弹出窗口在随机的时间自动关闭

/gml-linux  -ms  -independent=false -ram=8192 -run 1.12.2-forge1.12.2-14.23.4.2705 -email xxxxxxxxxxx
panic: MsLogin: getCode: Getcode: ErrChromeWasClose

goroutine 1 [running]:
github.com/xmdhs/gomclauncher/flag.msLogincheakErr(0x7ce980, 0xc0003552a0)
	github.com/xmdhs/gomclauncher/flag/mslogin.go:67 +0x351
github.com/xmdhs/gomclauncher/flag.(*Flag).MsLogin(0xc000152000)
	github.com/xmdhs/gomclauncher/flag/mslogin.go:29 +0x547
main.main()
	command-line-arguments/main.go:61 +0x497

@happyme531
Copy link
Author

经过反复测试,msauth程序没有这个问题!

@happyme531 happyme531 changed the title 微软账户登录时,在弹出窗口输入邮箱后点击下一步时窗口自动关闭并报错 微软账户登录时,弹出窗口在随机的时间自动关闭并报错 Jan 27, 2021
@xmdhs
Copy link
Owner

xmdhs commented Jan 27, 2021

找到原因了。

我修改了这个项目 https://github.com/zserge/lorca ,把其中的 websocket 库换成了另一个,并补充了心跳方面的代码。

不过没有想到 chrome 不会相应发送的 ping,所以最后的表现就是 60 秒后没收到回应,就关闭了浏览器了。

xmdhs added a commit that referenced this issue Jan 27, 2021
@xmdhs
Copy link
Owner

xmdhs commented Jan 27, 2021

麻烦你试试这里底下 Artifacts 中的程序,看看是否被解决了。
https://github.com/xmdhs/gomclauncher/actions/runs/514227642

@happyme531
Copy link
Author

问题已解决

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

No branches or pull requests

2 participants