[mapguide-trac] #1812: Maestro shp file load cause OutOfMemory
Exception
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Sep 19 01:03:28 EDT 2011
#1812: Maestro shp file load cause OutOfMemory Exception
-------------------------+--------------------------------------------------
Reporter: captainst | Owner: jng
Type: defect | Status: new
Priority: medium | Milestone: Maestro-4.0
Component: Maestro | Version: 2.2.0
Severity: major | Keywords: OutOfMemory
External_id: |
-------------------------+--------------------------------------------------
Comment(by captainst):
Greately Thanks to you jng!
I have attached the OutOfMemory log message in the .txt format below:
I am quite new to the MapGuide. I'll try out your suggestions 2, and 3.
//// The log messages:
System.OutOfMemoryException: Exception of type
'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32
count)
at OSGeo.MapGuide.MaestroAPI.Utility.CopyStream(Stream source, Stream
target, StreamCopyProgressDelegate callback, Int64 updateFrequence) in
d:\Workspace\maestro-trunk\OSGeo.MapGuide.MaestroAPI\Utility.cs:line 245
at OSGeo.MapGuide.MaestroAPI.RequestBuilder.AppendFormContent(String
name, String filename, String boundary, Stream responseStream, Stream
dataStream, StreamCopyProgressDelegate callback) in d:\Workspace\maestro-
trunk\OSGeo.MapGuide.MaestroAPI.Http\RequestBuilder.cs:line 401
at OSGeo.MapGuide.MaestroAPI.RequestBuilder.SetResourceData(String id,
String dataname, ResourceDataType datatype, Stream outStream, Stream
content, StreamCopyProgressDelegate callback) in d:\Workspace\maestro-
trunk\OSGeo.MapGuide.MaestroAPI.Http\RequestBuilder.cs:line 458
at
OSGeo.MapGuide.MaestroAPI.HttpServerConnection.SetResourceData(String
resourceid, String dataname, ResourceDataType datatype, Stream stream,
StreamCopyProgressDelegate callback) in d:\Workspace\maestro-
trunk\OSGeo.MapGuide.MaestroAPI.Http\HttpServerConnection.cs:line 431
at
OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.SetResourceData(String
resourceid, String dataname, ResourceDataType datatype, Stream stream) in
d:\Workspace\maestro-
trunk\OSGeo.MapGuide.MaestroAPI\PlatformConnectionBase.cs:line 1197
at
OSGeo.MapGuide.MaestroAPI.Commands.ExecuteLoadProcedure.ExecuteShpLoadProcedure(LengthyOperationProgressCallBack
cb, IShpLoadProcedure shpl, Boolean& firstExecution) in d:\Workspace
\maestro-
trunk\OSGeo.MapGuide.MaestroAPI\Commands\ExecuteLoadProcedure.cs:line 306
at
OSGeo.MapGuide.MaestroAPI.Commands.ExecuteLoadProcedure.Execute(ILoadProcedure
proc, LengthyOperationProgressCallBack callback) in d:\Workspace\maestro-
trunk\OSGeo.MapGuide.MaestroAPI\Commands\ExecuteLoadProcedure.cs:line 176
at
OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.ExecuteLoadProcedure(ILoadProcedure
loadProc, LengthyOperationProgressCallBack callback, Boolean
ignoreUnsupported) in d:\Workspace\maestro-
trunk\OSGeo.MapGuide.MaestroAPI\PlatformConnectionBase.cs:line 1842
at
Maestro.Editors.LoadProcedure.LoadProcedureEditorCtrl.ExecuteLoadProcedure(BackgroundWorker
worker, DoWorkEventArgs e, Object[] args) in d:\Workspace\maestro-
trunk\Maestro.Editors\LoadProcedure\LoadProcedureEditorCtrl.cs:line 147
at Maestro.Shared.UI.ProgressDialog.BackgroundWorker_DoWork(Object
sender, DoWorkEventArgs e) in d:\Workspace\maestro-
trunk\Maestro.Shared.UI\ProgressDialog.cs:line 89
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object
argument)
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1812#comment:3>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list