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

macos vpn模式众多异常 #161

Closed
ghost opened this issue Nov 19, 2022 · 4 comments
Closed

macos vpn模式众多异常 #161

ghost opened this issue Nov 19, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 19, 2022

描述问题

预期行为:使用vpn模式

实际行为:出现了如下bug:

  1. 在system模式时,开启strict route。会导致无法打开绕过的网站,几秒后程序闪退。
  2. system模式,关闭strict route。可以正常访问绕过的网站,但使用chrome浏览器时打开网页刚开始能加载出页面,后来崩溃,浏览器崩溃代码为5,日志中出现大意为"open too much file",一段之间后闪退。
  3. gvisor模式,关闭strict。cpu占用不论是闲置还是使用中CPU都异常升高且无法联网。如果先开启vpn后连接节点,按下回车后跳出6条查询节点地址的日志。

值得一提的是,2.2及以前版本没有这样的bug

其他bug:
1.如果一直连接代理的网站,则连接会自动重启,日志:

[Error] core exited, restarting.

[Error] gRPC: QNetworkReply::NetworkError code: -1919

[Error] gRPC: QNetworkReply::NetworkError code: -1919

正在启动配置 xxx

2.连接节点时,不会使用host文件中对应的ip。

@arm64v8a
Copy link
Contributor

在mac系统,GUI部分2.2以后只是开启local DNS,实现部分上游有更改,目前还不清楚影响。

所以请按照 #118 (comment) 设置,如果还存在问题,请提供日志。

  1. 日志窗口抓core日志
  2. 在终端运行抓VPN日志

@arm64v8a
Copy link
Contributor

1.如果一直连接代理的网站,则连接会自动重启,日志:

日志不完整,core退出可能是因为 go panic,所以请抓取带有 go panic stack trace 的日志。

@ghost
Copy link
Author

ghost commented Nov 19, 2022

@arm64v8a 我尝试了一下关闭vpn ipv6,闪退现象消失,但CPU占用依然升高,并且使用chrome浏览网页总是崩溃,chrome频繁闪退,无法正常使用,终端日志里大多都是重复的

QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written
setCachingEnabled:  5000  bytesDownloaded

其中“5000”有时变为其他数字,大多是5。

GUI开了debug后日志太多分不清,不过很奇怪的是我全程访问外网测试,可是日志反复输出直连DNS的日志。

目前配置system + strict route ,关闭vpn ipv6 和 fake dns,能正常使用。不过随便开个网页CPU就发烫,可能是本机性能问题。

另外还有一个bug:在VPN模式直接切换成代理模式有时不会有授权提示,也就是VPN根本没关闭,有时候退出程序能解决问题,但更多时候无法退出。再次点击开启VPN模式虽然会跳出授权提示,但输完密码VPN模式的钩没打上,VPN也没关闭

@ghost
Copy link
Author

ghost commented Nov 19, 2022

纯粹是chrome太吃性能了,safari没问题。
同时dns应该使用https+local

@ghost ghost closed this as completed Nov 19, 2022
This issue was closed.
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

1 participant