Courseplay / courseplay

Courseplay for Farming Simulator 2019
http://courseplay.github.io/courseplay
GNU General Public License v3.0
952 stars 528 forks source link

Load Courses On Startup causes Dedicated Server to not start #6699

Closed PeanutthaKid closed 3 years ago

PeanutthaKid commented 3 years ago

Enabling the "Load Courses on Startup" option on dedicated server causes high memory usage which then causes emergency GC to run. This causes the dedicated server to no longer start as it will not pass courseplay initiation. The only way to bring the server back up is to download the savegame.zip from the server and then modify this line in courseplaySettings.xml: From - <loadCoursesAtStartup active="true"/> To - <loadCoursesAtStartup active="false"/>

Log: 2021-01-19 18:49 ## Courseplay: setting up signs 2021-01-19 18:49 c:/games/68_232_164_197_18000/1450254/farmsim19/game/mods/FS19_Courseplay/img/signs/normal.i3d (0.59 ms) 2021-01-19 18:49 c:/games/68_232_164_197_18000/1450254/farmsim19/game/mods/FS19_Courseplay/img/signs/cross.i3d (0.62 ms) 2021-01-19 18:49 c:/games/68_232_164_197_18000/1450254/farmsim19/game/mods/FS19_Courseplay/img/signs/unload.i3d (0.47 ms) 2021-01-19 18:49 c:/games/68_232_164_197_18000/1450254/farmsim19/game/mods/FS19_Courseplay/img/signs/wait.i3d (0.89 ms) 2021-01-19 18:49 c:/games/68_232_164_197_18000/1450254/farmsim19/game/mods/FS19_Courseplay/img/signs/start.i3d (0.77 ms) 2021-01-19 18:49 c:/games/68_232_164_197_18000/1450254/farmsim19/game/mods/FS19_Courseplay/img/signs/stop.i3d (0.74 ms) 2021-01-19 18:49 ## Courseplay: setting up fields (basic) 2021-01-19 18:49 ## Courseplay: loading settings from "courseplaySettings.xml" 2021-01-19 18:49 ## Courseplay: setting up hud 2021-01-19 18:49 ## Courseplay: setting up debug channels 2021-01-19 18:49 ## Courseplay: setting up globalInfoText 2021-01-19 18:49 ## Courseplay: loading courses and folders from "courseManager.xml" 2021-01-19 18:52 Warning: Performing emergency garbage collection pass - memory went from 97395 KB to 194971 KB in less than one frame 2021-01-19 18:52 Usage is now 172253 KB; full GC took 233.229952ms 2021-01-19 18:58 Warning: Performing emergency garbage collection pass - memory went from 172253 KB to 344604 KB in less than one frame 2021-01-19 18:58 Usage is now 307939 KB; full GC took 371.601751ms

daver18qc commented 3 years ago

Works fine for me on my GameServers dedicated, no issues at all with Load Courses At Startup. Although i don't have many courses saved.

PeanutthaKid commented 3 years ago

I use the same host as the above, but we have quite a few courses saved.

Tensuko commented 3 years ago

I suggest you to have more patient, as the server will only hang up, if you get a LUA Error.