locked
GDI+ hanging RRS feed

  • Question

  • User-1385434563 posted
    We have a web application that stream images (generated by GDI+) back to the client. On one particular server (MS 2003 standard server, 2GB memory, twin 2.6GHz cpus, latest patches etc.) We are experiencing a problem where the image generator is hanging erratically and requires an IIS reset to get it running again. There are no error messages and no event log entries. IIS continues to serve the non-GDI elements. The GDI is decoding raster/bitmaps. Hence we think there is an issue with the GDI. Has anyone had anything similar? What debugging tools should we use? Help!
    Friday, November 11, 2005 6:12 AM

All replies

  • User-1385434563 posted

    Have now loaded DebugDiag and left it sniffing a simple GDI program running on our live server.
    It failed within 24 hours and the hang analysis pointed to:

    '************************************
    Detected possible blocking or leaked critical section at GdiPlus!Globals::TextCriticalSection owned by thread 15 in w3wp.exe__DefaultAppPool__PID__2384__Date__11_23_2005__Time_09_05_36AM__953__IIS Hang Dump.dmp

    Impact of this lock

    6.90% of threads blocked

    (Threads 11 16)

    The following functions are trying to enter this critical section

    GdiPlus!GdipCreateFontFamilyFromName+5d

    GdiPlus!GdipCreateStringFormat+68

    The following module(s) are involved with this critical section

    C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.3790.1830_x-ww_24C40C58\GdiPlus.dll from Microsoft Corporation
    '***************************************

    This seems to confirm our suspicion of it being a Microsoft GDI+ problem.

    The program was attempting to dimension a new Stringformat object and failed with no errors whatsoever.

    What else should we look for in the analysis?

    Are there any updates to GDI+; or has this been resolved in Framework 2.0

    Any help would be appreciated as my client is losing patience with .NET

     

    Wednesday, November 23, 2005 7:58 AM