Hello,
ever heared about that one ?
System.AccessViolationException
HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=mscorlib
StackTrace:
at System.Runtime.InteropServices.Marshal.ReadInt32(IntPtr ptr, Int32 ofs)
at DevExpress.Skins.SkinImageColorizer.CalcLightness(Image sourceImage) in DevExpress.Utils\Skins\Images\SkinImageColorizer.cs:line 351
at DevExpress.Skins.SkinImageColorizer.GetSmartColorizedImage(Image image, Color color) in DevExpress.Utils\Skins\Images\SkinImageColorizer.cs:line 302
at DevExpress.Skins.SkinImage.GetColoredImages(Image image) in DevExpress.Utils\Skins\Images\SkinImage.cs:line 721
at DevExpress.Skins.SkinImage.GetColoredImage(Image image) in DevExpress.Utils\Skins\Images\SkinImage.cs:line 697
at DevExpress.Skins.SkinImage.get_Image() in DevExpress.Utils\Skins\Images\SkinImage.cs:line 368
at DevExpress.Skins.SkinImage.GetImageBounds(Int32 index) in DevExpress.Utils\Skins\Images\SkinImage.cs:line 1017
at DevExpress.Skins.SkinElementPainter.DrawSkinImage(SkinElementInfo elementInfo, SkinImage skinImage, SkinPaddingEdges padding) in DevExpress.Utils\Skins\SkinPainter.cs:line 507
at DevExpress.Skins.SkinElementPainter.DrawSkinImage(SkinElementInfo elementInfo, SkinImage skinImage) in DevExpress.Utils\Skins\SkinPainter.cs:line 482
at DevExpress.Skins.SkinElementPainter.DrawObject(ObjectInfoArgs e) in DevExpress.Utils\Skins\SkinPainter.cs:line 299
at DevExpress.Utils.Drawing.ObjectPainter.DrawObject(GraphicsCache cache, ObjectPainter painter, ObjectInfoArgs e) in DevExpress.Utils\Painting\PaintLibrary.cs:line 243
at DevExpress.XtraBars.Docking2010.FloatDocumentFormSkinPainter.DrawBorder(GraphicsCache cache, FloatDocumentFormInfo info) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentManager\FloatDocuments\BaseFloatDocumentForm.cs:line 1085
at DevExpress.XtraBars.Docking2010.FloatDocumentFormPainter.DrawCore(XtraBufferedGraphics bg, FloatDocumentFormInfo info) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentManager\FloatDocuments\BaseFloatDocumentForm.cs:line 989
at DevExpress.XtraBars.Docking2010.FloatDocumentFormPainter.Draw(IntPtr hDC, FloatDocumentFormInfo info) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentManager\FloatDocuments\BaseFloatDocumentForm.cs:line 972
at DevExpress.XtraBars.Docking2010.ColoredFloatDocumentFormSkinPainter.Draw(IntPtr hDC, FloatDocumentFormInfo info) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentManager\FloatDocuments\BaseFloatDocumentForm.cs:line 1270
at DevExpress.XtraBars.Docking2010.Views.Widget.WidgetContainerSkinPainter.Draw(IntPtr hDC, FloatDocumentFormInfo info) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\WidgetHost\WidgetContainerPainter.cs:line 61
at DevExpress.XtraBars.Docking2010.DocumentContainer.DrawNC(Message& m) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentHost\DocumentContainer.cs:line 596
at DevExpress.XtraBars.Docking2010.DocumentContainer.DoNCPaint(Message& m) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentHost\DocumentContainer.cs:line 549
at DevExpress.XtraBars.Docking2010.DocumentContainer.WndProc(Message& m) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\DocumentHost\DocumentContainer.cs:line 399
at DevExpress.XtraBars.Docking2010.Views.Widget.WidgetContainer.WndProc(Message& m) in DevExpress.XtraBars\DevExpress.XtraBars\Docking2010\Components\WidgetHost\WidgetContainer.cs:line 175
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hi,
In versions 19.1.7 and 19.2.3 we fixed an issue that occurs in the SkinImageColorizer.CalcLightness method in the scope of the System.ArgumentException is thrown in the SkinImageColorizer.CalcLightness method report. To check if the current shortcoming relates to that issue, upgrade your app to the latest minor update 19.2.5 or 19.1.8.
If you are already using the latest version, would you please isolate the issue into a simpler compilable project and send it to us for further investigation?
Hello,
I upgraded to 19.2
problem still there. I would say it is even worse since I had it immeditalely after upgrade.
I cannot reproduce it. It happens randomly.
That is very ambarassing since the application jus crash with no hope to recover.
I beleive you should address that as a matter of urgency.
I don't see myself delivering an app where I know it can blow up any time.
System.AccessViolationException
HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=mscorlib
StackTrace:
at System.Runtime.InteropServices.Marshal.ReadInt32(IntPtr ptr, Int32 ofs)
at DevExpress.Skins.SkinImageColorizer.CalcLightness(Image sourceImage)
at DevExpress.Skins.SkinImageColorizer.GetSmartColorizedImage(Image image, Color color)
at DevExpress.Skins.SkinImage.GetColoredImages(Image image)
at DevExpress.Skins.SkinImage.GetColoredImage(Image image)
at DevExpress.Skins.SkinImage.get_Image()
at DevExpress.Skins.SkinImage.GetImageBounds(Int32 index)
at DevExpress.Skins.SkinElementPainter.DrawSkinImage(SkinElementInfo elementInfo, SkinImage skinImage, SkinPaddingEdges padding)
at DevExpress.Skins.SkinElementPainter.DrawSkinImage(SkinElementInfo elementInfo, SkinImage skinImage)
at DevExpress.Skins.SkinElementPainter.DrawObject(ObjectInfoArgs e)
at DevExpress.Utils.Drawing.ObjectPainter.DrawObject(GraphicsCache cache, ObjectPainter painter, ObjectInfoArgs e)
at DevExpress.XtraBars.Docking2010.FloatDocumentFormSkinPainter.DrawBorder(GraphicsCache cache, FloatDocumentFormInfo info)
at DevExpress.XtraBars.Docking2010.FloatDocumentFormPainter.DrawCore(XtraBufferedGraphics bg, FloatDocumentFormInfo info)
at DevExpress.XtraBars.Docking2010.FloatDocumentFormPainter.Draw(IntPtr hDC, FloatDocumentFormInfo info)
at DevExpress.XtraBars.Docking2010.ColoredFloatDocumentFormSkinPainter.Draw(IntPtr hDC, FloatDocumentFormInfo info)
at DevExpress.XtraBars.Docking2010.Views.Widget.WidgetContainerSkinPainter.Draw(IntPtr hDC, FloatDocumentFormInfo info)
at DevExpress.XtraBars.Docking2010.DocumentContainer.DrawNC(Message& m)
at DevExpress.XtraBars.Docking2010.DocumentContainer.DoNCPaint(Message& m)
at DevExpress.XtraBars.Docking2010.DocumentContainer.WndProc(Message& m)
at DevExpress.XtraBars.Docking2010.Views.Widget.WidgetContainer.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hi,
I understand the urgency of this matter. We have analyzed our code and found several points to improve. Unfortunately, we cannot guarantee that these changes will fix the original issue since we cannot reproduce it on our side. That is why, we would ask you to request a hotfix and install it once it is ready. Usually, we provide hotfixes within a week. If you need it faster, just let us know.
We will update this thread once we introduce the required changes. Please bear with us.
Hello Svetlana and thank you for your answer.
Can U tell me what the procedure to request a hotfix plz ?
As soon as I'll know, I'll proceed.
Thx
Vincent, once we make all the required changes, we will create an auto-answer here and notify you via email. Then, you will be able to request a hotfix as described in the How to request a hotfix KB article.