DGP-Studio / Snap.Hutao

实用的开源多功能原神工具箱 🧰 / Multifunctional Open-source Genshin Impact Toolkit 🧰
https://hut.ao
MIT License
3.9k stars 185 forks source link

[Bug]: 扫描二维码后弹窗无法关闭且无法登录,界面上没有任何错误提示 #1876

Closed LingChen-tsjmdlc closed 1 month ago

LingChen-tsjmdlc commented 1 month ago

检查清单

Windows 版本

19045.4717

Snap Hutao 版本

1.10.7.0

设备 ID

0CD46789B2778A8CA8EB3FC4FDF287F5

问题分类

用户界面

发生了什么?

[Bug] 登录问题

可能的复现过程

  1. 管理员的身份打开软件
  2. 点击“尚未登录”按钮准备登录,然后选择“米游社”的“扫码登录”
  3. 弹出二维码,用手机经行扫描
  4. 扫描完成之后,手机上点击“确认登陆”
  5. 出现Bug :弹窗未自动关闭,且并未登录上,界面毫无反应,没有任何的错误弹窗

    尝试找原因和解决方法

    尝试一:

    • 在“设置”中,打开了“调试控制台” 关键代码如下(详情见附件的 6218 ~ 6231 行)
      
      2024-08-01 22:45:05.503 info: System.Net.Http.HttpClient.PandaClient.LogicalHandler[101]
      End processing HTTP request after 69.1303ms - 200

2024-08-01 22:45:05.503 trce: System.Net.Http.HttpClient.PandaClient.LogicalHandler[103] Response Headers: Date: Thu, 01 Aug 2024 14:45:07 GMT Connection: keep-alive Vary: Origin, Accept-Encoding X-Powered-By: takumi X-Trace-Id: 7e923b73cbd21a6f:7e923b73cbd21a6f:0:1 Content-Type: application/json Content-Length: 96

2024-08-01 22:45:06.787 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 2 items

2024-08-01 22:45:06.787 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.001ms - processed: 0 items - remaining: 2 items 2024-08-01 22:45:08.444 info: System.Net.Http.HttpClient.PandaClient.LogicalHandler[100]

  Start processing HTTP request POST https://hk4e-sdk.mihoyo.com/hk4e_cn/combo/panda/qrcode/query

2024-08-01 22:45:08.444 trce: System.Net.Http.HttpClient.PandaClient.LogicalHandler[102] Request Headers: User-Agent: Mozilla/5.0, (Windows NT 10.0; Win64; x64), miHoYoBBS/2.73.1 Accept: application/json x-rpc-aigis: x-rpc-app_id: bll8iq97cem8 x-rpc-app_version: 2.73.1 x-rpc-client_type: 2 x-rpc-device_id: 8c17faf7-6631-42f1-9173-0da3d7e7f3da x-rpc-device_name: x-rpc-game_biz: bbs_cn x-rpc-sdk_version: 2.16.0 Content-Type: application/json; charset=utf-8

- 一分钟之后_(详情见附件的 8240 ~ 8282 行)_:

2024-08-01 22:46:53.168 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[103] HttpMessageHandler expired after 120000ms for client 'PandaClient' 2024-08-01 22:46:56.871 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:46:56.871 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.001ms - processed: 0 items - remaining: 3 items 2024-08-01 22:47:06.874 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:47:06.874 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0012ms - processed: 0 items - remaining: 3 items 2024-08-01 22:47:14.484 dbug: Quartz.Core.QuartzSchedulerThread[0] Batch acquisition of 0 triggers 2024-08-01 22:47:16.889 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:47:16.889 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0016ms - processed: 0 items - remaining: 3 items 2024-08-01 22:47:26.892 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:47:26.892 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0009ms - processed: 0 items - remaining: 3 items 2024-08-01 22:47:36.898 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:47:36.898 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0016ms - processed: 0 items - remaining: 3 items 2024-08-01 22:47:38.039 dbug: Quartz.Core.QuartzSchedulerThread[0] Batch acquisition of 0 triggers 2024-08-01 22:47:46.905 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:47:46.905 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0015ms - processed: 0 items - remaining: 3 items 2024-08-01 22:47:56.916 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:47:56.916 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0018ms - processed: 0 items - remaining: 3 items 2024-08-01 22:48:01.627 dbug: Quartz.Core.QuartzSchedulerThread[0] Batch acquisition of 0 triggers 2024-08-01 22:48:06.923 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:48:06.923 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.002ms - processed: 0 items - remaining: 3 items 2024-08-01 22:48:16.935 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[100] Starting HttpMessageHandler cleanup cycle with 3 items 2024-08-01 22:48:16.935 dbug: Microsoft.Extensions.Http.DefaultHttpClientFactory[101] Ending HttpMessageHandler cleanup cycle after 0.0012ms - processed: 0 items - remaining: 3 items


- 经过查询关键字:报错似乎与微软的**某个网络请求库相关**[Microsoft.Extensions.Http.DefaultHttpClientFactory](https://learn.microsoft.com/zh-cn/dotnet/core/extensions/httpclient-factory)
- _目前因学识浅薄,看到此  dbug 信息无能为力。_
#### 尝试二
- 为防止网络的问题,尝试使用网页版登录米游社
结果显示,网络良好,可以登录且可以获取到相应的 token 等数据
![image](https://github.com/user-attachments/assets/86a7f74b-54ef-4b39-ab8f-b186972003ff)

### 一些相关附件
- 通过诊断工具生成的 log 日志
[Snap.Hutao Error Log.txt](https://github.com/user-attachments/files/16458474/Snap.Hutao.Error.Log.txt)
- 调试控制台的完整日志
[调试控制台的完整日志.txt](https://github.com/user-attachments/files/16458499/default.txt)
- 问题复现视频:
(同时录制了软件界面和手机界面)
![问题复现视频](https://github.com/user-attachments/assets/1c7a34fd-1ac4-4696-b5d1-fa190dc6a22c)

### 你期望发生的行为?

如果难以复现此 bug ,可以经行远程操控

### 最后一步

- [x] 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
dgp-bot[bot] commented 1 month ago

device_id: 0CD46789B2778A8CA8EB3FC4FDF287F5 无已捕获的错误日志

LingChen-tsjmdlc commented 1 month ago

视频使用GIF录制并上传,不知道是否能正常显示

Lightczx commented 1 month ago

1819

github-actions[bot] commented 1 week ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.