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

Powertoys Run calculator result copy to clipboard fails #35944

Closed
samatWL opened this issue Nov 14, 2024 · 2 comments
Closed

Powertoys Run calculator result copy to clipboard fails #35944

samatWL opened this issue Nov 14, 2024 · 2 comments
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@samatWL
Copy link

samatWL commented Nov 14, 2024

Microsoft PowerToys version

0.86.0

Installation method

GitHub, PowerToys auto-update

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

Doing any math operation and attempting to copy in run triggers the error, but other uses copy to the clipboard just fine.
PowerToysReport_2024-11-14-14-23-49.zip

✔️ Expected Behavior

The run window to hide and result stored in clipboard

❌ Actual Behavior

Dialog opens:

Copy Failed, please try again later
OpenClipboard Failed (0x800401D0 (CLIPBRD_E_CANT_OPEN))

In Run Log:

-------------------------- Begin exception --------------------------
Message: Copy failed

Exception full name : System.Runtime.InteropServices.COMException
Exception message : OpenClipboard Failed (0x800401D0 (CLIPBRD_E_CANT_OPEN))
Exception stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.Windows.Clipboard.Flush()
at Microsoft.PowerToys.Run.Plugin.Calculator.ResultHelper.<>c__DisplayClass2_0.b__0()
Exception source : System.Private.CoreLib
Exception target site: Void ThrowExceptionForHR(Int32, IntPtr)
Exception HResult : -2147221040
-------------------------- End exception --------------------------

Other Software

Edition Windows 10 Home
Version 22H2
Installed on ‎11/‎20/‎2021
OS build 19045.5131
Experience Windows Feature Experience Pack 1000.19060.1000.0

I also found this neat thread from stack overflow:
https://stackoverflow.com/questions/68666/clipbrd-e-cant-open-error-when-setting-the-clipboard-from-net

@samatWL samatWL added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Nov 14, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@samatWL
Copy link
Author

samatWL commented Nov 14, 2024

Duplicate of #25437.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant