Jump to content

Crash with PresentationCore / System.Windows.Data.Binding


Recommended Posts

Hello, 

 

I applied automatic update to paint.net bit over a week ago and now when I try to start it, the program just crashes. The crash log is attached below. 

 

This text file was created because paint.net crashed. Please e-mail this to <email removed> so we can diagnose and fix the problem.

Application version: paint.net 4.3.11 (Stable 4.311.8179.42221)
Time of crash: 6.6.2022 13:24:17
Application uptime: 00:00:00.0977175
Application state: Starting 
Working set: 56 216 KiB
Handles and threads: 367 handles, 32 threads, 0 gdi, 10 user
Install type: Classic
Application directory: C:\Program Files\paint.net
Current directory: C:\Program Files\paint.net
Install directory: C:\Program Files\paint.net
OS Version: Windows 10 Enterprise 10.0.19042.0 x64
.NET version: .NET 6.0.5 x64
Processor: "11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz" @ ~2496MHz (8C/16T, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2)
Physical memory: 31953 MB
Video card: Intel(R) UHD Graphics (v:8086, d:9A60, r:1), NVIDIA RTX A2000 Laptop GPU (v:10DE, d:25B8, r:161), Microsoft Basic Render Driver (v:1414, d:8C, r:0)
Hardware acceleration: True (default: True)
Remote session: no
Pointers: none
UI animations: True
UI DPI: 96 dpi (1,00x scale)
UI theme: VisualStyleCategory=Aero, EffectiveTheme=Aero, DWM=yes, AeroColorScheme=Light, ThemeFileName=Aero.msstyles
Updates: --- Exception while populating updaterInfo: System.InvalidOperationException: Initialize must be called first
   at PaintDotNet.Updates.UpdatesService.get_Instance() in D:\src\pdn\src_4_3_x\PaintDotNet\Updates\UpdatesService.cs:line 45
   at PaintDotNet.Diagnostics.CrashLog.WriteCrashLog(Exception crashEx, TextWriter stream) in D:\src\pdn\src_4_3_x\PaintDotNet\Diagnostics\CrashLog.cs:line 474

Locale: pdnr.c: en-US, hklm: en-US, hkcu: en-US, cc: fi-FI, cuic: en-US
Flags: 

Exception details:
System.AggregateException: One or more errors occurred. (The type initializer for 'System.Windows.Data.Binding' threw an exception.)
 ---> System.TypeInitializationException: The type initializer for 'System.Windows.Data.Binding' threw an exception.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'PresentationCore, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'PresentationCore, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at System.Windows.Data.Binding..cctor()
   --- End of inner exception stack trace ---
   at PaintDotNet.Canvas.CanvasView..ctor() in D:\src\pdn\src_4_3_x\PaintDotNet\Canvas\CanvasView.cs:line 43
   at PaintDotNet.Program.InitializeWpf() in D:\src\pdn\src_4_3_x\PaintDotNet\Program.cs:line 774
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at PaintDotNet.Program.Start() in D:\src\pdn\src_4_3_x\PaintDotNet\Program.cs:line 450
   at PaintDotNet.Program.Main(String[] args) in D:\src\pdn\src_4_3_x\PaintDotNet\Program.cs:line 121

Managed assemblies: 
    System.Private.CoreLib, .\System.Private.CoreLib.dll, Version=6.0.0.0, PublicKeyToken=7cec85d7bea7798e
    paintdotnet, .\paintdotnet.dll, Version=4.311.8179.42221
    System.Runtime, .\System.Runtime.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Windows.Forms, .\System.Windows.Forms.dll, Version=6.0.2.0, PublicKeyToken=b77a5c561934e089
    PaintDotNet.Base, .\PaintDotNet.Base.dll, Version=4.311.8179.42221
    System.Diagnostics.Process, .\System.Diagnostics.Process.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    PaintDotNet.SystemLayer, .\PaintDotNet.SystemLayer.dll, Version=4.311.8179.42221
    TerraFX.Interop.Windows, .\TerraFX.Interop.Windows.dll, Version=10.0.20348.0, PublicKeyToken=35b01b53313a6f7e
    System.Runtime.InteropServices.RuntimeInformation, .\System.Runtime.InteropServices.RuntimeInformation.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Runtime.InteropServices, .\System.Runtime.InteropServices.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    PaintDotNet.SystemLayer.Native.x64, .\PaintDotNet.SystemLayer.Native.x64.dll, Version=4.311.8179.42221
    System.Threading, .\System.Threading.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Runtime.Extensions, .\System.Runtime.Extensions.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Runtime.CompilerServices.VisualC, .\System.Runtime.CompilerServices.VisualC.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Collections.NonGeneric, .\System.Collections.NonGeneric.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Runtime.Intrinsics, .\System.Runtime.Intrinsics.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    PaintDotNet.Core, .\PaintDotNet.Core.dll, Version=4.311.8179.42221
    System.Private.Uri, .\System.Private.Uri.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.ComponentModel.Primitives, .\System.ComponentModel.Primitives.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    WindowsBase, .\WindowsBase.dll, Version=6.0.2.0, PublicKeyToken=31bf3856ad364e35
    System.Windows.Forms.Primitives, .\System.Windows.Forms.Primitives.dll, Version=6.0.2.0, PublicKeyToken=b77a5c561934e089
    PresentationFramework, .\PresentationFramework.dll, Version=6.0.2.0, PublicKeyToken=31bf3856ad364e35
    System.Drawing.Primitives, .\System.Drawing.Primitives.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Xaml, .\System.Xaml.dll, Version=6.0.2.0, PublicKeyToken=b77a5c561934e089
    System.ComponentModel, .\System.ComponentModel.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Diagnostics.TraceSource, .\System.Diagnostics.TraceSource.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Collections, .\System.Collections.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Threading.Thread, .\System.Threading.Thread.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Text.Encoding.CodePages, .\System.Text.Encoding.CodePages.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    PaintDotNet.Resources, .\PaintDotNet.Resources.dll, Version=4.311.8179.42221
    Microsoft.Win32.Primitives, .\Microsoft.Win32.Primitives.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.ObjectModel, .\System.ObjectModel.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    PaintDotNet.Data, .\PaintDotNet.Data.dll, Version=4.311.8179.42221
    System.Collections.Immutable, .\System.Collections.Immutable.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    PaintDotNet.Framework, .\PaintDotNet.Framework.dll, Version=4.311.8179.42221
    System.Configuration.ConfigurationManager, .\System.Configuration.ConfigurationManager.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    System.Collections.Specialized, .\System.Collections.Specialized.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Drawing.Common, .\System.Drawing.Common.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    System.Xml.ReaderWriter, .\System.Xml.ReaderWriter.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Private.Xml, .\System.Private.Xml.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    System.Threading.ThreadPool, .\System.Threading.ThreadPool.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    Microsoft.Win32.SystemEvents, .\Microsoft.Win32.SystemEvents.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    System.Net.WebClient, .\System.Net.WebClient.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    System.Linq, .\System.Linq.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.ComponentModel.EventBasedAsync, .\System.ComponentModel.EventBasedAsync.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Memory, .\System.Memory.dll, Version=6.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51
    System.Text.Encoding.Extensions, .\System.Text.Encoding.Extensions.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    Microsoft.Win32.Registry, .\Microsoft.Win32.Registry.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Collections.Concurrent, .\System.Collections.Concurrent.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Security.Principal.Windows, .\System.Security.Principal.Windows.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Security.Claims, .\System.Security.Claims.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.ComponentModel.TypeConverter, .\System.ComponentModel.TypeConverter.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Diagnostics.FileVersionInfo, .\System.Diagnostics.FileVersionInfo.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Diagnostics.StackTrace, .\System.Diagnostics.StackTrace.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a
    System.Reflection.Metadata, .\System.Reflection.Metadata.dll, Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Native modules: 
    .\paintdotnet.exe, version=4.311.8179.42221
    C:\WINDOWS\SYSTEM32\ntdll.dll, version=10.0.19041.1682 (WinBuild.160101.0800)
    C:\WINDOWS\System32\KERNEL32.DLL, version=10.0.19041.1706 (WinBuild.160101.0800)
    C:\WINDOWS\System32\KERNELBASE.dll, version=10.0.19041.1706 (WinBuild.160101.0800)
    C:\WINDOWS\System32\USER32.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\System32\win32u.dll, version=10.0.19041.1706 (WinBuild.160101.0800)
    C:\WINDOWS\System32\GDI32.dll, version=10.0.19041.1620 (WinBuild.160101.0800)
    C:\WINDOWS\System32\gdi32full.dll, version=10.0.19041.1706 (WinBuild.160101.0800)
    C:\WINDOWS\System32\msvcp_win.dll, version=10.0.19041.789 (WinBuild.160101.0800)
    C:\WINDOWS\System32\ucrtbase.dll, version=10.0.19041.789 (WinBuild.160101.0800)
    C:\WINDOWS\System32\SHELL32.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\System32\ADVAPI32.dll, version=10.0.19041.1 (WinBuild.160101.0800)
    C:\WINDOWS\System32\msvcrt.dll, version=7.0.19041.546 (WinBuild.160101.0800)
    C:\WINDOWS\System32\sechost.dll, version=10.0.19041.1 (WinBuild.160101.0800)
    C:\WINDOWS\System32\RPCRT4.dll, version=10.0.19041.1 (WinBuild.160101.0800)
    C:\WINDOWS\System32\IMM32.DLL, version=10.0.19041.546 (WinBuild.160101.0800)
    .\hostfxr.dll, version=6,0,522,21309 @Commit: 70ae3df4a6f3c92fb6b315afc405edd10ff38579
    .\hostpolicy.dll, version=6,0,522,21309 @Commit: 70ae3df4a6f3c92fb6b315afc405edd10ff38579
    .\coreclr.dll, version=6,0,522,21309 @Commit: 70ae3df4a6f3c92fb6b315afc405edd10ff38579
    C:\WINDOWS\System32\ole32.dll, version=10.0.19041.1320 (WinBuild.160101.0800)
    C:\WINDOWS\System32\combase.dll, version=10.0.19041.1320 (WinBuild.160101.0800)
    C:\WINDOWS\System32\OLEAUT32.dll, version=10.0.19041.985 (WinBuild.160101.0800)
    C:\WINDOWS\System32\bcryptPrimitives.dll, version=10.0.19041.1415 (WinBuild.160101.0800)
    .\System.Private.CoreLib.dll, version=6.0.522.21309
    .\clrjit.dll, version=6,0,522,21309 @Commit: 70ae3df4a6f3c92fb6b315afc405edd10ff38579
    C:\WINDOWS\SYSTEM32\kernel.appcore.dll, version=10.0.19041.546 (WinBuild.160101.0800)
    .\paintdotnet.dll, version=4.311.8179.42221
    .\System.Runtime.dll, version=6.0.522.21309
    C:\WINDOWS\system32\uxtheme.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\SYSTEM32\icu.dll, version=64, 2, 0, 0 (WinBuild.160101.0800)
    .\System.Windows.Forms.dll, version=6.0.422.16407
    .\PaintDotNet.Base.dll, version=4.311.8179.42221
    .\System.Diagnostics.Process.dll, version=6.0.522.21309
    .\PaintDotNet.SystemLayer.dll, version=4.311.8179.42221
    .\TerraFX.Interop.Windows.dll, version=10.0.20348.0
    .\System.Runtime.InteropServices.RuntimeInformation.dll, version=6.0.522.21309
    .\System.Runtime.InteropServices.dll, version=6.0.522.21309
    .\vcruntime140.dll, version=14.32.31326.0
    .\vcruntime140_1.dll, version=14.32.31326.0
    .\msvcp140.dll, version=14.32.31326.0
    .\msvcp140_1.dll, version=14.32.31326.0
    .\msvcp140_2.dll, version=14.32.31326.0
    .\msvcp140_codecvt_ids.dll, version=14.32.31326.0
    .\vcomp140.dll, version=14.32.31326.0
    .\ijwhost.dll, version=6,0,522,21309 @Commit: 70ae3df4a6f3c92fb6b315afc405edd10ff38579
    .\PaintDotNet.SystemLayer.Native.x64.dll, version=4.311.8179.42221
    C:\WINDOWS\SYSTEM32\PROPSYS.dll, version=7.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.1706_none_919e8e54cc8d4ca1\gdiplus.dll, version=10.0.19041.1706 (WinBuild.160101.0800)
    C:\WINDOWS\SYSTEM32\WindowsCodecs.dll, version=10.0.19041.1706 (WinBuild.160101.0800)
    C:\WINDOWS\System32\bcrypt.dll, version=10.0.19041.1 (WinBuild.160101.0800)
    .\System.Threading.dll, version=6.0.522.21309
    .\System.Runtime.Extensions.dll, version=6.0.522.21309
    .\System.Runtime.CompilerServices.VisualC.dll, version=6.0.522.21309
    .\System.Collections.NonGeneric.dll, version=6.0.522.21309
    .\System.Runtime.Intrinsics.dll, version=6.0.522.21309
    C:\WINDOWS\SYSTEM32\windows.storage.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\SYSTEM32\Wldp.dll, version=10.0.19041.1 (WinBuild.160101.0800)
    C:\WINDOWS\System32\SHCORE.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\System32\shlwapi.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    .\PaintDotNet.Core.dll, version=4.311.8179.42221
    .\System.Private.Uri.dll, version=6.0.522.21309
    .\System.ComponentModel.Primitives.dll, version=6.0.522.21309
    .\WindowsBase.dll, version=6.0.522.21509
    .\System.Windows.Forms.Primitives.dll, version=6.0.422.16407
    .\PresentationFramework.dll, version=6.0.522.21509
    .\System.Drawing.Primitives.dll, version=6.0.522.21309
    .\System.Xaml.dll, version=6.0.522.21509
    .\System.ComponentModel.dll, version=6.0.522.21309
    .\System.Diagnostics.TraceSource.dll, version=6.0.522.21309
    .\System.Collections.dll, version=6.0.522.21309
    .\System.Threading.Thread.dll, version=6.0.522.21309
    .\System.Text.Encoding.CodePages.dll, version=6.0.522.21309
    .\PaintDotNet.Resources.dll, version=4.311.8179.42221
    .\Microsoft.Win32.Primitives.dll, version=6.0.522.21309
    .\System.ObjectModel.dll, version=6.0.522.21309
    .\PaintDotNet.Data.dll, version=4.311.8179.42221
    .\System.Collections.Immutable.dll, version=6.0.522.21309
    .\PaintDotNet.Framework.dll, version=4.311.8179.42221
    .\PresentationNative_cor3.dll, version=6,0,22,21304 @Commit: 3510f88911e3fea61a4eeb481d7a1fbae9795c7b
    .\System.Configuration.ConfigurationManager.dll, version=6.0.422.16404
    .\System.Collections.Specialized.dll, version=6.0.522.21309
    .\System.Drawing.Common.dll, version=6.0.422.16404
    .\System.Xml.ReaderWriter.dll, version=6.0.522.21309
    .\System.Private.Xml.dll, version=6.0.522.21309
    .\System.Threading.ThreadPool.dll, version=6.0.522.21309
    .\Microsoft.Win32.SystemEvents.dll, version=6.0.422.16404
    .\System.Net.WebClient.dll, version=6.0.522.21309
    .\System.Linq.dll, version=6.0.522.21309
    C:\WINDOWS\SYSTEM32\dxgi.dll, version=10.0.19041.1566 (WinBuild.160101.0800)
    .\System.ComponentModel.EventBasedAsync.dll, version=6.0.522.21309
    C:\WINDOWS\System32\MSCTF.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    .\System.Memory.dll, version=6.0.522.21309
    .\System.Text.Encoding.Extensions.dll, version=6.0.522.21309
    .\Microsoft.Win32.Registry.dll, version=6.0.522.21309
    .\System.Collections.Concurrent.dll, version=6.0.522.21309
    .\System.Security.Principal.Windows.dll, version=6.0.522.21309
    .\System.Security.Claims.dll, version=6.0.522.21309
    .\System.ComponentModel.TypeConverter.dll, version=6.0.522.21309
    .\System.Diagnostics.FileVersionInfo.dll, version=6.0.522.21309
    C:\WINDOWS\SYSTEM32\profapi.dll, version=10.0.19041.844 (WinBuild.160101.0800)
    .\System.Diagnostics.StackTrace.dll, version=6.0.522.21309
    .\System.Reflection.Metadata.dll, version=6.0.522.21309
    C:\WINDOWS\SYSTEM32\version.dll, version=10.0.19041.546 (WinBuild.160101.0800)
    C:\WINDOWS\System32\setupapi.DLL, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\System32\cfgmgr32.dll, version=10.0.19041.1620 (WinBuild.160101.0800)
    C:\WINDOWS\SYSTEM32\DEVOBJ.dll, version=10.0.19041.1620 (WinBuild.160101.0800)
    C:\WINDOWS\System32\WINTRUST.dll, version=10.0.19041.1682 (WinBuild.160101.0800)
    C:\WINDOWS\System32\CRYPT32.dll, version=10.0.19041.1645 (WinBuild.160101.0800)
    C:\WINDOWS\SYSTEM32\MSASN1.dll, version=10.0.19041.546 (WinBuild.160101.0800)
    .\ucrtbase.dll, version=10.0.22000.194 (WinBuild.160101.0800)
    C:\WINDOWS\SYSTEM32\dwmapi.DLL, version=10.0.19041.1645 (WinBuild.160101.0800)
    .\Microsoft.DiaSymReader.Native.amd64.dll, version=14.28.29715.1 built by: vcwrkspc
------------------------------------------------------------------------------

 

Link to comment
Share on other sites

I split this off into its own thread because you were replying to the 4.3.11 release/announcement thread

 

I think something has corrupt your installation or deleted some of its files. Try running the command paintdotnet:/repair from the Windows Run dialog. You will need to reboot afterward.

 

image.png

 

 

 

 

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.

×
×
  • Create New...