[Crash] MainThread : Error: Failed to allocate x bytes and will now terminate.

fanafana Join Date: 2015-05-14 Member: 204472Members
edited January 2017 in Technical Support
Hey,
after new mesa and stuff I finally managed to game NS2.

However I encountered now twice a crash (after ~15 and ~10 min).

Both due to "[1336.174] MainThread : Error: Failed to allocate 26624 bytes and will now terminate.", see log.txt below.

Any Ideas?
Date: 01/01/2017
Time: 09:47:10 PM:
--------------------------------------------------------------
[  0.060] Unbound/Unknown : Filesystem initialized, cache enabled
Build 312
Chakra" x86_64
Steam initialized
[INVENTORY] Granting Promo Items
Num displays: 1
OpenGL 4.3 (Core Profile) Mesa 13.0.2 initialized (X.Org Gallium 0.4 on AMD BONAIRE (DRM 2.46.0 / 4.8.6-1-CHAKRA, LLVM 3.9.1))
GLSL version 4.30
ARB_texture_storage extension present
ARB_get_program_binary extension present
Sound Device: default stereo
Record Device: default
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Loading config://RankedServers.json
Resampling uncompressed animations at 1/2 frame rate to conserve memory
Physics multithreading is only available on Windows for now
Main Menu Initialized at Version: 312
Steam Id: xxxxxxxxxxxxxx
Physics multithreading is only available on Windows for now
Remote patch received. Loading...
Remote patch applied succesfully.
Client  : 33.569679 : [Analytics] Recording launch event
Connecting to server 160.202.165.12:27015
Physics multithreading is only available on Windows for now
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Loading config://RankedServers.json
Physics multithreading is only available on Windows for now
Main Menu Initialized at Version: 312
Steam Id: xxxxxxxxxxx
Physics multithreading is only available on Windows for now
Remote patch received. Loading...
Remote patch applied succesfully.
Connecting to server 90.154.92.157:3003
Physics multithreading is only available on Windows for now
[270.912] Worker 07 : Downloading mods
[271.621] Worker 07 : Finished downloading and installing mods
[271.621] Worker 07 : Filesystem initialized, cache enabled
[271.621] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m24ab7638_1479570870/
[271.622] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m2900408b_1479548695/
[271.622] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m2d5a11f0_1477531243/
[271.624] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m706d242_1479656972/
[271.627] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/mb7149f9_1483011485/
[271.628] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/mc6fbbb0_1479548032/
[271.628] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m23961b33_1452390559/
[271.628] Worker 07 : Error: Couldn't mount '‭2d3300c4‬' from path '/run/media/mmedia/Steam/steamapps/common/Natural Selection 2/‭2d3300c4‬' as the path does not exist
[271.628] Worker 07 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m22ee6f61_1453861087/
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Loading config://RankedServers.json
[290.354] Worker 07 : Loading 'maps/ns2_docking.level'
Physics multithreading is only available on Windows for now
[372.379] Worker 06 : Downloading mods
Physics multithreading is only available on Windows for now
[392.816] Worker 06 : Finished downloading and installing mods
[392.816] Worker 06 : Filesystem initialized, cache enabled
[392.817] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m24ab7638_1479570870/
[392.817] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m2900408b_1479548695/
[392.818] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m2d5a11f0_1477531243/
[392.820] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m706d242_1479656972/
[392.822] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/mb7149f9_1483011485/
[392.823] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/mc6fbbb0_1479548032/
[392.824] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m23961b33_1452390559/
[392.824] Worker 06 : Error: Couldn't mount '‭2d3300c4‬' from path '/run/media/mmedia/Steam/steamapps/common/Natural Selection 2/‭2d3300c4‬' as the path does not exist
[392.824] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/m22ee6f61_1453861087/
[392.826] Worker 06 : Mounting mod '' from ~/.config/Natural Selection 2/Workshop/md873977_1459796740/
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Loading config://RankedServers.json
[472.606] Worker 06 : Loading 'maps/ns2_mineral.level'
Loading pathing mesh for level maps/ns2_mineral.level
[522.666] Worker 06 : Error: Unable to open 'fastload/maps/ns2_mineral.level-client.tile_cache_grid' (usage 0x1)
Couldn't find pathing mesh file maps/ns2_mineral.level-client.tile_cache_grid, building it now ...
Finished loading 'maps/ns2_mineral.level'
Client  : 0.000000 : INFO: LuaJIT setup: maxtrace=13,000, maxmcode=27,000
Loading took 244.172401573 seconds
Physics multithreading is only available on Windows for now
Server changed mr to 30
==============================
Shine started up successfully.
- Shine is set to display web pages from plugins. If you wish to globally disable web page display, then enter "sh_disableweb 1" into the console.
- Shine is set to report any errors it causes on your client when you disconnect. If you do not wish it to do so, then enter "sh_errorreport 0" into the console.
- You can enable/disable UI animations by entering "sh_animateui" into the console.
- Shine has a chatbox that you can enable/disable by entering "sh_chatbox" into the console.
- You can choose to enable/disable local all talk for yourself by entering sh_alltalklocal_cl true/false.
==============================
mtixonow killed Serafim with Shotgun

(snip)

SethMcDeath killed ooooonet with Flamethrower
[1336.174] MainThread : Error: Failed to allocate 26624 bytes and will now terminate.

Comments

  • FoxyFoxy United Kingdom Join Date: 2014-08-19 Member: 198032Members, NS2 Playtester, NS2 Map Tester, Reinforced - Shadow
    @fana I've moved this thread to the correct forum, you'd posted in the original NS forum for the half-life mod, which also explains your report into why the tech support links don't work :)

    I see you're on Linux, I don't know how up to date or relevant this information is but its all I could find - Linux guide

    Please provide as much technical info as you can and someone will get back to you.
  • fanafana Join Date: 2015-05-14 Member: 204472Members
    edited January 2017
    Foxy wrote: »
    @fana I've moved this thread to the correct forum, you'd posted in the original NS forum for the half-life mod, which also explains your report into why the tech support links don't work :)
    Ahh, lol... Thanks mate!
    Foxy wrote: »
    I see you're on Linux, I don't know how up to date or relevant this information is but its all I could find - Linux guide
    It is pretty dated, some stuff might still apply, but I don't see anything useful for my bug right now...

    Foxy wrote: »
    Please provide as much technical info as you can and someone will get back to you.
    Systeminfo:
    System:    Host: cray Kernel: 4.8.6-1-CHAKRA x86_64 (64 bit) Desktop: KDE Plasma 5.8.5 Distro: Chakra
    Machine:   Mobo: ASUSTeK model: A88XM-PLUS v: Rev X.0x Bios: American Megatrends v: 2801 date: 12/11/2015
    CPU:       Dual core AMD A10-7850K Radeon R7 12 Compute Cores 4C+8G (-HT-MCP-) cache: 4096 KB 
               clock speeds: max: 3700 MHz 1: 2400 MHz 2: 3000 MHz 3: 2400 MHz 4: 2400 MHz
    Graphics:  Card: Advanced Micro Devices [AMD/ATI] Bonaire XTX [Radeon R7 260X]
               Display Server: X.Org 1.17.4 driver: radeon Resolution: 1280x1024@60.02hz
               GLX Renderer: Gallium 0.4 on AMD BONAIRE (DRM 2.46.0 / 4.8.6-1-CHAKRA, LLVM 3.9.1)
               GLX Version: 3.0 Mesa 13.0.2
    Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel
               Card-2 Advanced Micro Devices [AMD/ATI] Tobago HDMI Audio [Radeon R7 360 / R9 360 OEM]
               driver: snd_hda_intel
               Sound: Advanced Linux Sound Architecture v: k4.8.6-1-CHAKRA
    Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
               IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: 1c:87:2c:5f:3b:df
    Drives:    HDD Total Size: 1000.2GB (27.5% used) ID-1: /dev/sda model: ST1000DX001 size: 1000.2GB
    Sensors:   System Temperatures: cpu: 30.5C mobo: 31.0C gpu: 37.0
               Fan Speeds (in rpm): fan-1: 760 fan-2: 621 fan-3: 747
    Info:      Processes: 178 Uptime: 2 days Memory: 3277.5/15994.7MB Client: Shell (bash) inxi: 2.3.0 
    


    Also in the meantime I found out that this crash only occurs after a map change. Not directly but after a couple of minutes and never on the first map I load after (re-)starting the game.
  • navazkanavazka Join Date: 2015-12-08 Member: 209825Members
    Most likely you're running out of the 4GB available memory (since NS2 is a 32-bit process). Nothing you can do. Some time back NS2 wouldn't even start a game for me, with "malloc failed". The radeon driver is clearly more memory hungry than other drivers.

    The devs have 64bit rewrite on the roadmap, but I don't know what the current status is.
  • BeigeAlertBeigeAlert Texas Join Date: 2013-08-08 Member: 186657Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow, Subnautica Playtester, Pistachionauts
    edited January 2017
    navazka wrote: »
    The devs have 64bit rewrite on the roadmap, but I don't know what the current status is.

    Sooner rather than later.
  • fanafana Join Date: 2015-05-14 Member: 204472Members
    BeigeAlert wrote: »
    navazka wrote: »
    The devs have 64bit rewrite on the roadmap, but I don't know what the current status is.

    Sooner rather than later.

    Also for linux?
  • fanafana Join Date: 2015-05-14 Member: 204472Members
    More crashes ...
    Fatal Error: Failed to allocate 147500 bytes and will now terminate.
    [887.414] ClientGame::UpdateWorld : Error: Failed to allocate 147500 bytes and will now terminate.
    
  • .trixX..trixX. Budapest Join Date: 2007-10-11 Member: 62605Members
    @fana have you checked your physical memory usage? is there a chance a bg process is munching on it? The last time I had memory issues on linux, i was running my bitcoin wallet at the same time.

    Also... unfortunately, NS2 has become quite unstable on linux for the last year. Before 2016 feb, I had no problems with the game, but after some updates rolled out it just kept crashing... until i got fed up and bought another SSD drive for a windows OS :D
  • fanafana Join Date: 2015-05-14 Member: 204472Members
    .trixX. wrote: »
    @fana have you checked your physical memory usage? is there a chance a bg process is munching on it? The last time I had memory issues on linux, i was running my bitcoin wallet at the same time.
    Yeah, I'm monitoring it constantly via system monitor and I'm not getting even near 10GB... It's really a problem of the 32bit app.
    .trixX. wrote: »
    Also... unfortunately, NS2 has become quite unstable on linux for the last year. Before 2016 feb, I had no problems with the game, but after some updates rolled out it just kept crashing... until i got fed up and bought another SSD drive for a windows OS :D
    Well, space is not the problem - I just don't want to have the hassle to maintain another OS (and especially windoze).

    Besides: Although NS2 has really shitty linux support (e.g. this thread) once it runs, it runs pretty decent. I would even dare to say it's one of the better OpenGL ports out there...
  • DotBatFileDotBatFile Join Date: 2017-01-27 Member: 227316Members
    Nobody cares to be honest pettle XDDDDDDDD get off this game ;^) 11 year old weeebs
  • y4ny4n Join Date: 2013-10-31 Member: 188889Members, Reinforced - Silver, Reinforced - Shadow
    I've been having the same problem for several months now, sometimes after ~15 minutes in a server and sometimes in 1-5 min.

    Latest was on HouseOfAwesome:
    [1631.081] CinematicsUpdate : Error: Failed to allocate 23552 bytes and will now terminate.
    

    The problem has persisted across game and OS reinstalls (Debian testing and unstable) and isn't video card specific (happens on both GTX 580 and RX 480).
  • BeigeAlertBeigeAlert Texas Join Date: 2013-08-08 Member: 186657Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow, Subnautica Playtester, Pistachionauts
    y4n wrote: »
    I've been having the same problem for several months now, sometimes after ~15 minutes in a server and sometimes in 1-5 min.

    Latest was on HouseOfAwesome:
    [1631.081] CinematicsUpdate : Error: Failed to allocate 23552 bytes and will now terminate.
    

    The problem has persisted across game and OS reinstalls (Debian testing and unstable) and isn't video card specific (happens on both GTX 580 and RX 480).

    When this happens, please run TechSupport.exe from your Natural Selection 2 directory, and attach the file. That one line from the log isn't really going to help us find the source of the issue. :)
  • navazkanavazka Join Date: 2015-12-08 Member: 209825Members
    BeigeAlert wrote: »
    When this happens, please run TechSupport.exe from your Natural Selection 2 directory, and attach the file. That one line from the log isn't really going to help us find the source of the issue. :)

    TechSupport.exe on Linux? Not likely :smile: Isn't it clear that the memory address space run out, based on the error message? And we seem to see it across different distributions and drivers.
  • phoenixbbsphoenixbbs Join Date: 2003-02-10 Member: 13379Members, Constellation, NS2 Playtester, Subnautica Playtester
    crashed after typing "quit" in the console - dump in discord - I got the popup error message reporting window, clicked send and it locked out as it has for a long time now...
  • y4ny4n Join Date: 2013-10-31 Member: 188889Members, Reinforced - Silver, Reinforced - Shadow
    navazka wrote: »
    BeigeAlert wrote: »
    When this happens, please run TechSupport.exe from your Natural Selection 2 directory, and attach the file. That one line from the log isn't really going to help us find the source of the issue. :)

    TechSupport.exe on Linux? Not likely :smile: Isn't it clear that the memory address space run out, based on the error message? And we seem to see it across different distributions and drivers.

    Yep, I tried again grabbed a backtrace with gdb, in case it helps. The crash happened soon after loading the second map, like someone noted above. Pretty clear that it's just running into the 32-bit address space limit IMO. Glad to hear that a 64-bit build is in the works.

    Log:
    [1115.290] MainThread : Error: Failed to allocate 24596 bytes and will now terminate.
    

    GDB:
    (gdb) cont
    Continuing.
    
    Thread 1 "ns2_linux32" received signal SIGSEGV, Segmentation fault.
    M4::OutOfMemory (size=size@entry=24596) at ../Source/Engine/HeapAllocator.cpp:42
    42	../Source/Engine/HeapAllocator.cpp: No such file or directory.
    
    
    (gdb) bt
    #0  M4::OutOfMemory (size=size@entry=24596) at ../Source/Engine/HeapAllocator.cpp:42
    #1  0xf6b9c629 in M4::HeapAllocator::AllocateAligned (this=0xb15ef4f4, size=24596, align=8)
        at ../Source/Engine/HeapAllocator.cpp:127
    #2  0xf6c12ef4 in M4::ProxyAllocator::AllocateAligned (this=0xb15ef504, size=24596, align=8)
        at ../Source/Engine/ProxyAllocator.cpp:162
    #3  0xf6c12ef4 in M4::ProxyAllocator::AllocateAligned (this=0xb15ef6e4, size=24596, align=8)
        at ../Source/Engine/ProxyAllocator.cpp:162
    #4  0xf6c011c4 in M4::Allocator::Allocate (size=<optimized out>, this=<optimized out>)
        at ../Source/Engine/Allocator.inl:17
    #5  M4::PoolAllocator::AllocatePage (this=this@entry=0xb15ef734) at ../Source/Engine/PoolAllocator.cpp:139
    #6  0xf6c0121f in M4::PoolAllocator::AllocateFromPage (this=this@entry=0xb15ef734, size=24592)
        at ../Source/Engine/PoolAllocator.cpp:161
    #7  0xf6c012cc in M4::PoolAllocator::AllocateAligned (this=0xb15ef734, size=24592, align=4)
        at ../Source/Engine/PoolAllocator.cpp:100
    #8  0x080f8fa9 in M4::Allocator::New<M4::NetworkMemory, M4::NetworkMemoryState*, M4::NetworkMemory*> (p2=0x2700c, 
        p1=0xfff3f300, this=<optimized out>) at ../Source/Engine/Allocator.inl:49
    #9  M4::NetworkMemoryState::NetworkMemoryState (this=0xfff3f300, world=0xb15ef4f0, other=0xa0008, 
        groupBits=M4::NetworkField_GroupBits_ALL) at ../Source/Spark_Server/NetworkMemory.cpp:566
    #10 0x080fa64c in M4::NetworkMemoryState::EndUpdate (this=0xa0008) at ../Source/Spark_Server/NetworkMemory.cpp:2009
    #11 0x081432f5 in M4::SnapWriter::Flush (this=this@entry=0xb16156b8, snapshot=snapshot@entry=0xc5008)
        at ../Source/Spark_Server/StateSnapshot.cpp:1302
    #12 0x08143de7 in M4::ClientSnapshot::Read (this=this@entry=0xc5008, world=world@entry=0xb15ef4f0, reader=..., 
        endPosition=endPosition@entry=380, oldReader=..., oldOwnedByPlayer=0x3458880, writer=...)
        at ../Source/Spark_Server/StateSnapshot.cpp:417
    #13 0x0808f6b7 in M4::ClientWorld::ReadSnapshot (this=this@entry=0xb15ef4f0, reader=...)
        at ../Source/Spark_Client/ClientWorld.cpp:3850
    #14 0x0808fd70 in M4::ClientWorld::OnServerStatePacket (this=0xb15ef4f0, reader=...)
        at ../Source/Spark_Client/ClientWorld.cpp:3256
    #15 0x0807c98b in M4::ClientGame::OnPacket (this=this@entry=0xf022a008, 
        packet=std::shared_ptr (count 2, weak 0) 0x60cc7320) at ../Source/Spark_Client/ClientGame.cpp:1734
    #16 0x0807caa8 in M4::ClientGame::ServiceNetwork (this=this@entry=0xf022a008)
        at ../Source/Spark_Client/ClientGame.cpp:1663
    #17 0x0807f30f in M4::ClientGame::Update (this=0xf022a008, deltaTime=0.041795173999844337)
        at ../Source/Spark_Client/ClientGame.cpp:1043
    #18 0x0806dd6f in M4::ClientEngine::Update (this=0xf68c0b48, deltaTime=0.041795173999844337)
        at ../Source/Spark_Client/ClientEngine.cpp:226
    #19 0x080d6252 in M4::BaseEngine::RunFrame (this=0xf68c0b48) at ../Source/Spark_Server/BaseEngine.cpp:206
    #20 M4::BaseEngine::Run (this=this@entry=0xf68c0b48) at ../Source/Spark_Server/BaseEngine.cpp:170
    #21 0x0806afa9 in main (argc=1, argv=0xfff638c4) at ../Source/ShooterExe/Main.cpp:104
    

    Saved a core dump, just over 3.3 GiB:
    $ls -la core.13429
    -rw-r--r-- 1 --- --- 3572314488 Feb  8 20:12 core.13429
    
Sign In or Register to comment.