Bug Report T851374
Visible to All Users

AccessViolationException is randomly thrown in the SkinImageColorizer.CalcLightness method

created 5 years ago

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)

Show previous comments (2)
DevExpress Support Team 5 years ago

    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.

    VB VB
    Vincent Boilay 5 years ago

      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

      DevExpress Support Team 5 years ago

        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.

        Answers approved by DevExpress Support

        created 5 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Show previous comments (1)
          DevExpress Support Team 5 years ago

            Hi,

            We apply a hotfix to the latest available minor version, i.e. to version 19.2.5. Please refer to the How to request a hotfix KB where we describe this point.

            To ensure that your app uses hotfix libraries, run it in VS and open the Debug -> Windows -> Modules window. Find our assemblies there and see what values the Version field has. It should show a nonzero value after the last dot.

              There is a small typo above: the hotfix is for version 19.2.5 but juste before the link "Download hotfix", it is written 19.2.6

              DevExpress Support Team 5 years ago

                Hi,

                It is not a typo. We mean the version in which the issue will be officially fixed. That is why, you can see "Fixed In 19.2.6 / Next Release" there. Until the official minor update 19.2.6 is released, we provide a hotfix. A hotfix is generated by using our current intermediate build whose version is still 19.2.5.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.