Ludeon Forums

RimWorld => Bugs => Topic started by: cloudbear on December 29, 2019, 04:46:30 PM

Title: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 04:46:30 PM
Summary

When playing the game, I will often get repeated crashes to the desktop, with the message dialogue box informing me that the game crashed and to go to the crashdump location and send it to the developer.

The error log indicates an Access Violation reading from memory. No issues during memory tests, benchmarks, or other games.

I can reproduce some of the circumstances but some of the crashes don't have easily observable (and thus linkable) circumstances. One such circumstance is opening a trade window or a bill window, the crash coming several seconds later.

System and Version
Rimworld: 1.0.2408 (64-bit) Compiled Oct 1 2019 via Steam
OS: Windows 10 Enterprise 1909
CPU & GFX: i5 3570K, GeForce GTX 970

Circumstances
I've experienced reproducible crashes during the following circumstances:

When the crash happens while trading with a visitor, it can be several seconds after opening the window, sometimes over a minute later, while I'm mulling over the trade.  For this reason I'm not sure that summoning the trade window is related, but my save currently has a trader in the colony and I can trigger the issue reliably by trading with the visitor and spending some time in the trade window.

I've also experienced crashes that appear to be arbitrary, but it seems more likely that I'm just not aware of the circumstance triggering the crash.

The crashes occur both in my current game and in a new game.

What happened
Crash to desktop with the following dialog box:

Oops!
The game crashed.
The crash folder named "2019-12-29_205930" next to game executable.
It would be great if you'd send it to the developer of the game!


The error.log file indicates an Access Violation:

Unity Player [version: Unity 5.6.5f1_2cac56bf7bb6]

RimWorldWin64.exe caused an Access Violation (0xc0000005)
  in module RimWorldWin64.exe at 0033:527c4566.

Error occurred at 2019-12-29_211144.
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64.exe, run by Adam.
63% memory in use.
16328 MB physical memory [5971 MB free].
25821 MB paging file [4302 MB free].
134217728 MB user address space [134212333 MB free].
Read from location ffffffff caused an access violation.


The location is most often 0xffffffff but sometimes changes and has been:

Reproduction
I can reproduce the error in trade and bill windows by opening such windows.  Trade windows reproduce the error reliably, but delayed for several seconds or even over a minute.  Bill windows reproduce the error less reliably, but within a few seconds of opening the window.

I cannot deliberately reproduce the apparently arbitrary crashes, except to say that I'm extremely unlikely to get more than 20 minutes gameplay in before the crash occurs.

Attempted resolutions
So far I have tried:

Savegame file
Here: https://ln2.sync.com/dl/a0c3930f0/cztu8f49-53d99a63-d2fa82e3-9uf3qbdi (https://ln2.sync.com/dl/a0c3930f0/cztu8f49-53d99a63-d2fa82e3-9uf3qbdi)

Crash dumps
Most recent one: https://ln2.sync.com/dl/a53e6d300/zg34p3vv-vzjvucmn-9whip8b7-9d5k7jqc (https://ln2.sync.com/dl/a53e6d300/zg34p3vv-vzjvucmn-9whip8b7-9d5k7jqc)
All: https://ln2.sync.com/dl/abdcd4e00/8kn3fkvk-9s5n36tc-2m9c5zjc-kk4vkd2d (https://ln2.sync.com/dl/abdcd4e00/8kn3fkvk-9s5n36tc-2m9c5zjc-kk4vkd2d)


Consolidation of information in replies



Hi,
at last i can tell you it has nothing to do with your mashine or your Rimworld installation.
I get the same error's with your safegame.
And since you don't use any mods, this is very unusual.

I think a Dev need to take a look into your safegame and why these error's happen. Because these error's lead to the crash soon or later.

I suggest to start a new colony at first.

Thanks for having a look.  I get the same problem with a new colony.

Regarding mods, I began this colony to check out RJW, but it turned out to really not be my cup of tea, so I removed it.  I had the problem both while RJW was active and after it was removed, and new colonies started since removing the mod have the same problem.



Just try out one last thing.
Delete the complete rimworld installation folder in your case it should be
C:\Program Files (x86)\Steam\steamapps\common\RimWorld
I don't trust the steam verify process.
Then let steam repair/reinstall Rimworld.

Okay, done that.  I'll see how I get on later.
No improvement from having deleted the RimWorld folder and let Steam rebuild it. Crashed less than a minute after load, in general play.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 05:26:31 PM
Two more crashes, attached to the post (turns out Sync only allows three linked files):

2019-12-29_221240.zip - Crash while talking to a trader.
2019-12-29_221610.zip - Crash while scrolling up and down the Wildlife list.

I think a common theme is establishing itself: the crashes seem occur when a list is being scrolled.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: Canute on December 29, 2019, 05:28:16 PM
Hi,
at last i can tell you it has nothing to do with your mashine or your Rimworld installation.
I get the same error's with your safegame.
And since you don't use any mods, this is very unusual.

I think a Dev need to take a look into your safegame and why these error's happen. Because these error's lead to the crash soon or later.

I suggest to start a new colony at first.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 05:47:58 PM
Hi,
at last i can tell you it has nothing to do with your mashine or your Rimworld installation.
I get the same error's with your safegame.
And since you don't use any mods, this is very unusual.

I think a Dev need to take a look into your safegame and why these error's happen. Because these error's lead to the crash soon or later.

I suggest to start a new colony at first.

Thanks for having a look.  I get the same problem with a new colony.

Regarding mods, I began this colony to check out RJW, but it turned out to really not be my cup of tea, so I removed it.  I had the problem both while RJW was active and after it was removed, and new colonies started since removing the mod have the same problem.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 06:09:34 PM
Attached:
2019-12-29_222720.zip - Crash while simply panning around my base.

I have edge-scrolling disabled and I pan by clicking and dragging with the middle mouse button.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 07:08:28 PM
Attached:
2019-12-29_231412.zip - Crash while running in background.

I loaded the game and left it running in the background for around 30~40 minutes.  Came back and I couldn't get it to crash at all.  Tabbed out again and left it running and it crashed about 10 minutes later for a total of 50 minutes after having been started.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 07:31:28 PM
Attached:
2019-12-30_002942.zip - Loaded, clicked a helper entry in the top-right, immediate crash.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 29, 2019, 09:17:07 PM
Attached:
2019-12-30_003620.zip - Crash while clicking to confirm new research choice.

I had left this one in the background for a little less than an hour, paused, to see if it would crash even while nothing was going on. I played with the UI to see if I could generate a crash, but nothing happened.  I started playing and was able to play for almost an hour without any of the previous suspects crashing the game (no trader to test with though).  Then my research completed and I selected Medicine Production and the game crashed when I clicked to confirm the new research choice.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: Canute on December 30, 2019, 02:56:06 AM
Just try out one last thing.
Delete the complete rimworld installation folder in your case it should be
C:\Program Files (x86)\Steam\steamapps\common\RimWorld
I don't trust the steam verify process.
Then let steam repair/reinstall Rimworld.

You can enable the developer mode at the options. So you should have access to the log window ingame (Icon top left).
When some red lines appear (errors) something is wrong.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 05:52:07 AM
Just try out one last thing.
Delete the complete rimworld installation folder in your case it should be
C:\Program Files (x86)\Steam\steamapps\common\RimWorld
I don't trust the steam verify process.
Then let steam repair/reinstall Rimworld.

Okay, done that.  I'll see how I get on later.

Quote
You can enable the developer mode at the options. So you should have access to the log window ingame (Icon top left).
When some red lines appear (errors) something is wrong.

Had a quick check and got the following errors, which appear to be about pawn job selection/prioritisation.

