Game save file incomplete

Started by Sylvain07, September 19, 2018, 03:16:22 AM

Previous topic - Next topic

Sylvain07

After had played normally, and quit normaly (engagement mode), when i launch my game i have an error : "charging map"



[attachment deleted due to age]

Tynan

Which mods are you using?

Can you please post your output_log after this occurs? Instructions on how in the top post of this forum.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Sylvain07

no mods !

Initialize engine version: 5.6.5f1 (2cac56bf7bb6)
GfxDevice: creating device client; threaded=1
Direct3D:
    Version:  Direct3D 9.0c [nvd3dumx.dll 24.21.13.9731]
    Renderer: NVIDIA GeForce GTX 750 Ti
    Vendor:   NVIDIA
    VRAM:     1984 MB (via DXGI)
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 INTZ=1 NULL=1 RESZ=0 SlowINTZ=0 ATOC=1 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.052 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: 2.896773 ms
RimWorld 0.19.2009 rev486

(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)
Translation data for language French has 339 errors. Generate translation report for more info.

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

Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 2.133413 ms

Unloading 41 unused Assets to reduce memory usage. Loaded Objects now: 8782.
Total: 71.264313 ms (FindLiveObjects: 1.605435 ms CreateObjectMapping: 1.176142 ms MarkObjects: 68.273842 ms  DeleteObjects: 0.207351 ms)

Loading game from file Non Technologue Pacte of Shohaandinum (Mode Engagement) with mods Core

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

