Jump to content

Paint.net sometimes crashes with Debugger attached


Recommended Posts

Sometimes when I run paint.net from Visual Studio to debug my plugins, every now and then it gets really slow. And if I use a tool such as the brush in one of these moments (e.g. after opening a large png file) I get an exception. This happens independent of my plugin, if the plugin code is never run.

 

Exception:

System.OperationCanceledException was unhandled by user code
  HResult=-2146233029
  Message=Der Vorgang wurde abgebrochen.
  Source=PaintDotNet.Base
  StackTrace:
       bei PaintDotNet.ExceptionUtil.ThrowOperationCanceledException() in d:\src\pdn\paintdotnet\src\Base\ExceptionUtil.cs:Zeile 221.
       bei PaintDotNet.Rendering.ContentRendererBgra.ThrowIfCancellationRequested() in d:\src\pdn\paintdotnet\src\Core\Rendering\ContentRendererBgra.cs:Zeile 65.
       bei PaintDotNet.Rendering.ContentRendererBgra.RenderComposited(ISurface`1 dst, PointInt32 renderOffset) in d:\src\pdn\paintdotnet\src\Core\Rendering\ContentRendererBgra.cs:Zeile 184.
       bei PaintDotNet.Rendering.ContentRendererBgra.Render(ISurface`1 dst, PointInt32 renderOffset) in d:\src\pdn\paintdotnet\src\Core\Rendering\ContentRendererBgra.cs:Zeile 117.
       bei PaintDotNet.Tools.BitmapLayerToolLayerOverlay`2.OnRender(ISurface`1 dst, PointInt32 renderOffset) in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\BitmapLayerToolLayerOverlay`2.cs:Zeile 44.
       bei PaintDotNet.Canvas.DocumentLayerOverlay.Render(ISurface`1 dst, PointInt32 renderOffset) in d:\src\pdn\paintdotnet\src\PaintDotNet\Canvas\DocumentLayerOverlay.cs:Zeile 78.
       bei PaintDotNet.Rendering.PassThruRendererBgra.Render(ISurface`1 dst, PointInt32 srcOffset) in d:\src\pdn\paintdotnet\src\Core\Rendering\PassThruRendererBgra.cs:Zeile 40.
       bei PaintDotNet.Canvas.DocumentRenderer.Render(ISurface`1 dst, PointInt32 renderOffset) in d:\src\pdn\paintdotnet\src\PaintDotNet\Canvas\DocumentRenderer.cs:Zeile 77.
       bei PaintDotNet.Canvas.DocumentRenderer.OnCopyPixels[TBitmapLockData](TBitmapLockData dst, PointInt32 srcOffset) in d:\src\pdn\paintdotnet\src\PaintDotNet\Canvas\DocumentRenderer.cs:Zeile 133.
       bei PaintDotNet.Imaging.BitmapSource`1.OnCopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\Core\Imaging\BitmapSource`1.cs:Zeile 28.
       bei PaintDotNet.Imaging.BitmapSource.CopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\Core\Imaging\BitmapSource.cs:Zeile 73.
       bei PaintDotNet.Imaging.Proxies.BitmapSourceProxy`1.CopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\Base\Imaging\Proxies\BitmapSourceProxy`1.cs:Zeile 87.
       bei PaintDotNet.Imaging.ClippedBitmapSource`1.CopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\PaintDotNet\Imaging\ClippedBitmapSource`1.cs:Zeile 69.
       bei PaintDotNet.Imaging.Proxies.BitmapSourceProxy`1.CopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\Base\Imaging\Proxies\BitmapSourceProxy`1.cs:Zeile 87.
       bei PaintDotNet.Imaging.CancellableBitmapSource`1.CopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\PaintDotNet\Imaging\CancellableBitmapSource`1.cs:Zeile 107.
       bei PaintDotNet.Imaging.Proxies.BitmapSourceProxy.CopyPixels(Nullable`1 srcRect, Int32 bufferStride, Int32 bufferSize, IntPtr buffer) in d:\src\pdn\paintdotnet\src\Base\Imaging\Proxies\BitmapSourceProxy.cs:Zeile 83.
       bei PaintDotNet.SystemLayer.Native.x64.Imaging.CBitmapSourceCcw.CopyPixels(CBitmapSourceCcw* , WICRect* prc, UInt32 cbStride, UInt32 cbBufferSize, Byte* pbBuffer)
  InnerException:

My batch Image Processor: https://imagenator.codeplex.com

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.

×
×
  • Create New...