[mapguide-trac] #520: Out of memory. bad allocation Errors using Tiled Map

MapGuide Open Source trac_mapguide at osgeo.org
Tue Mar 31 19:56:48 EDT 2009


#520: Out of memory. bad allocation Errors using Tiled Map
-----------------------------------+----------------------------------------
 Reporter:  zspitzer               |         Owner:          
     Type:  defect                 |        Status:  reopened
 Priority:  medium                 |     Milestone:  2.1     
Component:  Tile Service           |       Version:  2.1.0   
 Severity:  major                  |    Resolution:          
 Keywords:  out of memory ,  #480  |   External_id:          
-----------------------------------+----------------------------------------
Changes (by uvlite):

  * keywords:  out of memory => out of memory ,  #480

Comment:

 This error seems to be caused by a missing cleanup in ByteSink?.cpp:246 in
 MgByteSink::ToFile?(CREFSTRING filename) In this method a huge buffer
 (1MB) is allocated to export the byteSource into the given filename. This
 is the first place when a system with exhausted memory resources fails.
 The buffer is on the stack so thats not the problem, but when an exception
 is triggered we are left with an empty file. Thus a
 MgInvalidStreamHeaderException? on the client side.

 This seems to be related to ticket #480.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/520#comment:7>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list