O-n-y / oxy.mods

Oxy.BugTracker
19 stars 2 forks source link

[SmartMop] "Sharing violation on path" on config.json #162

Closed ELLIOTTCABLE closed 5 months ago

ELLIOTTCABLE commented 5 months ago

Game is crashing on load:

Exception while loading mod SmartMop at C:/Users/ec/Documents/Klei/OxygenNotIncluded/mods/Steam/1863275516. 
System.IO.IOException: Sharing violation on path C:\Users\ec\Documents\Klei\OxygenNotIncluded\mods\config\1863275516\config.json
  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] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at System.IO.File.OpenText (System.String path) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].LoadConfig (System.String path) [0x00047] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].LoadConfig () [0x0015c] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].get_Instance () [0x0000f] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].Save () [0x00012] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].LoadConfig (System.String path) [0x000fc] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].LoadConfig () [0x0015c] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.Configuration`2[T,L].get_Instance () [0x0000f] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.ModInfo`2[T,L]..ctor (System.Action configButtons, System.Boolean createSettingsWindow) [0x000ee] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.StartUp`3[O,T,L].Start () [0x00030] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at Ony.OxygenNotIncluded.SmartMop.Loader.OnLoad (HarmonyLib.Harmony harmony) [0x00007] in <58e69a0f73a74817bd5238446ba0b598>:0 
  at KMod.DLLLoader.LoadDLLs (KMod.Mod ownerMod, System.String harmonyId, System.String path, System.Boolean isDev) [0x00222] in <3d436e4ec1d5455793674ec559b0cc77>:0 

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 
  at KMod.DLLLoader.LoadDLLs (KMod.Mod ownerMod, System.String harmonyId, System.String path, System.Boolean isDev) [0x00000] in <3d436e4ec1d5455793674ec559b0cc77>:0 
  at KMod.Mod.Load (KMod.Content content) [0x00000] in <3d436e4ec1d5455793674ec559b0cc77>:0 
  at KMod.Manager.Load (KMod.Content content) [0x00000] in <3d436e4ec1d5455793674ec559b0cc77>:0 
  at Global.Awake () [0x00000] in <3d436e4ec1d5455793674ec559b0cc77>:0 
  at UnityEngine.Object.Internal_InstantiateSingleWithParent_Injected (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3& pos, UnityEngine.Quaternion& rot) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at UnityEngine.Object.Internal_InstantiateSingleWithParent (UnityEngine.Object data, UnityEngine.Transform parent, UnityEngine.Vector3 pos, UnityEngine.Quaternion rot) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Transform parent) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0 
  at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.GameObject parent, System.String name, System.Boolean initialize_id, System.Int32 gameLayer) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 
  at Util.KInstantiate (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.String name) [0x00000] in <3ca21dc18eae422d87255277091f8593>:0 
  at LaunchInitializer.Update () [0x00000] in <3d436e4ec1d5455793674ec559b0cc77>:0
Build: U51-600112-S

I've unsubbed and resubbed on Steam, and used the Mod Updater. Doesn't seem to be any new version ...

O-n-y commented 5 months ago

Thie is not issue with the mod, but the security access rights for the folders / path where your game files are installed.

O-n-y commented 5 months ago

you could try delete /mods folders, so it will be created by game again.