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]: 实时便笺不自动刷新 #1710

Closed
4 tasks done
DSakura207 opened this issue Jun 7, 2024 · 9 comments · Fixed by #1713
Closed
4 tasks done

[Bug]: 实时便笺不自动刷新 #1710

DSakura207 opened this issue Jun 7, 2024 · 9 comments · Fixed by #1713
Labels
area-DailyNote 实时便笺 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Milestone

Comments

@DSakura207
Copy link
Contributor

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已完成的问题也不是一个别人已发布的重复的问题

Windows 版本

22631.3593

Snap Hutao 版本

1.10.3.0

设备 ID

2DA44F8264495636ACC5D4C0BC30C148

问题分类

实时便笺

发生了什么?

实时便笺不自动刷新。
用户账户位于美服。已经正常登录HoyoLab。
已经确认自动刷新为开启。无论如何调整时间间隔,便笺也不自动刷新。
可以确认并非API问题。当点击“立即刷新”时,能正确从服务器取得数据并弹出通知。

你期望发生的行为?

实时便笺能够自动刷新。

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@DSakura207 DSakura207 added BUG 非外部问题导致的应用程序异常 priority:none Priority not set labels Jun 7, 2024
@dgp-bot
Copy link

dgp-bot bot commented Jun 7, 2024

device_id: 2DA44F8264495636ACC5D4C0BC30C148

Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconMethods.cs:line 70
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 54
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 107
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)
Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconMethods.cs:line 70
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 54
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 107
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)
Exception Data:
----------------------------------------
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteConnectionInternal..ctor(SqliteConnectionStringBuilder connectionOptions, SqliteConnectionPool pool)
   at Microsoft.Data.Sqlite.SqliteConnectionPool.GetConnection()
   at Microsoft.Data.Sqlite.SqliteConnection.Open()
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteDatabaseCreator.Create()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate(DatabaseFacade databaseFacade)
   at Snap.Hutao.Core.DependencyInjection.IocConfiguration.AddDbContextCore(IServiceProvider provider, DbContextOptionsBuilder builder) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Core\DependencyInjection\IocConfiguration.cs:line 51
   at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.CreateDbContextOptions[TContext](IServiceProvider applicationServiceProvider, Action`2 optionsAction)
   at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__DisplayClass17_0`1.<AddCoreServices>b__0(IServiceProvider p)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Snap.Hutao.Service.DailyNote.DailyNoteDbService.GetDailyNoteEntryIncludeUserListAsync() in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteDbService.cs:line 77
   at Snap.Hutao.Service.DailyNote.DailyNoteService.RefreshDailyNotesCoreAsync(Boolean forceRefresh) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteService.cs:line 113
   at Snap.Hutao.ViewModel.DailyNote.DailyNoteViewModel.RefreshAsync() in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModel.cs:line 93
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

@dgp-bot dgp-bot bot added the area-DailyNote 实时便笺 label Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

@qhy040404
Copy link
Member

别关后台

@dgp-bot dgp-bot bot removed the priority:none Priority not set label Jun 8, 2024
@DSakura207
Copy link
Contributor Author

没关,不如说一直保持在非焦点状态。倒是每次开启程序的时候都会自动刷新。
如图所示。
PZV0iZujHU
1rOMS3iUP3

@Lightczx
Copy link
Member

Lightczx commented Jun 9, 2024

在调整到4分钟的情况下等待至少8分钟,检查页面上的树脂刷新时间 @DSakura207

@Lightczx Lightczx reopened this Jun 9, 2024
@dgp-bot dgp-bot bot added the priority:none Priority not set label Jun 9, 2024
@DSakura207
Copy link
Contributor Author

时间保持在启动程序的时刻不变。
rzLTua64tL
RR7p8RpVyC

@qhy040404 qhy040404 mentioned this issue Jun 10, 2024
1 task
@qhy040404 qhy040404 linked a pull request Jun 10, 2024 that will close this issue
1 task
@dgp-bot
Copy link

dgp-bot bot commented Jun 10, 2024

94a96c7 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release and removed priority:none Priority not set labels Jun 10, 2024
@dgp-bot dgp-bot bot added this to the 1.10.4 milestone Jun 19, 2024
@dgp-bot
Copy link

dgp-bot bot commented Jun 19, 2024

包含解决该问题的程序版本 1.10.4 已发布。

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Jun 19, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-DailyNote 实时便笺 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants