Game crashes randomly

Started by Shadow7, April 30, 2019, 10:23:45 PM

Previous topic - Next topic

Shadow7

So since I got the game it seems to crash randomly. Hard crash which requires me to reboot. Initially, it takes a while to happen - up to several hours. Once it's crashed once it seems to happen more often. I tried installing a mod and it seemed to make the crashes more frequent. I've tried updating my graphics drivers. I even switched my PSU and GPU because I thought they might be faulty, despite me only having this issue with RimWorld. After researching the problem I came across an old post advising to reduce the CPU affinity, but this didn't make any difference. Kindly advise.
The game is awesome btw. Any other game that gave me this problem I would have quit by now.

Canute

Hi,
without a logfile it is impossible to say why the game crashed.
Take a look the following link to locate the logfile:
https://ludeon.com/forums/index.php?topic=513.0
You need to press Reply then you got the option to attach files to your answer.

The only for sporadic crashes i could imagine are you use the 32 bit version use several mods together with bigger maps/world then rimworld run out of memory and would crash.
Using the 64 bit version would fix that problem.

Shadow7

I am running the 64 bit version. The crashes happen in vanilla, but seem to be worse with mods. Here's the logfile:
Initialize engine version: 5.6.5f1 (2cac56bf7bb6)
GfxDevice: creating device client; threaded=1
Direct3D:
    Version:  Direct3D 9.0c [aticfx64.dll 25.20.15031.9002]
    Renderer: Radeon RX 580 Series
    Vendor:   ATI
    VRAM:     8172 MB (via DXGI)
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=1 INTZ=1 NULL=1 RESZ=1 SlowINTZ=1 ATOC=0 BC4=1 BC5=1
Begin MonoManager ReloadAssembly
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp-firstpass.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp-firstpass.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UI.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.Networking.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.Networking.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\NAudio.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\NAudio.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\NVorbis.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\NVorbis.dll into Unity Child Domain
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\TextMeshPro-1.0.55.56.0b11.dll (this message is harmless)
Loading C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\TextMeshPro-1.0.55.56.0b11.dll into Unity Child Domain
- Completed reload, in  0.359 seconds
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\System.Core.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\System.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\System.Xml.dll (this message is harmless)
WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Setting to default shader.
<RI> Initializing input.

<RI> Input initialized.

desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
<RI> Initialized touch support.

UnloadTime: 1.587739 ms
RimWorld 1.0.2231 rev1144

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\System.Xml.Linq.dll (this message is harmless)
Exception loading file at C:/Users/Admin/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Config\Knowledge.xml. Loading defaults instead. Exception was: System.Xml.XmlException: Document element did not appear.  Line 1, position 1.
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0
  at Verse.DirectXmlLoader.ItemFromXmlFile[ConceptKnowledge] (System.String filePath, Boolean resolveCrossRefs) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Exception loading file at C:/Users/Admin/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Config\Knowledge.xml. Loading defaults instead. Exception was: System.Xml.XmlException: Document element did not appear.  Line 1, position 1.
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0
  at Verse.DirectXmlLoader.ItemFromXmlFile[ConceptKnowledge] (System.String filePath, Boolean resolveCrossRefs) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Exception parsing last version from string '

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Loaded file (Scenario) is from version 1.0.2096 rev473, we are running version 1.0.2231 rev1144.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Unloading 5 Unused Serialized files (Serialized files now loaded: 0)

Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 9621.
Total: 101.175865 ms (FindLiveObjects: 1.025433 ms CreateObjectMapping: 0.472781 ms MarkObjects: 99.541901 ms  DeleteObjects: 0.134578 ms)

Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.740769 ms

Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 9733.
Total: 69.859344 ms (FindLiveObjects: 0.661484 ms CreateObjectMapping: 0.437966 ms MarkObjects: 68.682953 ms  DeleteObjects: 0.076066 ms)

Initializing new game with mods Core

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 16874.
Total: 157.993637 ms (FindLiveObjects: 1.820619 ms CreateObjectMapping: 2.479763 ms MarkObjects: 153.637375 ms  DeleteObjects: 0.055294 ms)

Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 2.719372 ms

Unloading 7081 unused Assets to reduce memory usage. Loaded Objects now: 10238.
Total: 100.094559 ms (FindLiveObjects: 3.316493 ms CreateObjectMapping: 2.334067 ms MarkObjects: 69.752556 ms  DeleteObjects: 24.689970 ms)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.788457 ms

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 10238.
Total: 56.877159 ms (FindLiveObjects: 0.760078 ms CreateObjectMapping: 0.550603 ms MarkObjects: 55.503578 ms  DeleteObjects: 0.061730 ms)

Loading game from file The White Tigers with mods Core

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Could not load reference to Verse.ThingDef named KKAO_ThrumboWool

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Could not load reference to Verse.ThingDef named KKAO_WoolIbex

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Could not load reference to Verse.ThingDef named KKAO_ThrumboWool

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Could not load reference to Verse.ThingDef named KKAO_WoolIbex

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 15830.
Total: 169.611298 ms (FindLiveObjects: 0.965457 ms CreateObjectMapping: 0.801037 ms MarkObjects: 167.771973 ms  DeleteObjects: 0.071970 ms)


Canute

There is no crash at the logfile, let crash Rimworld first, then post the logfile.


Canute

Ok, Rimworld don't crash from itself.
There is no crash in the logfile.
And even these 2 exception you posted before arn't there. The logfile looks totaly fine.

Something else  need to shutdown rimworld from outside i think.
But i can't say what the problem is.




Shadow7

Thanks, Canute. Appreciate you looking into it for me. Just looked at my last logfile and it looks exactly the same. Maybe I need to look into the CPU issue I read about.

caekdaemon

#6
Might be a bit of a necro, here, but did you ever find out about the cause of this? I've got a crash that's exactly like this, and I've even managed to get a save where its recurring: every single time I load the save it crashes in about 30 seconds to a minute or two. I could upload it - its autosave 5 - as I'm trying just about everything.

I've rolled back from the unstable build and am waiting for the game to load now, but I'll report back if anything changes.

EDIT: Tried the stable version. Took forty-ish minutes to load, crashed in fifteen seconds after loading the save. I'm gonna start a new game and see if it happens again.

Canute

We don't need an safegame, since you prolly use alot of mods (since you got 40 min startup).
But a logfile after a crash would show why rimworld crash.