v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

[Bug]: DNS 设置未被实际写入配置文件(版本 7.5.5)

Open Nyar233 opened this issue 11 months ago • 7 comments

预期情况

正常写入 DNS 配置

实际情况

软件内配置 DNS 后发现未生效,导出完整配置后查看发现缺少了 DNS 部分

复现方法

  1. 配置 DNS
  2. 右键导出完整配置文件

日志信息

2025-01-07 08:45:48.4841-INFO UpdateTaskRunGeo
2025-01-07 08:45:48.7724-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 08:45:48.8073-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 08:46:48.4913-INFO UpdateTaskRunSubscription
2025-01-07 08:59:33.8656-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 08:59:33.8656-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 08:59:45.4817-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 08:59:45.4817-DEBUG 
2025-01-07 08:59:45.4817-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:00:10.9588-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:00:10.9588-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:00:17.0264-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:00:17.0264-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:00:17.6415-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:00:17.6415-DEBUG 
2025-01-07 09:00:17.6415-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:00:22.4282-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:00:22.4282-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:00:23.3665-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:00:23.3665-DEBUG 
2025-01-07 09:00:23.3665-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:00:49.9889-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:00:49.9889-DEBUG 
2025-01-07 09:00:49.9889-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:01:12.3877-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:01:12.3877-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:01:39.2982-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:01:39.2982-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:01:48.6676-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:01:48.6680-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:01:49.9034-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:01:49.9034-DEBUG 
2025-01-07 09:01:49.9034-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:01:49.9034-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:01:49.9034-DEBUG 
2025-01-07 09:01:49.9034-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:01:49.9034-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:01:49.9034-DEBUG 
2025-01-07 09:01:49.9034-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:02:13.1953-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:02:13.1953-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:02:18.6476-DEBUG DownloadService,The SSL connection could not be established, see inner exception.
2025-01-07 09:02:18.6530-DEBUG    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at ServiceLib.Common.HttpClientHelper.GetAsync(HttpClient client, String url, CancellationToken token) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Common/HttpClientHelper.cs:line 48
   at ServiceLib.Services.DownloadService.DownloadStringAsync(String url, Boolean blProxy, String userAgent, Int32 timeout) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/DownloadService.cs:line 177
2025-01-07 09:02:18.6530-ERROR System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.
2025-01-07 09:02:19.7793-DEBUG DownloadService,The SSL connection could not be established, see inner exception.
2025-01-07 09:02:19.7942-DEBUG    at ServiceLib.Common.DownloaderHelper.<>c.<DownloadStringAsync>b__3_0(Object sender, AsyncCompletedEventArgs value) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Common/DownloaderHelper.cs:line 44
   at Downloader.AbstractDownloadService.OnDownloadFileCompleted(AsyncCompletedEventArgs e) in /Users/bezzad/Sources/Downloader/src/Downloader/AbstractDownloadService.cs:line 436
   at Downloader.DownloadService.SendDownloadCompletionSignal(DownloadStatus state, Exception error) in /Users/bezzad/Sources/Downloader/src/Downloader/DownloadService.cs:line 86
   at Downloader.DownloadService.StartDownload() in /Users/bezzad/Sources/Downloader/src/Downloader/DownloadService.cs:line 63
   at Downloader.DownloadService.StartDownload() in /Users/bezzad/Sources/Downloader/src/Downloader/DownloadService.cs:line 68
   at Downloader.AbstractDownloadService.DownloadFileTaskAsync(String[] urls, CancellationToken cancellationToken) in /Users/bezzad/Sources/Downloader/src/Downloader/AbstractDownloadService.cs:line 209
   at ServiceLib.Common.DownloaderHelper.DownloadStringAsync(IWebProxy webProxy, String url, String userAgent, Int32 timeout) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Common/DownloaderHelper.cs:line 49
   at ServiceLib.Common.DownloaderHelper.DownloadStringAsync(IWebProxy webProxy, String url, String userAgent, Int32 timeout) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Common/DownloaderHelper.cs:line 54
   at ServiceLib.Services.DownloadService.DownloadStringViaDownloader(String url, Boolean blProxy, String userAgent, Int32 timeout) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/DownloadService.cs:line 208
2025-01-07 09:02:19.7942-ERROR System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
2025-01-07 09:02:31.5799-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:02:31.5799-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:02:31.8001-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:02:31.8001-DEBUG 
2025-01-07 09:02:31.8001-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:02:38.3970-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:02:38.3970-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:02:39.3325-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:02:39.3325-DEBUG 
2025-01-07 09:02:39.3325-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:02:47.5627-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:02:47.5627-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:03:01.2471-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:03:01.2471-DEBUG 
2025-01-07 09:03:01.2471-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:03:01.2471-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:03:01.2471-DEBUG 
2025-01-07 09:03:01.2471-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:03:32.3051-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:03:32.3051-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:03:33.5930-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:03:33.5930-DEBUG 
2025-01-07 09:03:33.5930-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:04:09.6966-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:04:09.6966-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:04:20.3605-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:04:20.3605-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:04:27.9046-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:04:27.9046-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:04:28.8102-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:04:28.8102-DEBUG 
2025-01-07 09:04:28.8102-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:04:29.0397-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:04:29.0397-DEBUG 
2025-01-07 09:04:29.0397-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:06:03.1450-INFO Current_SessionEnding
2025-01-07 09:06:03.1450-INFO MyAppExitAsync Begin
2025-01-07 09:06:54.6868-INFO v2rayN start up | v2rayN - V7.5.5 - X64 | D:\工具\v2rayN\ | D:\工具\v2rayN\v2rayN.exe | Microsoft Windows NT 10.0.26100.0 | 64
2025-01-07 09:06:55.2907-INFO UpdateTaskRunGeo
2025-01-07 09:06:55.3359-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:06:55.3646-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:07:55.2916-INFO UpdateTaskRunSubscription
2025-01-07 09:13:36.1001-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:13:36.1001-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:14:00.5252-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:14:00.5252-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:14:07.2612-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:14:07.2612-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:14:07.4889-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:14:07.4889-DEBUG 
2025-01-07 09:14:07.4889-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:14:07.4889-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:14:07.4889-DEBUG 
2025-01-07 09:14:07.4889-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:14:37.7908-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:14:37.7908-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:14:58.4691-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:14:58.4691-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:15:35.1342-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:15:35.1342-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:15:35.7964-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:15:35.7964-DEBUG 
2025-01-07 09:15:35.7964-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:15:49.2890-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:15:49.2890-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:17:31.8617-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:17:31.8617-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:17:34.6789-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:17:34.6789-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:17:39.1705-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:17:39.1705-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:17:39.1879-DEBUG DownloadService,An error occurred while sending the request.
2025-01-07 09:17:39.1879-DEBUG    at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at ServiceLib.Common.HttpClientHelper.GetAsync(HttpClient client, String url, CancellationToken token) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Common/HttpClientHelper.cs:line 48
   at ServiceLib.Services.DownloadService.DownloadStringAsync(String url, Boolean blProxy, String userAgent, Int32 timeout) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/DownloadService.cs:line 177
