Traffic Control

Traffic Control

203k Downloads

Signs and Street Lights cause OutOfMemory errors / crashes

alphawolf918 opened this issue · 5 comments

commented

Hey there. First of all, my buddy and I LOVE this mod to death. Sadly though, we're having an issue. A couple of them, actually. Our server seems to crash whenever we get near one of the signs that we had already placed. Now placing them initially seems to be fine, but after a server restart, it seems to have issues because the whole thing locks up (I run it off of my PC and usually get an OutOfMemory error, but only from those signs, and I have 8 GB allocated already to the server itself). I'm not blaming anybody, so I apologize if it sounds that way. I'm just wondering/hoping that there's a way around this because we really love the signs.

Additionally, the street lights also seem to crash the world on server start-up. I've allocated 8 GB of RAM to the server and it still crashes. We don't use them that often, which makes me think this is some kind of bug, of which I make plenty of myself. But anyway we love the mod and thought you'd want to know about this.

Attached is one of the crash reports. When we remove the mod and load in, we're fine. Then when we add the mod back in and walk around AFTER having despawned everything, and spawn it back in, we're fine. It seems to only ever happen on a server startup / restart. Is there something in the configs or maybe a mod conflict possibly? I'm open to suggestions, and thank you so much.

crash-2019-02-25_17.12.02-server.txt

commented

Encounter the same issues. Issues only happened where there are street lights. After I removed Traffic Control. All issue disappeared.
crash-2019-03-09_14.23.28-server.txt

commented

I'll look into it. Must be a problem with the way things are getting saved to the world. Thanks!

commented
commented

The issue is in StateWatcher. Could it be a scheduling issue?

On Sun, Mar 10, 2019, 12:05 PM CSX8600 @.***> wrote: I'll look into it. Must be a problem with the way things are getting saved to the world. Thanks! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#4 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AIFpuFM3XnZG5mAA26NPed2csA34BSn_ks5vVS1jgaJpZM4bQ7A- .

I think it might the whole concept of the State Watcher in general is just not performant. I may try to figure out a way to make it more performant or figure out something else that replaces what the State Watcher was designed to do.

commented