Exception while init loading file: C:/Users/PLAY/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Saves\Non Technologue Pacte of Shohaandinum (Mode Engagement).rws
System.Xml.XmlException: unexpected end of file. Current depth is 6  Line 199862, position 1.
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  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.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [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 Verse.ScribeLoader.InitLoading (System.String filePath) [0x00000] in <filename unknown>:0

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

Exception from asynchronous event: System.Xml.XmlException: unexpected end of file. Current depth is 6  Line 199862, position 1.
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  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.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [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 Verse.ScribeLoader.InitLoading (System.String filePath) [0x00000] in <filename unknown>:0

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

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

Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 8767.
Total: 66.638077 ms (FindLiveObjects: 1.519423 ms CreateObjectMapping: 1.512511 ms MarkObjects: 63.423359 ms  DeleteObjects: 0.181240 ms)



Tynan

Well, the file just ends in the middle. It looks fine and then just stops.

It's kind of mysterious.

Did anything special happen when you saved it last? Out of memory, out of disk space?
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Sylvain07

yesterday i had the same with an other save game.
after, with windows7 i had a "blue screen" (certainly memory problem)
today i had started a new game, no crash during and leaving the game. But problem for charging.

With outlog file, there are error.log file : (i post just the beginning because it's too big)

Unity Player [version: Unity 5.6.3p1_9c92e827232b]

RimWorldWin.exe caused an Access Violation (0xc0000005)
  in module RimWorldWin.exe at 0023:0191df61.

Error occurred at 2018-05-20_092138.
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin.exe, run by PLAY.
40% memory in use.
2047 MB physical memory [1221 MB free].
4093 MB paging file [2211 MB free].
0 MB user address space [3864 MB free].
Read from location 00000000 caused an access violation.

Context:
EDI:    0x04cc7470  ESI: 0x00000000  EAX:   0x00000000
EBX:    0x04cc7470  ECX: 0x04cc7470  EDX:   0x00000000
EIP:    0x0191df61  EBP: 0x0041f948  SegCs: 0x00000023
EFlags: 0x00010246  ESP: 0x0041f938  SegSs: 0x0000002b

Bytes at CS:EIP:
8b 06 8b 90 a8 03 00 00 8d 4f 04 51 8b ce ff d2

Stack:
0x0041f938: 00000000 04cc7470 014c9c6b 05949860 ....pt..k.L.`...
0x0041f948: 0041f964 014d0504 00000000 05949860 d.A...M.....`...
0x0041f958: 05949860 00000001 05949860 0041f970 `.......`...p.A.
0x0041f968: 014d06cb 00000001 0041f980 014d04b5 ..M.......A...M.
0x0041f978: 00000000 052d8e60 0041f990 014b36e5 ....`.-...A..6K.
0x0041f988: 00000004 052d9800 0041f9a4 01517bc3 ......-...A..{Q.
0x0041f998: 00000001 f9cc0100 05948040 0041f9cc [email protected].
0x0041f9a8: 01524a46 00000001 00000001 f9cc0100 FJR.............
0x0041f9b8: 00000000 00000001 0001f9f0 01005767 ............gW..
0x0041f9c8: 0000f9cc 0041f9ec 014b553c 00000001 ......A.<UK.....
0x0041f9d8: 00000001 00000000 00000001 00000001 ................
0x0041f9e8: 00350000 0041fa48 014b7408 00000001 ..5.H.A..tK.....
0x0041f9f8: 00000000 00000000 00000042 01ab7fd9 ........B.......
0x0041fa08: 0041fc90 01abd3c0 ab4852f0 fffffffe ..A......RH.....
0x0041fa18: 01ab7b17 01638f4d 00000000 63726f66 .{..M.c.....forc
0x0041fa28: 66672d65 6f6a2d78 00007362 0000000e e-gfx-jobs......
0x0041fa38: 00000042 01638f92 052d8b00 00104bb8 B.....c...-..K..
0x0041fa48: 0041fa9c 01925fb3 00000001 02104bb8 ..A.._.......K..
0x0041fa58: 02104bd8 0192473f 00000000 00000042 .K..?G......B...
0x0041fa68: 04c9add0 0000001a 0214dfb0 00000000 ................
0x0041fa78: 00000000 0000001a 00000042 04cc79d0 ........B....y..
0x0041fa88: 00000000 00000140 00000000 00cf0000 ....@...........
0x0041fa98: 00000001 0041fbf8 012a70ca 00000000 ......A..p*.....
0x0041faa8: 00000000 00000000 fffde000 04cb3bb0 .............;..
0x0041fab8: 00000050 00000200 0000000a 00000001 P...............
0x0041fac8: 00000050 00000042 01000020 049b0000 P...B... .......
0x0041fad8: 00000003 0041f9f0 00488418 00000001 ......A...H.....
0x0041fae8: 7796041d 04cb3df0 00000056 bfebfbff ...w.=..V.......
0x0041faf8: 00010676 01adb25f 00000056 00000042 v..._...V...B...
0x0041fb08: 04cb3b50 00000055 01c0003f 0000003f P;..U...?...?...
0x0041fb18: 00000001 00000055 00000042 04c9fcb0 ....U...B.......
0x0041fb28: 00000047 04004143 02c0003f 00000fff G...CA..?.......
0x0041fb38: 00000047 00000042 7fffffff 00000000 G...B...........
0x0041fb48: 022444a0 049b1b30 049b07d0 0041fb00 .D$.0.........A.
0x0041fb58: 0041fb88 04c9fc10 0000004c 021b8b48 ..A.....L...H...
0x0041fb68: 0000000f 00000000 0000004c 00000042 ........L...B...
0x0041fb78: 04c9ba90 04c9bac8 04c9bac8 7790fa01 ...............w
0x0041fb88: 00000000 00637465 00646567 021b8b48 ....etc.ged.H...
0x0041fb98: 0000000f 00000003 00000042 04c9fd00 ........B.......
0x0041fba8: 0000004f 0041fbdc 01ac1e37 0000001d O.....A.7.......
0x0041fbb8: 0000004f 00000042 048713a0 048713e0 O...B...........
0x0041fbc8: 048713a0 00000000 0041fbe8 01ab5d65 ..........A.e]..
0x0041fbd8: 00483bc7 0041fbf8 01ad9301 00000000 .;H...A.........
0x0041fbe8: 022444a0 00000000 00000000 00fde001 .D$.............
0x0041fbf8: 0041fc10 01a7d848 01230000 00000000 ..A.H.....#.....
0x0041fc08: 00483bc8 0000000a 0041fca0 01abb4d4 .;H.......A.....
0x0041fc18: 01230000 00000000 00483bc8 0000000a ..#......;H.....
0x0041fc28: a92bb250 00000000 00000000 fffde000 P.+.............
0x0041fc38: 00000044 00482344 00482324 00482296 D...D#H.$#H.."H.
0x0041fc48: 00000000 00000000 00000000 00000000 ................
0x0041fc58: 00000000 00000000 00000000 00000000 ................
0x0041fc68: 00000000 00000000 00000000 0041fc9c ..............A.
0x0041fc78: 01acd21d c0000005 00000000 00000000 ................
0x0041fc88: 0041fc28 0041f4fc 0041fcdc 01abd3c0 (.A...A...A.....
0x0041fc98: ab4850f0 00000000 0041fcac 76c93677 .PH.......A.w6.v
0x0041fca8: fffde000 0041fcec 77929d72 fffde000 ......A.r..w....
0x0041fcb8: 7059b551 00000000 00000000 fffde000 Q.Yp............
0x0041fcc8: c0000005 76cb9775 76cb9775 0041fcb8 ....u..vu..v..A.
0x0041fcd8: 0041f500 ffffffff 7796041d 07898a6d ..A........wm...
0x0041fce8: 00000000 0041fd04 77929d45 01abb527 ......A.E..w'...
0x0041fcf8: fffde000 00000000 00000000 00000000 ................
0x0041fd08: 00000000 01abb527 fffde000 00000000 ....'...........
0x0041fd18: 00000000 00000000 00000000 00000000 ................
0x0041fd28: 00000000 00000000 00000000 00000000 ................
0x0041fd38: 00000000 00000000 00000000 00000000 ................
0x0041fd48: 00000000 00000000 00000000 00000000 ................
0x0041fd58: 00000000 00000000 00000000 00000000 ................
0x0041fd68: 00000000 00000000 00000000 00000000 ................
0x0041fd78: 00000000 00000000 00000000 00000000 ................
0x0041fd88: 00000000 00000000 00000000 00000000 ................
0x0041fd98: 00000000 00000000 00000000 00000000 ................
0x0041fda8: 00000000 00000000 00000000 00000000 ................
0x0041fdb8: 00000000 00000000 00000000 00000000 ................
0x0041fdc8: 00000000 00000000 00000000 00000000 ................
0x0041fdd8: 00000000 00000000 00000000 00000000 ................
0x0041fde8: 00000000 00000000 00000000 00000000 ................
0x0041fdf8: 00000000 00000000 00000000 00000000 ................
0x0041fe08: 00000000 00000000 00000000 00000000 ................
0x0041fe18: 00000000 00000000 00000000 00000000 ................
0x0041fe28: 00000000 00000000 00000000 00000000 ................
0x0041fe38: 00000000 00000000 00000000 00000000 ................
0x0041fe48: 00000000 00000000 00000000 00000000 ................
0x0041fe58: 00000000 00000000 00000000 00000000 ................
0x0041fe68: 00000000 00000000 00000000 00000000 ................
0x0041fe78: 00000000 00000000 00000000 00000000 ................
0x0041fe88: 00000000 00000000 00000000 00000000 ................
0x0041fe98: 00000000 00000000 00000000 00000000 ................
0x0041fea8: 00000000 00000000 00000000 00000000 ................
0x0041feb8: 00000000 00000000 00000000 00000000 ................
0x0041fec8: 00000000 00000000 00000000 00000000 ................
0x0041fed8: 00000000 00000000 00000000 00000000 ................
0x0041fee8: 00000000 00000000 00000000 00000000 ................
0x0041fef8: 00000000 00000000 00000000 00000000 ................
0x0041ff08: 00000000 00000000 00000000 00000000 ................
0x0041ff18: 00000000 00000000 00000000 00000000 ................
0x0041ff28: 00000000 00000000 00000000 00000000 ................
0x0041ff38: 00000000 00000000 00000000 00000000 ................
0x0041ff48: 00000000 00000000 00000000 00000000 ................
0x0041ff58: 00000000 00000000 00000000 00000000 ................
0x0041ff68: 00000000 00000000 00000000 00000000 ................
0x0041ff78: 00000000 00000000 00000000 00000000 ................
0x0041ff88: 00000000 00000000 00000000 00000000 ................
0x0041ff98: 00000000 00000000 00000000 00000000 ................
0x0041ffa8: 00000000 00000000 00000000 00000000 ................
0x0041ffb8: 00000000 00000000 00000000 00000000 ................
0x0041ffc8: 00000000 00000000 00000000 00000000 ................
0x0041ffd8: 00000000 00000000 00000000 00000000 ................
0x0041ffe8: 00000000 00000000 00000000 00000000 ................
0x0041fff8: 00000000 00000000                   ........

Module 1
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin.exe
Image Base: 0x01230000  Image Size: 0x01225000
File Size:  18183680    File Time:  2018-04-27_165552
Version:
   Company:   
   Product:   
   FileDesc:   
   FileVer:    5.6.3.37608
   ProdVer:    5.6.3.37608

Module 2
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin_Data\Mono\mono.dll
Image Base: 0x10000000  Image Size: 0x00231000
File Size:  2115520     File Time:  2018-04-27_165552
Version:
   Company:    Unity Technologies
   Product:    libmono
   FileDesc:   Unity Technologies fork of mono runtime
   FileVer:    1.0.0.1
   ProdVer:    1.0.0.1

Module 3
C:\Windows\system32\nvd3dum.dll
Image Base: 0x65820000  Image Size: 0x00ebb000
File Size:  15620248    File Time:  2018-04-23_221250
Version:
   Company:    NVIDIA Corporation
   Product:    NVIDIA Windows WDDM D3D driver
   FileDesc:   NVIDIA WDDM D3D Driver, Version 397.31
   FileVer:    24.21.13.9731
   ProdVer:    24.21.13.9731

Module 4
C:\Program Files (x86)\Steam\gameoverlayrenderer.dll
Image Base: 0x675a0000  Image Size: 0x00144000
File Size:  1177888     File Time:  2018-05-19_010122
Version:
   Company:    Valve Corporation
   Product:    Steam Game Overlay Renderer
   FileDesc:   Steam Game Overlay Renderer
   FileVer:    4.51.98.14
   ProdVer:    1.0.0.1

Module 5
C:\Windows\system32\d3d9.dll
Image Base: 0x6fd00000  Image Size: 0x001c3000
File Size:  1826816     File Time:  2009-07-14_031510
Version:
   Company:    Microsoft Corporation
   Product:    Microsoft® Windows® Operating System
   FileDesc:   Direct3D 9 Runtime
   FileVer:    6.1.7600.16385
   ProdVer:    6.1.7600.16385


Tynan

#6
Seems like bad memory or a serious driver issue.

Get a memtest program and use it.

Ison - I thought the system saves a new temp file and then renames them only when it's been successful? How is this outcome possible? Is something broken?
Tynan Sylvester - @TynanSylvester - Tynan's Blog

ison

This is indeed a very mysterious case. There are many NULL characters at the end of the file.

I'd like to believe that this is something we can fix, but I just can't see a code path which could cause this. We never write NULLs, so it must be either a Mono or OS bug.

Saving looks like this:
We save everything to filename.rws.new
Then rename existing savefile to filename.rws.old
Then rename filename.rws.new to filename.rws
Then remove filename.rws.old

My guess is that it's an out of memory exception which Mono can't handle and does something like this. I've seen similar things where if there was an exception thrown while writing to a file Mono would create a corrupted file.

I'll try to detect this case and not let the player save if there's an OutOfMemoryException, maybe it will help.

Tynan

It seems like it's not detecting the fact that the .rws.new file is actually invalid. The save-then-rename system is correct, but it needs to be able to detect when there was a problem and abort the whole operation in that case.

It may be worth adding some code to deliberately cause errors during saving, so we can test this. I've seen a number of corrupted save reports recently and it's a very frustrating problem - important to prevent. Especially since we have commitment mode.
Tynan Sylvester - @TynanSylvester - Tynan's Blog