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] BetterGI再次调用出现报错 #781

Open
WQ568 opened this issue Nov 11, 2024 · 2 comments
Open

[bug] BetterGI再次调用出现报错 #781

WQ568 opened this issue Nov 11, 2024 · 2 comments

Comments

@WQ568
Copy link

WQ568 commented Nov 11, 2024

  • 系统环境 / System Environment:Windows11

  • BetterGI版本号 / BetterGI Version:0.36.1

  • 问题描述 / Description of the issue:BetterGL初次使用后关闭其图像识别功能,且程序在后台运行,一天后再次使按F11快捷键调用其图像识别,程序出现报错窗口,具体如下图:

  • 复现步骤 / Reproduction steps:

Image

更好的原神 v0.36.1.0
2024/11/11 19:35:43 Windows 10.0.22631.2

System.InvalidOperationException: 关闭窗口后,无法设置可见性,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。
   at System.Windows.Window.VerifyCanShow()
   at System.Windows.Window.Show()
   at BetterGenshinImpact.ViewModel.Pages.HomePageViewModel.Start(IntPtr hWnd) in D:\HuiPrograming\Projects\CSharp\MiHoYo\BetterGenshinImpact\BetterGenshinImpact\ViewModel\Pages\HomePageViewModel.cs:line 211
   at BetterGenshinImpact.ViewModel.Pages.HomePageViewModel.OnStartTriggerAsync() in D:\HuiPrograming\Projects\CSharp\MiHoYo\BetterGenshinImpact\BetterGenshinImpact\ViewModel\Pages\HomePageViewModel.cs:line 197
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
@huiyadanli
Copy link
Member

这个报错是因为遮罩窗口销毁后无法重新打开。请确认是否稳定复现该问题

@huiyadanli huiyadanli changed the title [bug] BetterGL再次调用出现报错 [bug] BetterGI再次调用出现报错 Nov 11, 2024
@WQ568
Copy link
Author

WQ568 commented Nov 11, 2024

请问应该如何确认“是否稳定复现该报错的问题”?
更新到最新版本0.36.1后,我记得收到3次同样的报错。软件更新前也有遮罩窗口不能正常显示的问题,但软件没有报错提示。
使用场景同样是:将软件长时间留在系统后台,再次按F11启动软件后,遮罩窗口失效,只有重启软件遮罩功能才能恢复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants