Author Topic: Safe_malloc failed - what I'm missing?  (Read 2588 times)

CorSair

  • Posts: 430
  • Turrets: +14/-0
Safe_malloc failed - what I'm missing?
« on: June 25, 2010, 02:11:31 pm »
Tried to test, what happens when you use "build final settings." Compiling the map, in other words.

Well. I got this response:

Code: [Select]
--- CreatePassages (47184) ---
0...1...2.************ ERROR ************
safe_malloc failed on allocation of 5912 bytes
End.

And here it is in whole glossary.
Code: [Select]
Open file C:/Program Files (x86)/Tremulous/base/maps/backup.map for write...success
map save timer:  2.17 second(s) elapsed
Setting up
Listening...
=== running build command ===
"C:/Program Files (x86)/Radiant/netradiant-392-win32/q3map2.exe" -v -connect 127.0.0.1:39000 -game tremulous -fs_basepath "C:/Program Files (x86)/Tremulous/" -fs_game base -meta -custinfoparms -samplesize 8 "C:/Program Files (x86)/Tremulous/base/maps/backup.map"
Connected.
2 threads
Q3Map         - v1.0r (c) 1999 Id Software Inc.
Q3Map (ydnar) - v2.5.17n-svn392
NetRadiant    - v1.5.0n-svn392 Jul 26 2009 18:29:22
Your map saw the pretty lights from q3map2's BFG
--- InitPaths ---
VFS Init: C:/Program Files (x86)/Tremulous//base/
VFS Init: C:/Program Files (x86)/Tremulous//base/

--- BSP ---
Creating meta surfaces from brush faces
Custom info parms enabled
Lightmap sample size set to 8x8 units
entering scripts/custinfoparms.txt
entering scripts/shaderlist.txt
entering scripts/shaderlist.txt (2)
entering scripts/arachnid2.shader
entering scripts/atcs.shader
entering scripts/karith.shader
WARNING: Unknown surfaceparm: "solid"
WARNING: Unknown surfaceparm: "solid"
WARNING: Unknown surfaceparm: "solid"
entering scripts/nexus6.shader
entering scripts/niveus.shader
entering scripts/transit.shader
entering scripts/tremor.shader
entering scripts/uncreation.shader
Script file scripts/common.shader was not found
Script file scripts/common+.shader was not found
entering scripts/common-trem.shader
entering scripts/titan.shader
entering scripts/displays.shader
entering scripts/misc.shader
entering scripts/plant_life.shader
entering scripts/water.shader
      445 shaderInfo
--- LoadMapFile ---
Loading C:/Program Files (x86)/Tremulous/base/maps/backup.map
entering C:/Program Files (x86)/Tremulous/base/maps/backup.map
Entity 0 (worldspawn) has lightmap scale of 3.0000
WARNING: Over 90 percent structural map detected. Compile time may be adversely affected.
     2818 total world brushes
       36 detail brushes
      662 patches
     3452 boxbevels
     4823 edgebevels
       29 entities
    17844 planes
        0 areaportals
Size: -2176, -5888,  -320 to  1536,  6400,  1280
--- ProcessDecals ---
        0 decal projectors
--- CreateMapFogs ---
        0 fogs
############### model 0 ###############
block size = { 1024 1024 1024 }
BSP bounds: { -2176.000000 -5888.000000 -320.000000 } { 1536.000000 6400.000000 1280.000000 }
Lightgrid bounds: { 99999.000000 99999.000000 99999.000000 } { -99999.000000 -99999.000000 -99999.000000 }
--- PatchMapDrawSurfs ---
      662 patches
      177 patch LOD groups
--- FaceBSP ---
    18946 faces
    12044 leafs
--- MakeTreePortals ---
     1336 tiny portals
        0 bad portals
--- FilterStructuralBrushesIntoTree ---
     2782 structural brushes
     4468 cluster references
--- FloodEntities ---
     7209 flooded leafs
--- FillOutside ---
     4408 solid leafs
      427 leafs filled
     7209 inside leafs
--- CullSides ---
     7219 hidden faces culled
        0 coincident faces culled
--- ClipSidesIntoTree ---
--- FaceBSP ---
    11219 faces
    11285 leafs
--- MakeTreePortals ---
     2084 tiny portals
        0 bad portals
--- FilterStructuralBrushesIntoTree ---
     2782 structural brushes
     7708 cluster references
--- NumberClusters ---
     6325 visclusters
    23592 visportals
    23413 solidfaces
--- WritePortalFile ---
writing C:/Program Files (x86)/Tremulous/base/maps/backup.prt
--- FloodAreas ---
        2 areas
--- AddTriangleModels ---
World Entity has lightmap scale of 3.0000
--- AddEntitySurfaceModels ---
--- FilterDetailBrushesIntoTree ---
       36 detail brushes
     1821 cluster references
