[Crash] MainThread : Error: Failed to allocate x bytes and will now terminate.
fana
Join Date: 2015-05-14 Member: 204472Members
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?
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
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.
It is pretty dated, some stuff might still apply, but I don't see anything useful for my bug right now...
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.0Also 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.
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?
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
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...
Latest was on HouseOfAwesome:
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.
TechSupport.exe on Linux? Not likely
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:
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:104Saved a core dump, just over 3.3 GiB: