Buffalo Posted August 18, 2014 Share Posted August 18, 2014 (edited) Hello, Server is running debian-6.0, MTA 1.4-release-6760, using pre-compiled server files from linux.multitheftauto.com. Error on crash: http://i.gyazo.com/6c572078cf1f88abf687e7119a6b3d98.png (bad_allocation?) Crash happens after awhile, somewhere in the middle of 20mins to 4 hours. Gamemode scripts are mostly running client-side. Script is based on peds. Major server scripts based on custom files downloading, that works very well. E.g. no open file handles reported by performancebrowser. Actually can't see anything abnormal in performancebrowser. Although, there are some server side peds, like bosses, that must be synced correctly. Also, this gamemode is 1 year old, with nothing special added (except file downloader), it worked perfect on MTA 1.3.3. I forgot how to debug crash deeper, since I had last server crashes on this gamemode on early MTA versions. Once someone reminds what to use, I will try to collect more information it dumps. EDIT: Crash seems pretty random. Worked 9 hours straight without incident. Edited August 19, 2014 by Guest Link to comment
kidvnet Posted August 19, 2014 Share Posted August 19, 2014 I have same experience. what I did is to read the dump file. even it was encrypted. finally I found some information just above the hardware description. there is a resource name, which was a dayZ addon for anti-corpse-copy. I guess maybe some variables or data table overflow. so later I write a script to restart that resource every half hour. now the server is never crash Link to comment
Buffalo Posted August 19, 2014 Author Share Posted August 19, 2014 (edited) At least you can read a dump file. I never got one. BTW nice english. Edited August 19, 2014 by Guest Link to comment
MTA Team ccw Posted August 19, 2014 MTA Team Share Posted August 19, 2014 bad_alloc can be caused by the process running out of memory, but it could be something else. Is there a dump file in mods/deathmatch/dumps ? If so, upload to http://upload.mtasa.com/ If dumps are not being generated, here is some info on manually getting a back trace: https://wiki.multitheftauto.com/wiki/In ... er_crashes . Link to comment
Buffalo Posted August 20, 2014 Author Share Posted August 20, 2014 Right, so heres my homework: http://pastebin.com/sjQterXk (There was no core dump file) Regarding this info, im using latent events to send files. It works good on other server. Link to comment
MTA Team ccw Posted August 21, 2014 MTA Team Share Posted August 21, 2014 Thanks. I'm almost certain the crash is due to the process running out of memory. Can you PM me the script that does the latent sends to the clients? Link to comment
Buffalo Posted August 21, 2014 Author Share Posted August 21, 2014 Any information how to stop this would be appreciated. What exactly could cause these leaks (i guess?). Or if it's MTA related issue, I'll wait for a server patch version to update to. EDIT: Last crash had different error: http://i.gyazo.com/eaecaa23912af6ad55523700bf3af5c3.png Link to comment
MTA Team ccw Posted August 26, 2014 MTA Team Share Posted August 26, 2014 Try the latest nightly build from here: https://nightly.multitheftauto.com/ Link to comment
Buffalo Posted August 27, 2014 Author Share Posted August 27, 2014 Uploaded linux-1.4.0-rc-6823 Still crashes with same error (bad_alloc). Link to comment
MTA Team ccw Posted August 27, 2014 MTA Team Share Posted August 27, 2014 Change your triggerLatentClientEvent code so the server only sends one file at a time - This will prevent the server from queuing all the file requests (which uses memory). Also make sure the server never sends the same file more than once for any client - This will prevent hackers causing memory problems by constantly triggering the 'download' events Link to comment
Buffalo Posted August 30, 2014 Author Share Posted August 30, 2014 Thank you for support. Rewritten scripts as you advised, crashes are gone. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now