2dust / v2rayN

A GUI client for Windows and Linux, support Xray core and others
https://1.2345345.xyz
GNU General Public License v3.0
70.04k stars 11.55k forks source link

[Bug]: sing-box1.90版本后运行文件,提示运行core失败 #5183

Closed shuiyun235 closed 5 months ago

shuiyun235 commented 5 months ago

预期情况

正常启动以及使用代理

实际情况

只要把sing-box更新到1.90版本后运行v2rayn,调用sing-box提示运行core失败,无法正常启动,错误代码见日志信息

复现方法

正常更新sing-box1.90版本文件后只要调用sing-box内核就会提示运行core失败,无法正常启动

日志信息

2024-06-03 21:39:01.9491-INFO v2rayN start up | v2rayN - V6.45 - 2024/05/18 | C:\Users\Administrator\Desktop\New Folder(8)\v2rayN1\v2rayN.exe 2024-06-03 21:39:07.0841-DEBUG FATAL[0000] create service: parse route options: initialize power listener: Failed to find PowerRegisterSuspendResumeNotification procedure in powrprof.dll: The specified procedure could not be found. ,FATAL[0000] create service: parse route options: initialize power listener: Failed to find PowerRegisterSuspendResumeNotification procedure in powrprof.dll: The specified procedure could not be found.

2024-06-03 21:39:07.0891-DEBUG at v2rayN.Handler.CoreHandler.RunProcess(ProfileItem node, CoreInfo coreInfo, String configPath, Boolean displayLog) 2024-06-03 21:40:02.2991-INFO UpdateTaskRunSubscription 2024-06-03 21:41:02.2981-INFO UpdateTaskRunGeo 2024-06-03 21:41:22.1311-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. (The channel has been closed.) 2024-06-03 21:41:22.1311-DEBUG 2024-06-03 21:41:22.1311-ERROR System.Threading.Channels.ChannelClosedException: The channel has been closed.

额外信息

我使用的是win7 64位系统,把sing-box回退到1.8.14正式版本就能正常使用,但是更新到1.90版本就会提示日志显示事项;且我用的是v2rayN-With-Core内置的配置,只修改了Xray(win7最后的版本对sing-box没有影响)和mihomo(正常更新,只要回退到1.8.14就正常调用,不会出现冲突)

我确认已更新至最新版本

我确认已查询历史issues

2dust commented 5 months ago

win7 已经不被golang支持 所以高版本的core你要自己去下载,能用哪个就用,不要升级core了

shuiyun235 commented 5 months ago

win7 已经不被golang支持 所以高版本的core你要自己去下载,能用哪个就用,不要升级core了

我是自己下载的sing-box1.90兼容的GO1.20版本,且能正常打开独自运行,根据您的提示我就没有早点测试beta版1.90,就怕出现不兼容的情况,所以我等到几天前正式版才做的覆盖更新,结果昨天更新完后就是用v2rayn自带默认会提示core失败(只修改了xray最后支持版本和mihomo的go1.20版本,别的我没有动),从今年年初我都是在sing-box自己下载的go1.20版本更新的,照理来说,sing-box应该对于低版本的协议能正常调用这点应该和1.8.14是一样的,但上了1.90就出现了运行core失败和debug

2dust commented 5 months ago

,FATAL[0000] create service: parse route options: initialize power listener: Failed to find

你用v2rayN启动后,会产生一个config.json文件,你关闭N;然后用core读取这个config.json运行,看看日志吧

Lsyx-Good commented 5 months ago

core启动失败,应该开启保存日志到文件,上传sing-box的日志文件

shuiyun235 commented 5 months ago

,FATAL[0000] create service: parse route options: initialize power listener: Failed to find

你用v2rayN启动后,会产生一个config.json文件,你关闭N;然后用core读取这个config.json运行,看看日志吧

core启动失败,应该开启保存日志到文件,上传sing-box的日志文件

好像确实是sing-box的问题,1.90-386-legacy和windows-amd64-legacy单独运行的情况是这样: QQ浏览器截图20240604200720 1.814的正常情况是这样: QQ浏览器截图20240604202023 我已经给sing-box反应了这个情况,看看能不能解决吧