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]: OBS无法单独采集胡桃工具箱窗口 #1771

Closed
4 tasks done
Cirno-NULL opened this issue Jun 25, 2024 · 10 comments
Closed
4 tasks done

[Bug]: OBS无法单独采集胡桃工具箱窗口 #1771

Cirno-NULL opened this issue Jun 25, 2024 · 10 comments
Labels
area-External 外部问题 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Milestone

Comments

@Cirno-NULL
Copy link

Cirno-NULL commented Jun 25, 2024

检查清单

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

Windows 版本

22631.3737

Snap Hutao 版本

1.10.4.0

设备 ID

9657CD5ABA84BA6E6C780AB2B079ABF2

问题分类

其它

发生了什么?

OBS无法单独捕捉胡桃工具箱界面
只会捕捉到一个背景色窗口
image
image
目前只能全屏录制
image

二编补充操作:
win11,N卡,obs为最新版本

  1. 任意权限打开OBS(推荐管理员权限)
  2. 任意权限打开胡桃工具箱
  3. 尝试捕捉胡桃工具箱主界面
    注:此处通常只能捕捉到一个纯色方块
  4. 成功捕捉到方块以后彻底关闭胡桃工具箱(指完全退出,不保留进程的状态)
  5. 重新启动工具箱
    注:此时有概率可以捕获成功
  6. 关闭胡桃工具箱界面,重新打开
    注: 此时不是彻底退出,托盘可见胡桃工具箱图标
    注:重新打开后OBS无法捕获主界面

你期望发生的行为?

OBS可以单独捕捉到胡桃工具箱的窗口

最后一步

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

dgp-bot bot commented Jun 25, 2024

device_id: 9657CD5ABA84BA6E6C780AB2B079ABF2

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-t183meqdaei7jimw\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-t183meqdaei7jimw\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 55
   at Snap.Hutao.Core.Windowing.XamlWindowController.IsNotifyIconVisible() in D:\appveyor\project\Snap.Hutao.Project-t183meqdaei7jimw\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 144
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-t183meqdaei7jimw\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): 找不到元素。

   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-t183meqdaei7jimw\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-t183meqdaei7jimw\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 55
   at Snap.Hutao.Core.Windowing.XamlWindowController.IsNotifyIconVisible() in D:\appveyor\project\Snap.Hutao.Project-t183meqdaei7jimw\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 144
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-t183meqdaei7jimw\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): 找不到元素。

   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-t183meqdaei7jimw\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-t183meqdaei7jimw\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 55
   at Snap.Hutao.Core.Windowing.XamlWindowController.IsNotifyIconVisible() in D:\appveyor\project\Snap.Hutao.Project-t183meqdaei7jimw\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 144
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-t183meqdaei7jimw\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)

@dgp-bot dgp-bot bot added the needs-triage 需要诊断问题类型 label Jun 25, 2024
@Cirno-NULL
Copy link
Author

Cirno-NULL commented Jun 25, 2024

问题找到了
来自于游戏内覆盖的干扰
image
关掉以后就正常了
image

我去和显卡驱动干一架(确信)
相关问题:https://obsproject.com/forum/threads/obs-as-admin-cant-capture-specific-window-game-capture-as-admin-as-well.164619/

@dgp-bot dgp-bot bot removed priority:none Priority not set needs-triage 需要诊断问题类型 labels Jun 25, 2024
@Cirno-NULL
Copy link
Author

还是有问题,关太早了
和游戏内覆盖基本无关
只有启动的一瞬间有小概率可以被捕捉到
后续只要切换一次窗口就又捕捉不到了

@Cirno-NULL Cirno-NULL reopened this Jun 25, 2024
@dgp-bot dgp-bot bot added the needs-triage 需要诊断问题类型 label Jun 25, 2024
@Lightczx Lightczx added area-External 外部问题 and removed needs-triage 需要诊断问题类型 labels Jun 25, 2024
@Mikachu2333
Copy link
Collaborator

Mikachu2333 commented Jun 25, 2024

Screenshot 2024-06-25 22-34-10

完全无法复现

请问:
OBS是用的管理员权限吗?
胡桃是用的管理员权限吗?

附:我的obs设置(场景二为捕获全屏,场景一仅捕获原神)

OBS设置.zip

更新:
复现成功,我看看发生了啥

@Cirno-NULL
Copy link
Author

Cirno-NULL commented Jun 25, 2024

Screenshot 2024-06-25 22-34-10

完全无法复现

请问:
OBS是用的管理员权限吗?
胡桃是用的管理员权限吗?

附:我的obs设置(场景二为捕获全屏,场景一仅捕获原神)

OBS设置.zip

是想捕获胡桃工具箱...
原神是不管怎么折腾都能捕获的
二次编辑了一下,增加复现流程

@Mikachu2333
Copy link
Collaborator

Mikachu2333 commented Jun 25, 2024

@Cirno-NULL 目前已经找到临时解决方案:

胡桃:设置-通知区域图标-关闭-重启胡桃

OBS:重启程序,按下图所示设置即可
图片

@Cirno-NULL
Copy link
Author

@Cirno-NULL 目前已经找到临时解决方案:

胡桃:设置-通知区域图标-关闭

OBS:重启程序,按下图所示设置即可
图片

感谢,终于不用凹概率了

@qhy040404
Copy link
Member

qhy040404 commented Jun 26, 2024

@dgp-bot
Copy link

dgp-bot bot commented Jun 26, 2024

0c1968f 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Jun 26, 2024
@dgp-bot dgp-bot bot added this to the 1.10.5 milestone Jul 5, 2024
@dgp-bot
Copy link

dgp-bot bot commented Jul 5, 2024

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

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-External 外部问题 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Projects
Archived in project
Development

No branches or pull requests

4 participants