2025-01-07 09:17:39.1879-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:17:42.7499-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:17:42.7499-DEBUG 
2025-01-07 09:17:42.7499-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:17:42.7499-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:17:42.7499-DEBUG 
2025-01-07 09:17:42.7499-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:17:42.7499-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:17:42.7499-DEBUG 
2025-01-07 09:17:42.7499-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:17:42.7499-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:17:42.7499-DEBUG 
2025-01-07 09:17:42.7499-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:17:42.7499-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:17:42.7499-DEBUG 
2025-01-07 09:17:42.7499-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:17:42.7499-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:17:42.7499-DEBUG 
2025-01-07 09:17:42.7499-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:19:12.6430-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:19:12.6430-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:19:19.9937-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:19:19.9937-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:19:45.2111-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:19:45.2111-DEBUG 
2025-01-07 09:19:45.2111-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:20:55.0123-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:20:55.0123-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:21:18.8518-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:21:18.8518-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:21:20.3257-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:21:20.3257-DEBUG 
2025-01-07 09:21:20.3257-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:21:41.5715-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:21:41.5715-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:22:02.1350-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:22:02.1350-DEBUG 
2025-01-07 09:22:02.1350-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:22:02.1360-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:22:02.1360-DEBUG 
2025-01-07 09:22:02.1360-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:22:02.1360-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:22:02.1360-DEBUG 
2025-01-07 09:22:02.1360-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:22:37.0056-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:22:37.0056-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:22:46.5187-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:22:46.5187-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:35:32.2832-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.)
2025-01-07 09:35:32.2832-DEBUG 
2025-01-07 09:35:32.2832-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
2025-01-07 09:35:36.0607-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:35:36.0607-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:35:49.0273-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:35:49.0273-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041

额外信息

No response

我确认已更新至最新版本

  • [X] 是

我确认已查询历史issues

  • [X] 是

Nyar233 avatar Jan 07 '25 01:01 Nyar233

回退到 7.4.2 后就正常了

Nyar233 avatar Jan 07 '25 02:01 Nyar233

same issue

2025-01-07 09:05:56.6992-INFO v2rayN start up | v2rayN - V7.5.5 - X64 | D:\Software\v2rayN\ | D:\Software\v2rayN\v2rayN.exe | Microsoft Windows NT 10.0.26100.0 | 64
2025-01-07 09:05:57.3018-INFO UpdateTaskRunGeo
2025-01-07 09:05:57.3651-DEBUG CoreConfigV2rayService,Object reference not set to an instance of an object.
2025-01-07 09:05:57.4062-DEBUG    at ServiceLib.Services.CoreConfig.CoreConfigV2rayService.GenDns(ProfileItem node, V2rayConfig v2rayConfig) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs:line 1041
2025-01-07 09:06:57.3053-INFO UpdateTaskRunSubscription

junlongzzz avatar Jan 07 '25 03:01 junlongzzz

提供下可复现的DNS配置

2dust avatar Jan 07 '25 03:01 2dust

提供下可复现的DNS配置

{
    "hosts": {
        "dns.google": [
            "8.8.8.8",
            "8.8.4.4"
        ],
        "doh.pub": [
            "120.53.53.53",
            "1.12.12.12"
        ],
        "geosite:category-ads-all": "127.0.0.1"
    },
    "servers": [
        "https+local://223.5.5.5/dns-query",
        "https+local://120.53.53.53/dns-query",
        {
            "address": "https://1.1.1.1/dns-query",
            "domains": [
                "geosite:geolocation-!cn"
            ],
            "expectIPs": [
                "geoip:!cn"
            ],
            "skipFallback": false
        },
        "https://8.8.8.8/dns-query"
    ],
    "queryStrategy": "UseIPv4"
}

image

junlongzzz avatar Jan 07 '25 03:01 junlongzzz

确实没有加载 dns 配置的模块,guiConfigs/config.json 配置中直接没有对应的配置,回滚到 v7.5.2 就正常了。

328902301 avatar Jan 07 '25 03:01 328902301

急用可以从action中自己下载更新

2dust avatar Jan 07 '25 03:01 2dust

感谢佬友,Actions 中对应的 release 确实修复了。

328902301 avatar Jan 07 '25 04:01 328902301

https://github.com/2dust/v2rayN/releases/tag/7.5.6

2dust avatar Jan 08 '25 06:01 2dust