MidsReborn
MidsReborn copied to clipboard
Startup error on linux: A Graphics object cannot be created from an image that has an indexed pixel format.
Describe the bug When starting the program in a wine64 prefix with dotnetdesktop6 (6.0.13) installed via winetricks:
System.ArgumentException: A Graphics object cannot be created from an image that has an indexed pixel format. (Parameter 'image')
at System.Drawing.Graphics.FromImage(Image image)
at Mids_Reborn.Core.Base.Display.ExtendedBitmap.Initialize(String file)
at Mids_Reborn.Core.I9Gfx.LoadOriginImages(IReadOnlyCollection`1 images)
at Mids_Reborn.Core.I9Gfx.LoadImages()
at Mids_Reborn.MainModule.MidsController.LoadGraphics(String path)
at Mids_Reborn.MainModule.MidsController.LoadData(IMessenger messenger, String path)
at Mids_Reborn.MainModule.MidsController.SelectDefaultDatabase(Loader iFrm)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
To Reproduce Steps to reproduce the behavior: Start program via wine on linux (arch).
Expected behavior Program opens.
Screenshots An error dialog with the following text:
Unhandled exception has occured in your application.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: A Graphics object cannot be created from an image that has an indexed pixel format. (Parameter 'image')
at System.Drawing.Graphics.FromImage(Image image)
at Mids_Reborn.Core.Base.Display.ExtendedBitmap.Initialize(String file)
at Mids_Reborn.Core.I9Gfx.LoadOriginImages(IReadOnlyCollection`1 images)
at Mids_Reborn.Core.I9Gfx.LoadImages()
at Mids_Reborn.MainModule.MidsController.LoadGraphics(String path)
at Mids_Reborn.MainModule.MidsController.LoadData(IMessenger messenger, String path)
at Mids_Reborn.MainModule.MidsController.SelectDefaultDatabase(Loader iFrm)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Private.CoreLib.dll
----------------------------------------
MidsReborn
Assembly Version: 3.6.6.0
Win32 Version: 3.6.6.3
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/MidsReborn.dll
----------------------------------------
System.Runtime
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Threading.Thread.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 6.0.2.0
Win32 Version: 6.0.1322.60101
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/System.Windows.Forms.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 6.0.2.0
Win32 Version: 6.0.1322.60101
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/System.Windows.Forms.Primitives.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.ComponentModel.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.InteropServices.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Collections.Specialized.dll
----------------------------------------
System.Threading
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Threading.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Collections.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/System.Drawing.Common.dll
----------------------------------------
System.Linq
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Linq.dll
----------------------------------------
Microsoft.Web.WebView2.WinForms
Assembly Version: 1.0.1938.49
Win32 Version: 1.0.1938.49
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/Microsoft.Web.WebView2.WinForms.dll
----------------------------------------
Microsoft.Web.WebView2.Core
Assembly Version: 1.0.1938.49
Win32 Version: 1.0.1938.49
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/Microsoft.Web.WebView2.Core.dll
----------------------------------------
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/mscorlib.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.ComponentModel.EventBasedAsync.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 6.0.1322.60101
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.ComponentModel.TypeConverter.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Drawing
Assembly Version: 6.0.2.0
Win32 Version: 6.0.1322.60101
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/System.Drawing.dll
----------------------------------------
System.ComponentModel
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.ComponentModel.dll
----------------------------------------
System.Numerics.Vectors
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Numerics.Vectors.dll
----------------------------------------
System.Private.Uri
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Private.Uri.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Collections.NonGeneric.dll
----------------------------------------
System.ObjectModel
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.ObjectModel.dll
----------------------------------------
System.Security.Cryptography.Algorithms
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Security.Cryptography.Algorithms.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 13.0.3.27908
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/Newtonsoft.Json.dll
----------------------------------------
System.Runtime.Serialization.Formatters
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.Serialization.Formatters.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Collections.Concurrent.dll
----------------------------------------
System.Runtime.Serialization.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.Serialization.Primitives.dll
----------------------------------------
System.Runtime.Numerics
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.Numerics.dll
----------------------------------------
System.Linq.Expressions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Linq.Expressions.dll
----------------------------------------
System.Data.Common
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Data.Common.dll
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Private.Xml.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Reflection.Emit.Lightweight
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Reflection.Emit.Lightweight.dll
----------------------------------------
System.Reflection.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Reflection.Primitives.dll
----------------------------------------
System.Memory
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Memory.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Private.CoreLib.dll
----------------------------------------
System.Threading.Tasks
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Threading.Tasks.dll
----------------------------------------
System.Runtime.Extensions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.Extensions.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.dll
----------------------------------------
System.Text.RegularExpressions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Text.RegularExpressions.dll
----------------------------------------
FastDeepCloner
Assembly Version: 1.0.3.6
Win32 Version: 1.0.3.6
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/FastDeepCloner.dll
----------------------------------------
MRBResourceLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/MRBResourceLib.dll
----------------------------------------
System.Resources.Extensions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.13/System.Resources.Extensions.dll
----------------------------------------
System.Runtime.Loader
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.Loader.dll
----------------------------------------
Microsoft.VisualBasic.Core
Assembly Version: 11.0.0.0
Win32 Version: 11.100.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/Microsoft.VisualBasic.Core.dll
----------------------------------------
System.Diagnostics.Process
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Diagnostics.Process.dll
----------------------------------------
SkiaSharp
Assembly Version: 2.88.0.0
Win32 Version: 2.88.5.0
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/SkiaSharp.dll
----------------------------------------
SkiaSharp.Views.Desktop.Common
Assembly Version: 2.88.0.0
Win32 Version: 2.88.5.0
CodeBase: file:///C:/Games/City%20of%20Heroes/Mids%20Hero%20Designer%20Reborn/SkiaSharp.Views.Desktop.Common.dll
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Runtime.InteropServices.RuntimeInformation.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Diagnostics.FileVersionInfo.dll
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Threading.ThreadPool.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1322.58009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.13/System.Collections.Immutable.dll
----------------------------------------
************** JIT Debugging **************
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Application Version [e.g. 2.7.1.25]
- Database Version [e.g. 20.0426]
Additional context wine 8.21 kernel 6.6.5-zen dotnetdesktop6 6.0.13