Page 1 of 1

1.1.0.3 Crash - "DetermineStockLevels"

Posted: Mon Feb 06, 2023 6:21 pm
by Splatter
Hi,

I've had this error with two clean starts (no mods) and once there is a crash, it crashes again around the same time after reloading a save.

06-02-2023 17-52-03.608: Setting Scaling Core: Large
06-02-2023 17-52-55.288: Loaded existing Galaxy with the following settings:
06-02-2023 17-52-55.289: Dimensions: 6 x 6 sectors, Star Systems: 707, Total Stars, Planets, Moons, Asteroids: 32523, Standard Empires: 11, Pirate Empires: 24, Total Colonies: 96, Total Ships and Bases (including fighters): 7065, Total Troops: 509, Total Creatures: 725, Total SpaceItems: 715
06-02-2023 18-00-25.734: System.NullReferenceException: Object reference not set to an instance of an object.

at void DistantWorlds.Types.Empire.DetermineStockLevels()+0x0
at void DistantWorlds.Types.Empire.DoTasks(DateTime time, Galaxy galaxy)+0x571
06-02-2023 18-00-25.739: System.NullReferenceException: Object reference not set to an instance of an object.

at void DistantWorlds.Types.Empire.DetermineStockLevels()+0x0
at void DistantWorlds.Types.Empire.DoTasks(DateTime time, Galaxy galaxy)+0x571
at void DistantWorlds.Types.Galaxy.DoTasks(DateTime time)+0xF1
06-02-2023 18-00-25.752: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.

at void DistantWorlds.Types.Empire.DetermineStockLevels()+0x0
at void DistantWorlds.Types.Empire.DoTasks(DateTime time, Galaxy galaxy)+0x571
at void DistantWorlds.Types.Galaxy.DoTasks(DateTime time)+0xF1
at async Task<int> DistantWorlds.Types.GameClient.InitiateGalaxyProcessing(DateTime time, Galaxy galaxy)+0x5C
--- End of inner exception stack trace ---
06-02-2023 18-00-25.757: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.

at void DistantWorlds.Types.Empire.DetermineStockLevels()+0x0
at void DistantWorlds.Types.Empire.DoTasks(DateTime time, Galaxy galaxy)+0x571
at void DistantWorlds.Types.Galaxy.DoTasks(DateTime time)+0xF1
at async Task<int> DistantWorlds.Types.GameClient.InitiateGalaxyProcessing(DateTime time, Galaxy galaxy)+0x5C
--- End of inner exception stack trace ---

at void DistantWorlds.Types.Galaxy.ProcessTasks()+0xC0
at void DistantWorlds2.DWGame.Update(GameTime gameTime)+0x2FC

Re: 1.1.0.3 Crash - "DetermineStockLevels"

Posted: Mon Feb 06, 2023 6:48 pm
by frankycl
Wow - that's nice (this way the DEVs won't have to ask for a save :D )

(Don't take this too serious, please - I'm only answering this thread, because the forum would otherwise not change colors of the thread-icon... :roll: )

Re: 1.1.0.3 Crash - "DetermineStockLevels"

Posted: Tue Feb 07, 2023 1:14 pm
by Intaka
Same crash. Unavoidable and game ending once it has occurred. This crash seems related to Energy to Fuel converters and stock level interaction somehow. I had just upgraded starbases to use this component. For the record, I'd be fine with making Starbases not ABLE use reactors at all (only energy collectors). E2F collectors could be removed completely from the game at that point, keeping fuel relevant.

Distant Worlds - Crash Dump - Version 1.1.0.3
Stride Version 4.1.34.0-CodeForce

04:54:49 Tuesday, 07 February 2023


System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.

at void DistantWorlds.Types.Empire.DetermineStockLevels()+0x6F0
at void DistantWorlds.Types.Empire.DoTasks(DateTime time, Galaxy galaxy)+0x571
at void DistantWorlds.Types.Galaxy.DoTasks(DateTime time)+0xF1
at async Task<int> DistantWorlds.Types.GameClient.InitiateGalaxyProcessing(DateTime time, Galaxy galaxy)+0x5C
--- End of inner exception stack trace ---

at void DistantWorlds.Types.Galaxy.ProcessTasks()+0xC0
at void DistantWorlds2.DWGame.Update(GameTime gameTime)+0x2FC


Further info follows:

System.NullReferenceException: Object reference not set to an instance of an object.

at void DistantWorlds.Types.Empire.DetermineStockLevels()+0x6F0
at void DistantWorlds.Types.Empire.DoTasks(DateTime time, Galaxy galaxy)+0x571
at void DistantWorlds.Types.Galaxy.DoTasks(DateTime time)+0xF1
at async Task<int> DistantWorlds.Types.GameClient.InitiateGalaxyProcessing(DateTime time, Galaxy galaxy)+0x5C



--- COMPLETE ---

Re: 1.1.0.3 Crash - "DetermineStockLevels"

Posted: Wed Feb 08, 2023 2:53 am
by Intaka
Tried going back to an earlier autosave and manually designing without ever using an Energy to Fuel converter before the research completed.

Game still crashed at about the same timestamp of played time.

Same error "determine stock levels".

Re: 1.1.0.3 Crash - "DetermineStockLevels"

Posted: Wed Feb 08, 2023 1:05 pm
by schnetz
Same here. Already had 4 games with the same "DetermineStockLevels" error.
As soon as this error appears, the game is more or less over and I have to start a new one.

Re: 1.1.0.3 Crash - "DetermineStockLevels"

Posted: Wed Feb 08, 2023 4:17 pm
by frankycl
Yes, it's a major game-breaking bug - you can see/read it everywhere now. :(

So, maybe a Hotfix wouldn't be bad if there aren't any new updates this week ? (hint at DEVs ;) )

Re: 1.1.0.3 Crash - "DetermineStockLevels"

Posted: Thu Feb 09, 2023 6:04 pm
by Erik Rutins
This should be fixed in today's 1.1.0.6 public beta update.