[Bug 48525] New: 0009:err:gdi:alloc_gdi_handle out of GDI object handles, expect a crash

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jan 27 03:05:06 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=48525

            Bug ID: 48525
           Summary: 0009:err:gdi:alloc_gdi_handle out of GDI object
                    handles, expect a crash
           Product: Wine
           Version: 4.0.2
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdiplus
          Assignee: wine-bugs at winehq.org
          Reporter: cagnulein at gmail.com
      Distribution: ---

On a commercial application written on .NET 2.0 i have a crash that occurs
randomly every few days.
I put the +seh debug here. I have 2 questions:
1) my +seh log file is full of 

0048:trace:seh:__regs_RtlUnwind handler at 0x7bc82da0 returned 1
0048:trace:seh:raise_exception code=40010006 flags=0 addr=0x7b43e223
ip=7b43e223 tid=0048
0048:trace:seh:raise_exception  info[0]=00000041
0048:trace:seh:raise_exception  info[1]=0d061dd8
0048:trace:seh:raise_exception  eax=7b42a5c1 ebx=00000004 ecx=0733ef20
edx=0733efd0 esi=00000041 edi=40010006
0048:trace:seh:raise_exception  ebp=0733ef78 esp=0733eef4 cs=300023 ds=002b
es=f7d7002b fs=006b gs=73c0063 flags=00000212
0048:trace:seh:call_stack_handlers calling handler at 0x7b48ad80 code=40010006
flags=0
0048:trace:seh:__regs_RtlUnwind code=40010006 flags=2
0048:trace:seh:__regs_RtlUnwind eax=00000000 ebx=7b48ace0 ecx=0733ef0c
edx=0733efd8 esi=0733efd8 edi=7b48ace0
0048:trace:seh:__regs_RtlUnwind ebp=0733eac8 esp=0733eaa8 eip=7b48ad3d cs=0023
ds=002b fs=006b gs=0063 flags=00000202
0048:trace:seh:__regs_RtlUnwind calling handler at 0x7bc82da0 code=40010006
flags=2

it's a problem of my application? Of wine gdiplus implementation?

2) In the meanwhile i'm trying with "winetricks gdiplus": what you think about
this +seh trace?

0048:trace:seh:call_stack_handlers calling handler at 0x7b48ad80 code=40010006
flags=0
0048:trace:seh:__regs_RtlUnwind code=40010006 flags=2
0048:trace:seh:__regs_RtlUnwind eax=00000000 ebx=7b48ace0 ecx=0733ef0c
edx=0733efd8 esi=0733efd8 edi=7b48ace0
0048:trace:seh:__regs_RtlUnwind ebp=0733eac8 esp=0733eaa8 eip=7b48ad3d cs=0023
ds=002b fs=006b gs=0063 flags=00000202
0048:trace:seh:__regs_RtlUnwind calling handler at 0x7bc82da0 code=40010006
flags=2
0048:trace:seh:__regs_RtlUnwind handler at 0x7bc82da0 returned 1
0048:trace:seh:raise_exception code=40010006 flags=0 addr=0x7b43e223
ip=7b43e223 tid=0048
0048:trace:seh:raise_exception  info[0]=00000041
0048:trace:seh:raise_exception  info[1]=0d061dd8
0048:trace:seh:raise_exception  eax=7b42a5c1 ebx=00000004 ecx=0733ef20
edx=0733efd0 esi=00000041 edi=40010006
0048:trace:seh:raise_exception  ebp=0733ef78 esp=0733eef4 cs=300023 ds=002b
es=f7d7002b fs=006b gs=73c0063 flags=00000212
0048:trace:seh:call_stack_handlers calling handler at 0x7b48ad80 code=40010006
flags=0
0048:trace:seh:__regs_RtlUnwind code=40010006 flags=2
0048:trace:seh:__regs_RtlUnwind eax=00000000 ebx=7b48ace0 ecx=0733ef0c
edx=0733efd8 esi=0733efd8 edi=7b48ace0
0048:trace:seh:__regs_RtlUnwind ebp=0733eac8 esp=0733eaa8 eip=7b48ad3d cs=0023
ds=002b fs=006b gs=0063 flags=00000202
0048:trace:seh:__regs_RtlUnwind calling handler at 0x7bc82da0 code=40010006
flags=2
0048:trace:seh:__regs_RtlUnwind handler at 0x7bc82da0 returned 1
0048:trace:seh:raise_exception code=40010006 flags=0 addr=0x7b43e223
ip=7b43e223 tid=0048
0048:trace:seh:raise_exception  info[0]=0000003e
0048:trace:seh:raise_exception  info[1]=0d0719e8
0048:trace:seh:raise_exception  eax=7b42a5c1 ebx=00000004 ecx=0733ef50
edx=0733f000 esi=0000003e edi=40010006
0048:trace:seh:raise_exception  ebp=0733efa8 esp=0733ef24 cs=0023 ds=34002b
es=733002b fs=7dd9006b gs=7330063 flags=00000216
0048:trace:seh:call_stack_handlers calling handler at 0x7b48ad80 code=40010006
flags=0
0048:trace:seh:__regs_RtlUnwind code=40010006 flags=2
0048:trace:seh:__regs_RtlUnwind eax=00000000 ebx=7b48ace0 ecx=0733ef3c
edx=0733f008 esi=0733f008 edi=7b48ace0
0048:trace:seh:__regs_RtlUnwind ebp=0733eaf8 esp=0733ead8 eip=7b48ad3d cs=0023
ds=002b fs=006b gs=0063 flags=00000202
0048:trace:seh:__regs_RtlUnwind calling handler at 0x7bc82da0 code=40010006
flags=2
0048:trace:seh:__regs_RtlUnwind handler at 0x7bc82da0 returned 1
0009:trace:seh:raise_exception code=40010006 flags=0 addr=0x7b43e223
ip=7b43e223 tid=0009
0009:trace:seh:raise_exception  info[0]=00000046
0009:trace:seh:raise_exception  info[1]=0d068440
0009:trace:seh:raise_exception  eax=7b42a5c1 ebx=00000004 ecx=0032e720
edx=0032e7d0 esi=00000046 edi=40010006
0009:trace:seh:raise_exception  ebp=0032e778 esp=0032e6f4 cs=0023 ds=34002b
es=002b fs=006b gs=0063 flags=00000212
0009:trace:seh:call_stack_handlers calling handler at 0x7b48ad80 code=40010006
flags=0
0009:trace:seh:__regs_RtlUnwind code=40010006 flags=2
0009:trace:seh:__regs_RtlUnwind eax=00000000 ebx=7b48ace0 ecx=0032e70c
edx=0032e7d8 esi=0032e7d8 edi=7b48ace0
0009:trace:seh:__regs_RtlUnwind ebp=0032e2c8 esp=0032e2a8 eip=7b48ad3d cs=0023
ds=002b fs=006b gs=0063 flags=00000202
0009:trace:seh:__regs_RtlUnwind calling handler at 0x7bc82da0 code=40010006
flags=2
0009:trace:seh:__regs_RtlUnwind handler at 0x7bc82da0 returned 1
0009:err:gdi:alloc_gdi_handle out of GDI object handles, expect a crash

Fatal,Program[1:MainThread]: System.Runtime.InteropServices.SEHException:
External component has thrown an exception.
   at System.Drawing.SafeNativeMethods.SelectObject(HandleRef hdc, HandleRef
obj)
   at System.Drawing.BufferedGraphicsContext.DisposeDC()
   at System.Drawing.BufferedGraphicsContext.ReleaseBuffer(BufferedGraphics
buffer)
   at System.Drawing.BufferedGraphics.Dispose(Boolean disposing)
   at System.Drawing.BufferedGraphics.Dispose()
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.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.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam) 

I can't share the application because it's not free, but if you need more
information i will try to get them.
Thanks in advance

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list