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

控制台面板,点击关闭,直接退出了。 #2041

Open
4 of 5 tasks
mayiming0708 opened this issue Nov 20, 2024 · 5 comments
Open
4 of 5 tasks

控制台面板,点击关闭,直接退出了。 #2041

mayiming0708 opened this issue Nov 20, 2024 · 5 comments
Labels
S: Untriaged T: Feature New feature or request

Comments

@mayiming0708
Copy link

需求 / Requirement

希望关闭面板不退出,隐藏到托盘

建议实现 / Suggested implements

希望关闭面板不退出,隐藏到托盘

备注 / Addition details

No response

Clash Nyanpasu 版本号 / Clash Nyanpasu

2.0.0-alpha

是否为 Pre-release / Is pre-release version

91e4661

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已仔细查看并知情 Q&A 中的内容 / You have checked Q&A carefully
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个功能。如果您有多个功能请求,烦请发起多个 Issue / Ensure there is only one feature request in this issue. Please make multiply issue for multiply feature request
  • 您确保已使用最新 Pre-release 版本测试,并且该功能在最新 Pre-release 版本中并未实现 / This feature have not implemented in latest Pre-release version
@mayiming0708 mayiming0708 added S: Untriaged T: Feature New feature or request labels Nov 20, 2024
@greenhat616
Copy link
Collaborator

提供一下日记,看看是哪里 panic 了

@mayiming0708
Copy link
Author

