CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
228 stars 91 forks source link

Client Crash after create a LAN Game Room in few seconds #558

Closed Flactine closed 1 month ago

Flactine commented 1 month ago

When created a LAN Game Room, client will crash in few seconds. This is Client.log.

16.09. 15:14:07.747    Discord: Pipe Connection Failed. Could not connect to pipe #-1
16.09. 15:14:11.922    KABOOOOOOM!!! Info:
16.09. 15:14:11.922    Type: System.Reflection.TargetInvocationException
16.09. 15:14:11.923    Message: Exception has been thrown by the target of an invocation.
16.09. 15:14:11.932    Source: mscorlib
16.09. 15:14:11.932    TargetSite.Name: InvokeMethod
16.09. 15:14:11.933    Stacktrace:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   at Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   at DTAClient.DXGUI.Multiplayer.LANLobby.Update(GameTime gameTime)
   at Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   at Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   at ClientGUI.DarkeningPanel.Update(GameTime gameTime) in D:\xna-cncnet-client\ClientGUI\DarkeningPanel.cs:line 93
   at Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.SortingFilteringCollection`1.ForEachFilteredItem[TUserData](Action`2 action, TUserData userData)
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at MonoGame.Framework.WinFormsGameWindow.TickOnIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at MonoGame.Framework.WinFormsGameWindow.RunLoop()
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   at DTAClient.Startup.Execute()
   at DTAClient.PreStartup.Initialize(StartupParams parameters)
16.09. 15:14:11.933    InnerException info:
16.09. 15:14:11.933    Type: System.NullReferenceException
16.09. 15:14:11.933    Message: Object reference not set to an instance of an object.
16.09. 15:14:11.934    Source: clientdx
16.09. 15:14:11.934    TargetSite.Name: <GetSortedGames>b__28_1
16.09. 15:14:11.934    Stacktrace:    at DTAClient.DXGUI.Multiplayer.GameListBox.<GetSortedGames>b__28_1(GenericHostedGame hg)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at DTAClient.DXGUI.Multiplayer.GameListBox.Refresh()
   at DTAClient.DXGUI.Multiplayer.LANLobby.HandleNetworkMessage(String data, IPEndPoint endPoint)
16.09. 15:14:11.935    KABOOOOOOOM
SadPencil commented 1 month ago

Please provide a screenshot of the "Details" tab from the properties window of the file clientdx.exe so we could determine whether the client is latest.

Pxhig

SadPencil commented 1 month ago

Also, suppose you are a modder. Please keep all *.pdb files corresponding with .exe or .dll files. This is essential for the client to generate a detailed error log so we could easily locate the potential bug.

Otherwise, if you are a player, please explicitly write the name and version of the mod you are playing.

pzhlkj6612 commented 1 month ago

One tech tip:

You can use the "code block" format to avoid the stack trace you posted being wrongly formatted by GitHub:

ABCDE_F_G

It will give you:

A`B`C~~D~~**E_F_G**

Not this:

ABCDE_F_G

See https://docs.github.com/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.

Flactine commented 1 month ago

Please provide a screenshot of the "Details" tab from the properties window of the file clientdx.exe so we could determine whether the client is latest.

Pxhig

image

SadPencil commented 1 month ago

Please provide a screenshot of the "Details" tab from the properties window of the file clientdx.exe so we could determine whether the client is latest. Pxhig

image

Yes, it is the latest.

Could you rebuild the client using "Scripts\BuildAres.bat" (or TS/YR depending on your mod), copy the "Compiled" folder to override the client (important: don't delete these *.pdb files) and repeat the steps to reproduce this error? The client with PDB files can produce a more detailed error log with line numbers. Paste the detailed error log.

Flactine commented 1 month ago

Please provide a screenshot of the "Details" tab from the properties window of the file clientdx.exe so we could determine whether the client is latest. Pxhig

image

Yes, it is the latest.

Could you rebuild the client using "Scripts\BuildAres.bat" (or TS/YR depending on your mod), copy the "Compiled" folder to override the client (important: don't delete these *.pdb files) and repeat the steps to reproduce this error? The client with PDB files can produce a more detailed error log with line numbers. Paste the detailed error log.

At System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   At System.Delegate.DynamicInvokeImpl(Object[] args)
   At Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   At Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   At DTAClient.DXGUI.Multiplayer.LANLobby.Update(GameTime gameTime) at D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\LANLobby.cs:Line 656
   At Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   At Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   At ClientGUI.DarkeningPanel.Update(GameTime gameTime) at D:\xna-cncnet-client\ClientGUI\DarkeningPanel.cs:Line 93
   At Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
   At Microsoft.Xna.Framework.Game.SortingFilteringCollection`1.ForEachFilteredItem[TUserData](Action`2 action, TUserData userData)
   At Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   At Microsoft.Xna.Framework.Game.Tick()
   At MonoGame.Framework.WinFormsGameWindow.TickOnIdle(Object sender, EventArgs e)
   At System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   At System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   At System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   At System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   At MonoGame.Framework.WinFormsGameWindow.RunLoop()
   At Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   At DTAClient.Startup.Execute() at D:\xna-cncnet-client\DXMainClient\Startup.cs:Line 149
   At DTAClient.PreStartup.Initialize(StartupParams parameters) at D:\xna-cncnet-client\DXMainClient\PreStartup.cs:Line 202
SadPencil commented 1 month ago

Please provide a screenshot of the "Details" tab from the properties window of the file clientdx.exe so we could determine whether the client is latest. Pxhig

image

Yes, it is the latest. Could you rebuild the client using "Scripts\BuildAres.bat" (or TS/YR depending on your mod), copy the "Compiled" folder to override the client (important: don't delete these *.pdb files) and repeat the steps to reproduce this error? The client with PDB files can produce a more detailed error log with line numbers. Paste the detailed error log.

At System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   At System.Delegate.DynamicInvokeImpl(Object[] args)
   At Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   At Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   At DTAClient.DXGUI.Multiplayer.LANLobby.Update(GameTime gameTime) at D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\LANLobby.cs:Line 656
   At Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   At Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   At ClientGUI.DarkeningPanel.Update(GameTime gameTime) at D:\xna-cncnet-client\ClientGUI\DarkeningPanel.cs:Line 93
   At Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
   At Microsoft.Xna.Framework.Game.SortingFilteringCollection`1.ForEachFilteredItem[TUserData](Action`2 action, TUserData userData)
   At Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   At Microsoft.Xna.Framework.Game.Tick()
   At MonoGame.Framework.WinFormsGameWindow.TickOnIdle(Object sender, EventArgs e)
   At System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   At System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   At System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   At System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   At MonoGame.Framework.WinFormsGameWindow.RunLoop()
   At Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   At DTAClient.Startup.Execute() at D:\xna-cncnet-client\DXMainClient\Startup.cs:Line 149
   At DTAClient.PreStartup.Initialize(StartupParams parameters) at D:\xna-cncnet-client\DXMainClient\PreStartup.cs:Line 202

Do paste the full log here. Don't delete any part of the log even if you think it's irrelevant.

I need to access the missing InnerException in the log.

Flactine commented 1 month ago

Please provide a screenshot of the "Details" tab from the properties window of the file clientdx.exe so we could determine whether the client is latest. Pxhig

image

Yes, it is the latest. Could you rebuild the client using "Scripts\BuildAres.bat" (or TS/YR depending on your mod), copy the "Compiled" folder to override the client (important: don't delete these *.pdb files) and repeat the steps to reproduce this error? The client with PDB files can produce a more detailed error log with line numbers. Paste the detailed error log.

At System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   At System.Delegate.DynamicInvokeImpl(Object[] args)
   At Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   At Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   At DTAClient.DXGUI.Multiplayer.LANLobby.Update(GameTime gameTime) at D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\LANLobby.cs:Line 656
   At Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   At Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   At ClientGUI.DarkeningPanel.Update(GameTime gameTime) at D:\xna-cncnet-client\ClientGUI\DarkeningPanel.cs:Line 93
   At Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
   At Microsoft.Xna.Framework.Game.SortingFilteringCollection`1.ForEachFilteredItem[TUserData](Action`2 action, TUserData userData)
   At Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   At Microsoft.Xna.Framework.Game.Tick()
   At MonoGame.Framework.WinFormsGameWindow.TickOnIdle(Object sender, EventArgs e)
   At System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   At System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   At System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   At System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   At MonoGame.Framework.WinFormsGameWindow.RunLoop()
   At Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   At DTAClient.Startup.Execute() at D:\xna-cncnet-client\DXMainClient\Startup.cs:Line 149
   At DTAClient.PreStartup.Initialize(StartupParams parameters) at D:\xna-cncnet-client\DXMainClient\PreStartup.cs:Line 202

Do paste the full log here. Don't delete any part of logs even if you think it's irrelevant.

I need to access the missing InnerException in the log.

行号 = Line

19.09. 19:38:58.588    ***Logfile for Game client***
19.09. 19:38:58.589    Client version: 2.11.0.0
19.09. 19:38:58.589    Loading settings.
19.09. 19:38:58.602    Loading generic translation file at D:\Game\Resources\Translations\zh-Hans\Translation.ini
19.09. 19:38:58.614    Loaded translation: 简体中文
19.09. 19:38:58.614    Translation stub generation feature is now enabled. The stub file will be written when the client exits.
19.09. 19:38:58.632    Initializing updater.
19.09. 19:38:58.651    Updater: Initializing updater.
19.09. 19:38:58.654    Warning: No download mirrors found in updater config file or the built-in game info.
19.09. 19:38:58.654    Updater: Update mirror count: 0
19.09. 19:38:58.654    Updater: Running from: clientdx.exe
19.09. 19:38:58.655    OSDescription: Microsoft Windows 10.0.19045 
19.09. 19:38:58.655    OSArchitecture: X64
19.09. 19:38:58.655    ProcessArchitecture: X64
19.09. 19:38:58.655    FrameworkDescription: .NET Framework 4.8.9261.0
19.09. 19:38:58.656    Selected OS profile: WIN810
19.09. 19:38:58.656    Current culture: zh-CN
19.09. 19:38:59.769    Removing partial custom component downloads.
19.09. 19:38:59.770    Checking for the existence of FinalSun.ini.
19.09. 19:38:59.771    FinalSun settings file exists.
19.09. 19:38:59.773    Hardware info: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz (8 cores) | Video controller: NVIDIA GeForce RTX 3060 Laptop GPU Video controller: Intel(R) UHD Graphics | Total physical memory: 32GB
19.09. 19:38:59.798    Writing installation path to the Windows registry.
19.09. 19:38:59.802    Starting background processing of INI files.
19.09. 19:38:59.802    /INI/Base does not exist, skipping background processing of INI files.
19.09. 19:39:00.208    Initializing GameClass.
19.09. 19:39:00.403    InitGraphicsMode: 1280x800
19.09. 19:39:01.299    Loading maps from D:\Game\INI\MPMaps.ini.
19.09. 19:39:03.524    DiscordHandler: Connected Discord RPC client.
19.09. 19:39:03.740    Attempting to parse INI/Battle.ini to populate mission list.
19.09. 19:39:03.746    Finished parsing INI/Battle.ini.
19.09. 19:39:03.899    Reading statistics.
19.09. 19:39:06.043    Checkbox 'chkCrates' has forced value in gamemode - saved settings ignored.
19.09. 19:39:13.525    Discord: Pipe Connection Failed. Could not connect to pipe #-1
19.09. 19:39:25.211    Discord: Pipe Connection Failed. Could not connect to pipe #-1
19.09. 19:39:26.923    Creating LAN socket.
19.09. 19:39:26.924    Starting listener.
19.09. 19:39:27.831    New client connected from 127.0.0.1
19.09. 19:39:27.860    Hash for ResourcesFHCConfig.ini: 017256479098defd835489c3ab2c4c3ec00a08bb
19.09. 19:39:27.860    Hash for Resources\GameOptions.ini: e62803e17734a69a855b7def6d2bcba80ea6485b
19.09. 19:39:27.860    Hash for Resources\clientdx.exe: edc18d1ad382aa21ade799370a3d69c08b186a2b
19.09. 19:39:27.860    Hash for Resources\clientxna.exe: 37031caef6a74f97b7bfead6907a1846c31a8df2
19.09. 19:39:27.860    Hash for Resources\clientogl.exe: b8ed7c5632b8a590b41d0458f2c2f129fe93944a
19.09. 19:39:27.860    Hash for ClientDXNET8: 24b16e883f6a0f9623ee4c722c4d97e73db9d2e4
19.09. 19:39:27.861    Hash for ClientXNANET8: d247b5fbca9c0908f3cfb540d7e35d3d1e03c5a0
19.09. 19:39:27.861    Hash for ClientOGLNET8: 58a950ac01dc1ae5459a3451db788a5e778de753
19.09. 19:39:27.861    Hash for ClientUGLNET8: 1aa9f113c7c46e5644dedcd9a0fdc492182f126e
19.09. 19:39:27.861    Hash for INI\MPMaps.ini: 647d602ffb1b9fde043c9db9c3d8b21a37a75a4c
19.09. 19:39:27.861    Hash for syringe.exe: 9d228488b3d5f70e66d69f22dda469007afd81e6
19.09. 19:39:27.861    Hash for Ares.dll: 
19.09. 19:39:27.863    Hash for Ares.mix: 9d750a08b84ac1a8445704a56fdaa798c55eb2a4
19.09. 19:39:27.864    Hash for Ares.dll.inj: 0a52496f93fc0055dc7b8ab5d5679150f1530dc1
19.09. 19:39:27.865    Hash for cncnet5.dll: 8d38db57c46281c31e5143372941ce15d1c3f56e
19.09. 19:39:27.865    Hash for expandmd99.mix: 
19.09. 19:39:27.865    Hash for rulesmd.ini: 
19.09. 19:39:27.865    Hash for artmd.ini: 
19.09. 19:39:27.865    Hash for soundmd.ini: 
19.09. 19:39:27.865    Hash for shroud.shp: 
19.09. 19:39:27.865    Hash for Capture The Flag.ini: 
19.09. 19:39:27.865    Hash for Cooperative.ini: 
19.09. 19:39:27.865    Hash for Free For All.ini: 
19.09. 19:39:27.865    Hash for Land Rush.ini: 
19.09. 19:39:27.866    Hash for Meat Grinder.ini: 
19.09. 19:39:27.866    Hash for Megawealth.ini: 
19.09. 19:39:27.866    Hash for Mod Maps.ini: 
19.09. 19:39:27.866    Hash for Naval War.ini: 
19.09. 19:39:27.866    Hash for Standard.ini: 
19.09. 19:39:27.866    Hash for Survival.ini: 
19.09. 19:39:27.866    Hash for Tech Share.ini: 
19.09. 19:39:27.866    Hash for Tournament.ini: 
19.09. 19:39:27.867    Hash for Unholy Alliance.ini: 
19.09. 19:39:27.867    Hash for Acid.ini: 
19.09. 19:39:27.867    Hash for Allies Allowed.ini: 
19.09. 19:39:27.867    Hash for Auto Repair.ini: 
19.09. 19:39:27.867    Hash for Clone AI.ini: 
19.09. 19:39:27.868    Hash for ConYard Start.ini: 
19.09. 19:39:27.868    Hash for Country Eva.ini: 
19.09. 19:39:27.868    Hash for CratesDefault.ini: 
19.09. 19:39:27.868    Hash for CratesEverywhere.ini: 
19.09. 19:39:27.868    Hash for CratesFew.ini: 
19.09. 19:39:27.868    Hash for CratesMany.ini: 
19.09. 19:39:27.868    Hash for CratesNone.ini: 
19.09. 19:39:27.868    Hash for Dawn.ini: 
19.09. 19:39:27.868    Hash for Debug Mode.ini: 
19.09. 19:39:27.869    Hash for Dusk.ini: 
19.09. 19:39:27.869    Hash for Dynamic Music.ini: 
19.09. 19:39:27.869    Hash for Free Radar.ini: 
19.09. 19:39:27.869    Hash for HuskNone.ini: 
19.09. 19:39:27.869    Hash for HuskPerma.ini: 
19.09. 19:39:27.869    Hash for HuskTempo.ini: 
19.09. 19:39:27.869    Hash for Immune Bridge.ini: 
19.09. 19:39:27.869    Hash for Immune Derricks.ini: 
19.09. 19:39:27.870    Hash for Limited MCV.ini: 
19.09. 19:39:27.870    Hash for Night.ini: 
19.09. 19:39:27.870    Hash for No Airstrike.ini: 
19.09. 19:39:27.870    Hash for No Naval.ini: 
19.09. 19:39:27.870    Hash for NoSpawnPreviews.ini: 
19.09. 19:39:27.870    Hash for Noon.ini: 
19.09. 19:39:27.870    Hash for Normal.ini: 
19.09. 19:39:27.870    Hash for Online Mode.ini: 
19.09. 19:39:27.871    Hash for OreDouble.ini: 
19.09. 19:39:27.871    Hash for OreGrowth.ini: 
19.09. 19:39:27.871    Hash for OreSpread.ini: 
19.09. 19:39:27.871    Hash for OreStandard.ini: 
19.09. 19:39:27.871    Hash for Rain.ini: 
19.09. 19:39:27.871    Hash for SWAll.ini: 
19.09. 19:39:27.871    Hash for SWMajor.ini: 
19.09. 19:39:27.871    Hash for SWMinor.ini: 
19.09. 19:39:27.871    Hash for SWNone.ini: 
19.09. 19:39:27.872    Hash for Small Map Adapt.ini: 
19.09. 19:39:27.872    Hash for Snow.ini: 
19.09. 19:39:27.872    Hash for Stolen Unit.ini: 
19.09. 19:39:27.872    Hash for Thunder.ini: 
19.09. 19:39:27.872    Hash for ThunderStorm.ini: 
19.09. 19:39:27.872    Hash for Vanilla Hero.ini: 
19.09. 19:39:27.876    Complete hash: 7d3808a54b2d38886c174c39951dad176fc807bb
19.09. 19:39:37.858    KABOOOOOOM!!! Info:
19.09. 19:39:37.858    Type: System.Reflection.TargetInvocationException
19.09. 19:39:37.858    Message: 调用的目标发生了异常。
19.09. 19:39:37.910    Source: mscorlib
19.09. 19:39:37.910    TargetSite.Name: InvokeMethod
19.09. 19:39:37.911    Stacktrace:    在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Delegate.DynamicInvokeImpl(Object[] args)
   在 Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   在 Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   在 DTAClient.DXGUI.Multiplayer.LANLobby.Update(GameTime gameTime) 位置 D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\LANLobby.cs:行号 656
   在 Rampastring.XNAUI.XNAControls.XNAControl.Update(GameTime gameTime)
   在 Rampastring.XNAUI.XNAControls.XNAPanel.Update(GameTime gameTime)
   在 ClientGUI.DarkeningPanel.Update(GameTime gameTime) 位置 D:\xna-cncnet-client\ClientGUI\DarkeningPanel.cs:行号 93
   在 Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
   在 Microsoft.Xna.Framework.Game.SortingFilteringCollection`1.ForEachFilteredItem[TUserData](Action`2 action, TUserData userData)
   在 Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   在 Microsoft.Xna.Framework.Game.Tick()
   在 MonoGame.Framework.WinFormsGameWindow.TickOnIdle(Object sender, EventArgs e)
   在 System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   在 MonoGame.Framework.WinFormsGameWindow.RunLoop()
   在 Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   在 DTAClient.Startup.Execute() 位置 D:\xna-cncnet-client\DXMainClient\Startup.cs:行号 149
   在 DTAClient.PreStartup.Initialize(StartupParams parameters) 位置 D:\xna-cncnet-client\DXMainClient\PreStartup.cs:行号 202
19.09. 19:39:37.912    InnerException info:
19.09. 19:39:37.912    Type: System.NullReferenceException
19.09. 19:39:37.912    Message: 未将对象引用设置到对象的实例。
19.09. 19:39:37.916    Source: clientdx
19.09. 19:39:37.917    TargetSite.Name: <GetSortedGames>b__28_1
19.09. 19:39:37.917    Stacktrace:    在 DTAClient.DXGUI.Multiplayer.GameListBox.<GetSortedGames>b__28_1(GenericHostedGame hg) 位置 D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\GameListBox.cs:行号 131
   在 System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   在 System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   在 System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   在 System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   在 DTAClient.DXGUI.Multiplayer.GameListBox.Refresh() 位置 D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\GameListBox.cs:行号 96
   在 DTAClient.DXGUI.Multiplayer.LANLobby.HandleNetworkMessage(String data, IPEndPoint endPoint) 位置 D:\xna-cncnet-client\DXMainClient\DXGUI\Multiplayer\LANLobby.cs:行号 494
19.09. 19:39:37.920    KABOOOOOOOM

Game 已崩溃。错误信息:

调用的目标发生了异常。

崩溃错误日志已被储存到以下文件: 

D:\Game\Client\ClientCrashLogs\ClientCrashLog_2024_09_19_19_39.txt

如果错误不断重现,请联系 Game 制作人员 www.ea.com 并提供日志文件。
19.09. 19:39:38.086    Discord: Pipe Connection Failed. Could not connect to pipe #-1
19.09. 19:39:39.967    Writing the translation stub file.
SadPencil commented 1 month ago

@Flactine Please obtain the testing build from https://github.com/CnCNet/xna-cncnet-client/pull/560 (the bot will upload compiled programs in a few minutes) and report whether this issue is solved or not.

Flactine commented 1 month ago

@Flactine Please obtain the testing build from #560 (the bot will upload compiled programs in a few minutes) and report whether this issue is solved or not.

The problem has been resolved. Currently, no crashes occur after the LAN room is created.