[Error][Solved] OverflowException

KEMBL
edited April 2010 in DotNet
Server: Windows 2008 Server x64 R2 Standard
Client: Windows Vista Business SP2 x32
Exe file: Photon-DotNet_v5-7-1-RC2_SDK\demo-mmo\demo-client\Photon.Modules.Mmo.Client.GridDemo\bin\Debug\Photon.Modules.Mmo.Client.GridDemo.exe


Error pops when I try to test X64 version of server with application MmoSample
I was set <Applications Default="MmoSample">, uncomment MmoSample section and start server.

Error from log client window:
INFO  diagnostics: connected
INFO  1116e4b1-0725-4020-be0a-d2e950a6fb39: connected
INFO  1116e4b1-0725-4020-be0a-d2e950a6fb39: entered world Unity3d-Island
ERROR System.OverflowException: Ошибка переполнения.
   в System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   в System.Drawing.Graphics.FillRectangle(Brush brush, Single x, Single y, Single width, Single height)
   в Photon.Modules.Mmo.Client.GridDemo.GameTabPage.PaintActor(Game engine, Graphics grfx, Int32&#91;&#93; boardSize, Item actor) в c:\Dev\dotNet-sdks-split\demo-mmo\demo-client\Photon.Modules.Mmo.Client.GridDemo\GameTabPage.cs:string 935
   в Photon.Modules.Mmo.Client.GridDemo.GameTabPage.OnPaint(PaintEventArgs e) в c:\Dev\dotNet-sdks-split\demo-mmo\demo-client\Photon.Modules.Mmo.Client.GridDemo\GameTabPage.cs:string 545
   в System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   в System.Windows.Forms.Control.WmPaint(Message& m)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ERROR System.OverflowException: Ошибка переполнения.
   в System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   в System.Drawing.Graphics.FillRectangle(Brush brush, Single x, Single y, Single width, Single height)
   в Photon.Modules.Mmo.Client.GridDemo.RadarTabPage.OnPaint(PaintEventArgs e) в c:\Dev\dotNet-sdks-split\demo-mmo\demo-client\Photon.Modules.Mmo.Client.GridDemo\RadarTabPage.cs:string 118
   в System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   в System.Windows.Forms.Control.WmPaint(Message& m)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
INFO  1c4c6c66-8080-4c33-8ecc-10ec39982d06: connected
ERROR KEMBL2: unexpected return QueueIncomingUneliableWarning
ERROR KEMBL2: unexpected return QueueIncomingUneliableWarning
ERROR KEMBL2: unexpected return QueueIncomingUneliableWarning
ERROR diagnostics: unexpected return QueueIncomingReliableWarning

Server log:
7496: 18:59:41.077 - Server Starting...
7496: 18:59:41.077 - Config File: D:\server\Photon\deploy\bin_x64\PhotonSocketServer.xml
7496: 18:59:41.093 - WARNING: ENETBufferAllocatorPoolSize - not used when ENETUsePageAllocator is set to true. All buffers are pooled.
7496: 18:59:41.108 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Version=1.4.0.0, Culture=neutral, PublicKeyToken=02C301B61B060C4D
7496: 18:59:44.306 - Photon host runtime loaded
7496: 18:59:44.322 - License is valid.
7496: 18:59:44.322 - Licensed for 100 concurrent connections.
7496: 18:59:44.322 - Max Reliable Data In Transit (awaiting ACKs) per peer : 16384 bytes
7496: 18:59:44.322 - No Transmit Rate Limits imposed
7496: 18:59:44.322 - Minimum retransmit timeout: 200
7496: 19:00:04.664 - Adding TCP listener on :0.0.0.0: 4530 with a listen backlog of: 150
7496: 19:00:04.664 - UDP recv buffer size: 2147483647
7496: 19:00:04.664 - UDP send buffer size: 2147483647
7496: 19:00:04.664 - UDP address specified as:0.0.0.0 adding listener to each available IPv4 address
7496: 19:00:04.664 - Adding UDP listener on :73.44.101.51: 5055 with a listen backlog of: 500
7496: 19:00:04.664 - Adding UDP listener on :127.0.0.1: 5055 with a listen backlog of: 500
7496: 19:00:04.664 - Adding Flash TCP listener on :0.0.0.0: 843 with a listen backlog of: 150 and routing to application: "Policy"
7496: 19:00:04.664 - Adding Sliverlight TCP listener on :0.0.0.0: 943 with a listen backlog of: 150 and routing to application: "Policy"
7496: 19:00:04.727 - Service is running...

Server Application log:
2010-04-14 19:00:00,686 &#91;1&#93; INFO  Photon.Modules.Mmo.PhotonApplication - Application start. AppId: MmoSample
2010-04-14 19:00:00,733 &#91;1&#93; INFO  Photon.Modules.Mmo.PhotonApplication - ApplicationPath: D:\3D\server\Photon\deploy\MmoSample\Photon.Modules.Mmo
2010-04-14 19:00:36,005 &#91;9&#93; INFO  Photon.Modules.Mmo.MmoWorld - created world Unity3d-Island


The similar error occurs when I start x32 version of server on the same machine and try to connect to it:
INFO  diagnostics: connected
INFO  8e3ffec2-7b1e-45b4-8f9f-2e9a323838d2: connected
INFO  8e3ffec2-7b1e-45b4-8f9f-2e9a323838d2: entered world Unity3d-Island
ERROR System.OverflowException: Ошибка переполнения.
   в System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   в System.Drawing.Graphics.FillRectangle(Brush brush, Single x, Single y, Single width, Single height)
   в Photon.Modules.Mmo.Client.GridDemo.GameTabPage.PaintActor(Game engine, Graphics grfx, Int32&#91;&#93; boardSize, Item actor) в c:\Dev\dotNet-sdks-split\demo-mmo\demo-client\Photon.Modules.Mmo.Client.GridDemo\GameTabPage.cs:string 935
   в Photon.Modules.Mmo.Client.GridDemo.GameTabPage.OnPaint(PaintEventArgs e) в c:\Dev\dotNet-sdks-split\demo-mmo\demo-client\Photon.Modules.Mmo.Client.GridDemo\GameTabPage.cs:string 545
   в System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   в System.Windows.Forms.Control.WmPaint(Message& m)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Comments

  • The problem comes from the grid test player as it seems.
    You don't have .NET 4 installed or alike thats interfering?
    I'm on Win7 x64 Ultimate and didn't have any problems running the grid.

    (the server is not related to that error btw)
  • dreamora wrote:
    the server is not related to that error btw

    How to explain in this case, that with server on Windows 2003 Server SP2 x64 my client works with out any problem, but with server on Windows 2008 Server x64 R2 Standard I have got errors?

    Client is always my machine: Windows Vista Business SP2 x32
  • Are you sure that this is related to the machine?
    Or asked differently: did you ensure to change the .config file to use the correct ip for the server to connect to?

    I've no problems here. server runs on a 2008 32bit server, dotnet client here on my win7 64
  • dreamora wrote:
    Are you sure that this is related to the machine?
    Or asked differently: did you ensure to change the .config file to use the correct ip for the server to connect to?

    I've no problems here. server runs on a 2008 32bit server, dotnet client here on my win7 64

    Today I was retest this problem, and no errors pops! I think I was filled ip correctly yesterday. I was restart server between tries. Lets say it was my mistake, until I cant remake it.

    Thx for your attention!
  • No problem, glad its working :)