NullReferenceException thrown during game initialization in relation to UI

Crash Mod issue Player setup Severe Linux Saves & Loading UI & UX
JustADragon · 31 minutes ago

Issue description

This is a mod related issue, something i've had for months now across at least 3 game versions. I don't know what is causing it. I don't know how to prevent it. It's been a pain in my side, and is currently preventing me from playing the game.

When attempting to initialize a game, new or saved, a Null Reference Exception occurs during the load due to the UI just not working properly. This causes the game to basically death spiral in the loading screen until manually terminated, or automatically terminated to prevent a memory crash.

The above discribes the main version of this problem that i have seen, and is the most severe, but i have encountered 2 other versions of this problem, all because the UI breaks during loading

  1. as described above, game crash during load
  2. milder form of 1, game loads but the UI is completely non-fuctional. no inspection menus for vehicles or buildings, no building, no research, no exploration, you can't even open the save menu. This version has been documented in another bug report
  3. when pre-cashing mods through the new game menu to work around the race condition problem in the load menu, any failures in loading that would cause a pop-up just freeze the game, as the UI fails to load

I have verified game files through steam multiple times, it doesn't state i'm missing files. I have also not tampered with the game files beyond modding though the in game hub. I have not switched system configurations, hardware, nothing. The only things that have changed over time have been game versions, and mods. So it's likely one of the two

I've included 2 zip files for the devs. One of the standard log files, and one of crashes from the temp folder. There are several of each because this has been a reoccurring problem.

Reproduction steps

steam launch options:

  • running through steam default (proton experimental probably)
  • properties > launch options > "__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%"

Reproduction steps, type 1

  1. launch game
  2. begin process of slowly pre-cashing mods through the new game menu (required for having a chance of game load)
  3. load save, or start new game
  4. wait on loading screen
  5. observe as loading screen breaks. If the background becomes a solid colour, the tips begin rapidly changing, and some parts of the UI load in clearly broken, you have accomplished it

type 2 is the same as type 1, but the game loads into the save. But you can't do anything because the UI menus can't appear

Type 3 differs from type 1 at step 2. If a mod fails or otherwise creates a pop-up menu, then the game becomes frozen because it's trying to create a UI element. and won't allow anything else to happen because that UI element is still "open"

Game version and build number

v0.8.7d b619

Operating system

Linux

2 attachments only for board moderators
1 Showing 1–1 of 1