Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug]: 实时便笺导致的应用崩溃 #947

Closed
4 tasks done
1235789gzy1 opened this issue Sep 21, 2023 · 4 comments
Closed
4 tasks done

[Bug]: 实时便笺导致的应用崩溃 #947

1235789gzy1 opened this issue Sep 21, 2023 · 4 comments
Labels
area-UserInterface 用户界面 已完成 This issue is completed

Comments

@1235789gzy1
Copy link

检查清单

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

Windows 版本

22612.2283

Snap Hutao 版本

1.7.5.0

设备 ID

CC5AF610FA5D5F48EB1DE6B7AD445DD7

问题分类

用户界面

发生了什么?

在使用了实时便笺后,切换到其他页面实时便笺的验证窗口并不会立即清除,此时切换用户会导致实时便笺验证界面切换账号,但是由于验证界面依附的实时便笺页面已经不存在了,所以导致闪退

你期望发生的行为?

No response

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@dgp-bot
Copy link

dgp-bot bot commented Sep 21, 2023

device_id: CC5AF610FA5D5F48EB1DE6B7AD445DD7

Exception Data:
----------------------------------------
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Snap.Hutao.ViewModel.Game.LaunchGameViewModel.OpenUIAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Game\LaunchGameViewModel.cs:line 104
   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()
Exception Data:
----------------------------------------
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
   at Microsoft.Data.Sqlite.SqliteConnectionExtensions.ExecuteNonQuery(SqliteConnection connection, String commandText, SqliteParameter[] parameters)
   at Microsoft.Data.Sqlite.SqliteTransaction..ctor(SqliteConnection connection, IsolationLevel isolationLevel, Boolean deferred)
   at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel, Boolean deferred)
   at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel)
   at Microsoft.Data.Sqlite.SqliteConnection.BeginDbTransaction(IsolationLevel isolationLevel)
   at System.Data.Common.DbConnection.BeginDbTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransactionAsync(CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Snap.Hutao.Core.Database.DbSetExtension.SaveChangesAndClearChangeTrackerAsync[TEntity](DbSet`1 dbSet) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\Database\DbSetExtension.cs:line 143
   at Snap.Hutao.Service.DailyNote.DailyNoteService.RefreshDailyNotesAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteService.cs:line 117
   at Snap.Hutao.Service.DailyNote.DailyNoteService.GetDailyNoteEntriesAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteService.cs:line 77
   at Snap.Hutao.ViewModel.DailyNote.DailyNoteViewModelSlim.OpenUIAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModelSlim.cs:line 46
   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()
Exception Data:
----------------------------------------
System.InvalidOperationException: A suitable constructor for type 'Snap.Hutao.View.Dialog.CultivatePromotionDeltaDialog' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance[T](IServiceProvider provider, Object[] parameters)
   at Snap.Hutao.ViewModel.Wiki.WikiWeaponViewModel.CultivateAsync(Weapon weapon) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Wiki\WikiWeaponViewModel.cs:line 130
   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-UserInterface 用户界面 label Sep 21, 2023
@dgp-bot dgp-bot bot moved this to 备忘录 in Snap Hutao Development Sep 21, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 21, 2023

22393b6 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Sep 21, 2023
@dgp-bot dgp-bot bot moved this from 备忘录 to 完成 in Snap Hutao Development Sep 21, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 26, 2023

包含解决该问题的程序版本 1.7.6 已发布,点击查看

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

github-actions bot commented Feb 1, 2024

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 Feb 1, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
area-UserInterface 用户界面 已完成 This issue is completed
Projects
Archived in project
Development

No branches or pull requests

1 participant