Jump to content

Clipboard access repeatedly denied, failure to paste


Recommended Posts

When I paste images from the clipboard to paint.net, I usually get up to 3 pastes before it starts giving me an access denied error. I haven't been installing anything lately so I'm not sure it's an environment issue, but I wouldn't be surprised if nobody else repros this. The images I'm pasting are about monitor size 1920x1080 or so, nothing small or huge. Here's the exception:

 

Quote

Exception:

System.UnauthorizedAccessException: OpenClipboard() returned FALSE (5, ERROR_ACCESS_DENIED)
   at PaintDotNet.SystemLayer.WindowsUtil.ThrowWin32Error(String message, Int32 lastWin32Error) in D:\src\pdn\src_4_3_x\SystemLayer\WindowsUtil.cs:line 25
   at PaintDotNet.SystemLayer.Clipboard.ClipboardTransaction.Create(IClipboard clipboard, HWND hwnd) in D:\src\pdn\src_4_3_x\SystemLayer\Clipboard\ClipboardTransaction.cs:line 60
   at PaintDotNet.Clipboard.PdnClipboard.Open(IntPtr window) in D:\src\pdn\src_4_3_x\Core\Clipboard\PdnClipboard.cs:line 24
   at PaintDotNet.Clipboard.ClipboardExtensions.Open(IClipboard clipboard, IWin32Window window) in D:\src\pdn\src_4_3_x\Core\Clipboard\ClipboardExtensions.cs:line 33
   at PaintDotNet.Actions.PasteInToNewImageAction.<>c__DisplayClass1_0.<OnPerformAction>b__0() in D:\src\pdn\src_4_3_x\PaintDotNet\Actions\PasteInToNewImageAction.cs:line 38
   at PaintDotNet.Runtime.RetryManager.RunMemorySensitiveOperation(Int32 maxAttempts, Action action) in D:\src\pdn\src_4_3_x\Base\Runtime\RetryManager.cs:line 190
   at PaintDotNet.Actions.PasteInToNewImageAction.OnPerformAction(AppWorkspace appWorkspace) in D:\src\pdn\src_4_3_x\PaintDotNet\Actions\PasteInToNewImageAction.cs:line 34

Diagnostics:

Application                                                  paint.net 4.3.7 (Stable 4.307.8039.30451)
Build Date                                                   Tuesday, January 4, 2022
Install type                                                 Classic

Hardware accelerated rendering (GPU)                         True
Animations                                                   False
DPI                                                          96 (1.00x scale)
Language                                                     en-US

OS                                                           Windows 10 Home x64 (10.0.19042.0)
Runtime                                                      .NET 6.0.1 x64
Physical Memory                                              7,934 MB

CPU                                                          Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
    Speed                                                    ~1190 MHz
    Cores / Threads                                          4 / 8
    Features                                                 SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2

Pointer                                                      Virtual Multitouch Device
    Type                                                     ExternalPen
    Contacts                                                 1

Pointer                                                      Huion Tablet
    Type                                                     IntegratedPen
    Contacts                                                 1

Video Card                                                   Intel(R) UHD Graphics
    Dedicated Video RAM                                      128 MB
    Dedicated System RAM                                     0 MB
    Shared System RAM                                        3,967 MB
    Vendor ID                                                0x8086
    Device ID                                                0x8A56
    Subsystem ID                                             0x3FB517AA
    Revision                                                 7
    LUID                                                     0x00012F24
    Flags                                                    AcgCompatible, SupportMonitoredFences, KeyedMutexConformance
    Graphics Preemption                                      TriangleBoundary
    Compute Preemption                                       ThreadBoundary
    Outputs                                                  1
    Feature Level                                            Direct3D_12_1
    DXGI Formats                                             A8_UNorm, B8G8R8A8_UNorm, R16G16B16A16_UNorm, R16G16B16A16_Float, R32G32B32A32_Float
    Buffer Precision                                         UNorm8bpc, UNorm8bpcSrgb, UNorm16bpc, Float16bpc, Float32bpc

Video Card                                                   Microsoft Basic Render Driver
    Dedicated Video RAM                                      0 MB
    Dedicated System RAM                                     0 MB
    Shared System RAM                                        3,967 MB
    Vendor ID                                                0x1414
    Device ID                                                0x008C
    Subsystem ID                                             0x00000000
    Revision                                                 0
    LUID                                                     0x00013173
    Flags                                                    Software, AcgCompatible, SupportMonitoredFences, KeyedMutexConformance
    Graphics Preemption                                      InstructionBoundary
    Compute Preemption                                       InstructionBoundary
    Outputs                                                  0
    Feature Level                                            Direct3D_12_1
    DXGI Formats                                             A8_UNorm, B8G8R8A8_UNorm, R16G16B16A16_UNorm, R16G16B16A16_Float, R32G32B32A32_Float
    Buffer Precision                                         UNorm8bpc, UNorm8bpcSrgb, UNorm16bpc, Float16bpc, Float32bpc

 

Link to comment
Share on other sites

PDN is just reporting to you what's happening when it tries to access the clipboard. You may still have something else that's affecting the clipboard; maybe even Win10's newest WinKey+V stuff.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...