Comments (8)
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.
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 日志吗?它包含有价值的信息,例如您安装的模组,这可以帮助我们重现问题。
After I replace the road and the game run normally for about 3 seconds, the game stucked
from cities2-trafficlightsenhancement.
The last picture is a custom parking that I made by invisible road with parking lot
from cities2-trafficlightsenhancement.
from cities2-trafficlightsenhancement.
It seems that the game will break if I replace other roads, I'm not sure
from cities2-trafficlightsenhancement.
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.
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.
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)
- [Feedback Needed] The game might crash when replacing roads
- Vehicle crossing lanes to change lanes HOT 7
- No Advanced Split Phasing and Protected Left/Right-Turns on intersections with tram tracks HOT 3
- [solved] [not a bug] drivers prefer turning left instead of going forward (lhd) HOT 8
- Error on load after latest update HOT 12
- Error something about reflections?? HOT 1
- Tram interferes with normal operation of intersection HOT 2
- Ctrl+S won't work when the lane direction control panel is enabled
- Please add mode to service road intersections HOT 1
- Crash of the game caused by UpdateLanesJob.GetMiddleConnectionCurves HOT 1
- Information about the update HOT 23
- Translation
- Mod does not support complex road assets for road controls
- MOD displays error when setting up HOT 6
- Crash - [SceneFlow] [ERROR] AudioManager HOT 1
- [0.2.21 TEST] Vehicle stuck at traffic light HOT 3
- Protected Left-Turns does not give green light to one direction HOT 4
- RawBinder should not be null! HOT 4
- Window in top-left does not appear HOT 6
- No Floating Button/User Interface HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cities2-trafficlightsenhancement.