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

[Bug] 0.9.1更新后系统托盘图标设置无效 #335

Closed
diazynez opened this issue Sep 1, 2023 · 6 comments
Closed

[Bug] 0.9.1更新后系统托盘图标设置无效 #335

diazynez opened this issue Sep 1, 2023 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@diazynez
Copy link

diazynez commented Sep 1, 2023

Description

0.9.1更新后系统托盘图标设置无效

Reproduction Steps

0.9.1更新后系统托盘图标设置无效

Expected Behavior

No response

Screenshots

No response

Starward Version

0.9.1

Windows Version

19045.3271

Log

No response

Additional Context

No response

@diazynez diazynez added the triage Issue needs to be triaged label Sep 1, 2023
@Scighost
Copy link
Owner

Scighost commented Sep 1, 2023

请提供日志

@diazynez
Copy link
Author

diazynez commented Sep 1, 2023

[20:56:24.296] [INFO]
Welcome to Starward v0.9.1
System: Microsoft Windows NT 10.0.19045.0
Command Line: E:\miHoYo\Starward\app-0.9.1\Starward.dll

[20:56:24.335] [INFO] Starward.Services.DatabaseService
Database path is 'E:\miHoYo\Starward'

[20:56:24.354] [INFO] Starward.Services.DatabaseService
Database version is 6, target version is {DatabaseSqls.Count}.

[20:56:24.397] [INFO] Starward.Pages.MainPage
Select game region is hk4e_cn

[20:56:24.401] [INFO] Starward.Pages.MainPage
Navigate to "LauncherPage" with param hk4e_cn

[20:56:24.682] [EROR] Starward.Services.SystemTrayService
Initialize system tray
System.InvalidOperationException: TryCreate failed.
at H.NotifyIcon.Core.TrayIcon.Create() in //src/libs/H.NotifyIcon/Core/TrayIcon.cs:line 324
at H.NotifyIcon.TaskbarIcon.ForceCreate(Boolean ) in /
/src/libs/H.NotifyIcon.Shared/TaskbarIcon.cs:line 134
at Starward.Services.SystemTrayService.Initialize(GameBiz gameBiz) in D:\a\Starward\Starward\src\Starward\Services\SystemTrayService.cs:line 72

[20:56:24.814] [INFO] Starward.Pages.LauncherPage
Game install path hk4e_cn: "E:\miHoYo\Genshin Impact\Genshin Impact Game"

[20:56:26.022] [INFO] Starward.Services.UpdateService
Start to check update (Preview: False, Arch: X64)

[20:56:26.461] [INFO] Starward.Pages.MainPage
Navigate to "SettingPage" with param hk4e_cn

[20:56:26.873] [INFO] Starward.Services.UpdateService
Current version: "0.9.1", latest version: "0.9.1", ignore version: null

[20:56:29.487] [EROR] Starward.Services.SystemTrayService
Initialize system tray
System.InvalidOperationException: TryCreate failed.
at H.NotifyIcon.Core.TrayIcon.Create() in //src/libs/H.NotifyIcon/Core/TrayIcon.cs:line 324
at H.NotifyIcon.TaskbarIcon.ForceCreate(Boolean ) in /
/src/libs/H.NotifyIcon.Shared/TaskbarIcon.cs:line 134
at Starward.Services.SystemTrayService.Initialize(GameBiz gameBiz) in D:\a\Starward\Starward\src\Starward\Services\SystemTrayService.cs:line 72

[20:56:32.288] [EROR] Starward.Services.SystemTrayService
Initialize system tray
System.InvalidOperationException: TryCreate failed.
at H.NotifyIcon.Core.TrayIcon.Create() in //src/libs/H.NotifyIcon/Core/TrayIcon.cs:line 324
at H.NotifyIcon.TaskbarIcon.ForceCreate(Boolean ) in /
/src/libs/H.NotifyIcon.Shared/TaskbarIcon.cs:line 134
at Starward.Services.SystemTrayService.Initialize(GameBiz gameBiz) in D:\a\Starward\Starward\src\Starward\Services\SystemTrayService.cs:line 72

@Scighost
Copy link
Owner

Scighost commented Sep 1, 2023

#251,因为第三方库的内部错误,我无法确定具体原因。

@Scighost Scighost closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2023
@Scighost Scighost added duplicate This issue or pull request already exists and removed triage Issue needs to be triaged labels Sep 1, 2023
@YIMUYONG
Copy link

YIMUYONG commented Sep 2, 2023

也是遇到了同样的问题,更新之后,系统托盘失效了。

[11:19:46.560] [INFO]
Welcome to Starward v0.9.1
System: Microsoft Windows NT 10.0.19045.0
Command Line: D:\ProgramData\MiHoYo\Starward\app-0.9.1\Starward.dll

[11:19:46.638] [INFO] Starward.Services.DatabaseService
Database path is 'D:\ProgramData\MiHoYo\Starward'

[11:19:46.669] [INFO] Starward.Services.DatabaseService
Database version is 6, target version is {DatabaseSqls.Count}.

[11:19:46.742] [INFO] Starward.Pages.MainPage
Select game region is hkrpg_cn

[11:19:46.749] [INFO] Starward.Pages.MainPage
Navigate to "LauncherPage" with param hkrpg_cn

[11:19:47.028] [EROR] Starward.Services.SystemTrayService
Initialize system tray
System.InvalidOperationException: TryCreate failed.
at H.NotifyIcon.Core.TrayIcon.Create() in //src/libs/H.NotifyIcon/Core/TrayIcon.cs:line 324
at H.NotifyIcon.TaskbarIcon.ForceCreate(Boolean ) in /
/src/libs/H.NotifyIcon.Shared/TaskbarIcon.cs:line 134
at Starward.Services.SystemTrayService.Initialize(GameBiz gameBiz) in D:\a\Starward\Starward\src\Starward\Services\SystemTrayService.cs:line 72

[11:19:47.076] [INFO] Starward.Pages.LauncherPage
Game install path hkrpg_cn: "D:\ProgramData\MiHoYo\CHN\Star Rail\Game"

[11:19:47.480] [INFO] Starward.Services.UpdateService
Start to check update (Preview: False, Arch: X64)

[11:19:48.450] [INFO] Starward.Services.UpdateService
Current version: "0.9.1", latest version: "0.9.1", ignore version: null

[11:19:51.786] [INFO] Starward.Pages.MainPage
Navigate to "SettingPage" with param hkrpg_cn

@diazynez
Copy link
Author

diazynez commented Sep 2, 2023

在出错的库
HavenDV/H.NotifyIcon#103
那里也反馈了一下,不过好像目前没法解决

@diazynez
Copy link
Author

diazynez commented Sep 5, 2023

使用mlrsyz提供的方法成功解决问题,有同类问题的可以试试:D
HavenDV/H.NotifyIcon#103 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants