Jump to content
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted
On 8/20/2021 at 7:58 AM, Rick Brewster said:

I will probably need to implement some kind of on-disk cache so that at least only the first app startup is affected.

Have you considered adding a one-time warning about the need to update or remove "problematic plugins"? There may be a request to enable / disable the launch of certain plugins (a purely list, without a cache, should load faster).

Posted

An error like that wouldn't do much to help. Most folks probably just click "OK" and then still wonder why their plugins are missing.

 

Then we have a bajillion folks all scrambling, independently, to figure out what to do, where to download things, etc. It'd just be a mess.

 

And/or they just revert to 4.2.16 and tell all their friends not to upgrade because it breaks everything.

 

This isn't a good place for some engineering shortcuts.

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

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

forumSig_bmwE60.jpg

Posted

Okay I think I got all the effects to work, save for CodeLab and BBCharts.

 

CodeLab has an update on the way, and so does BBCharts.

 

PolyGlitch works fine, but its instructions need to be updated to not have you put the DSP dll into the main application directory. That's a big no-no, and won't work anymore.

 

Aren't there FileType plugins that use OptionBasedLibrary? I'm not seeing any FileType plugins listed as broken, and I doubt that's correct :)

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

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

forumSig_bmwE60.jpg

Posted
Posted (edited)

@Rick Brewster

I don't have all the filetype formats to test. I do have about 20 installed. Here's the first one that crashed. I won't update the first page until I go through them all.

 

@Martin Osieka Can you help?

 

ImPDF.Open.Filetype.dll


Exception:

System.TypeLoadException: Could not load type 'System.Windows.Forms.ContextMenu' from assembly 'System.Windows.Forms, Version=5.0.9.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at OptionBasedFileTypes.OpenFileType.OnLoad(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 501
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

In the words of KHAN "You task ME" 😄

Edited by AndrewDavid

PaintNetSignature.png.6bca4e07f5d738b2436f83d0ce1b876f.png

Posted (edited)

ImPS,EPS,AI.Open.Filetype.dll

 

Exception:

System.TypeLoadException: Could not load type 'System.Windows.Forms.ContextMenu' from assembly 'System.Windows.Forms, Version=5.0.9.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at OptionBasedFileTypes.OpenFileType.OnLoad(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 501
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

@Martin Osieka Can you help?

 

At least they don't crash the app.

Edited by AndrewDavid

PaintNetSignature.png.6bca4e07f5d738b2436f83d0ce1b876f.png

Posted

Okay I've just added an on-disk cache for the plugin patching, and it helps a lot. First launch after install or update will be slowest, as the cache needs to be rebuilt with each update (in case something changes or is fixed or whatever).

 

I should be able to push out an update shortly! Then we can start on the next round of plugin fixes.

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

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

forumSig_bmwE60.jpg

Posted
44 minutes ago, BoltBait said:

What was wrong with OutlineGradientText.dll?

Click on dropdown menu to see crash. This is the one written by XOD

Your BBOutlineGradientText is fine. It has no drop down menu.

PaintNetSignature.png.6bca4e07f5d738b2436f83d0ce1b876f.png

Posted
35 minutes ago, AndrewDavid said:

This is the one written by XOD

I see now what was wrong. I had version 1.0 loaded that was probably one of his unfinished plugins.

PaintNetSignature.png.6bca4e07f5d738b2436f83d0ce1b876f.png

Posted

@Rick Brewster Installing through the update feature within the app worked. Downloading the installer is what generated the previous message.

 

Shape3D will not load saved files. Results in a crash.

Spoiler

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.3 (α 4.300.7904.38862)
Time of crash: 8/22/2021 5:08:47 PM
Application uptime: 00:01:07.1993605
Application state: Running 
Working set: 270,940 KiB
Handles and threads: 1286 handles, 45 threads, 261 gdi, 381 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 Home 10.0.19044.0 x64
.NET version: .NET 5.0.9 x64
Processor: "Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz" @ ~3193MHz (4C/4T, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2)
Physical memory: 8143 MB
Video card: NVIDIA GeForce GT 720 (v:10DE, d:1286, r:161), Microsoft Basic Render Driver (v:1414, d:8C, r:0)
Hardware acceleration: True (default: True)
Pointers: none
UI animations: True
UI DPI: 96 dpi (1.00x scale)
UI theme: VisualStyleClass=Aero, EffectiveTheme=Aero, DWM=yes, AeroColorScheme=Dark, ThemeFileName=Aero.msstyles
Updates: True, 8/23/2021 (journal: ShouldCheckForUpdate, CheckedForUpdate)
Locale: pdnr.c: en-US, hklm: en-US, hkcu: en-US, cc: en-US, cuic: en-US
Flags: 

Exception details:
System.NotSupportedException: A non-collectible assembly may not reference a collectible assembly.
   at System.Reflection.Emit.ModuleBuilder.GetTypeRef(QCallModule module, String strFullName, QCallModule refedModule, String strRefedModuleFileName, Int32 tkResolution)
   at System.Reflection.Emit.ModuleBuilder.GetTypeRefNested(Type type, Module refedModule, String strRefedModuleFileName)
   at System.Reflection.Emit.ModuleBuilder.GetTypeTokenWorkerNoLock(Type type, Boolean getGenericDefinition)
   at System.Reflection.Emit.ModuleBuilder.GetTypeTokenInternal(Type type, Boolean getGenericDefinition)
   at System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, Type cls)
   at System.Xml.Serialization.CodeGenerator.Castclass(Type target)
   at System.Xml.Serialization.CodeGenerator.InternalConvert(Type source, Type target, Boolean isAddress)
   at System.Xml.Serialization.SourceInfo.InternalLoad(Type elementType, Boolean asAddress)
   at System.Xml.Serialization.XmlSerializationWriterILGen.WriteElement(SourceInfo source, ElementAccessor element, String arrayName, Boolean writeAccessor)
   at System.Xml.Serialization.XmlSerializationWriterILGen.WriteElements(SourceInfo source, String enumSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, String arrayName, Boolean writeAccessors, Boolean isNullable)
   at System.Xml.Serialization.XmlSerializationWriterILGen.WriteMember(SourceInfo source, String choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, Boolean writeAccessors)
   at System.Xml.Serialization.XmlSerializationWriterILGen.GenerateTypeElement(XmlTypeMapping xmlTypeMapping)
   at System.Xml.Serialization.XmlSerializationWriterILGen.GenerateElement(XmlMapping xmlMapping)
   at System.Xml.Serialization.TempAssembly.GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace)
   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location)
   at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type)
   at Shape3D.EffectPluginConfigDialog.LoadXMLData(String fileName)
   at Shape3D.EffectPluginConfigDialog.load_button_Click(Object sender, 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.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

 

Back to the drawing board?

PaintNetSignature.png.6bca4e07f5d738b2436f83d0ce1b876f.png

Posted
1 hour ago, AndrewDavid said:

image.png.44e12a2bc40fcdb48ab8fc06be566300.png

 

This was a typo in the update manifest -- one of the x64 download mirrors was pointed to the x86 installer. Fixed :) There was a 50% chance this would've happened, whether you used the web installer or the built-in updater.

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

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

forumSig_bmwE60.jpg

Posted
20 minutes ago, AndrewDavid said:

@Rick Brewster Installing through the update feature within the app worked. Downloading the installer is what generated the previous message.

 

Shape3D will not load saved files. Results in a crash.

  Hide contents

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.3 (α 4.300.7904.38862)
Time of crash: 8/22/2021 5:08:47 PM
Application uptime: 00:01:07.1993605
Application state: Running 
Working set: 270,940 KiB
Handles and threads: 1286 handles, 45 threads, 261 gdi, 381 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 Home 10.0.19044.0 x64
.NET version: .NET 5.0.9 x64
Processor: "Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz" @ ~3193MHz (4C/4T, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2)
Physical memory: 8143 MB
Video card: NVIDIA GeForce GT 720 (v:10DE, d:1286, r:161), Microsoft Basic Render Driver (v:1414, d:8C, r:0)
Hardware acceleration: True (default: True)
Pointers: none
UI animations: True
UI DPI: 96 dpi (1.00x scale)
UI theme: VisualStyleClass=Aero, EffectiveTheme=Aero, DWM=yes, AeroColorScheme=Dark, ThemeFileName=Aero.msstyles
Updates: True, 8/23/2021 (journal: ShouldCheckForUpdate, CheckedForUpdate)
Locale: pdnr.c: en-US, hklm: en-US, hkcu: en-US, cc: en-US, cuic: en-US
Flags: 

Exception details:
System.NotSupportedException: A non-collectible assembly may not reference a collectible assembly.
   at System.Reflection.Emit.ModuleBuilder.GetTypeRef(QCallModule module, String strFullName, QCallModule refedModule, String strRefedModuleFileName, Int32 tkResolution)
   at System.Reflection.Emit.ModuleBuilder.GetTypeRefNested(Type type, Module refedModule, String strRefedModuleFileName)
   at System.Reflection.Emit.ModuleBuilder.GetTypeTokenWorkerNoLock(Type type, Boolean getGenericDefinition)
   at System.Reflection.Emit.ModuleBuilder.GetTypeTokenInternal(Type type, Boolean getGenericDefinition)
   at System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, Type cls)
   at System.Xml.Serialization.CodeGenerator.Castclass(Type target)
   at System.Xml.Serialization.CodeGenerator.InternalConvert(Type source, Type target, Boolean isAddress)
   at System.Xml.Serialization.SourceInfo.InternalLoad(Type elementType, Boolean asAddress)
   at System.Xml.Serialization.XmlSerializationWriterILGen.WriteElement(SourceInfo source, ElementAccessor element, String arrayName, Boolean writeAccessor)
   at System.Xml.Serialization.XmlSerializationWriterILGen.WriteElements(SourceInfo source, String enumSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, String arrayName, Boolean writeAccessors, Boolean isNullable)
   at System.Xml.Serialization.XmlSerializationWriterILGen.WriteMember(SourceInfo source, String choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, Boolean writeAccessors)
   at System.Xml.Serialization.XmlSerializationWriterILGen.GenerateTypeElement(XmlTypeMapping xmlTypeMapping)
   at System.Xml.Serialization.XmlSerializationWriterILGen.GenerateElement(XmlMapping xmlMapping)
   at System.Xml.Serialization.TempAssembly.GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace)
   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location)
   at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type)
   at Shape3D.EffectPluginConfigDialog.LoadXMLData(String fileName)
   at Shape3D.EffectPluginConfigDialog.load_button_Click(Object sender, 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.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

 

Back to the drawing board?

 

What version of Shape3D are you using? It's working fine for me 🤔 AFAICT, anyway

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

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

forumSig_bmwE60.jpg

Posted
16 hours ago, AndrewDavid said:

@Rick Brewster

 

Circular Text will not save either. Same error as Graph Paper.

 

image.png.0f7705a14edee933a31fb7fdd2798e7d.png

Color Matrix as well

 

image.png.eedc39184a31e8e5d7b90be6f230b6fa.png

 

 

I tried forcing the type to be public instead of private, and wound up with this error instead:

 

image.png

 

So, I'm not sure if something changed with XmlSerializer, or how these plugins worked in the first place, but they will need to be updated to re-enable this functionality.

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

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

forumSig_bmwE60.jpg

Posted
On 8/19/2021 at 6:38 PM, AndrewDavid said:

@gsuberland

Some of your effects are failing in the new update. Are you able to bring your plugin up to date? Here are a few crash reports.

  Reveal hidden contents
  Reveal hidden contents

 

Hope you can help :)

 

 

For the first error, that's because the instructions for @gsuberland 's plugin told you to put the CodeArtEng.DspToolbox DLL into the main application folder. I will not shim that error. Libraries do not go into the main application folder, and should never have been placed there. I've already posted on that plugin's thread to request that the instructions be updated.

 

I'll look at the other error though, I wonder what's up

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

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

forumSig_bmwE60.jpg

Guest
This topic is now closed to further replies.
×
×
  • Create New...