最新消息

欢迎你!

在这里获取丰富的资源,并与社区其他成员分享你的游戏体验!

现在就注册!

开始新游戏五分钟内闪退

主题 作者
【LV:1】
01
1
0
在主页面存在闪退情况但时间上是随机的(一般都是等待下载MOD的时候),只要进入存档或者开始新游戏就会在极快的时间内闪退
安装了skyve进行排查后,目前发现是有大量的NullReferenceException: Object reference not set to an instance of an object,每次闪退都是这个信息,不管游戏内有没有弹窗。使用skyve安全模式进入游戏,确实可以顶着弹窗游戏不闪退了,但是帧数太低了,而且并没有出现上述报错和discord之外的新error了。而在安全模式下,每次出现弹窗,后台记录的error信息会有四五十条,全是NullReferenceException: Object reference not set to an instance of an object
装不装MOD都会出现这个问题,请问该如何解决?
图片上传不上来,就发几段内容不同的报错:
一、(仅有一段)
[EXCEPTION] - [16:35:18,612] - (Player.log)
=================================================================
at <unknown> <0xffffffff>
at Unity.Collections.LowLevel.Unsafe.UnsafeUtility:MemCpy <0x00097>
at Colossal.IO.AssetDatabase.StreamBinaryWriter:WriteBytes <0x00092>
at WriteCompressedBufferJob:Execute <0x000ca>
at JobStruct`1:Execute <0x0001a>
at ExecuteJobFunction:invoke_void_T&_intptr_intptr_JobRanges&_int <0x000b9>
at <Module>:runtime_invoke_void__this___intptr&_intptr_intptr_intptr&_int <0x000b5>
二、(紧随其后的一段)
[EXCEPTION] - [16:35:18,612] - (Player.log)
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Mathematics.MathUtils.Intersect (Colossal.Mathematics.Bounds3 bounds, Colossal.Mathematics.Line3+Segment line, Unity.Mathematics.float2& t)
at Game.Rendering.CameraCollisionSystem+FindEntitiesFromTreeJob+Iterator.Intersect (Game.Common.QuadTreeBoundsXZ bounds)
at Colossal.Collections.UnsafeQuadTree`2[TItem,TBounds].Iterate[TIterator] (TIterator& iterator, System.Int32 startNode)
at Colossal.Collections.NativeQuadTree`2[TItem,TBounds].Iterate[TIterator] (TIterator& iterator, System.Int32 startNode)
at Game.Rendering.CameraCollisionSystem+FindEntitiesFromTreeJob.Execute ()
at Unity.Jobs.IJobExtensions+JobStruct`1[T].Execute (T& data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex)
at (wrapper delegate-invoke) Unity.Jobs.IJobExtensions+JobStruct`1+ExecuteJobFunction[Game.Rendering.CameraCollisionSystem+FindEntitiesFromTreeJob].invoke_void_T&_intptr_intptr_JobRanges&_int(Game.Rendering.CameraCollisionSystem/FindEntitiesFromTreeJob&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int)
三、(开始大量重复)
[EXCEPTION] - [16:35:18,612] - (Player.log)
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Mathematics.MathUtils.Intersect (Colossal.Mathematics.Bounds3 bounds, Colossal.Mathematics.Line3+Segment line, Unity.Mathematics.float2& t)
at Game.Common.RaycastSystem+FindEntitiesFromTreeJob+FindEntitiesIterator.Intersect (Game.Common.QuadTreeBoundsXZ bounds)
at Colossal.Collections.UnsafeQuadTree`2[TItem,TBounds].Iterate[TIterator] (TIterator& iterator, System.Int32 startNode)
at Colossal.Collections.NativeQuadTree`2[TItem,TBounds].Iterate[TIterator] (TIterator& iterator, System.Int32 startNode)
at Game.Common.RaycastSystem+FindEntitiesFromTreeJob.Execute (System.Int32 index)
at Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex)
at (wrapper delegate-invoke) Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1+ExecuteJobFunction[Game.Common.RaycastSystem+FindEntitiesFromTreeJob].invoke_void_T&_intptr_intptr_JobRanges&_int(Game.Common.RaycastSystem/FindEntitiesFromTreeJob&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int)
四、(大量重复)
[EXCEPTION] - [16:35:18,612] - (Player.log)
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Mathematics.MathUtils.Intersect (Colossal.Mathematics.Bounds3 bounds, Colossal.Mathematics.Line3+Segment line, Unity.Mathematics.float2& t)
at Game.Simulation.TerrainUtils.Raycast (Game.Simulation.TerrainHeightData& data, Colossal.Mathematics.Line3+Segment worldLine, System.Boolean outside, System.Single& t, Unity.Mathematics.float3& normal)
at Game.Common.RaycastSystem+RaycastTerrainJob.Execute (System.Int32 index)
at Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex)
at (wrapper delegate-invoke) Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1+ExecuteJobFunction[Game.Common.RaycastSystem+RaycastTerrainJob].invoke_void_T&_intptr_intptr_JobRanges&_int(Game.Common.RaycastSystem/RaycastTerrainJob&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int)
五、(穿插)
[EXCEPTION] - [16:35:18,612] - (Player.log)
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Logging.UnityLogger.Internal_WriteStream (UnityEngine.Object context, Colossal.Logging.Level level, System.String format, System.Exception exception, System.IO.TextWriter stdStream)
at Colossal.Logging.CustomLogHandler.PostProcessFormat (UnityEngine.LogType logType, Colossal.Logging.Level level, UnityEngine.Object context, System.String format, Colossal.Logging.ILog log, System.Exception exception)
at Colossal.Logging.CustomLogHandler.LogFormat (UnityEngine.LogType logType, UnityEngine.Object context, System.String format, System.Object[] args)
六、(穿插)
[EXCEPTION] - [16:35:18,612] - (Player.log)
NullReferenceException: Object reference not set to an instance of an object
at Colossal.Mathematics.MathUtils.Intersect (Colossal.Mathematics.Bounds3 bounds, Colossal.Mathematics.Line3+Segment line, Unity.Mathematics.float2& t)
at Game.Simulation.TerrainUtils.RaycastCell (Game.Simulation.TerrainHeightData& data, Colossal.Mathematics.Line3+Segment localLine, Unity.Mathematics.int2 pos, System.Boolean outside, System.Single& t, Unity.Mathematics.float3& normal)
at Game.Simulation.TerrainUtils.Raycast (Game.Simulation.TerrainHeightData& data, Colossal.Mathematics.Line3+Segment worldLine, System.Boolean outside, System.Single& t, Unity.Mathematics.float3& normal)
at Game.Common.RaycastSystem+RaycastTerrainJob.Execute (System.Int32 index)
at Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex)
at (wrapper delegate-invoke) Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1+ExecuteJobFunction[Game.Common.RaycastSystem+RaycastTerrainJob].invoke_void_T&_intptr_intptr_JobRanges&_int(Game.Common.RaycastSystem/RaycastTerrainJob&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int)
 

相关主题

  • 问题
求救.......... Field not found: int Game.City.StatisticsEvent.m_Change Due to: Could not find field in class MissingFieldException: Field not found: int Game.City.StatisticsEvent.m_Change Due to...
回复
8
查看
1K
  • 已解决
Field not found: int Game.Prefabs.ObjectRequirementElement.m_Group Due to: Could not find field in class MissingFieldException: Field not found: int Game.Prefabs.ObjectRequirementElement.m_Group...
回复
3
查看
706
  • 问题
[CRITICAL] System update error during GameSimulation NullReferenceException: Object reference not set to an instance of an object at Unity.Entities.EntityCommandBufferChain.InitChain...
回复
0
查看
515
  • 问题
[object Object] NullReferenceException: Object reference not set to an instance of an object at Colossal.IO.AssetDatabase.PrefabAsset+PrefabReferenceResolver.TryResolveReference (System.String...
回复
0
查看
348
  • 问题
[CRITICAL] System update error during GameSimulation NullReferenceException: Object reference not set to an instance of an object at RealisticDensity.Systems.RealisticDensitySystem.OnUpdate ()...
回复
4
查看
1K
顶部