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

Dev版本切换为clash-rs内核后无法正常启动 #2607

Open
5 of 6 tasks
mcbbsandnz opened this issue Feb 13, 2025 · 0 comments
Open
5 of 6 tasks

Dev版本切换为clash-rs内核后无法正常启动 #2607

mcbbsandnz opened this issue Feb 13, 2025 · 0 comments
Labels
S: Untriaged T: Bug Something isn't working

Comments

@mcbbsandnz
Copy link

复现步骤 / Step to reproduce

安装dev版本,进入设置将内核更换为clash-rs,退出再重新开启,就会弹出奔溃信息

预期行为 / Expected behavior

程序正常运行

实际行为 / Actual behavior

Image

应用日志 / App logs

{"timestamp":"2025-02-13T06:34:11.946648Z","level":"INFO","fields":{"message":"run core as child process"},"target":"clash_nyanpasu_lib::core::clash::core","filename":"tauri\\src\\core\\clash\\core.rs","line_number":66}

{"timestamp":"2025-02-13T06:34:21.956105Z","level":"ERROR","fields":{"message":"A panic occurred","panic.payload":"called `Result::unwrap()` on an `Err` value: HTTP error: 401 Unauthorized","panic.location":"tauri\\src\\core\\clash\\mod.rs:31:40","panic.backtrace":"   0: <unknown>\n   1: <unknown>\n   2: <unknown>\n   3: <unknown>\n   4: <unknown>\n   5: <unknown>\n   6: <unknown>\n   7: <unknown>\n   8: <unknown>\n   9: <unknown>\n  10: <unknown>\n  11: <unknown>\n  12: <unknown>\n  13: <unknown>\n  14: <unknown>\n  15: <unknown>\n  16: <unknown>\n  17: <unknown>\n  18: BaseThreadInitThunk\n  19: RtlUserThreadStart\n"},"target":"clash_nyanpasu_lib","filename":"tauri\\src\\lib.rs","line_number":140}

{"timestamp":"2025-02-13T06:34:23.694163Z","level":"WARN","fields":{"message":"Failed to gracefully kill instance: Custom { kind: Other, error: \"GenerateConsoleCtrlEvent failed: Error { code: HRESULT(0x80070006), message: \\\"句柄无效。\\\" }\" }"},"target":"nyanpasu_utils::core::instance","filename":"C:\\Users\\runneradmin\\.cargo\\git\\checkouts\\nyanpasu-utils-87bdd7fedb5ba97d\\915f531\\nyanpasu-utils\\src\\core\\instance.rs","line_number":298,"span":{"name":"kill"},"spans":[{"name":"cleanup_processes"},{"name":"kill"}]}

{"timestamp":"2025-02-13T06:34:23.697831Z","level":"ERROR","fields":{"message":"core terminated with status: TerminatedPayload { code: Some(1), signal: None }","log.target":"app","log.module_path":"clash_nyanpasu_lib::core::clash::core","log.file":"tauri\\src\\core\\clash\\core.rs","log.line":196},"target":"app","filename":"tauri\\src\\core\\clash\\core.rs","line_number":196}

{"timestamp":"2025-02-13T06:34:23.697890Z","level":"ERROR","fields":{"message":"core terminated with status: TerminatedPayload { code: Some(1), signal: None }\n\n"},"target":"clash_nyanpasu_lib::core::clash::core","filename":"tauri\\src\\core\\clash\\core.rs","line_number":211}

{"timestamp":"2025-02-13T06:34:23.794370Z","level":"WARN","fields":{"message":"instance terminated with error: ExitStatus(ExitStatus(1))"},"target":"nyanpasu_utils::core::instance","filename":"C:\\Users\\runneradmin\\.cargo\\git\\checkouts\\nyanpasu-utils-87bdd7fedb5ba97d\\915f531\\nyanpasu-utils\\src\\core\\instance.rs","line_number":310,"span":{"name":"kill"},"spans":[{"name":"cleanup_processes"},{"name":"kill"}]}

备注 / Addition details

No response

环境信息 / Environment information

----------- System -----------
OS: Windows 11 Home China 22631
Arch: x86_64
----------- Device -----------
CPU: 13th Gen Intel(R) Core(TM) i5-13500H @ 2.60GHz x 16
Memory: 15.73 GiB
----------- Core -----------
clash-rs: clash-rs 0.7.5
clash-rs-alpha: clash-rs 0.7.5-alpha+sha.7d6289f
mihomo-alpha: Mihomo Meta alpha-eaaccbc windows amd64 with go1.24.0 Wed Feb 12 16:38:49 UTC 2025 Use tags: with_gvisor
clash: Clash n2023-09-05-gdcc8d87 windows amd64 with go1.21.0 Tue Sep 5 14:32:57 UTC 2023
mihomo: Mihomo Meta v1.19.2 windows amd64 with go1.23.5 Sun Feb 9 13:23:14 UTC 2025 Use tags: with_gvisor
----------- Build Info -----------
App Name: clash-nyanpasu
App Version: 0.1.0
Pkg Version: 2.0.0-alpha+c667bc9
Commit Hash: c667bc9
Commit Author: github-actions[bot]
Commit Date: 2025-02-12T22:20:36.000Z
Build Date: 2025-02-13T00:50:00.738Z
Build Profile: Nightly
Build Platform: x86_64-pc-windows-msvc
Rustc Version: rustc 1.86.0-nightly (92bedea1c 2025-02-11)
Llvm Version: 19.1

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已知悉如果没有提供正确的系统信息,以及日志,您的 Issue 会直接被关闭 / You have known that if you don't provide correct system information and logs, your issue will be closed directly
  • 您已仔细查看并知情 Q&AFAQ 中的内容 / You have read and understood the contents of Q&A and FAQ
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make multiply issue for multiply bugs
  • 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
@mcbbsandnz mcbbsandnz added S: Untriaged T: Bug Something isn't working labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Untriaged T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant