Game Crashes When Viewing Battles Possible .NET Issue

Moderator: MOD_DW2

blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Hello,
As stated the game crashes when trying to closely view combat. The log files of the game itself don't always seem to be created, I have only one, but the Microsoft Event Viewer has many. This is from Event Viewer:

Application: DistantWorlds2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at DistantWorlds2.DWGame.EndLoadGame()
at DistantWorlds2.DWGame.Update(Xenko.Games.GameTime)
at Xenko.Games.GameBase.UpdateAndProfile(Xenko.Games.GameTime)
at Xenko.Games.GameBase.TickInternal()
at Xenko.Games.GameBase.Tick()
at Xenko.Games.GamePlatform.Tick()
at Xenko.Games.GamePlatform.OnRunCallback()
at Xenko.Games.WindowsMessageLoop.Run(System.Windows.Forms.Control, RenderCallback, Boolean)
at Xenko.Games.GameWindowWinforms.Run()
at Xenko.Games.GameBase.Run(Xenko.Games.GameContext)
at wloXycPd9d34u2Md6A.mCsd5U4u9fycSAQsZ3.hXyPvFspDZs7c3Z0ie4(System.Object, System.Object)
at wloXycPd9d34u2Md6A.mCsd5U4u9fycSAQsZ3.t1yE59MD8(System.Object)
at <PrivateImplementationDetails>{F41B7D11-ED3A-432A-A123-3F128B08AB89}.Main(System.String[])

Basically, something happens that causes my display drivers to act weird, possibly with the .NET framework having an exception.

My DxDiag is attached below.
Thanks
Attachments
DxDiag.txt
(24.77 KiB) Downloaded 29 times
Last edited by blarglol on Sat Mar 12, 2022 11:37 pm, edited 1 time in total.
User avatar
Erik Rutins
Posts: 39761
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by Erik Rutins »

Thank you for the report. The Radeon HD 7800 appears to be lower in performance than our minimum spec GeForce 760-equivalent, so it may be that this is what's causing the problem. Does playing on the smallest galaxy size help at all?

I will pass this on to Elliot regardless.
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Erik Rutins wrote: Sat Mar 12, 2022 7:22 pm Thank you for the report. The Radeon HD 7800 appears to be lower in performance than our minimum spec GeForce 760-equivalent, so it may be that this is what's causing the problem. Does playing on the smallest galaxy size help at all?

I will pass this on to Elliot regardless.
I was playing on the medium one, the second galaxy option. I have 2 GPUs though in Crossfire so it is more power than meets the eye. My CPU is 4.2 GHZ and I have plenty of RAM to back them up. I know the cards are old and not in spec, but everything else works fine. Everything renders fine and FPS ranges from 30-50. They can play the game, it's just entering combat. It is odd that my system would run fine on everything until I go in to watch combat.
User avatar
Erik Rutins
Posts: 39761
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by Erik Rutins »

Ah, understood - two cards working in tandem. Does the HD 7800 fully support DirectX 11?
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Erik Rutins wrote: Sun Mar 13, 2022 1:14 am Ah, understood - two cards working in tandem. Does the HD 7800 fully support DirectX 11?
I believe so. I have had DX11 for years on these cards without any such problems. DX11 launched in 2009 and these cards are from 2013. I have seen other users saying they had similar issues regarding crashing during battles, and they had different GPUs. I will try the options you suggested above in the sticky for AMD cards and get back to you. Also, this was in the game log files, it might be related to this particular crash and help your team:

Distant Worlds - Crash Dump - Version 1.0.1.6

4:40:06 PM Friday, March 11, 2022


SharpDX.SharpDXException: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: Unknown
at SharpDX.Result.CheckError()
at SharpDX.Direct3D11.Device.CreateBuffer(BufferDescription& descRef, Nullable`1 initialDataRef, Buffer bufferOut)
at SharpDX.Direct3D11.Buffer..ctor(Device device, IntPtr dataPointer, BufferDescription description)
at Xenko.Graphics.Buffer.InitializeFromImpl(BufferDescription description, BufferFlags viewFlags, PixelFormat viewFormat, IntPtr dataPointer)
at Xenko.Graphics.Buffer.ToStaging()
at Xenko.Graphics.Buffer.GetData[TData](CommandList commandList, TData[] toData)
at Xenko.Graphics.Buffer.GetData[TData](CommandList commandList)
at DistantWorlds.Types.ModelVertexData.GetVertexData(Game game, Mesh mesh, Quaternion rotation, Single inflationFactor, VertexPositionNormalTexture[]& vertices, Int32[]& indices, Vector3& size, Vector3& minimum, Vector3& maximum, Single& maximumDimension)
at DistantWorlds.Types.ModelVertexData.GetVertexData(Game game, GraphicsDevice graphics, Mesh mesh, Quaternion rotation)
at DistantWorlds.Types.ModelEffectHelper.ProcessModel(Game game, GraphicsDevice graphics, Model model, String path, Boolean generateModelVertexData, Boolean includeChildMeshes)
at DistantWorlds.Types.ModelEffectHelper.ObtainModel(ContentManager assets, Game game, GraphicsDevice graphics, String modelPath, Boolean generateModelVertexData, Boolean includeChildMeshes, ModelVertexData& modelVertexData)
at DistantWorlds.Types.ModelEffectHelper.ObtainModelForDesign(ContentManager assets, Game game, GraphicsDevice graphics, Design design, Galaxy galaxy, Single& modelSizeScalar, Vector3& modelSize, Vector3& minimum, Vector3& maximum, Boolean[]& meshNodeRendered, Int32[]& meshNodeParentIndexes)
at DistantWorlds2.EffectHelper.GenerateGraphicsNode(StellarObject stellarObject, Design design, Boolean isDesignMode, Galaxy galaxy, Empire empire, Orb sun, Int32 originX, Int32 originY, Single coordinateDivisor, CameraInfo camera, Scene scene, SceneViewMode viewMode, SceneRenderType sceneRenderType, DWGame game, GraphicsDevice graphics, ContentManager assets, Location locationOverride)
at DistantWorlds2.EffectHelper.GenerateGraphicsNode(StellarObject stellarObject, Galaxy galaxy, Empire empire, Orb sun, Int32 originX, Int32 originY, Single coordinateDivisor, CameraInfo camera, Scene scene, SceneViewMode viewMode, SceneRenderType sceneRenderType, DWGame game, GraphicsDevice graphics, ContentManager assets, Location locationOverride)
at DistantWorlds2.ScaledRenderer.GenerateBackgroundScene(GraphicsDevice graphics, OrbType orbType, Race race, ShipRole baseRole, Boolean addColony, Random rnd)
at DistantWorlds2.ScaledRenderer.GenerateBackgroundScene(GraphicsDevice graphics)
at DistantWorlds2.ScaledRenderer.CheckGenerateMenuBackgroundScene(MenuRenderer preSceneRenderer, MenuRenderer postSceneRenderer)
at DistantWorlds2.DWGame.Update(GameTime gameTime)


--- COMPLETE ---

Edit I tried the settings and so far no luck. The game conflicts with the driver when battles are viewed only...nowhere else. Event viewer lists a sequence of three events:

Faulting application name: Radeonsoftware.exe, version: 10.1.2.1862, time stamp: 0x609ac2c7
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0xffffffff00000000
Faulting process id: 0x2690
Faulting application start time: 0x01d836723461db25
Faulting application path: C:\Program Files\AMD\CNext\CNext\Radeonsoftware.exe
Faulting module path: unknown
Report Id: 69ba74d6-a28e-11ec-bff0-d43d7e98a730

Then this occurs simultaneously:

Display driver amdkmdag stopped responding and has successfully recovered.

And 18 seconds later it says this:

The program DistantWorlds2.exe version 1.0.1.6 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
Process ID: 2024
Start Time: 01d8369a426951b1
Termination Time: 515
Application Path: C:\Program Files (x86)\GOG Galaxy\Games\Distant Worlds 2\DistantWorlds2.exe
Report Id: 6f9605fc-a28e-11ec-bff0-d43d7e98a730
User avatar
Erik Rutins
Posts: 39761
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by Erik Rutins »

Did 1.0.1.8 help at all with this?
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Erik,

So in addition to what I did last night, I got 1.0.1.8 today and tried it out. Performance and stability are still good...until I view a battle. Nothing has changed. The game still does not create crash dumps in the log folder, but the new SessionLog was made and is attached below.

An interesting thing happens now that did not before: upon game start, it appears stunted on the screen, as if in a different resolution and I can see my desktop on half the screen. It's as if it is running fullscreen, borderless, but smaller. The settings are set to fullscreen, and so I must apply windowed mode before it pops into the right size, and then back to fullscreen. Then, the size issue is fixed. This did not occur prior to 1.0.18. Still, it is easily fixed so not a huge issue unlike the crashes.

I have also taken the liberty of attaching the complete, compressed files on AMD's bug reporting tool that is generated when my driver crashes. I hope this is of help to your team in solving this issue. Next, I will disable Crossfire for DW2 and see what happens when I play with one GPU only.
Attachments
AMD Bug Reporting Form Submitted Data 20220313T145902.zip
(436.88 KiB) Downloaded 19 times
SessionLog.txt
(7.44 KiB) Downloaded 19 times
Tkins
Posts: 23
Joined: Wed Jun 19, 2013 5:01 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by Tkins »

I am also having the issue where my resolution is changing. .1.8 didn't solve the issue of viewing battles.

Also, I've watched a few different battles. It seems like it only crashes with some weapons. Not all.
Flavor Clothing
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

So following up to my earlier post: I tried with CrossFire completely off and running on just a single GPU, and it seemed a bit smoother overall which was interesting...but still was no help in battles. I was not even zoomed in, and was far above being actually able to see any ships moving around. The moment I unpaused, instant CTD, the same as all the others.

Edit:

Erik,
I just noticed the game actually made a new crashdump file this time! This is a welcome change, and I notice something different than before, you will see it at the end:

Distant Worlds - Crash Dump - Version 1.0.1.8

10:36:50 AM Monday, March 14, 2022


SharpDX.SharpDXException: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: Unknown
at SharpDX.Result.CheckError()
at SharpDX.Direct3D11.Device.CreateBuffer(BufferDescription& descRef, Nullable`1 initialDataRef, Buffer bufferOut)
at SharpDX.Direct3D11.Buffer..ctor(Device device, IntPtr dataPointer, BufferDescription description)
at Xenko.Graphics.Buffer.InitializeFromImpl(BufferDescription description, BufferFlags viewFlags, PixelFormat viewFormat, IntPtr dataPointer)
at Xenko.Graphics.Buffer.New[T](GraphicsDevice device, Int32 elementCount, BufferFlags bufferFlags, GraphicsResourceUsage usage)
at DistantWorlds2.SymbolSystem.GenerateVertexBuffer(DWGame game, GraphicsDevice graphics, Single size, Vector3 cameraPosition, RectangleF viewBounds, Int32 originX, Int32 originY, Single coordinateDivisor, Single standardScaleRange, Single standardScaleRangeSquared, Single maximumScaleRange, Single maximumRealDistance, Boolean godMode)
at DistantWorlds2.SymbolSystem.Update(Single timeInSeconds, DWGame game, GraphicsDevice graphics, CameraInfo camera, Single updateFrequency, Single updateFrequencyData, Int32 originX, Int32 originY, Single coordinateDivisor, Single maximumRealDistance, Location location)
at DistantWorlds2.DWRendererBase.UpdateSymbolSystem(Single timeInSeconds, Game game, GraphicsDevice graphics, CameraInfo camera, GraphicsNodeList graphicsNodes, Boolean forceUpdate, Location location)
at DistantWorlds2.GraphicsNodeList.Update(DWGame game, ContentManager assets, GraphicsDevice graphics, Empire empire, SceneViewMode viewMode, CameraInfo camera, SceneRenderType sceneRenderType, Scene scene, Location location, StarSystem currentSystem, Single timePassed, Double timeInSeconds, Galaxy galaxy, Single starScaleMultiplier, Boolean isBackgroundMode)
at DistantWorlds2.ScaledRenderer.ResolveViewableItems(SceneRenderType sceneType, Single timePassed, Single timeInSeconds)
at DistantWorlds2.ScaledRenderer.CheckResolveViewableItems()
at DistantWorlds2.DWGame.Draw(GameTime gameTime)


Extra info follows:

DXGI_ERROR_DEVICE_REMOVED: ??
Unknown


--- COMPLETE ---
brucethemoose
Posts: 46
Joined: Fri Feb 18, 2022 6:14 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by brucethemoose »

blarglol wrote: Sat Mar 12, 2022 10:46 pm
Erik Rutins wrote: Sat Mar 12, 2022 7:22 pm Thank you for the report. The Radeon HD 7800 appears to be lower in performance than our minimum spec GeForce 760-equivalent, so it may be that this is what's causing the problem. Does playing on the smallest galaxy size help at all?

I will pass this on to Elliot regardless.
I was playing on the medium one, the second galaxy option. I have 2 GPUs though in Crossfire so it is more power than meets the eye. My CPU is 4.2 GHZ and I have plenty of RAM to back them up. I know the cards are old and not in spec, but everything else works fine. Everything renders fine and FPS ranges from 30-50. They can play the game, it's just entering combat. It is odd that my system would run fine on everything until I go in to watch combat.
As someone who used to run AMD crossfire... I suggest you disable it in DW2.

DW2 is not that GPU intense for a 7850 or 7870, and its a whole can of worms you don't want to open in this game. Even AMD themselves have largely stopped supporting dual-GPU setups.
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

brucethemoose wrote: Mon Mar 14, 2022 4:57 pm
blarglol wrote: Sat Mar 12, 2022 10:46 pm
Erik Rutins wrote: Sat Mar 12, 2022 7:22 pm Thank you for the report. The Radeon HD 7800 appears to be lower in performance than our minimum spec GeForce 760-equivalent, so it may be that this is what's causing the problem. Does playing on the smallest galaxy size help at all?

I will pass this on to Elliot regardless.
I was playing on the medium one, the second galaxy option. I have 2 GPUs though in Crossfire so it is more power than meets the eye. My CPU is 4.2 GHZ and I have plenty of RAM to back them up. I know the cards are old and not in spec, but everything else works fine. Everything renders fine and FPS ranges from 30-50. They can play the game, it's just entering combat. It is odd that my system would run fine on everything until I go in to watch combat.
As someone who used to run AMD crossfire... I suggest you disable it in DW2.

DW2 is not that GPU intense for a 7850 or 7870, and its a whole can of worms you don't want to open in this game. Even AMD themselves have largely stopped supporting dual-GPU setups.
Yeah I've tried it both on and off. No difference was made. The game crashed on viewing battles regardless.
sjst320@gmail.com
Posts: 1
Joined: Tue Mar 15, 2022 3:35 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by sjst320@gmail.com »

Hi
I also have the same issue of the DW2 game crashing when you view the combat up closely I no longer view it close up as it crashes the game every time.
I cannot run the game on dual GPU and it only works on the AMD Card my laptop is a AMD Ryzen 9 5900HX with Radeon Graphic 3.30 GHz I had the same issue on the original DW.
I have tried the 2 latest upgrades to DW2 but crashing issue is still there.
Any advice would be appreciated although I am not very tech savvie sorry
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

So I have now tested 1.0.1.9 and I can say this:

Shift ~ works for bringing up system info
The resolution error on startup is fixed, thank you
However the battle crashes still occur

What is different now is that what can be best described as a giant visual artifact now appears on screen directly proceeding the crash. This never happened prior to 1.0.1.9 so I guess whatever has been changed made this occur, which means you must be closer to discovering why this is occurring. It was a jagged polygon overlaid with text and code. Unfortunately it didn't linger long enough for me to screenshot, nor check shift ~. I noticed though that in the troubleshooting post the user Teranos posted a very similar polygon that he claims appeared on projectile impact. This is interesting.

The game made no new logs itself, but as usual here is the SessionLog, and Event Viewer info:

Application: DistantWorlds2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: SharpDX.SharpDXException
at SharpDX.Result.CheckError()
at Xenko.Graphics.SwapChainGraphicsPresenter.Present()

Exception Info: Xenko.Graphics.GraphicsException
at Xenko.Graphics.SwapChainGraphicsPresenter.Present()
at Xenko.Games.GraphicsDeviceManager.Xenko.Games.IGraphicsDeviceManager.EndDraw(Boolean)
at Xenko.Games.GameBase.EndDraw(Boolean)
at Xenko.Engine.Game.EndDraw(Boolean)
at DistantWorlds2.DWGame.EndDraw(Boolean)
at Xenko.Games.GameBase.TickInternal()
at Xenko.Games.GameBase.Tick()
at Xenko.Games.GamePlatform.Tick()
at Xenko.Games.GamePlatform.OnRunCallback()
at Xenko.Games.WindowsMessageLoop.Run(System.Windows.Forms.Control, RenderCallback, Boolean)
at Xenko.Games.GameWindowWinforms.Run()
at Xenko.Games.GameBase.Run(Xenko.Games.GameContext)
at BaSODkCnkBPaEvJmu9.JVBc2kXr3I7LOjoC8j.vjLyfTg1E(System.Object)
at <PrivateImplementationDetails>{7CC9FD5E-289B-461F-AEAE-05FEC28DB497}.Main(System.String[])

Then -

Faulting application name: DistantWorlds2.exe, version: 1.0.1.9, time stamp: 0xdb32156a
Faulting module name: KERNELBASE.dll, version: 6.1.7601.24545, time stamp: 0x5e0eb6bd
Exception code: 0xe0434352
Fault offset: 0x000000000000b87d
Faulting process id: 0xa94
Faulting application start time: 0x01d838a933318b69
Faulting application path: C:\Program Files (x86)\GOG Galaxy\Games\Distant Worlds 2\DistantWorlds2.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: fe61c801-a49d-11ec-a82e-d43d7e98a730

Also, Erik, I have been doing all of this each time on my original save game for consistency's sake. Would you rather I try a new game and see what happens there, rather than the original saves?
Attachments
SessionLog.txt
(4.27 KiB) Downloaded 13 times
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

...annnnnd now 1.0.2.0 doesn't even let me start, let alone get to battles. Instant CTD following the splash screen. Event Viewer's warning is far larger and longer now. Whatever this update did SharpDX Xenko Graphics stuff is now messed up worse...

Application: DistantWorlds2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at SharpDX.Direct3D11.DeviceContext.UpdateSubresource(SharpDX.Direct3D11.Resource, Int32, System.Nullable`1<SharpDX.Direct3D11.ResourceRegion>, IntPtr, Int32, Int32)
at Xenko.Graphics.CommandList.UpdateSubresource(Xenko.Graphics.GraphicsResource, Int32, Xenko.Graphics.DataBox, Xenko.Graphics.ResourceRegion)
at Xenko.Graphics.Buffer.SetData(Xenko.Graphics.CommandList, Xenko.Graphics.DataPointer, Int32)
at Xenko.Graphics.Buffer.SetData[[Xenko.Graphics.VertexPositionNormalTexture, Xenko.Graphics, Version=3.2.0.1, Culture=neutral, PublicKeyToken=null]](Xenko.Graphics.CommandList, Xenko.Graphics.VertexPositionNormalTexture[], Int32)
at DistantWorlds.Types.GeometryPrimitiveHelper.CreateBuffersFromVertices(Xenko.Graphics.GraphicsContext, Xenko.Graphics.GraphicsDevice, Xenko.Graphics.VertexPositionNormalTexture[], Int32[], Xenko.Graphics.Buffer ByRef, Xenko.Graphics.Buffer ByRef)
at DistantWorlds.Types.ModelVertexData.GetVertexData(Xenko.Engine.Game, Xenko.Graphics.GraphicsDevice, Xenko.Rendering.Mesh, Xenko.Core.Mathematics.Quaternion)
at DistantWorlds.Types.ModelEffectHelper.ProcessModel(Xenko.Engine.Game, Xenko.Graphics.GraphicsDevice, Xenko.Rendering.Model, System.String, Boolean, Boolean)
at DistantWorlds.Types.ModelEffectHelper.ObtainModel(Xenko.Core.Serialization.Contents.ContentManager, Xenko.Engine.Game, Xenko.Graphics.GraphicsDevice, System.String, Boolean, Boolean, DistantWorlds.Types.ModelVertexData ByRef)
at DistantWorlds.Types.ModelEffectHelper.ObtainModelForDesign(Xenko.Core.Serialization.Contents.ContentManager, Xenko.Engine.Game, Xenko.Graphics.GraphicsDevice, DistantWorlds.Types.Design, DistantWorlds.Types.Galaxy, Single ByRef, Xenko.Core.Mathematics.Vector3 ByRef, Xenko.Core.Mathematics.Vector3 ByRef, Xenko.Core.Mathematics.Vector3 ByRef, Boolean[] ByRef, Int32[] ByRef)
at DistantWorlds2.EffectHelper.GenerateGraphicsNode(DistantWorlds.Types.StellarObject, DistantWorlds.Types.Design, Boolean, DistantWorlds.Types.Galaxy, DistantWorlds.Types.Empire, DistantWorlds.Types.Orb, Int32, Int32, Single, DistantWorlds.Types.CameraInfo, Xenko.Engine.Scene, DistantWorlds.Types.SceneViewMode, DistantWorlds.Types.SceneRenderType, DistantWorlds2.DWGame, Xenko.Graphics.GraphicsDevice, Xenko.Core.Serialization.Contents.ContentManager, DistantWorlds.Types.Location)
at DistantWorlds2.EffectHelper.GenerateGraphicsNode(DistantWorlds.Types.StellarObject, DistantWorlds.Types.Galaxy, DistantWorlds.Types.Empire, DistantWorlds.Types.Orb, Int32, Int32, Single, DistantWorlds.Types.CameraInfo, Xenko.Engine.Scene, DistantWorlds.Types.SceneViewMode, DistantWorlds.Types.SceneRenderType, DistantWorlds2.DWGame, Xenko.Graphics.GraphicsDevice, Xenko.Core.Serialization.Contents.ContentManager, DistantWorlds.Types.Location)
at DistantWorlds2.ScaledRenderer.GenerateBackgroundScene(Xenko.Graphics.GraphicsDevice, DistantWorlds.Types.OrbType, DistantWorlds.Types.Race, DistantWorlds.Types.ShipRole, Boolean, System.Random)
at DistantWorlds2.ScaledRenderer.GenerateBackgroundScene(Xenko.Graphics.GraphicsDevice)
at DistantWorlds2.ScaledRenderer.CheckGenerateMenuBackgroundScene(DistantWorlds2.MenuRenderer, DistantWorlds2.MenuRenderer)
at DistantWorlds2.DWGame.Update(Xenko.Games.GameTime)
at Xenko.Games.GameBase.InitializeBeforeRun()
at Xenko.Games.GamePlatform.OnInitCallback()
at Xenko.Games.GameWindowWinforms.Run()
at Xenko.Games.GameBase.Run(Xenko.Games.GameContext)
at pKYOOqLWQFqywhTfHC.Y52nK7MfwumOrFcpXx.UnsmLSkth7yOKwVl8sB(System.Object, System.Object)
at pKYOOqLWQFqywhTfHC.Y52nK7MfwumOrFcpXx.xqKoKP95A(System.Object)
at <PrivateImplementationDetails>{01683684-B7A1-49B4-A6D3-DD7E7F8D1A41}.Main(System.String[])


Edit:
Ok maybe that was premature, 50/50 then cuz I did get a start...loaded the usual save, wait for the battle...and it crashes exactly the same as all other versions prior to 1.0.2.0. However, unlike 1.0.9.0, there was no visual artifact. I am starting to get angry with this crash...

Application: DistantWorlds2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: SharpDX.SharpDXException
at SharpDX.Result.CheckError()
at Xenko.Graphics.SwapChainGraphicsPresenter.Present()

Exception Info: Xenko.Graphics.GraphicsException
at Xenko.Graphics.SwapChainGraphicsPresenter.Present()
at Xenko.Games.GraphicsDeviceManager.Xenko.Games.IGraphicsDeviceManager.EndDraw(Boolean)
at Xenko.Games.GameBase.EndDraw(Boolean)
at Xenko.Engine.Game.EndDraw(Boolean)
at DistantWorlds2.DWGame.EndDraw(Boolean)
at Xenko.Games.GameBase.TickInternal()
at Xenko.Games.GameBase.Tick()
at Xenko.Games.GamePlatform.Tick()
at Xenko.Games.GamePlatform.OnRunCallback()
at Xenko.Games.WindowsMessageLoop.Run(System.Windows.Forms.Control, RenderCallback, Boolean)
at Xenko.Games.GameWindowWinforms.Run()
at Xenko.Games.GameBase.Run(Xenko.Games.GameContext)
at pKYOOqLWQFqywhTfHC.Y52nK7MfwumOrFcpXx.UnsmLSkth7yOKwVl8sB(System.Object, System.Object)
at pKYOOqLWQFqywhTfHC.Y52nK7MfwumOrFcpXx.xqKoKP95A(System.Object)
at <PrivateImplementationDetails>{01683684-B7A1-49B4-A6D3-DD7E7F8D1A41}.Main(System.String[])
Attachments
SessionLog.txt
(13.96 KiB) Downloaded 13 times
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Still happening on 1.0.2.1. I will try a new game and see what happens but I am doubtful....

Ok so I tried a brand new game made on 1.0.2.1 and the very first combat I try and observe (between two, rival pirate factions at the planetary system next to homeworld) the game immediately CTDs. There is nothing in the log files, except the SessionLog. Worse, Event Viewer doesn't even have detailed info on the crash anymore. Though perhaps that is good...because maybe it isn't a SharpDX Xenko Graphics thing anymore...but now the info is basically meaningless:

Display driver amdkmdag stopped responding and has successfully recovered.

The program DistantWorlds2.exe version 1.0.2.1 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
Process ID: 1cec
Start Time: 01d83b382b32ff97
Termination Time: 625
Application Path: C:\Program Files (x86)\GOG Galaxy\Games\Distant Worlds 2\DistantWorlds2.exe
Report Id: ef2d8df6-a731-11ec-a8cf-d43d7e98a730
Attachments
SessionLog.txt
(25.44 KiB) Downloaded 16 times
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Once again I have tried the latest build, 1.0.2.2, and sadly I must report that this issue still occurs. I noticed you changed the HDR so it was not default, and I kept that off to see if it made a difference, sadly it did not. I did notice a large performance increase elsewhere though, particularly zoomed out and moving between planets. I was getting a consistent 60fps or very close.

So it is not like my system and my cards cannot run this game. I have no other issues but this damned battle crash. More precisely, watching it this time, it is a PROJECTILE IMPACT CRASH. The driver only shits the bed when the first projectiles strike an opponent. It doesn't matter who is engaged, just that shooting is happening. In this case it was 2 pirate fleets fighting near one of my gas mines, 4 v 5.

Attached is my SessionLog as usual, as well as the latest collected AMD crash files from their official bug utility, since neither YOUR software nor Windows Event Viewer seem to collect anything meaningful on this crash anymore.

Please can you come back to the forums @Erik, us users need to know you are still looking into these critical issues. I cannot play the game more than a few minutes right now and it has been like this since day 1. I have never before encountered a persistent bug like this triggered in exactly the same way, on a game old or new...
Attachments
AMD Bug Reporting Form Submitted Data 20220322T152800.zip
(436.49 KiB) Downloaded 29 times
SessionLog.txt
(70.08 KiB) Downloaded 24 times
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Sad to report that 1.0.2.3 and 1.0.2.4 do exactly the same thing. Upon projectile impact the display driver stops responding and needs to recover, resulting in CTD. Both the logs are still gone, and Event Viewer no longer gives specific information. This crash is making me want to refund the game because still nothing has been said on it after all this time. Are you any closer to solving it? It makes me sad because I see the potential in DW2, but I can't enjoy it at all...
Attachments
SessionLog.txt
(25.68 KiB) Downloaded 22 times
Tkins
Posts: 23
Joined: Wed Jun 19, 2013 5:01 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by Tkins »

I'm also pretty disappointed that this crash doesn't seem to be getting any attention.
Flavor Clothing
blarglol
Posts: 30
Joined: Sat Mar 12, 2022 4:57 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by blarglol »

Tkins wrote: Thu Mar 24, 2022 2:44 pm I'm also pretty disappointed that this crash doesn't seem to be getting any attention.
At first Erik was here talking with us all, but now he isn't around much and I have no idea the status of this bug or others....
SgtBootStrap
Posts: 25
Joined: Tue Dec 13, 2016 3:34 pm

Re: Game Crashes When Viewing Battles Possible .NET Issue

Post by SgtBootStrap »

I will not include any "emotional baggage" to this post, that has been handled, but I will add that my game still "crashes to Desktop" after about 1-2 hours of game play pretty consistently.

I have sent "Reports" with the associated files. I will continue to do so until the CTD's stop, or I do. ;)

I just restart the Game (Desktop Icon) and then after the 2nd CTD, I stop playing.

P.S. As noted by other in here. My system has also only ever produced 1 Crash Report file in the Logs Dir. :?
"I made Sgt. by pulling up other slackers Bootstraps!"
Post Reply

Return to “Distant Worlds 2: Tech Support”