Thread: Ubuntu 14.04 32 bit random crashing

Page 1 of 2 12 LastLast
Results 1 to 25 of 36
  1. #1
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Ubuntu 14.04 32 bit random crashing

    Greetings and thank you for the steam support for this old (but good!) game!

    I have added support for Sven Co-Op to my Dedicated Server tool, https://github.com/f0rkz/gameserver-daemon give it a looksee, it may save you some time in the future

    For the past couple of hours I've been running and monitoring two dedicated servers to see how well Sven Co-Op has held up to time. After a game cycle goes on I've seen some random crashing here and there ending in a required server restart. The game seems to crash when a campaign is in progress. I haven't seen a server crash on custom campaign maps.

    I will post them as they come up in the next few hours. I didn't copy down the previous errors, so I am monitoring the servers now in hopes they will crash and I can send some information your way. So far, I haven't had a single issue while typing this post (a watched kettle never boils and all that).

  2. #2
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Ah, speak of the devil. As soon as I posted this one of the many errors came up this one looks to happen at map change:

    L 25/01/2016 - 19:15:04: Log file closed
    Server logging data to file logs/2016-01-25.log
    L 25/01/2016 - 19:15:04: Log file started (file "logs/2016-01-25.log") (game
    "svencoop") (version "48/5.0.0.0/7023")
    L 25/01/2016 - 19:15:04: Loading map "hl_c07_a2"
    L 25/01/2016 - 19:15:04: Server cvars start
    L 25/01/2016 - 19:15:04: Server cvar "adminsfile" = "admins.txt"
    L 25/01/2016 - 19:15:04: Server cvar "allow_spectators" = "1.0"
    L 25/01/2016 - 19:15:04: Server cvar "coop" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "deathmatch" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "edgefriction" = "2"
    L 25/01/2016 - 19:15:04: Server cvar "gamebuild" = "4315"
    L 25/01/2016 - 19:15:04: Server cvar "gamename" = "Sven Co-op"
    L 25/01/2016 - 19:15:04: Server cvar "gameversion" = "5.0"
    L 25/01/2016 - 19:15:04: Server cvar "mapvotecfgfile" = "mapvote.cfg"
    L 25/01/2016 - 19:15:04: Server cvar "max_queries_sec" = "3.0"
    L 25/01/2016 - 19:15:04: Server cvar "max_queries_sec_global" = "30"
    L 25/01/2016 - 19:15:04: Server cvar "max_queries_window" = "60"
    L 25/01/2016 - 19:15:04: Server cvar "mp_banana" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "mp_consistency" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "mp_footsteps" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "mp_logfile" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "mp_nextmap_cycle" = "BlackMesaEPF"
    L 25/01/2016 - 19:15:04: Server cvar "mp_notimelimit" = "0.0"
    L 25/01/2016 - 19:15:04: Server cvar "pausable" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "skillcfgfile" = "skill.cfg"
    L 25/01/2016 - 19:15:04: Server cvar "sv_accelerate" = "10"
    L 25/01/2016 - 19:15:04: Server cvar "sv_admin_icon" = "gfx/icons/admin.tga"
    L 25/01/2016 - 19:15:04: Server cvar "sv_aim" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "sv_airaccelerate" = "10"
    L 25/01/2016 - 19:15:04: Server cvar "sv_allowupload" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "sv_alltalk" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "sv_bounce" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "sv_cheats" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "sv_clienttrace" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "sv_contact" = ""
    L 25/01/2016 - 19:15:04: Server cvar "sv_friction" = "4"
    L 25/01/2016 - 19:15:04: Server cvar "sv_gravity" = "800"
    L 25/01/2016 - 19:15:04: Server cvar "sv_logblocks" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "sv_maxrate" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "sv_maxspeed" = "270"
    L 25/01/2016 - 19:15:04: Server cvar "sv_minrate" = "0"
    L 25/01/2016 - 19:15:04: Server cvar "sv_password" = ""
    L 25/01/2016 - 19:15:04: Server cvar "sv_proxies" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "sv_stepsize" = "18"
    L 25/01/2016 - 19:15:04: Server cvar "sv_stopspeed" = "100"
    L 25/01/2016 - 19:15:04: Server cvar "sv_uploadmax" = "0.5"
    L 25/01/2016 - 19:15:04: Server cvar "sv_voiceenable" = "1"
    L 25/01/2016 - 19:15:04: Server cvar "sv_wateraccelerate" = "10"
    L 25/01/2016 - 19:15:04: Server cvar "sv_waterfriction" = "1"
    L 25/01/2016 - 19:15:04: Server cvars end
    "sv_rcon_minfailuretime" is "30"
    L 25/01/2016 - 19:15:05: Log file closed
    Server logging data to file logs/2016-01-25.log
    L 25/01/2016 - 19:15:05: Log file started (file "logs/2016-01-25.log") (game "svencoop") (version "48/5.0.0.0/7023")
    "mp_respawndelay" is "5"
    Writing banned.cfg.
    Writing listip.cfg.
    couldn't exec banned_user.cfg
    couldn't exec banned_ip.cfg
    L 25/01/2016 - 19:15:05: Server is empty, map will end in 10.00 minute(s) if nobody connects.
    terminate called after throwing an instance of 'std::bad_alloc'
    what(): std::bad_alloc
    Aborted (core dumped)


    I am no C++ expert, but it seems like allocated memory runs out and the server crashes. To be clear, I have 4GB of RAM dedicated to this vhost and 2 CPU cores. htop is showing little to no memory being utilized when the server runs (around 250 megabytes).

  3. #3
    Registered User
    Join Date
    Jan 2016
    Posts
    15

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by f0rkz View Post

    I am no C++ expert, but it seems like allocated memory runs out and the server crashes. To be clear, I have 4GB of RAM dedicated to this vhost and 2 CPU cores. htop is showing little to no memory being utilized when the server runs (around 250 megabytes).
    This is what I was thinking. Is your server remote or locally hosted?

  4. #4
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Brutal Focker View Post
    This is what I was thinking. Is your server remote or locally hosted?
    I have it hosted on an OpenStack install I set up. Its local when I am at work Remote when I am at home (its in a datacenter).

  5. #5
    Banned Solokiller's Avatar
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    3,314

    Re: Ubuntu 14.04 32 bit random crashing

    Sven Co-op will only use a small portion of available RAM. If you want to increase this setting, use -heapsize <size in bytes>. The default setting is 256MB, if i'm not mistaken.

  6. #6
    Registered User
    Join Date
    Jan 2016
    Posts
    15

    Re: Ubuntu 14.04 32 bit random crashing

    Funny that your system admins didn't catch a false alarm being set up. But since it's cloud based no big deal.

    Ok, you should kill your server processes if you already didn't. Then try these solutions.

    1) You can prevent termination with a try/catch block.

    2) It sounds like this is occurring when you execute the program. It also sounds like "make" executes the program automatically.

  7. #7
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Brutal Focker View Post
    Funny that your system admins didn't catch a false alarm being set up. But since it's cloud based no big deal.

    Ok, you should kill your server processes if you already didn't. Then try these solutions.

    1) You can prevent termination with a try/catch block.

    2) It sounds like this is occurring when you execute the program. It also sounds like "make" executes the program automatically.
    Haha what if I am the system admin

    Care to elaborate with what you mean by try/catch block?

    It is occurring randomly as players are in the server progressing through the various campaigns. I've seen it the most on half-life's campaign, but I did also notice this in Blue Shift.

  8. #8
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Solokiller View Post
    Sven Co-op will only use a small portion of available RAM. If you want to increase this setting, use -heapsize <size in bytes>. The default setting is 256MB, if i'm not mistaken.
    I'll increase the allocated memory next time the server crashes. Will update if anything different comes up.

    Thanks for the help!

  9. #9
    Registered User
    Join Date
    Jan 2016
    Posts
    15

    Re: Ubuntu 14.04 32 bit random crashing

    Your script is python correct?

    (1)
    try:
    doSomething()
    except:
    pass

    or

    (2)

    try:
    doSomething()
    except Exception:
    pass

  10. #10
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Brutal Focker View Post
    Your script is python correct?

    (1)
    try:
    doSomething()
    except:
    pass

    or

    (2)

    try:
    doSomething()
    except Exception:
    pass
    Yeah, the script is working fine and I do catch exceptions when they come about. It is designed to install the game and configure server.cfg based on what you give it (as well as launch the DS in a screen). The error I am pasting is outside of the script after it launches the dedicated server. Once it is launched it throws it into a screen session. The errors seen in the post above is from the engine itself after 30 or 40 minutes of gameplay, not the script.

  11. #11
    Registered User
    Join Date
    Jan 2016
    Posts
    15

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by f0rkz View Post
    Yeah, the script is working fine and I do catch exceptions when they come about. It is designed to install the game and configure server.cfg based on what you give it (as well as launch the DS in a screen). The error I am pasting is outside of the script after it launches the dedicated server. Once it is launched it throws it into a screen session. The errors seen in the post above is from the engine itself after 30 or 40 minutes of gameplay, not the script.
    Gotcha. Makes sense now.

    Looked at your script. Very cool.

  12. #12
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Brutal Focker View Post
    Gotcha. Makes sense now.

    Looked at your script. Very cool.
    Thanks buddy! I've been adding support for various games as the interest comes up. It is very handy and has saved me a ton of time. If you end up using it, let me know what you think!

  13. #13
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Just ran into another issue that comes up a bit:


    L 25/01/2016 - 22:04:35: Log file closed
    Server logging data to file logs/2016-01-25.log
    L 25/01/2016 - 22:04:35: Log file started (file "logs/2016-01-25.log") (game "svencoop") (version "48/5.0.0.0/7023")
    L 25/01/2016 - 22:04:35: Loading map "polar_rescue"
    L 25/01/2016 - 22:04:35: Server cvars start
    L 25/01/2016 - 22:04:35: Server cvar "adminsfile" = "admins.txt"
    L 25/01/2016 - 22:04:35: Server cvar "allow_spectators" = "1.0"
    L 25/01/2016 - 22:04:35: Server cvar "coop" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "deathmatch" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "edgefriction" = "2"
    L 25/01/2016 - 22:04:35: Server cvar "gamebuild" = "4315"
    L 25/01/2016 - 22:04:35: Server cvar "gamename" = "Sven Co-op"
    L 25/01/2016 - 22:04:35: Server cvar "gameversion" = "5.0"
    L 25/01/2016 - 22:04:35: Server cvar "mapvotecfgfile" = "mapvote.cfg"
    L 25/01/2016 - 22:04:35: Server cvar "max_queries_sec" = "3.0"
    L 25/01/2016 - 22:04:35: Server cvar "max_queries_sec_global" = "30"
    L 25/01/2016 - 22:04:35: Server cvar "max_queries_window" = "60"
    L 25/01/2016 - 22:04:35: Server cvar "mp_banana" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "mp_consistency" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "mp_footsteps" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "mp_logfile" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "mp_nextmap_cycle" = "polar_rescue"
    L 25/01/2016 - 22:04:35: Server cvar "mp_notimelimit" = "0.0"
    L 25/01/2016 - 22:04:35: Server cvar "pausable" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "skillcfgfile" = "skill.cfg"
    L 25/01/2016 - 22:04:35: Server cvar "sv_accelerate" = "10"
    L 25/01/2016 - 22:04:35: Server cvar "sv_admin_icon" = "gfx/icons/admin.tga"
    L 25/01/2016 - 22:04:35: Server cvar "sv_aim" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "sv_airaccelerate" = "10"
    L 25/01/2016 - 22:04:35: Server cvar "sv_allowupload" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "sv_alltalk" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "sv_bounce" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "sv_cheats" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "sv_clienttrace" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "sv_contact" = ""
    L 25/01/2016 - 22:04:35: Server cvar "sv_friction" = "4"
    L 25/01/2016 - 22:04:35: Server cvar "sv_gravity" = "800"
    L 25/01/2016 - 22:04:35: Server cvar "sv_logblocks" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "sv_maxrate" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "sv_maxspeed" = "270"
    L 25/01/2016 - 22:04:35: Server cvar "sv_minrate" = "0"
    L 25/01/2016 - 22:04:35: Server cvar "sv_password" = ""
    L 25/01/2016 - 22:04:35: Server cvar "sv_proxies" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "sv_stepsize" = "18"
    L 25/01/2016 - 22:04:35: Server cvar "sv_stopspeed" = "100"
    L 25/01/2016 - 22:04:35: Server cvar "sv_uploadmax" = "0.5"
    L 25/01/2016 - 22:04:35: Server cvar "sv_voiceenable" = "1"
    L 25/01/2016 - 22:04:35: Server cvar "sv_wateraccelerate" = "10"
    L 25/01/2016 - 22:04:35: Server cvar "sv_waterfriction" = "1"
    L 25/01/2016 - 22:04:35: Server cvars end
    L 25/01/2016 - 22:04:35: FATAL ERROR (shutting down): COM_LoadFile: not enough space for maps/polar_rescue.bsp
    FATAL ERROR (shutting down): COM_LoadFile: not enough space for maps/polar_rescue.bsp


    Any ideas?

    And another one right now, no explicit information for this one, but it looks like both of the vm's crashed around the same time:

    Segmentation fault (core dumped)

    Got the following in the server's dmesg:

    [50665.706278] svends_i686[10438]: segfault at 0 ip b624ae2b sp bfde73a4 error 6 in engine_i686.so[b61fb000+100000]
    [66520.411008] svends_i686[12738]: segfault at 0 ip b62f4e2b sp bfc76a14 error 6 in engine_i686.so[b62a5000+100000]

    And the other VM:

    [144961.820364] svends_i686[13816]: segfault at 0 ip b62b9e2b sp bfe2f194 error 6 in engine_i686.so[b626a000+100000]


    Another one just now:

    L 25/01/2016 - 22:53:04: FATAL ERROR (shutting down): COM_LoadFile: not enough space for maps/uplink.bsp
    FATAL ERROR (shutting down): COM_LoadFile: not enough space for maps/uplink.bsp

    This looks like a not enough free space error, but that is not the case:

    $ df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 2.0G 12K 2.0G 1% /dev
    tmpfs 404M 332K 404M 1% /run
    /dev/disk/by-label/cloudimg-rootfs 40G 2.9G 35G 8% /
    none 4.0K 0 4.0K 0% /sys/fs/cgroup
    none 5.0M 0 5.0M 0% /run/lock
    none 2.0G 512K 2.0G 1% /run/shm
    none 100M 0 100M 0% /run/user
    Last edited by f0rkz; 25-01-2016 at 06:53 PM.

  14. #14
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Solokiller View Post
    Sven Co-op will only use a small portion of available RAM. If you want to increase this setting, use -heapsize <size in bytes>. The default setting is 256MB, if i'm not mistaken.
    Unfortunately, upping the heapsize didn't help. Got a similar crash just now.

  15. #15
    Banned Solokiller's Avatar
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    3,314

    Re: Ubuntu 14.04 32 bit random crashing

    Could you send me the core dump?

  16. #16
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Do you know where they are located relative to the game install and what the filenames are? I poked around to find it, but no dice.

  17. #17
    Banned Solokiller's Avatar
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    3,314

    Re: Ubuntu 14.04 32 bit random crashing

    To be honest, i don't know. I've only ever used Windows servers.

  18. #18
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Solokiller View Post
    To be honest, i don't know. I've only ever used Windows servers.
    D:

    I'll make a believer out of you yet!

    What are they named in windows? I did a blanket search for 'core', 'dump', 'Core', and 'Dump' which yielded no results.

  19. #19
    Banned Solokiller's Avatar
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    3,314

    Re: Ubuntu 14.04 32 bit random crashing

    On windows they're called .mdmp or .dmp. They'll have the name of the exe that crashed, so probably svends.exe, with the data and time appended.

  20. #20
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    449

    Re: Ubuntu 14.04 32 bit random crashing

    The coredump itself is in the directory where svends_run resides, named "core" or "core.<somenumber>". You have to set the ulimit for cores to unlimited though: "ulimit -c unlimited". svends_run also needs to be run with -debug.
    The mdmp file is written to /tmp or some sub-folder there, the server log should output the exact file name and location if the crash handler worked correctly.

  21. #21
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by nico View Post
    The coredump itself is in the directory where svends_run resides, named "core" or "core.<somenumber>". You have to set the ulimit for cores to unlimited though: "ulimit -c unlimited". svends_run also needs to be run with -debug.
    The mdmp file is written to /tmp or some sub-folder there, the server log should output the exact file name and location if the crash handler worked correctly.
    Thanks for the information! I checked ulimit and ubuntu already has it set to unlimited by default. I went ahead and added -debug to the launch command. Will wait for the next crash and send the dump for download.

  22. #22
    Registered User
    Join Date
    Jan 2016
    Posts
    24

    Re: Ubuntu 14.04 32 bit random crashing

    Curiosity got the best of me. What do you guys use distro wise for your sven co-op dedicated server?

  23. #23
    Registered User
    Join Date
    Jan 2016
    Posts
    15

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by f0rkz View Post
    Curiosity got the best of me. What do you guys use distro wise for your sven co-op dedicated server?
    Debian or FreeBSD. Security standards first my friend.

  24. #24
    Registered User
    Join Date
    Jan 2016
    Posts
    6

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by f0rkz View Post
    Curiosity got the best of me. What do you guys use distro wise for your sven co-op dedicated server?
    Debian here.


  25. #25
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    449

    Re: Ubuntu 14.04 32 bit random crashing

    Quote Originally Posted by Brutal Focker View Post
    Debian or FreeBSD. Security standards first my friend.
    While FreeBSD is a good OS for hlds I'd rather use a true linux as FreeBSD is not linux but has a linux emulation layer.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •