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

启动时无法启用bettergi #1467

Closed
4 tasks done
d2913406181 opened this issue Mar 11, 2024 · 4 comments
Closed
4 tasks done

启动时无法启用bettergi #1467

d2913406181 opened this issue Mar 11, 2024 · 4 comments
Assignees
Labels
area-GameLauncher 游戏启动器 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Milestone

Comments

@d2913406181
Copy link

检查清单

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

Windows 版本

22621.3235

Snap Hutao 版本

1.9.7.0

设备 ID

32215090327E0A24696C5B150985F066

问题分类

游戏启动器

发生了什么?

image
提示如上图,概率性发生,通常第二次又可以正常启动

你期望发生的行为?

No response

最后一步

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

dgp-bot bot commented Mar 11, 2024

device_id: 32215090327E0A24696C5B150985F066

Exception Data:
----------------------------------------
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: users.InnerId'.
   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.ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(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.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:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Core\Database\DbSetExtension.cs:line 143
   at Snap.Hutao.Service.User.UserDbService.AddUserAsync(User user) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\User\UserDbService.cs:line 48
   at Snap.Hutao.Service.User.UserCollectionService.TryCreateAndAddUserFromInputCookieAsync(InputCookie inputCookie) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\User\UserCollectionService.cs:line 184
   at Snap.Hutao.Service.User.UserService.ProcessInputCookieAsync(InputCookie inputCookie) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\User\UserService.cs:line 76
   at Snap.Hutao.View.Page.ISupportLoginByWebView.PostHandleCurrentCookieAsync(IServiceProvider serviceProvider, InputCookie inputCookie) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\View\Page\ISupportLoginByWebView.cs:line 34
   at Snap.Hutao.View.Page.LoginMihoyoUserPage.HandleCurrentCookieAsync() in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\View\Page\LoginMihoyoUserPage.xaml.cs:line 78
   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()

@Masterain98
Copy link
Member

用管理员模式启动胡桃能不能避免该情况?

@qhy040404 qhy040404 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 Mar 16, 2024
@dgp-bot dgp-bot bot added this to the 1.9.9 milestone Mar 29, 2024
@dgp-bot
Copy link

dgp-bot bot commented Mar 29, 2024

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

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Mar 29, 2024
@dgp-bot dgp-bot bot closed this as completed Mar 29, 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 Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GameLauncher 游戏启动器 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Projects
Archived in project
Development

No branches or pull requests

3 participants