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

快捷键截图的时候会弹出错误警告 #12

Open
shengrihui opened this issue Dec 24, 2023 · 16 comments
Open

快捷键截图的时候会弹出错误警告 #12

shengrihui opened this issue Dec 24, 2023 · 16 comments

Comments

@shengrihui
Copy link

使用快捷键win+shift+s进行截图之后,会弹出错误警告。

错误信息:
14:00:52: 无法从剪贴板获取数据 (错误 -2147221040: OpenClipboard 失败)
14:00:52: 无法从剪贴板获取数据 (错误 -2147221040: OpenClipboard 失败)

最后的日志信息:

WARNING - eventHandler._EventExecuter.next (20:33:04.219) - MainThread (35660):
Could not execute function event_UIA_notification defined in globalPlugins.ime_expressive module; kwargs: {'notificationKind': 2, 'notificationProcessing': 1, 'displayString': '截图已复制到剪贴板', 'activityId': '63879A87-8677-4991-8CF4-AFB6F4FD6225'}
Traceback (most recent call last):
  File "eventHandler.pyc", line 124, in next
TypeError: event_UIA_notification() got an unexpected keyword argument 'notificationKind'
@cary-rowen
Copy link
Owner

windows+shift+s是哪个软件的截图功能?
每次都能重现吗?
您为什么要将日志翻译为中文?
请提供尽可能完整的 debug 级别的调试日志。

@hwf1324
Copy link
Contributor

hwf1324 commented Dec 27, 2023

windows+shift+s是哪个软件的截图功能?
每次都能重现吗?
您为什么要将日志翻译为中文?
请提供尽可能完整的 debug 级别的调试日志。

应该是win新的系统截图。
之前在win11上可以重现,但是现在不能重现了。

试试重启或COM修复工具

@shengrihui
Copy link
Author

  1. 这是系统自带的快捷键功能。
  2. 经常会出现。
  3. 那个不是我翻译成中文的,那个是弹出的警告窗口里的内容,我直接复制的。
    以下是这个警告对话框的内容:
Nvda 错误
Nvda 错误  对话框  无法从剪贴板获取数据 (错误 -2147221040: OpenClipboard 失败)
确认  按钮
细节(D)  细节(D)  Alt+d
空格
列表
无法从剪贴板获取数据 (错误 -2147221040: OpenClipboard 失败); Time: 17:56:34  ,2 之 1 项
无法从剪贴板获取数据 (错误 -2147221040: OpenClipboard 失败); Time: 17:56:34  ,2 之 2 项
复制(C)  按钮  Alt+c
保存(S)  按钮  Alt+s
NVDA 朗读查看器
  1. 日志里的一部分(不确定是不是这一段)
DEBUGWARNING - IAccessibleHandler.internalWinEventHandler._shouldGetEvents (18:30:36.918) - MainThread (33820):
Foreground took too long to change. Foreground still 68682350 (#32770). Should be 20448962 (WorkerW)
DEBUG - appModuleHandler.cleanup (18:30:36.938) - MainThread (33820):
application screenclippinghost closed
IO - speech.speech.speak (18:30:36.962) - MainThread (33820):
Speaking ['Nvda 错误', '对话框', '无法从剪贴板获取数据 (错误 -2147221040: OpenClipboard 失败)', CancellableSpeech (still valid)]
IO - speech.speech.speak (18:30:36.965) - MainThread (33820):
Speaking ['确认', '按钮', CancellableSpeech (still valid)]
IO - inputCore.InputManager.executeGesture (18:30:43.420) - winInputHook (48784):
Input: kb(desktop):enter

@cary-rowen
Copy link
Owner

现在还能重现吗?
我不太确定这个是什么错误,看起来日志也没有包含有用的信息。

@hwf1324
Copy link
Contributor

hwf1324 commented Jan 26, 2024

还可以重现

@shengrihui
Copy link
Author

现在还能重现吗? 我不太确定这个是什么错误,看起来日志也没有包含有用的信息。

大佬是不是可以在自己设备上试试呢?我没有发现它出现的规律,但确实是会出现的。

@hwf1324
Copy link
Contributor

hwf1324 commented Feb 13, 2024

现在还能重现吗? 我不太确定这个是什么错误,看起来日志也没有包含有用的信息。

大佬是不是可以在自己设备上试试呢?我没有发现它出现的规律,但确实是会出现的。

规律印象中是,在剪贴板内容是文本的时候截图。我们已经复现过。

@cary-rowen
Copy link
Owner

我不否认这个问题是存在的,但即使是 @hwf1324 说的情况在我的机器上也无法重现。

@shengrihui
Copy link
Author

我不否认这个问题是存在的,但即使是 @hwf1324 说的情况在我的机器上也无法重现。

多试试~

@hwf1324
Copy link
Contributor

hwf1324 commented Feb 14, 2024

需要Windows 11系统

@shengrihui
Copy link
Author

我是win10,

@hwf1324
Copy link
Contributor

hwf1324 commented Feb 14, 2024

我是win10,

版本号是多少,是不是最新版本?

@shengrihui
Copy link
Author

我是win10,

版本号是多少,是不是最新版本?

22H2
我觉得这与系统版本应该没有关系吧

@cary-rowen
Copy link
Owner

为什么会认为跟系统版本没有关系呢

@cary-rowen
Copy link
Owner

我跟 @hwf1324 联合调试的时候未能在我的机器上重现,但 @hwf1324 偶尔可以重现, 说实在的,我平时也有使用截图的场景。
所以,我不会否认这个问题的存在,该 Issue 不会关闭,任何有利于排查问题的信息都可以贴在这里。
谢谢。

@hwf1324
Copy link
Contributor

hwf1324 commented Feb 14, 2024

系统版本:

Windows 10 22H2
19045,3803

复现步骤:

  1. NVDA+C 复制刚听到的内容到剪贴板
  2. Win+shift+s
  3. tab 切到全屏截图回车

如果没复现多试几次。

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

4 participants
@cary-rowen @hwf1324 @shengrihui and others