(https://i.imgur.com/Uvqry4o.png)
(https://i.imgur.com/teV9UaG.png)
(https://i.imgur.com/ypb4QmV.png)
(https://i.imgur.com/Txvweq0.png)
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 05:52:41 AM
Oh damn let me trim those down a sec =/
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 06:01:57 AM
Those error messages in red don't appear when I load the colony I made to test whether I get crashes in a fresh colony, so they might be related to me having removed that mod and unrelated to the crashes.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: Canute on December 30, 2019, 06:21:37 AM
Those error messages in red don't appear when I load the colony I made to test whether I get crashes in a fresh colony, so they might be related to me having removed that mod and unrelated to the crashes.
Should an important information you just post now ?
Removing mod's from a safegame are a bad idea.
Only a few mod's can be removed safty. That explain all the relation error's you got all the time.

And you didn't needed to post these error's as screenshots, they are all documented at the output_log.txt you posted allready (inside the crash zip's).
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 06:44:01 AM
Those error messages in red don't appear when I load the colony I made to test whether I get crashes in a fresh colony, so they might be related to me having removed that mod and unrelated to the crashes.
Should an important information you just post now ?
Removing mod's from a safegame are a bad idea.
Only a few mod's can be removed safty. That explain all the relation error's you got all the time.

I mentioned it much earlier, in reply to your first post.  I have also said that the same crashes occur in fresh colonies, which don't have the relation errors, so the relation errors are not causing the crashes.

And you didn't needed to post these error's as screenshots, they are all documented at the output_log.txt you posted allready (inside the crash zip's).

Great.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 04:37:34 PM
No improvement from having deleted the RimWorld folder and let Steam rebuild it. Crashed less than a minute after load, in general play.

Attached:
2019-12-30_213248.zip - Crash in general, not sure what I did immediately before it crashed.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 04:59:28 PM
Attached:
2019-12-30_215028.zip - Crash while moving a new machining bill up through the list of bills.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: Canute on December 30, 2019, 05:04:14 PM
You still have these error's
Quote
Could not do PostLoadInit on RimWorld.Pawn_RelationsTracker: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Pawn_RelationsTracker.ExposeData () [0x00000] in <filename unknown>:0
  at Verse.PostLoadIniter.DoAllPostLoadInits () [0x00000] in <filename unknown>:0
It is a new colony or the one you removed the mod ?

P.S. You don't need to report any crash, until there is something different.
I think basicly the crash can happen anything, after enough error's happen.

There shouldn't be any error's, specialy when you just play without mods.
Game installation should be fine too.

Could you try out to start Rimworld direct from the installation folder and not over Steam ?
Some people report some issues that Rimworld got just ended (without crash) when the start it over steam.

Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 05:23:00 PM
You still have these error's
Quote
Could not do PostLoadInit on RimWorld.Pawn_RelationsTracker: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Pawn_RelationsTracker.ExposeData () [0x00000] in <filename unknown>:0
  at Verse.PostLoadIniter.DoAllPostLoadInits () [0x00000] in <filename unknown>:0
It is a new colony or the one you removed the mod ?

That's from the same game; the one where I had removed a mod.

P.S. You don't need to report any crash, until there is something different.
I think basicly the crash can happen anything, after enough error's happen.

Okay.  I don't see any correlation between the crashes and the error messages though.  For example attached to this message is another crash that I just experienced, in another savegame from a fresh colony, which hasn't any errors (I was playing with the debug log visible to check).

(Attached: 2019-12-30_220428.zip - Different colony (never modded). Crash while expanding a zone.)

Link to that savegame: https://www.dropbox.com/s/zuznbrb4qp7f23p/Teba%20%28Permadeath%29.rws?dl=1

There shouldn't be any error's, specialy when you just play without mods.
Game installation should be fine too.

Could you try out to start Rimworld direct from the installation folder and not over Steam ?
Some people report some issues that Rimworld got just ended (without crash) when the start it over steam.

I'll give it a shot.  Cheers.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 30, 2019, 07:13:26 PM
No dice.  Crashed after 1 hour 20 minutes with the newer, never-modded save, which currently looks like this: https://www.dropbox.com/s/e4qg7zgostx36a7/Commonwealth%20of%20Freetopia%20%28Permadeath%29.rws?dl=1

Same error message (Write to location 00000aac caused an access violation.)

Attached:
2019-12-30_224202.zip - Different colony (never modded). Crash during gameplay, 1hr20mins after loading.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: Canute on December 31, 2019, 02:49:25 AM
Ok, the last made it clear that the relation error's arn't the reasons for these crashes.
It is more related to your system/mashine.

Since you allready update the graphics card drivers, do you use an unusual antivir tool ? Try to deactivate it while playining.
When you look at the error.log you see
"RimWorldWin64.exe caused an Access Violation (0xc0000005)"
Basicly that's allways the reason for the crash.

Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 31, 2019, 08:49:18 AM
I just Windows Defender at the moment.  I've now added as exceptions to Windows Defender:

I'll let you know how I get on.  I've never seen antivirus cause a process not to be able to address its own memory though.  Access Violation is a segfault: when the process attempts to address memory outside of its allowed memory area.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: Canute on December 31, 2019, 08:54:36 AM
I use windows defender too, so i don't think its related to that.

When you search the web for ".exe caused an Access Violation (0xc0000005)" you will find some entries that mosttimes lead you to unity forum.
But i think i gave you the most hints i read there allready.
Title: Re: [1.0.2408] Repeated crashes, somewhat reproducible
Post by: cloudbear on December 31, 2019, 09:44:15 AM
Good idea.  I had search for the error code but not the phrase, as I didn't realise it was a Unity-specific phrase.

Searching for the phrase led me to this post: https://gamedev.stackexchange.com/questions/110613/my-game-crashed-access-violation-0xc0000005

The post explains how to read the crash log, so I'm now relatively sure the issue is a stack overflow caused by interaction between RimWorld and some DLL.

I've attempted to repair DirectX (to the extent that you can nowadays, since DX12 is baked into Windows 10).  If that doesn't work I'll attempt a system repair, and if that doesn't work I'll just blow the OS away and reinstall.

Thanks for your efforts, Canute, I appreciate it.