这个报错是哪里出问题了?求问
都市天际线2吧
全部回复
仅看楼主
吧务
level 8
轻萝小扇 楼主
之前都是用的一些基础模组,刚订阅了一波贴画地皮摆件和一些代码改动mod就出了这个报错,主界面加在挺满的,需要用到资产编辑器的资产模组都没订阅,我是正版的全dlc所有地区包都订阅了。[泪]
具体的错误代码我发楼下
2025年08月19日 20点08分 1
吧务
level 8
轻萝小扇 楼主
[ERROR] Collection was modified; enumeration operation may not execute.
InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x00013] in <9aea1947a5a14e6e84f644786698b691>:0
at Colossal.IO.AssetDatabase.AssetDatabase+<GetAssets>d__92`1[T].MoveNext () [0x00137] in <e204981baa3d4b1ca12fa335a13465cc>:0
at Colossal.IO.AssetDatabase.AssetDatabase.<SaveSettings>b__95_0 () [0x000d9] in <e204981baa3d4b1ca12fa335a13465cc>:0
at Colossal.IO.AssetDatabase.AssetDatabase.<SaveSettings>b__95_0 () [0x001a5] in <e204981baa3d4b1ca12fa335a13465cc>:0
at Colossal.TaskManager+网页链接 (网页链接 name) [0x000b5] in <f539b356a552460880371c76b71887be>:0
Colossal.Logging.CustomLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
Colossal.Logging.UnityLogger:Log(Level, String, Exception)
Colossal.Logging.UnityLogger:Error(Exception)
Colossal.<RunNextTask>d__11:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.AwaitTaskContinuation:InvokeAction(Object)
System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run(Task, Boolean)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:FinishStageThree()
System.Threading.Tasks.Task:FinishStageTwo()
System.Threading.Tasks.Task:Finish(Boolean)
System.Threading.Tasks.Task:TrySetException(Object)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException(Except
2025年08月19日 20点08分 2
吧务
level 8
轻萝小扇 楼主
Colossal.IO.AssetDatabase.<<SaveSettings>b__95_0>d:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.AwaitTaskContinuation:InvokeAction(Object)
System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run(Task, Boolean)
System.Threading.Tasks.Task:FinishContinuations()
System.Threading.Tasks.Task:FinishStageThree()
System.Threading.Tasks.Task`1:TrySetResult(VoidTaskResult)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(VoidTaskResult)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(Task`1)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult()
System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder:SetResult()
Colossal.IO.AssetDatabase.Internal.<DisposeAsync>d__5:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.<>c:<.cctor>b__7_0(Object)
UnityEngine.WorkRequest:Invoke()
UnityEngine.UnitySynchronizationContext:Exec()
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
2025年08月19日 20点08分 3
level 1
мейма Донщи
2025年08月20日 01点08分 4
1