swiftly-solution / swiftly

CS2 Game Server Plugin using Metamod
https://swiftlycs2.net
MIT License
45 stars 7 forks source link

server crash when player join #43

Closed keyblade closed 2 months ago

keyblade commented 2 months ago

Server start up is ok.When a player join, server crash. If only with metamod, all fine.

startup cmd: cs2.exe -high -dedicated +map de_dust2 -maxplayers 64 +hostname "my server name" +game_mode 2 +sv_setsteamaccount "my server login token" +game_type 1 +sv_logfile 1

metamod version: (dev build) 2.0 - build 1313

swiftly version: 1.2.14

custom swiftly plugin(only one): core.lua

function GetPluginAuthor()
    return "keyblade"
end

function GetPluginVersion()
    return "1.0.0"
end

function GetPluginName()
    return "fun_with_bots"
end

function GetPluginWebsite()
    return "xxx@yyy.com"
end

events.lua

AddEventHandler("OnPluginStart", function (event)
    logger:Write(4, "fun_with_bots start!")
end)
skuzzis commented 2 months ago

Hi there, what OS are you using?

keyblade commented 2 months ago

Hi there, what OS are you using?

windows server 2012 R2 Datacenter

skuzzis commented 2 months ago

I've found the issue, being from the client language query.

https://github.com/swiftly-solution/swiftly/blob/149fddc18496c38586e103ad5a4bd04135f8db63/src/entrypoint.cpp#L514

We've temporarily removed the the Client Language feature from Windows until we investigate further. (a52d6128)

The assigned version for the above commit is 1.2.15.

keyblade commented 2 months ago

I've found the issue, being from the client language query.

https://github.com/swiftly-solution/swiftly/blob/149fddc18496c38586e103ad5a4bd04135f8db63/src/entrypoint.cpp#L514

We've temporarily removed the the Client Language feature from Windows until we investigate further. (a52d6128)

The assigned version for the above commit is 1.2.15.

gj! wait for the release...

blu133721 commented 2 months ago

Released.

keyblade commented 2 months ago

Released.

still cause server crash...with this release i can see the team selection scene(can not select), and the server cmd windows disappeared suddenly at the same time.

skuzzis commented 2 months ago

Can you please install AcceleratorCS2 and send here the file created after the crash from addons/AcceleratorCS2/dumps? We need the .dmp file to debug the problem, because from our testings we couldn't reproduce it.

keyblade commented 2 months ago

Can you please install AcceleratorCS2 and send here the file created after the crash from addons/AcceleratorCS2/dumps? We need the .dmp file to debug the problem, because from our testings we couldn't reproduce it.

skuzzis commented 2 months ago

I've removed the attachment due to it containing the steam token

skuzzis commented 2 months ago

I've pushed a fix in the commit 1a9c7e50.

The version assigned to this commit is 1.2.16. This problem was a bit tricky due to the fact that we've couldn't retrieve any useful information from the dumps.

We're sorry for the problems caused due to the crash and we hope there will be no more in the future.