Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

InvalidRectangleExceptions hanging Gameex


Recommended Posts

Posted

I just installed GameEx on a clean install XP sp3 with an ATI Radeon X700, latest drivers (tried november release as well with same result) and it always (9/10) hangs when going back up a menu using backspace or when trying to start a game. I attached with windbg and saw a bunch of exceptions of type Microsoft.DirectX.DirectDraw.InvalidRectangleException thrown that look like they're a programmatic fault, not a driver fault.

Here is the first instance of this exception in this particular run:

'Microsoft.DirectX.DirectDraw.InvalidRectangleException hit'

First chance exceptions are reported before any exception handling.

This exception may be expected and handled.

eax=0012ee4c ebx=e0434f4d ecx=00000000 edx=00000029 esi=0012eed8 edi=00149740

eip=7c812aeb esp=0012ee48 ebp=0012ee9c iopl=0 nv up ei pl nz na po nc

cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202

KERNEL32!RaiseException+0x52:

7c812aeb 5e pop esi

0:000> !clrstack

OS Thread Id: 0x75c (0)

ESP EIP

0012ef24 7c812aeb [HelperMethodFrame: 0012ef24]

0012efc8 0d63cdb3 Microsoft.DirectX.DirectDraw.Surface.DrawInternal(Microsoft.DirectX.PrivateImple

mentationDetails.tagRECT*, Microsoft.DirectX.DirectDraw.Surface, Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, Microsoft.DirectX.DirectDraw.DrawFlags, Microsoft.DirectX.DirectDraw.DrawEffects ByRef)

0012f01c 0d63cc45 Microsoft.DirectX.DirectDraw.Surface.Draw(System.Drawing.Rectangle, Microsoft.DirectX.DirectDraw.Surface, System.Drawing.Rectangle, Microsoft.DirectX.DirectDraw.DrawFlags)

0012f044 09d3bbb7 k.b(Int32, Int32, System.String)

0012f0c0 0d638dc7 k.al()

0012f3a4 0d633e3a k.ak()

0012f3d4 03c13560 k..ctor()

0012f45c 03c12801 k.a(System.String[])

0012f69c 79e7c74b [GCFrame: 0012f69c]

According to this page (http://www.tar.hu/directx9kick/ch17lev1sec1.html) InvalidRectangleExceptions in DirectDraw are because of out of bounds rectangles passed.

I'm not certain this is what is causing the freeze but whenever I break into a frozen instance of gameex there is no interesting managed code on the stack. I am glad to do remote debugging if someone will point me in a particular area to investigate but as of right now I'm pretty stuck.

Posted
I just installed GameEx on a clean install XP sp3 with an ATI Radeon X700, latest drivers (tried november release as well with same result) and it always (9/10) hangs when going back up a menu using backspace or when trying to start a game. I attached with windbg and saw a bunch of exceptions of type Microsoft.DirectX.DirectDraw.InvalidRectangleException thrown that look like they're a programmatic fault, not a driver fault.

Here is the first instance of this exception in this particular run:

'Microsoft.DirectX.DirectDraw.InvalidRectangleException hit'

First chance exceptions are reported before any exception handling.

This exception may be expected and handled.

eax=0012ee4c ebx=e0434f4d ecx=00000000 edx=00000029 esi=0012eed8 edi=00149740

eip=7c812aeb esp=0012ee48 ebp=0012ee9c iopl=0 nv up ei pl nz na po nc

cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202

KERNEL32!RaiseException+0x52:

7c812aeb 5e pop esi

0:000> !clrstack

OS Thread Id: 0x75c (0)

ESP EIP

0012ef24 7c812aeb [HelperMethodFrame: 0012ef24]

0012efc8 0d63cdb3 Microsoft.DirectX.DirectDraw.Surface.DrawInternal(Microsoft.DirectX.PrivateImple

mentationDetails.tagRECT*, Microsoft.DirectX.DirectDraw.Surface, Microsoft.DirectX.PrivateImplementationDetails.tagRECT*, Microsoft.DirectX.DirectDraw.DrawFlags, Microsoft.DirectX.DirectDraw.DrawEffects ByRef)

0012f01c 0d63cc45 Microsoft.DirectX.DirectDraw.Surface.Draw(System.Drawing.Rectangle, Microsoft.DirectX.DirectDraw.Surface, System.Drawing.Rectangle, Microsoft.DirectX.DirectDraw.DrawFlags)

0012f044 09d3bbb7 k.b(Int32, Int32, System.String)

0012f0c0 0d638dc7 k.al()

0012f3a4 0d633e3a k.ak()

0012f3d4 03c13560 k..ctor()

0012f45c 03c12801 k.a(System.String[])

0012f69c 79e7c74b [GCFrame: 0012f69c]

According to this page (http://www.tar.hu/directx9kick/ch17lev1sec1.html) InvalidRectangleExceptions in DirectDraw are because of out of bounds rectangles passed.

I'm not certain this is what is causing the freeze but whenever I break into a frozen instance of gameex there is no interesting managed code on the stack. I am glad to do remote debugging if someone will point me in a particular area to investigate but as of right now I'm pretty stuck.

Have you tried changing your theme?

Posted

Or changing your resolution? There is a pretty good chance that you are running your theme at a resolution that it wasn't designed for.

Posted
Or changing your resolution? There is a pretty good chance that you are running your theme at a resolution that it wasn't designed for.

Thanks. I changed the theme to something else and I haven't seen the hang yet. I'm still seeing the exceptions but there don't seem to be any side effects to them so they're probably a red herring.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...