----- FogDrawSurfs -----
        0 fog polygon fragments
        0 fog patch fragments
        0 fogged drawsurfs
--- SubdivideFaceSurfaces ---
--- FixTJunctions ---
    10032 axial edge lines
     8075 non-axial edge lines
        0 degenerate edges
     4414 verts added for T-junctions
    49029 total verts
    10371 naturally ordered
      726 rotated orders
      120 can't order
        0 broken (degenerate) surfaces removed
--- ClassifyEntitySurfaces ---
--- TidyEntitySurfaces ---
        0 empty or malformed surfaces deleted
--- MakeEntityDecals ---
 (0)
        0 decal surfaces
--- MakeEntityMetaTriangles ---
0...1...2...3...4...5...6...7...8...9... (0)
    11217 total meta surfaces
    11084 stripped surfaces
      133 fanned surfaces
        0 patch meta surfaces
    49154 meta verts
    26857 meta triangles
--- TidyEntitySurfaces ---
    11217 empty or malformed surfaces deleted
--- SmoothMetaTriangles ---
No smoothing angles specified, aborting
--- MergeMetaTriangles ---
0...1...2...3...4...5...6...7...8...9...10... (2)
     7995 surfaces merged
    89105 vertexes merged
--- FilterDrawsurfsIntoTree ---
    55898 references
     8657 (8657) emitted drawsurfs
    11084 stripped face surfaces
      133 fanned face surfaces
        0 surface models generated
        0 skybox surfaces generated
        0 SURFACE_BAD surfaces
        0 SURFACE_FACE surfaces
      662 SURFACE_PATCH surfaces
        0 SURFACE_TRIANGLES surfaces
        0 SURFACE_FLARE surfaces
        0 SURFACE_FOLIAGE surfaces
        0 SURFACE_FORCED_META surfaces
     7995 SURFACE_META surfaces
        0 SURFACE_FOGHULL surfaces
        0 SURFACE_DECAL surfaces
        0 SURFACE_SHADER surfaces
    55779 redundant indexes supressed, saving 217 Kbytes
--- FixBrushSides ---
--- EndModel ---
--- EmitMetaStats ---
    11247 total meta surfaces
    11114 stripped surfaces
      133 fanned surfaces
        0 patch meta surfaces
        0 meta verts
        0 meta triangles
        0 light entities stripped
--- ProcessAdvertisements ---
        0 in-game advertisements
--- EndBSPFile ---
    17848 BSP planes
--- WriteSurfaceExtraFile ---
Writing C:/Program Files (x86)/Tremulous/base/maps/backup.srf
Writing C:/Program Files (x86)/Tremulous/base/maps/backup.bsp
Wrote 5.1 MB (5310064 bytes)
       25 seconds elapsed
Disconnecting
Connection closed.
Setting up
Listening...
=== running build command ===
"C:/Program Files (x86)/Radiant/netradiant-392-win32/q3map2.exe" -v -connect 127.0.0.1:39000 -game tremulous -fs_basepath "C:/Program Files (x86)/Tremulous/" -fs_game base -vis -saveprt "C:/Program Files (x86)/Tremulous/base/maps/backup.map"
Connected.
2 threads
Q3Map         - v1.0r (c) 1999 Id Software Inc.
Q3Map (ydnar) - v2.5.17n-svn392
NetRadiant    - v1.5.0n-svn392 Jul 26 2009 18:29:22
Your map saw the pretty lights from q3map2's BFG
--- InitPaths ---
VFS Init: C:/Program Files (x86)/Tremulous//base/
VFS Init: C:/Program Files (x86)/Tremulous//base/

--- Vis ---
saveprt = true
Loading C:/Program Files (x86)/Tremulous/base/maps/backup.bsp
Loading C:/Program Files (x86)/Tremulous/base/maps/backup.prt
  6325 portalclusters
 23592 numportals
 23413 numfaces
 47184 active portals
     0 hint portals
visdatasize:5009408

--- BasePortalVis (47184) ---
0...1...2...3...4...5...6...7...8...9... (175)
     14 average number of passages per leaf
   1888 MB required passage memory

--- CreatePassages (47184) ---
0...1...2.************ ERROR ************
safe_malloc failed on allocation of 5912 bytes
So, where I fail now? It's not the lights, I had them removed before compile.
« Last Edit: June 25, 2010, 02:18:51 pm by CorSair »

God, maker of the world

  • Guest
Re: Safe_malloc failed - what I'm missing?
« Reply #1 on: June 25, 2010, 03:37:00 pm »
Maybe these replies help:

http://tremulous.net/forum/index.php?topic=12861.msg189026#msg189026

http://tremulous.net/forum/index.php?topic=6765.msg104193#msg104193

If they do: I found them using the "search" function, a widely underestimated feature.