Linux: mmap/crashes worse than others - can't load a single map (fglrx+virtualgl)
chrix
Join Date: 2013-09-21 Member: 188383Members
64 bit Archlinux with more than enough ram, catalyst 13.8 beta2 and bumblebee/virtualgl
So every time I see this issue come up people recommend using lower textures. Well, this is what I'm using:
(with and without texture streaming)
I can't even load a single map while others say they can play 3-5 maps before it crashes.
I'm starting ns2 with
or
Or the game closes with no error.
Or I'm getting a new empty window with window title "fatal error" while it hangs with 3 threads each doing 100% cpu.
Or "sandbox":
ns2_linux32 allocates at most ~2100 Megabyte VIRT and ~830 Megabyte RES so while I think it's a bit ridiculous to still only create 32 bit builds in the year 2013 this shouldn't be the issue as it could still allocate more than 1 gigabyte more...
I think before the reinforced update it worked but I don't know for sure when it broke because I didn't really play it because of the abysmal and quickly even more deteriorating performance anyway.
So every time I see this issue come up people recommend using lower textures. Well, this is what I'm using:
(with and without texture streaming)
I can't even load a single map while others say they can play 3-5 maps before it crashes.
I'm starting ns2 with
LC_ALL=en_US.UTF8 $HOME/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh optirun ./ns2_linux32then trying to start a botmatch on descent and then I'm getting
[...] Warning: Overriding map's pathing_settings.option_tile_size from 48 to 36 mmap() failed: Cannot allocate memory /home/chrix/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so: failed to map segment from shared object: Cannot allocate memory Failed to load module: /home/chrix/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so [VGL] ERROR: in readpixels-- [VGL] 365: Could not map pixel buffer object Error: 677 memory leaks in 'AnimationGraph' (100588 bytes) mmap() failed: Cannot allocate memory Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number third_party/tcmalloc/chromium/src/system-alloc.cc:423] SbrkSysAllocator failed. third_party/tcmalloc/chromium/src/system-alloc.cc:423] MmapSysAllocator failed. third_party/tcmalloc/chromium/src/system-alloc.cc:423] SbrkSysAllocator failed. third_party/tcmalloc/chromium/src/system-alloc.cc:423] MmapSysAllocator failed. [0921/101337:FATAL:process_util_linux.cc(632)] Out of memory.
or
[...] Loading config://HistoryServers.json mmap() failed: Cannot allocate memory [VGL] ERROR: in readpixels-- [VGL] 365: Could not map pixel buffer object Error: 677 memory leaks in 'AnimationGraph' (100628 bytes) mmap() failed: Cannot allocate memory /home/chrix/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so: failed to map segment from shared object: Cannot allocate memory Failed to load module: /home/chrix/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so
Or the game closes with no error.
Or I'm getting a new empty window with window title "fatal error" while it hangs with 3 threads each doing 100% cpu.
Or "sandbox":
Compiling 'shaders/GUIBasic.surface_shader' Error: Sound 'sound/NS2.fev/alien/voiceovers/chuckle_female' couldn't be loaded (Event not found) Error: Sound 'sound/NS2.fev/alien/structures/death_large_female' couldn't be loaded (Event not found) Error: Sound 'sound/NS2.fev/alien/common/hatch_female' couldn't be loaded (Event not found) Error: Sound 'sound/NS2.fev/alien/voiceovers/follow_me_female' couldn't be loaded (Event not found) Error: Sound 'sound/NS2.fev/alien/voiceovers/follow_me_female' couldn't be loaded (Event not found) Error: Sound 'sound/NS2.fev/alien/voiceovers/need_healing_female' couldn't be loaded (Event not found) Error: Sound 'sound/NS2.fev/alien/voiceovers/follow_me_female' couldn't be loaded (Event not found) Loading config://ConsoleBindings.json Compiling 'materials/effects/mesh_effects/view_blood.surface_shader' Compiling 'materials/effects/mesh_effects/view_spit.surface_shader' Loading config://FavoriteServers.json Loading config://HistoryServers.json Loading 'maps/ns2_docking.level' Compiling 'shaders/SkyBox.surface_shader' third_party/tcmalloc/chromium/src/system-alloc.cc:423] SbrkSysAllocator failed. third_party/tcmalloc/chromium/src/system-alloc.cc:423] MmapSysAllocator failed. third_party/tcmalloc/chromium/src/system-alloc.cc:423] SbrkSysAllocator failed. third_party/tcmalloc/chromium/src/system-alloc.cc:423] MmapSysAllocator failed. [0921/103808:FATAL:process_util_linux.cc(632)] Out of memory.
ns2_linux32 allocates at most ~2100 Megabyte VIRT and ~830 Megabyte RES so while I think it's a bit ridiculous to still only create 32 bit builds in the year 2013 this shouldn't be the issue as it could still allocate more than 1 gigabyte more...
I think before the reinforced update it worked but I don't know for sure when it broke because I didn't really play it because of the abysmal and quickly even more deteriorating performance anyway.
Comments
I'm trying to start NS2 for the first time and it offers to optimize. I agree and it loads until it crashes with the same error.
But unlike chrix, I'm not using anything like VirtualGL or Optirun.
I always start it from the Steam client.
Either way..
Arch Linux x64, XFCE
Kernel 3.12.2-1-ARCH
GeForce GTS 450 with the Nvidia 331.20 driver.
And I'm using PulseAudio.
Contents of ~/.config/Natural Selection 2/log.txt
Time: 20:41:04:
Build 260
Arch Linux x86_64
Steam initialized
Num displays: 1
OpenGL 4.4.0 NVIDIA 331.20 initialized (NVIDIA Corporation GeForce GTS 450/PCIe/SSE2)
GLSL version 4.40 NVIDIA via Cg compiler
ARB_texture_storage extension present
Sound Device: default stereo
Record Device: default
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Cooked mesh with 4964 faces, 3757 vertices
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_normal.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_normal.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_spec.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_spec.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_opacity.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_opacity.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/biodome_waterpipes_01_bubbles_FX.material'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/biodome_waterpipes_01_bubbles_FX.material'
Error: Couldn't open file 'D:/build/assets/materialsrc/biodome/biodome_glass_01.material'
Error: No shader specified for material 'D:/build/assets/materialsrc/biodome/biodome_glass_01.material'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_opacity.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_opacity.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_spec.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_spec.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_normal.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_normal.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01.dds'
Main Menu Initialized at Version: 260
Steam Id: 46658730
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_normal.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_normal.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_spec.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_spec.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_opacity.dds'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/biodome/Biodome_bamboo_01_opacity.dds'
Connected to Steam servers
Connecting to server 127.0.0.1:27015
VAC Enabled
Client connecting (127.0.0.1)
Loading config://ServerConfig.json
Loading config://ServerAdmin.json
Loading config://BannedPlayers.json
Loading config://MapCycle.json
Loading config://ConsistencyConfig.json
Hashed 1 game_setup.xml files for consistency
Hashed 771 *.lua files for consistency
Hashed 36 *.hlsl files for consistency
Hashed 29 *.shader files for consistency
Hashed 17 *.screenfx files for consistency
Hashed 134 *.surface_shader files for consistency
Hashed 3 *.fxh files for consistency
Hashed 3 *.render_setup files for consistency
Hashed 2 *.shader_template files for consistency
Hashed 11 *.level files for consistency
Hashed 5137 *.dds files for consistency
Hashed 72 *.jpg files for consistency
Hashed 43 *.png files for consistency
Hashed 885 *.cinematic files for consistency
Hashed 1954 *.material files for consistency
Hashed 3506 *.model files for consistency
Hashed 103 *.animation_graph files for consistency
Hashed 201 *.polygons files for consistency
Hashed 2 *.fev files for consistency
Hashed 22 *.fsb files for consistency
Skipped 359 ui/*.dds files for consistency
Skipped 120 *_view*.dds files for consistency
Skipped 53 *_view*.material files for consistency
Skipped 121 *_view*.model files for consistency
Skipped 17 models/marine/hands/* files for consistency
Hashed 0 lua/entry/*.entry files for consistency
Loading 'maps/ns2_descent.level'
Cooked mesh with 48262 faces, 35819 vertices
Cooked mesh with 48781 faces, 34884 vertices
Cooked mesh with 2026 faces, 1735 vertices
Cooked mesh with 8810 faces, 8006 vertices
Cooked mesh with 4 faces, 4 vertices
Warning: Overriding map's pathing_settings.option_tile_size from 48 to 36
Cooked mesh with 12 faces, 8 vertices
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/marine/Dropship/dropship.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/marine/Dropship/dropship.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_6.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_6.model'
Cooked mesh with 12 faces, 8 vertices
Cooked mesh with 12 faces, 8 vertices
Cooked mesh with 12 faces, 8 vertices
Cooked mesh with 12 faces, 8 vertices
Cooked mesh with 32 faces, 18 vertices
Cooked mesh with 4 faces, 4 vertices
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_A.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_A.model'
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 28 faces, 16 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_corner_1.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_corner_1.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_1.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_1.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_2.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_2.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_3.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_3.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_7.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_7.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_8.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_8.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_5.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_C_str_5.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_B_01.model'
WARNING: Corrected case of '/home/sige/.local/share/Steam/SteamApps/common/Natural Selection 2/ns2/models/props/descent/descent_terminal_B_01.model'
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 16 faces, 10 vertices
Cooked mesh with 4 faces, 4 vertices
Building pathing mesh for level maps/ns2_descent.level
Finished loading 'maps/ns2_descent.level'
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Loading 'maps/ns2_descent.level'
Warning: Overriding map's pathing_settings.option_tile_size from 48 to 36
Additional output from the console:
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 4 faces, 4 vertices
Cooked mesh with 16 faces, 10 vertices
Cooked mesh with 4 faces, 4 vertices
Building pathing mesh for level maps/ns2_descent.level
Finished loading 'maps/ns2_descent.level'
Loading config://ConsoleBindings.json
Loading confi/home/sige/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so: failed to map segment from shared object: Cannot allocate memory
Failed to load module: /home/sige/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
Getting a backtrace:
The game just disappears completely without any other errors.
Would be cool to get a fix or at least an answer at some point!
Edit: Oh.. and about sound... I hear the music on the title-screen
You should only encounter them if ns2 memory usage gets over ~3gigs on a 64 bit system. What are you seeing in top?
I would ensure that you have multilib installed, as well just to be on the safe side.
I'm mostly over there in that thread. http://forums.unknownworlds.com/discussion/133356/linux-natural-selection-crash-on-optimize-and-loading-new-map
It's basically the same with a more general title and more people having the problem.
No gamefiles are missing here, validated, even deleted the game and settings and retried it.
And I put the decals to the minimum and it still crashes.
The game is well below 3 Gigabytes when it crashes.
I do have multilib installed and activated, otherwise I wouldn't even be able to start Steam - it's a 32 bit application as well.
I currently just don't see how it could be a missing lib.