Jump to content

Paint.NET 4.6 crashes on paste within Sandboxie


gertmenkel
 Share

Recommended Posts

I use Sandboxie to keep my files together and as an extra precaution against trojans. This means a lot of images also end up within the sandbox. Editing those images requires either manually browsing to the specific folder and moving them to the same folder as the one inside of the sandbox, or just opening Paint.NET within the sandbox so I can edit the files directly.

 

There is a problem though: ever since I updates most programs using the tool PatchMyPc Paint.NET stopped working. This program installed a newer version of both Sandboxie and Paint.NET, so I don't know what update caused the issue.

 

The crash happens every time an image is pasted from the clipboard, both when copying images from browsers, mspaint or Paint.NET itself.

 

I have to make clear: outside the sandbox, everything works. It's just that Paint.NET can not run inside of the sandbox.

 

I have tried disabling hardware acceleration and have removed all plugins. I have reinstalled Paint.NET on my PC and again inside of the sandbox. I've tried creating a second sandbox, but the crash still occurs when I run Paint.NET inside an empty sandbox.

 

The following log is shown by the crash dialog that appears:

This text file was created because paint.net crashed. Please e-mail this to crashlog4@getpaint.net so we can diagnose and fix the problem.



Application version: paint.net 4.0.6 (Final 4.6.5693.28)

Time of crash: 10-9-2015 21:19:43

Application uptime: 00:00:18.0650332

Application state: Running 

Working set: 130.404 KiB

Threads: 27

Install directory: C:\Program Files\Paint.NET

Current directory: C:\Program Files\Paint.NET

OS Version: 6.1.7601.65536 Service Pack 1 Workstation x64

.NET version: CLR 4.0.30319.34209 x64, FX 4.0 4.5

Processor: 4x "AMD FX(tm)-4100 Quad-Core Processor            " @ ~3600MHz (DEP, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, XSAVE)

Physical memory: 16367 MB

Video card: AMD Radeon HD 7700 Series (v:1002, d:683D, r:0)

Hardware acceleration: False (default: True)

UI animations: False

UI DPI: 96,00 dpi (1,00x scale)

UI theme: Aero/Aero + DWM (Aero.msstyles)

Updates: True, 6-9-2015

Locale: pdnr.c: en-US, hklm: en-US, hkcu: en-US, cc: nl-NL, cuic: en-US

Flags: 



Exception details:

System.TypeInitializationException: The type initializer for 'PaintDotNet.Tools.Controls.TransformControl' threw an exception. ---> System.ArgumentException: Win32 handle passed to Cursor is not valid or is the wrong type.

   at System.Windows.Forms.Cursor..ctor(IntPtr handle)

   at PaintDotNet.UI.Input.Cursors.<get_SizeAll>b__8() in d:\src\pdn\paintdotnet\src\Framework\UI\Input\Cursors.cs:line 87

   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Func`1 valueFactory)

   at PaintDotNet.UI.Input.Cursors.get_SizeAll() in d:\src\pdn\paintdotnet\src\Framework\UI\Input\Cursors.cs:line 88

   at PaintDotNet.Tools.Controls.TransformControl..cctor() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\Controls\TransformControl.cs:line 605

   --- End of inner exception stack trace ---

   at PaintDotNet.Tools.Controls.TransformControl..ctor() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\Controls\TransformControl.cs:line 94

   at PaintDotNet.Tools.Move.MoveToolUI..ctor() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\Move\MoveToolUI.cs:line 43

   at PaintDotNet.Tools.Move.MoveTool.CreateUI() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\Move\MoveTool.cs:line 431

   at PaintDotNet.Tools.Move.MoveTool.OnPresentationSourceInitialized() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\Move\MoveTool.cs:line 419

   at PaintDotNet.Tools.PresentationBasedTool`2.OnActivated() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\PresentationBasedTool`2.cs:line 130

   at PaintDotNet.Tools.TransactedTool`2.OnActivate() in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\TransactedTool`2.cs:line 353

   at PaintDotNet.Controls.DocumentWorkspace.SetTool(Tool copyMe) in d:\src\pdn\paintdotnet\src\PaintDotNet\Controls\DocumentWorkspace.cs:line 1639

   at PaintDotNet.Tools.Move.MoveTool.BeginPaste(DocumentWorkspace docWorkspace, String historyMementoName, ImageResource historyMementoImage, ISurface`1 bitmap, GeometryList clip, PointInt32 offset) in d:\src\pdn\paintdotnet\src\PaintDotNet\Tools\Move\MoveTool.cs:line 137

   at PaintDotNet.Actions.PasteAction.PerformActionImpl() in d:\src\pdn\paintdotnet\src\PaintDotNet\Actions\PasteAction.cs:line 342

   at PaintDotNet.Actions.PasteAction.PerformAction() in d:\src\pdn\paintdotnet\src\PaintDotNet\Actions\PasteAction.cs:line 56

   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   at PaintDotNet.Menus.PdnMenuItem.OnShortcutKeyPressed(Keys keys) in d:\src\pdn\paintdotnet\src\PaintDotNet\Menus\PdnMenuItem.cs:line 177

   at PaintDotNet.PdnBaseForm.ProcessFormHotKey(Keys keyData) in d:\src\pdn\paintdotnet\src\Core\PdnBaseForm.cs:line 1021

   at PaintDotNet.PdnBaseForm.ProcessCmdKeyData(Keys keyData) in d:\src\pdn\paintdotnet\src\Core\PdnBaseForm.cs:line 1076

   at PaintDotNet.PdnBaseForm.ProcessCmdKey(Message& msg, Keys keyData) in d:\src\pdn\paintdotnet\src\Core\PdnBaseForm.cs:line 1059

   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)

   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)

   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)



