-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mem_Alloc: out of memory #36
Comments
Hello, does its run under restricted environment (docker, lxc, selinux)? |
yes, docker Docker version 24.0.2, build 659604f
|
Looks like same issue: moby/moby#42680 |
added --privileged to docker run, will check |
Today it also happend to my server, but out of memory error reported when load a map |
Both servers got an error Also checked dmesg, and there are no messages about OOM. It looks like RAM is enough , more than 500Mb free + 2Gb of SWAP
|
Can you provide the output of the "memlist" command after a few changelevels? |
Pushed a commit so that it now shows the failure code on POSIX platforms, would be also great if you compiled the engine with DEBUG_RESOLVE define. |
hi @tyabus , thank you for your response. Here is
What do you mean DEBUG_RESOLVE ? i need to provide some variables to |
So, launched a server with
and latest commit f7542214f2a6234bdbc38eaae313964c7cc9a72f Let`s wait until the server will crash @tyabus , not sure about DDEBUG_RESOLVE option in cmake |
Hello, are there any updates on this issue? |
Yep, all good; |
@tyabus looks like no, this issue is not related to DDOS here is the latest crash log
|
Can you also please provide the output of following commands: |
To install required the unwind library on debian/ubuntu execute "apt install libunwind-dev:i386" |
Would also be great if you ran the server under gdb with breakpoint set to Sys_Crash and sent the full backtrace here |
got it will do little bit later, @tyabus please can you give me short instructions about using gdb ? i just want to do everything is right for you |
cmake
gdb:
I don't have a meta mod:
Let's wait until server will crash. |
Also, whats your yapb version? |
Here is YAPB version is :
|
Can you try again with the latest commit? |
console log:
backtrace full:
Started it again |
Looks like the commit I've made helped with the COM_LoadFileForMe, can you add breakpoint to the Sys_Error and go onto the FS_LoadFile frame and see which file it tries to load? |
I'll also spin another test server with YaPB and try to replicate this on my end, last time it didnt crash after ~2 days so, I kinda lost the interest on it. |
No, server without regamedll_CS Not sure about the correct gdb commands, please correct me if there is mistake someone
Not sure about this one
@tyabus Please help me, everything is correct here? I novice in gdb |
@tyabus the server was crashed, it looks like on mapchange
backtrace
@tyabus Please, let me know if I need to check something else in this crash report, I didn't reset the streaming work of gdb |
Honestly, I have no idea, the amount of memory it tries allocate is fine
|
I'm also still running the test server with 12 YaPB bots (Counter-Strike 1.6 Server YaPB Test), let's wait and see if it crashes. |
Okay, let's check. Maybe something is wrong with my files? could you please share your server? maybe something is wrong in my side related to server files. I don't know |
I have downloaded latest linux HLDS using steamcmd and copied over valve, cstrike folders |
and the latest version of cs16_client? |
What? We're talking about a dedicated server, not a client |
yes, about a dedicated server, I'm not sure where I got this server and server file from, maybe the problem is in them, I'll try to rebuild everything from scratch again I mean cs16_client https://github.com/Velaron/cs16-client |
My server has finally crashed
As a temporary workaround i suggest you adding YAPB_SINGLE_THREADED=1 to the env. |
So, you say that the reason with crashes is YAPB bots? @tyabus |
it's not helped
|
I am sorry for my absence, it seems to be a new regression in the engine that is accelerated by the YaPB bots; |
The problem has been traced to the asynchronous ns resolver, please compile the engine with -DXASH_NO_ASYNC_NS_RESOLVE=1 and wait until the fix is pushed for it |
Okay, will do it on a week. Thank you for your help! |
Describe the bug
Sometimes I got
Mem_Alloc: out of memory
error message andError: NET_StringToSockaddr: failed to create thread!
What could be the reason and how to fix it
Screenshots
Please complete the following information:
Additional context
The server uses YAPB bots and sometimes players join in to the server, it can work for 12+ hours and an error pops up, I didn't pay attention, maybe the server has a memory leak somewhere, the dedicated server itself only has 1 GB of RAM, I'll watch today and add information
The text was updated successfully, but these errors were encountered: