Code Monkey home page Code Monkey logo

Comments (8)

slyh avatar slyh commented on August 9, 2024

Could you share a screenshot of the road setup that caused the crash?

Although there is no error message, could you upload your BepInEx log? It contains valuable information, such as the mods you have installed, which could help us in replicating the issue.

from cities2-trafficlightsenhancement.

GIS-PuppetMaster avatar GIS-PuppetMaster commented on August 9, 2024

Could you share a screenshot of the road setup that caused the crash?您能否分享导致事故的道路设置的屏幕截图?

Although there is no error message, could you upload your BepInEx log? It contains valuable information, such as the mods you have installed, which could help us in replicating the issue.虽然没有错误消息,但您可以上传您的 BepInEx 日志吗?它包含有价值的信息,例如您安装的模组,这可以帮助我们重现问题。

image
image
image
image
image
After I replace the road and the game run normally for about 3 seconds, the game stucked

from cities2-trafficlightsenhancement.

GIS-PuppetMaster avatar GIS-PuppetMaster commented on August 9, 2024

The last picture is a custom parking that I made by invisible road with parking lot

from cities2-trafficlightsenhancement.

GIS-PuppetMaster avatar GIS-PuppetMaster commented on August 9, 2024

LogOutput.log

from cities2-trafficlightsenhancement.

GIS-PuppetMaster avatar GIS-PuppetMaster commented on August 9, 2024

It seems that the game will break if I replace other roads, I'm not sure

from cities2-trafficlightsenhancement.

slyh avatar slyh commented on August 9, 2024

I'm able to replicate this issue. The game might crash to desktop or throw an exception when upgrading a road.

Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Unity.Entities.ECBChunk.Bump (System.Int32 size) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.EntityCommandBufferData.Reserve (Unity.Entities.EntityCommandBufferChain* chain, System.Int32 sortKey, System.Int32 size) [0x00116] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.EntityCommandBufferData.AddEntityComponentTypeWithValueCommand[T] (Unity.Entities.EntityCommandBufferChain* chain, System.Int32 sortKey, Unity.Entities.ECBCommand op, Unity.Entities.Entity e, T component) [0x0003c] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.EntityCommandBuffer.AddComponent[T] (Unity.Entities.Entity e, T component) [0x00018] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob.InitializeTrafficLights (Unity.Entities.DynamicBuffer`1[T] subLanes, Unity.Collections.NativeList`1[T] groups, System.Int32 groupCount, System.Boolean isLevelCrossing, Game.Net.TrafficLights& trafficLights) [0x000f9] in <dfcc6cdd930f477d9380235c3d3625a0>:0 
  at C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) [0x000d9] in <dfcc6cdd930f477d9380235c3d3625a0>:0 
  at C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) [0x00000] in <dfcc6cdd930f477d9380235c3d3625a0>:0 
  at Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x000b5] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at (wrapper delegate-invoke) Unity.Entities.JobChunkExtensions+JobChunkProducer`1+ExecuteJobFunction[C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob].invoke_void_JobChunkExtensions/JobChunkWrapper`1<T>&_intptr_intptr_JobRanges&_int(Unity.Entities.JobChunkExtensions/JobChunkWrapper`1<C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem/InitializeTrafficLightsJob>&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int)
Colossal.Logging.CustomLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

from cities2-trafficlightsenhancement.

GIS-PuppetMaster avatar GIS-PuppetMaster commented on August 9, 2024

I'm able to replicate this issue. The game might crash to desktop or throw an exception when upgrading a road.我能够复制这个问题。升级道路时,游戏可能会崩溃到桌面或引发异常。

Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
  at Unity.Entities.ECBChunk.Bump (System.Int32 size) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.EntityCommandBufferData.Reserve (Unity.Entities.EntityCommandBufferChain* chain, System.Int32 sortKey, System.Int32 size) [0x00116] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.EntityCommandBufferData.AddEntityComponentTypeWithValueCommand[T] (Unity.Entities.EntityCommandBufferChain* chain, System.Int32 sortKey, Unity.Entities.ECBCommand op, Unity.Entities.Entity e, T component) [0x0003c] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.EntityCommandBuffer.AddComponent[T] (Unity.Entities.Entity e, T component) [0x00018] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob.InitializeTrafficLights (Unity.Entities.DynamicBuffer`1[T] subLanes, Unity.Collections.NativeList`1[T] groups, System.Int32 groupCount, System.Boolean isLevelCrossing, Game.Net.TrafficLights& trafficLights) [0x000f9] in <dfcc6cdd930f477d9380235c3d3625a0>:0 
  at C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) [0x000d9] in <dfcc6cdd930f477d9380235c3d3625a0>:0 
  at C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) [0x00000] in <dfcc6cdd930f477d9380235c3d3625a0>:0 
  at Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x000b5] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 
  at (wrapper delegate-invoke) Unity.Entities.JobChunkExtensions+JobChunkProducer`1+ExecuteJobFunction[C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem+InitializeTrafficLightsJob].invoke_void_JobChunkExtensions/JobChunkWrapper`1<T>&_intptr_intptr_JobRanges&_int(Unity.Entities.JobChunkExtensions/JobChunkWrapper`1<C2VM.TrafficLightsEnhancement.Systems.TrafficLightInitializationSystem.PatchedTrafficLightInitializationSystem/InitializeTrafficLightsJob>&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int)
Colossal.Logging.CustomLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Great! Glad to be helpful

from cities2-trafficlightsenhancement.

slyh avatar slyh commented on August 9, 2024

Unfortunately, I think it needs significant changes to fix the problem permanently. I have implemented a temporary fix that should reduce the number of crashes, making it unlikely to crash during normal gameplay.

from cities2-trafficlightsenhancement.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.