Managed assemblies: 

    mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

    PaintDotNet, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.exe

    PaintDotNet.SystemLayer, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.SystemLayer.dll

    PaintDotNet.Base, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Base.dll

    System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

    System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

    PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll

    System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

    WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll

    System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

    PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 @ C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll

    PaintDotNet.Core, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Core.dll

    PaintDotNet.Resources, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Resources.dll

    PaintDotNet.Framework, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Framework.dll

    PaintDotNet.Data, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Data.dll

    PaintDotNet.Effects, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Effects.dll

    PaintDotNet.SystemLayer.Native.x64, Version=4.6.5693.28, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.SystemLayer.Native.x64.dll

    System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

    System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

    System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll



Native modules: 

    C:\Program Files\Paint.NET\PaintDotNet.exe, version=4.6.5693.28

    C:\Windows\SYSTEM32\ntdll.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\kernel32.dll, version=6.1.7601.18015 (win7sp1_gdr.121129-1432)

    C:\Windows\system32\KERNELBASE.dll, version=6.1.7601.18015 (win7sp1_gdr.121129-1432)

    C:\Program Files\Sandboxie\SbieDll.dll, version=4.20

    C:\Windows\system32\PSAPI.DLL, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\SYSTEM32\MSCOREE.DLL, version=4.0.40305.0 (Main.040305-0000)

    C:\Program Files (x86)\AVG\AVG2015\avghooka.dll, version=15.0.0.6086

    C:\Windows\system32\ADVAPI32.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\msvcrt.dll, version=7.0.7601.17744 (win7sp1_gdr.111215-1535)

    C:\Windows\SYSTEM32\sechost.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\RPCRT4.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\system32\SHLWAPI.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\GDI32.dll, version=6.1.7601.18898 (win7sp1_gdr.150617-0600)

    C:\Windows\system32\USER32.dll, version=6.1.7601.17514 (win7sp1_rtm.101119-1850)

    C:\Windows\system32\LPK.dll, version=6.1.7601.18946 (win7sp1_gdr.150730-0600)

    C:\Windows\system32\USP10.dll, version=1.0626.7601.18454 (win7sp1_gdr.140424-1533)

    C:\Windows\system32\IMM32.DLL, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\MSCTF.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\system32\MSVCR120_CLR0400.dll, version=12.00.51689.34249 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\701f2b79b02a02beba70e50bb2edb212\mscorlib.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\system32\ole32.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\CRYPTBASE.dll, version=6.1.7601.18933 (win7sp1_gdr.150715-0600)

    C:\Windows\system32\shell32.dll, version=6.1.7601.17514 (win7sp1_rtm.101119-1850)

    C:\Windows\system32\uxtheme.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Program Files (x86)\4t Tray Minimizer\ShellEh552x64.dll, version=5.52.0.0

    C:\Windows\system32\oleaut32.dll, version=6.1.7601.18679

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System\edc284c2fc5f774b65992c5e0b6a1899\System.ni.dll, version=4.0.30319.34238 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Drawing\d41e14dae81a26661e32b25cba8c117a\System.Drawing.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\Presentatio5ae0f00f#\53dd5b486c47800507342d7914199bca\PresentationFramework.ni.dll, version=4.0.30319.34209

    C:\Windows\system32\CRYPTSP.dll, version=6.1.7601.18741 (win7sp1_gdr.150202-1526)

    C:\Windows\system32\rsaenh.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Core\97a77e20513a0e20b1810fb5c3387a50\System.Core.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\WindowsBase\172188ae7ffc00280c3b791f4bbdd9e0\WindowsBase.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNet.Base\fac445d5ce2ab45ccaab22311aac612b\PaintDotNet.Base.ni.dll, version=4.6.5693.28

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\70df39f1b9fb511a8acfc84c7f7627bf\System.Windows.Forms.ni.dll, version=4.0.30319.34251 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNet500b2e4f#\0adb3128c710a5d6649f9d4f0648113c\PaintDotNet.SystemLayer.ni.dll, version=4.6.5693.28

    C:\Windows\system32\RpcRtRemote.dll, version=6.1.7601.17514 (win7sp1_rtm.101119-1850)

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\nlssorting.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PresentationCore\918afbfb986da0346456a332674ffee7\PresentationCore.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\system32\version.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNet.Core\acb0f489f622ee2f2d7a0e57f188b8c2\PaintDotNet.Core.ni.dll, version=4.6.5693.28

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNet26779e70#\007b0031e7b1b6128c6cb80724cabfc7\PaintDotNet.Resources.ni.dll, version=4.6.5693.28

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNet7afaaa15#\b40e38f8b1279efd99ba2a4b071c113a\PaintDotNet.Framework.ni.dll, version=4.6.5693.28

    C:\Windows\system32\dwrite.dll, version=6.2.9200.16492 (win8_gdr_oobssr.130113-0015)

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\wpfgfx_v0400.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\PresentationNative_v0400.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNet.Data\90d2ce9d66fb710ad05b3b0cff683adf\PaintDotNet.Data.ni.dll, version=4.6.5693.28

    C:\Program Files\Paint.NET\PaintDotNet.Effects.dll, version=4.6.5693.28

    C:\Windows\system32\PROPSYS.dll, version=7.00.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\assembly\NativeImages_v4.0.30319_64\PaintDotNetc8826574#\903fa74b3301f6c594788838028c952a\PaintDotNet.SystemLayer.Native.x64.ni.dll, version=4.6.5693.28

    C:\Program Files\Paint.NET\PaintDotNet.SystemLayer.Native.x64.dll, version=4.6.5693.28

    C:\Windows\system32\MSVCR120.dll, version=12.00.21005.1 built by: REL

    C:\Windows\system32\VCOMP120.DLL, version=12.00.21005.1 built by: REL

    C:\Windows\system32\MSVCP120.dll, version=12.00.21005.1 built by: REL

    C:\Windows\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18946_none_2b27281071eac12c\gdiplus.dll, version=6.1.7601.18946 (win7sp1_gdr.150730-0600)

    C:\Windows\system32\dxgi.dll, version=6.2.9200.16492 (win8_gdr_oobssr.130113-0015)

    C:\Windows\system32\dwmapi.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\DXGIDebug.dll, version=9.30.9600.17298

    C:\Windows\system32\WINTRUST.dll, version=6.1.7601.18839 (win7sp1_gdr.150427-0707)

    C:\Windows\system32\CRYPT32.dll, version=6.1.7601.18839 (win7sp1_gdr.150427-0707)

    C:\Windows\system32\MSASN1.dll, version=6.1.7601.17514 (win7sp1_rtm.101119-1850)

    C:\Windows\system32\profapi.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\CLBCatQ.DLL, version=2001.12.8530.16385 (win7_rtm.090713-1255)

    C:\Windows\System32\UIAnimation.dll, version=6.2.9200.16492 (win8_gdr_oobssr.130113-0015)

    C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\comctl32.dll, version=6.10 (win7_rtm.090713-1255)

    C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_a4d981ff711297b6\comctl32.dll, version=6.10 (win7_rtm.090713-1255)

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Configuration\687652cdc9b32bd8e530be3a7da88810\System.Configuration.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xml\fdebf7eee3058c7156aef7d7fedf5ac4\System.Xml.ni.dll, version=4.0.30319.34234 built by: FX452RTMGDR

    C:\Windows\system32\WindowsCodecs.dll, version=6.2.9200.17251 (win8_gdr.150128-1514)

    C:\Windows\system32\wtsapi32.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\d2d1.dll, version=6.2.9200.16492 (win8_gdr_oobssr.130113-0015)

    C:\Windows\system32\d3d11.dll, version=6.2.9200.16570 (win8_gdr.130327-1526)

    C:\Windows\system32\D3D10Warp.dll, version=6.2.9200.17033 (win8_gdr.140615-1509)

    C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xaml\e634c6664efd9e59b36c206198161310\System.Xaml.ni.dll, version=4.0.30319.34209 built by: FX452RTMGDR

    C:\Windows\system32\winmm.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\SetupApi.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

    C:\Windows\system32\CFGMGR32.dll, version=6.1.7601.17514 (win7sp1_rtm.101119-1850)

    C:\Windows\system32\DEVOBJ.dll, version=6.1.7600.16385 (win7_rtm.090713-1255)

------------------------------------------------------------------------------


All I did for the crash to appear was create a new 800x600 file, then press CTRL+A, CTRL+C, CTRL+V.

 

I realise because of the unusual setup (the sandbox) this might not be an issue this forum or the developers can support. If any of you have ideas about what could cause this, I would appreciate any help you can offer.

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...