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

Problem to copy into clipboard #519

Open
prof0021 opened this issue Oct 4, 2023 · 0 comments
Open

Problem to copy into clipboard #519

prof0021 opened this issue Oct 4, 2023 · 0 comments

Comments

@prof0021
Copy link

prof0021 commented Oct 4, 2023

This GitHub repository is for developers, if you want to report a bug for Greenshot as a user please do so in our JIRA issue system here: https://greenshot.atlassian.net/projects/BUGS/issues/filter=allopenissues

Describe the bug
Previously, I had version 1.2.10.6 installed. The functionality "Copy to clipboard" stopped to work couple months ago. Now, I found this github repository and installed the latest unstable version 1.3.277. It still does not work. However, I obtain exception with stacktrace:

Software version: 1.3.277 - f862e79 (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2023-10-04 14:47:49 +02:00
OS: Windows 10 2009 x64 build 22621
GDI object count: 89
User object count: 44

Exception: System.InvalidOperationException
Message: Failed initializing notifications

Stack:
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat.CreateToastNotifier()
at Greenshot.Plugin.Win10.ToastNotificationService.ShowMessage(String message, Nullable1 timeout, Action onClickAction, Action onClosedAction) in D:\a\1\s\src\Greenshot.Plugin.Win10\ToastNotificationService.cs:line 179 at Greenshot.Plugin.Win10.ToastNotificationService.ShowInfoMessage(String message, Nullable1 timeout, Action onClickAction, Action onClosedAction) in D:\a\1\s\src\Greenshot.Plugin.Win10\ToastNotificationService.cs:line 200
at Greenshot.Helpers.CaptureHelper.SurfaceMessageReceived(Object sender, SurfaceMessageEventArgs eventArgs) in D:\a\1\s\src\Greenshot\Helpers\CaptureHelper.cs:line 663
at Greenshot.Base.Core.AbstractDestination.ProcessExport(ExportInformation exportInformation, ISurface surface) in D:\a\1\s\src\Greenshot.Base\Core\AbstractDestination.cs:line 131
at Greenshot.Destinations.ClipboardDestination.ExportCapture(Boolean manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) in D:\a\1\s\src\Greenshot\Destinations\ClipboardDestination.cs:line 74
at Greenshot.Base.Core.AbstractDestination.<>c__DisplayClass28_0.b__4(Object sender, EventArgs e) in D:\a\1\s\src\Greenshot.Base\Core\AbstractDestination.cs:line 257
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--- InnerException: ---
Exception: System.IO.IOException
Message: Cannot create a stable subkey under a volatile parent key.

Stack:
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat.Initialize()
at Microsoft.Toolkit.Uwp.Notifications.ToastNotificationManagerCompat..cctor()

Configuration dump:

To Reproduce
Example steps to reproduce the behavior:

  1. Capture and select "Copy to clipboard"
  2. it will crash ....

Expected behavior
It should not crash.

Screenshots
image

Versions (please complete the following information):

  • 1.3.277
  • Windows 11 Pro 22H2 OS build: 22621.2283

Additional context
Add any other context about the problem here.

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

1 participant