Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Clients Crash When Trying to Join Multiplayer Server #6940

Closed
Mercuri opened this issue Mar 3, 2021 · 3 comments
Closed

Clients Crash When Trying to Join Multiplayer Server #6940

Mercuri opened this issue Mar 3, 2021 · 3 comments

Comments

@Mercuri
Copy link

Mercuri commented Mar 3, 2021

Okay, so this is going to be a bit of a weird one. We put CoursePlay 6.03.00045dev on our multiplayer server running a slightly modified version of the 4x Red Dirt County map. Ran the game for several hours with no issues save a bit of lag when many people were online and CP was going on with normal AI workers in the mix as well. After playing for many hours the server apparently crashed. Rebooting the server got the server back up but when anyone tried to connect the client would get to 29% of "Synchronizing with other players" and then crash to desktop. The only thing that appears on the server log is this:

2021-03-02 09:53 Geek joined the game
2021-03-02 09:54 ### CourseplayMultiplayer: writing 32 courses
2021-03-02 09:54 ### CourseplayMultiplayer: writing 0 folders
2021-03-02 09:54 ### CourseplayMultiplayer: writing 14 custom fields
2021-03-02 09:55 Geek left the game

On the client side the only thing that seemed off was this:
2021-03-03 04:38 Error: Failed to create new object with class id 51200 in initial object array

Full logs attached
fs19clientlog.txt
fs19serverlog.txt

To make things more interesting we pulled down the save file from the server and I was able to load up the game on my local machine just fine but if someone tried to connect to my game they would crash again at 29% but the server would stay up just fine.

We also tried updating to CoursePlay 6.03.00047dev and no improvement.

To get the server running again we reverted the save to an earlier version and started the server with CoursePlay disabled. Only then were people able to successfully connect. When I did a diff on the working save and the non-working save nothing jumped out at me as being particularly different; it was mostly just vehicle position changes and other stuff you'd expect to change over the course of playing the game.

@Tensuko
Copy link
Contributor

Tensuko commented Mar 3, 2021

#6871

@pvaiko
Copy link
Contributor

pvaiko commented Mar 3, 2021

These are an issue but not sure they are causing the problem (from the client log):

2021-03-03 04:38 Warning (script): 'streamWriteInt32': Argument 1 has wrong type. Expected: Int. Actual: Nil 
2021-03-03 04:38   ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (882): expectedType == Value::VoidType || expectedType == Value::ClassType
2021-03-03 04:38 LUA call stack:
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/Events/SiloSelectedFillTypeEvent.lua (43) : streamWriteInt32
2021-03-03 04:38   dataS/scripts/network/Connection.lua (88) : writeStream
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/Events/SiloSelectedFillTypeEvent.lua (105) : sendEvent
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (2723) : sendEvent
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (3000) : sendEvent
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (2777) : deleteByIndex
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (2760) : checkSelectedFillTypes
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (2767) : cleanUpOldFillTypes
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (4104) : validateCurrentValue
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/AIDriver.lua (180) : validateCurrentValues
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/CpObject.lua (43) : init
2021-03-03 04:38   =[C] (4294967295)
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/settings.lua (34) : xpcall
2021-03-03 04:38   =E:/OneDrive/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/base.lua (999) : setAIDriver
2021-03-03 04:38   dataS/scripts/vehicles/SpecializationUtil.lua (30)
2021-03-03 04:38   dataS/scripts/vehicles/Vehicle.lua (1031) : raiseEvent
2021-03-03 04:38   dataS/scripts/network/Client.lua (390) : readStream
2021-03-03 04:38   dataS/scripts/network/ConnectionManager.lua (28) : func

@Mercuri
Copy link
Author

Mercuri commented Mar 8, 2021

I installed the latest build of 6.3.00049dev on our server and that seems to have resolved the issue. Thanks guys! If anything else comes up I'll let you know

@Mercuri Mercuri closed this as completed Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants