Crashed while quitting game leading to currupted save file

Player setup Saves & Loading
TourDeSmeigel [github] · 7 months ago

Issue description

Saved and when i pressed quit my pc crashed and did a full restart probably hardware problem because it happend before in other games.

I have the trains DLC downloaded but no mods

Reproduction steps

  1. Quit my game
  2. PC crashed and did a full restart
  3. Launced game
  4. Every backup in the save file is corrupted

Game version and build number

v0.8.2a b552

Operating system

Windows

Attachments

For some reason i github wont let me upload my file but this is the message im receiving

The game failed to initialize. If this issue persists, please file a bug report.

Mafi.DependencyResolverException: Failed to instantiate Mafi.Core.Trains.TrainTrackPathFinder. ---> Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'Mafi.Core.Trains.TrainTrackPathFinder'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\5.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\1.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\6.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\3.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\7.generated.tph" is denied.)) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\5.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\1.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\6.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\3.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\7.generated.tph" is denied.) ---> System.UnauthorizedAccessException: Access to the path "C:\Program Files (x86)\Steam\steamapps\common\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e]
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode)
at Mafi.Core.Trains.TrainTrackPathFinder+<getCostsFromFileThreadSafe>d__106.MoveNext () [0x00022]
at System.Linq.Parallel.SelectManyQueryOperator3+SelectManyQueryOperatorEnumerator1[TLeftInput,TRightInput,TOutput,TLeftKey].MoveNext (TOutput& currentElement, System.Linq.Parallel.Pair2[TLeftKey,System.Int32]& currentKey) [0x000a7] at System.Linq.Parallel.StopAndGoSpoolingTask2[TInputOutput,TIgnoreKey].SpoolingWork () [0x00048]
at System.Linq.Parallel.SpoolingTaskBase.Work () [0x0005d]
at System.Linq.Parallel.QueryTask.BaseWork (System.Object unused) [0x00015]
at System.Linq.Parallel.QueryTask+<>c.<.cctor>b__10_0 (System.Object o) [0x00000]
at System.Threading.Tasks.Task.InnerInvoke () [0x00025]
at System.Threading.Tasks.Task.Execute () [0x00000]
--- End of inner exception stack trace ---
at System.Linq.Parallel.QueryTaskGroupState.QueryEnd (System.Boolean userInitiatedDispose) [0x00081]
at System.Linq.Parallel.SpoolingTask.SpoolStopAndGo[TInputOutput,TIgnoreKey] (System.Linq.Parallel.QueryTaskGroupState groupState, System.Linq.Parallel.PartitionedStream2[TElement,TKey] partitions, System.Linq.Parallel.SynchronousChannel1[TInputOutput][] channels, System.Threading.Tasks.TaskScheduler taskScheduler) [0x0004c]
at System.Linq.Parallel.DefaultMergeHelper2[TInputOutput,TIgnoreKey].System.Linq.Parallel.IMergeHelper&lt;TInputOutput>.Execute () [0x0002e] at System.Linq.Parallel.MergeExecutor1[TInputOutput].Execute () [0x00000]
at System.Linq.Parallel.MergeExecutor1[TInputOutput].Execute[TKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] partitions, System.Boolean ignoreOutput, System.Linq.ParallelMergeOptions options, System.Threading.Tasks.TaskScheduler taskScheduler, System.Boolean isOrdered, System.Linq.Parallel.CancellationState cancellationState, System.Int32 queryId) [0x00082]
at System.Linq.Parallel.PartitionedStreamMerger1[TOutput].Receive[TKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] partitionedStream) [0x00000]
at System.Linq.Parallel.SelectManyQueryOperator3[TLeftInput,TRightInput,TOutput].WrapPartitionedStreamNotIndexed[TLeftKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] inputStream, System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient, System.Linq.Parallel.QuerySettings settings) [0x00052] at System.Linq.Parallel.SelectManyQueryOperator3[TLeftInput,TRightInput,TOutput].WrapPartitionedStream[TLeftKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] inputStream, System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient, System.Boolean preferStriping, System.Linq.Parallel.QuerySettings settings) [0x0006a]
at System.Linq.Parallel.UnaryQueryOperator2+UnaryQueryOperatorResults+ChildResultsRecipient[TInput,TOutput].Receive[TKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] inputStream) [0x00000]
at System.Linq.Parallel.ScanQueryOperator1+ScanEnumerableQueryOperatorResults[TElement].GivePartitionedStream (System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient) [0x00020]
at System.Linq.Parallel.UnaryQueryOperator2+UnaryQueryOperatorResults[TInput,TOutput].GivePartitionedStream (System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient) [0x000b2]
at System.Linq.Parallel.QueryOperator1[TOutput].ExecuteAndGetResultsAsArray () [0x00117] at System.Linq.ParallelEnumerable.ToArray[TSource] (System.Linq.ParallelQuery1[TSource] source) [0x00018]
at Mafi.Core.Trains.TrainTrackPathFinder.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x000ab]
at Mafi.Core.Trains.TrainTrackPathFinder..ctor (Mafi.Core.Terrain.TerrainOccupancyManager occupancyManager, Mafi.Core.Terrain.TerrainManager terrainManager, Mafi.Core.Trains.TrainTracksGraphManager trainGraphManager, Mafi.Core.Trains.TrainTracksPillarManager tracksPillarManager, Mafi.Option1[T] tracksPolesManager, Mafi.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x00187] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x002b2]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x00091]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000b0]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x00316]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__4.MoveNext () [0x0007d]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x0058e]
at Mafi.Unity.GamePlayScene+<loadGame>d__28.MoveNext () [0x0029d]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__108.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000fd]

Game version: 0.8.2a
Loaded mods: (Trains expansion 1.0.0)
Failed mods: none

poltime poltime · 7 months ago

What's the CPU model? What's the Windows build? You should attach log files from these folders:
%AppData%\Captain of Industry\Logs
%USERPROFILE%\AppData\LocalLow\Mafi Games\Captain of Industry
%USERPROFILE%\AppData\Local\Temp\Mafi Games\Captain of Industry\Crashes

25 Showing 1–2 of 2