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]: 当Discord以管理员权限运行时,用普通权限开启胡桃会闪退 #1400

Closed
4 tasks done
script-1024 opened this issue Feb 16, 2024 · 6 comments
Closed
4 tasks done
Labels
BUG 非外部问题导致的应用程序异常 优质问题 Good issue 已完成 This issue is completed
Milestone

Comments

@script-1024
Copy link

检查清单

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

Windows 版本

22635.3140

Snap Hutao 版本

1.9.6.0

设备 ID

8796217F06C2C31C62EB672432844EAC

问题分类

其它

发生了什么?

Discord 安装目录: C:\User\<username>\AppData\Local\Discord\
Snap.Hutao 安装目录: C:\Program Files\WindowsApps\60568DGPStudio.SnapHutao_1.9.6.0_x64__wbnnev551gwxy\

问题复现方式

  1. 电脑开机后使用 管理员权限 运行 Discord
  2. 使用普通权限运行胡桃 ⚠️闪退

尝试寻找问题

  • 重启电脑

    1. 重复上述操作 ⚠️闪退
  • 提高权限

    1. 运行 Discord(管理员)
    2. 运行胡桃(管理员) ✅正常
    3. 运行胡桃(普通) ⚠️闪退
  • 结束 Discord 进程

    1. 先运行胡桃(普通or管理员) ✅皆正常
    2. 运行 Discord(管理员) ✅未闪退
  • 卸载重装胡桃

    1. 运行 Discord(管理员)
    2. 运行胡桃(管理员) ✅正常
    3. 运行胡桃(普通) ⚠️闪退
  • 怀疑问题或许和 dc 权限有关

    1. 运行 Discord(普通)
    2. 运行胡桃(普通or管理员) ✅皆正常
  • 卸载重装 Discord

    1. 运行 Discord(普通)
    2. 运行胡桃(普通) ✅正常
    3. 运行 Discord(管理员)
    4. 运行胡桃(普通) ⚠️问题未解决
  • 使用另一台电脑尝试(Win11 x64 Build 22635.2921,Discord 版本相同)

    1. 运行 Discord(管理员)
    2. 运行胡桃(普通) 1.8.4~1.9.1 ✅正常
    3. 运行胡桃(普通) 1.9.2~1.9.6 ⚠️闪退
    4. 运行胡桃(管理员)任意版本 ✅皆正常

附件

问题日志 Snap.Hutao Error Log.txt

调试控制台 Snap.Hutao Debug Console Log.txt

调试控制台内提到的 %AppData%\discord\module_data\crashlogs\<时间>.log
2023_09_22T14_25_00_781Z-0-events.log

Discord 客户端版本信息

  • stable 266957 (7f1baf2)
  • Host 1.0.9033 x86 (43813)
  • Windows 11 64-bit (10.0.22635)

令人摸不着头脑的神奇 bug ... 我也不知道和 dc 到底有什么关系

你期望发生的行为?

正常启动,胡桃之前的版本没有这个问题

最后一步

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

dgp-bot bot commented Feb 16, 2024

device_id: 8796217F06C2C31C62EB672432844EAC

Exception Data:
[string]:Description:Catastrophic failure

[string]:RestrictedDescription:Drag start failed. If this is an elevated process, drag/drop is currently not supported there.
[string]:RestrictedErrorReference:
[string]:RestrictedCapabilitySid:
[WinRT.ExceptionHelpers+__RestrictedErrorObject]:__RestrictedErrorObjectReference:WinRT.ExceptionHelpers+__RestrictedErrorObject
[bool]:__HasRestrictedLanguageErrorObject:False
----------------------------------------
System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure

Drag start failed. If this is an elevated process, drag/drop is currently not supported there.
Exception Data:
[string]:Description:Catastrophic failure

[string]:RestrictedDescription:Drag start failed. If this is an elevated process, drag/drop is currently not supported there.
[string]:RestrictedErrorReference:
[string]:RestrictedCapabilitySid:
[WinRT.ExceptionHelpers+__RestrictedErrorObject]:__RestrictedErrorObjectReference:WinRT.ExceptionHelpers+__RestrictedErrorObject
[bool]:__HasRestrictedLanguageErrorObject:False
----------------------------------------
System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure

Drag start failed. If this is an elevated process, drag/drop is currently not supported there.
Exception Data:
----------------------------------------
System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine..
 ---> System.Net.Sockets.SocketException (10053): An established connection was aborted by the software in your host machine.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.ReadAsync(Memory`1 destination)
   at System.Net.Http.HttpConnection.ContentLengthReadStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at Snap.Hutao.Core.IO.Http.Sharding.HttpShardCopyWorker`1.<>c__DisplayClass10_0.<<CopyAsync>g__CopyShardAsync|1>d.MoveNext() in D:\appveyor\project\Snap.Hutao.Project-0rgu3i8eehje5o86\src\Snap.Hutao\Snap.Hutao\Core\IO\Http\Sharding\HttpShardCopyWorker.cs:line 82
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__53`1.<<ForEachAsync>b__53_0>d.MoveNext()
--- End of stack trace from previous location ---
   at Snap.Hutao.Service.Update.UpdateService.DownloadUpdatePackageAsync(HutaoVersionInformation versionInformation, String filePath, IProgress`1 progress, CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-0rgu3i8eehje5o86\src\Snap.Hutao\Snap.Hutao\Service\Update\UpdateService.cs:line 128
   at Snap.Hutao.Service.Update.UpdateService.CheckForUpdateAndDownloadAsync(IProgress`1 progress, CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-0rgu3i8eehje5o86\src\Snap.Hutao\Snap.Hutao\Service\Update\UpdateService.cs:line 69
   at Snap.Hutao.ViewModel.TitleViewModel.DoCheckUpdateAsync() in D:\appveyor\project\Snap.Hutao.Project-0rgu3i8eehje5o86\src\Snap.Hutao\Snap.Hutao\ViewModel\TitleViewModel.cs:line 64
   at Snap.Hutao.ViewModel.TitleViewModel.InitializeUIAsync() in D:\appveyor\project\Snap.Hutao.Project-0rgu3i8eehje5o86\src\Snap.Hutao\Snap.Hutao\ViewModel\TitleViewModel.cs:line 57
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.OpenUIAsync() in D:\appveyor\project\Snap.Hutao.Project-0rgu3i8eehje5o86\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 32
   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

issue 写得挺好,但为什么要管理员模式启动 Discord

@script-1024
Copy link
Author

一些有反作弊系统的游戏(比如原神),会以管理员模式运行,如果不给 Discord 管理员权限,游戏叠加画面、按键发话等功能无法正常使用,并且无法在直播时传递游戏声音

Discord Ask Permission Dialog

@Masterain98 Masterain98 added 优质问题 Good issue priority:high User noticeable and affect features or security issue and removed priority:none Priority not set labels Feb 17, 2024
Lightczx added a commit that referenced this issue Feb 18, 2024
@dgp-bot
Copy link

dgp-bot bot commented Feb 18, 2024

22251ca 已修复此问题

@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:high User noticeable and affect features or security issue labels Feb 18, 2024
@dgp-bot dgp-bot bot added this to the 1.9.7 milestone Feb 21, 2024
@dgp-bot
Copy link

dgp-bot bot commented Feb 21, 2024

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

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

No branches or pull requests

2 participants