{"timestamp":"2024-11-21T03:49:12.703208Z","level":"DEBUG","fields":{"message":"type field: String(\"remote\")"},"target":"app_lib::config::profile::item","filename":"tauri/src/config/profile/item/mod.rs","line_number":140}
{"timestamp":"2024-11-21T03:49:12.703360Z","level":"DEBUG","fields":{"message":"type field: String(\"remote\")"},"target":"app_lib::config::profile::item","filename":"tauri/src/config/profile/item/mod.rs","line_number":140}
{"timestamp":"2024-11-21T03:49:12.847786Z","level":"INFO","fields":{"message":"service mode is enabled and service is running, do a update check"},"target":"app_lib::utils::init","filename":"tauri/src/utils/init/mod.rs","line_number":241,"span":{"name":"init_service"},"spans":[{"name":"init_service"}]}
{"timestamp":"2024-11-21T03:49:12.847799Z","level":"INFO","fields":{"message":"client service ver is newer than exist one, do service update"},"target":"app_lib::utils::init","filename":"tauri/src/utils/init/mod.rs","line_number":248,"span":{"name":"init_service"},"spans":[{"name":"init_service"}]}
{"timestamp":"2024-11-21T03:49:18.904326Z","level":"ERROR","fields":{"message":"failed to install service: exit code: Some(1), err: 0:119: execution error: /bin/sh: /Applications/Clash: No such file or directory (127)\n"},"target":"app_lib::core::service::control","filename":"tauri/src/core/service/control.rs","line_number":103}
{"timestamp":"2024-11-21T03:49:18.904356Z","level":"ERROR","fields":{"message":"failed to update service: exit code: Some(1), err: 0:119: execution error: /bin/sh: /Applications/Clash: No such file or directory (127)\n","log.target":"app","log.module_path":"app_lib::utils::init","log.file":"tauri/src/utils/init/mod.rs","log.line":252},"target":"app","filename":"tauri/src/utils/init/mod.rs","line_number":252,"span":{"name":"init_service"},"spans":[{"name":"init_service"}]}
{"timestamp":"2024-11-21T03:49:18.937813Z","level":"INFO","fields":{"message":"IPC state changed: Connected"},"target":"app_lib::core::service::ipc","filename":"tauri/src/core/service/ipc.rs","line_number":70,"span":{"state":"Connected","name":"on_ipc_state_changed"},"spans":[{"name":"health_check"},{"state":"Connected","name":"on_ipc_state_changed"}]}
{"timestamp":"2024-11-21T03:49:18.937859Z","level":"INFO","fields":{"message":"run core as service"},"target":"app_lib::core::clash::core","filename":"tauri/src/core/clash/core.rs","line_number":61}
{"timestamp":"2024-11-21T03:49:19.068884Z","level":"INFO","fields":{"message":"run core as service"},"target":"app_lib::core::clash::core","filename":"tauri/src/core/clash/core.rs","line_number":61}
{"timestamp":"2024-11-21T03:49:19.070694Z","level":"ERROR","fields":{"message":"ServerResponseFailed(\n    R {\n        code: OtherError,\n        msg: \"core is already running\",\n        data: None,\n        ts: 1732160959070,\n    },\n)","log.target":"app","log.module_path":"app_lib::core::clash::core","log.file":"tauri/src/core/clash/core.rs","log.line":404},"target":"app","filename":"tauri/src/core/clash/core.rs","line_number":404}
{"timestamp":"2024-11-21T03:49:20.517405Z","level":"INFO","fields":{"message":"running timer task `re79zp3UgHQ4`","log.target":"app","log.module_path":"app_lib::core::tasks::jobs::profiles","log.file":"tauri/src/core/tasks/jobs/profiles.rs","log.line":37},"target":"app","filename":"tauri/src/core/tasks/jobs/profiles.rs","line_number":37,"span":{"record_id":7265209645290098688,"task_id":14432053980169048407,"name":"async_spawn_by_tokio: routine-exec"},"spans":[{"record_id":7265209645290098688,"task_id":14432053980169048407,"name":"async_spawn_by_tokio: routine-exec"}]}
{"timestamp":"2024-11-21T03:49:21.085268Z","level":"WARN","fields":{"message":"update proxies failed: error sending request for url (http://127.0.0.1:50321/providers/proxies)\n\nCaused by:\n    0: client error (Connect)\n    1: tcp connect error: Connection refused (os error 61)\n    2: Connection refused (os error 61)"},"target":"app_lib::core::tray::proxies","filename":"tauri/src/core/tray/proxies.rs","line_number":22,"span":{"name":"loop_task"},"spans":[{"name":"loop_task"}]}
{"timestamp":"2024-11-21T03:49:21.085366Z","level":"ERROR","fields":{"message":"proxies not updated yet!!!!"},"target":"app_lib::core::tray::proxies","filename":"tauri/src/core/tray/proxies.rs","line_number":28,"span":{"name":"loop_task"},"spans":[{"name":"loop_task"}]}
{"timestamp":"2024-11-21T03:49:32.652424Z","level":"WARN","fields":{"message":"update proxies failed: error sending request for url (http://127.0.0.1:50321/providers/proxies)\n\nCaused by:\n    0: client error (Connect)\n    1: tcp connect error: Connection refused (os error 61)\n    2: Connection refused (os error 61)"},"target":"app_lib::core::tray::proxies","filename":"tauri/src/core/tray/proxies.rs","line_number":22,"span":{"name":"loop_task"},"spans":[{"name":"loop_task"}]}
{"timestamp":"2024-11-21T03:49:32.652476Z","level":"ERROR","fields":{"message":"proxies not updated yet!!!!"},"target":"app_lib::core::tray::proxies","filename":"tauri/src/core/tray/proxies.rs","line_number":28,"span":{"name":"loop_task"},"spans":[{"name":"loop_task"}]}

这个应该不是BUG吧。只是点面板的关闭按钮没有托盘运行,直接退出了

@greenhat616
Copy link
Collaborator

是 macos 吗?好像是 macos 15 之后有的一个 bug,目前还不清楚是 Tauri 还是应用自身导致的。需要调查(目前没有设备)。
cc @keiko233

@mayiming0708
Copy link
Author

OK,感谢回答,是macOS,希望可以修复,1.X版本是没有这个问题的

@keiko233
Copy link
Collaborator

手头暂无macos15设备,可能要延期一下才能看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Untriaged T: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants