Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |   Code Community

Discussion Forums

The online community for users of Map Suite GIS components

MapSuite & RenderUSA - errors with Server 2008, SQL 2008
Last Post 07-12-2009 11:01 PM by Yale. 6 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
RobertUser is Offline
Level 1
Level 1
Posts:6

--
06-29-2009 05:37 PM

We have a MapSuite 2.0 / RenderUSA application that has been running trouble free on Server 2003 and SQL 2003 for quite some time. 

Recently, we became a member of Microsoft's BizSpark Program and migrated our MapSuite application to Server 2008 and SQL 2008 (32 bit).   

We are seeing some problems drawing maps at certain extents and zoom levels.  The problems appear to be attempts to write or access protected memory.  Previously, these same queries were not returning any results and causing the maching to hang.  (Please note:  these queries worked perfectly under server 2003 / sql 2003.   (We are checking for hardware errors, also.) 

The stack trace is captured below....I'm curious if anyone else has had issues running MapSuite 2.0 / RenderUSA on MS Server 2008 / SQL 2008?  

 

RobertUser is Offline
Level 1
Level 1
Posts:6

--
06-29-2009 07:11 PM

Attaching log as embedded screen shot is too small to read...

YaleUser is Offline
MVP
MVP
Posts:1212
Avatar

--
07-09-2009 09:54 PM
Robert,

Thanks for your post!

So you are using Web Edition 2.0 against MsSqlServer2008? Can you let me know which version you are using for WebEdtion2.0 and also if possible, can you give us some your codes to recreate this problem?

The embedded screen is too small to read. Can you put the stack track to some txt file and upload it?

Sorry for the inconvenience.

Thanks.

Yale
code.thinkgeo.com
RobertUser is Offline
Level 1
Level 1
Posts:6

--
07-10-2009 04:10 PM

Yale,

Thanks for responding.

I believe the version we are using is 2.20.5.0 - this is the file version from MapSuiteCommon.dll.   If this is not what you need, is there another or better way to let you know exactly the version?)

I will copy or attach the stack trace in the another update.

 

RobertUser is Offline
Level 1
Level 1
Posts:6

--
07-12-2009 05:59 PM

Yale,

Below, I've pasted the text of the error message. It looks like a memory leak...?  Keep in mind that we were only able to capture a screenshot of the error and then ran it through optical character recognition - some of the text might be a bit mangled.

Error msg below....

----------------------------------------------------------

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using t1
below.

Stack Trace:

[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
MapSuiteECW.ECWImage.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destwidth, Int32 destHeight) +537
MapSuiteGeoRaster.GeoImageECW.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destwidth, Int32 destHeight) +31
MapSuiteGeoRaster.GeoImage.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destwidth, Int32 destHeight) +34

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(0bject target, 0bject[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle type0wner) +0
System.RuntimeMethodHandle.InvokeMethodFast(0bject target, 0bject[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle type0wner) +71
System.ReFlection.RuntimeMethodInfo.Invoke(0bject obj, BindingFlags invokeAttr, Binder binder, 0bject[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +261
System.ReFlection.RuntimeMethodInfo.Invoke(0bject obj, BindingFlags invokeAttr, Binder binder, 0bject[] parameters, CultureInfo culture) +29
MapSuite.GeoImage.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destwidth, Int32 destHeight) +413
MapSuite.ImageLayer.x51d3a13ecd447601(Graphics x26463655896fd90a, StraightRectangle x90be2e7c0a1ec986, Int32 x44d7c8fd90·Fec4ce, Int32 xeb8c·F49ae303440c, MapLengthUnits x5fee638c5fc2da6e) +4827
MapSuite.x89b9a80ac14aac3c.GetMap(Graphics g, RectangleR Extent, Int32 Canvaswidth, Int32 CanvasHeight, MapLengthUnits MapUnit, Single MapRotation) +1356
MapSuite.WebEdition.Map. x868dbaea3c75 9eb6() +893
MapSuite.WebEdition.Map.xa1d1d·F74194ccFb9() +6058
MapSuite.WebEdition.Map.Render(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderControlInternal (HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl (HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl (HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal (HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.Html Form. RenderChi `I dren (HtmlTextWriter writer) +163
System.Web.UI.HtmlControls.Html Contai nerControl . Render (Html Textwri ter writer) +32
System.Web.UI.HtmlControls.Html Form. Render (Html Textwri ter output) +51
System.Web.UI.Control.RenderControlInternal (HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl (HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.HtmlControls.Html Form. RenderControl (HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal (HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page. Render (HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal (HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl (HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl (HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBe·ForeAsyncPoint, Boolean includeStagesA*FterAsyncPoint) +1266

---------------------------------------------------------------------------------------------------------------------

RobertUser is Offline
Level 1
Level 1
Posts:6

--
07-12-2009 06:06 PM


 









 


 

YaleUser is Offline
MVP
MVP
Posts:1212
Avatar

--
07-12-2009 11:01 PM

Robert,

Thanks for your information, I appreciate it very much!
 
I just want to make sure one thing is that you DID NOT uninstall the Web Edition 2.0 package or DID NOT updates any dlls from our supports?
 
From the stack trace, it seems that this error happened when you load your ECW file, and those dlls will be placed into system 32 folders automatically when you install your package.
 
I am sorry to say that we still cannot recreate your problem in our samples\ImageLayer provided in your package even though for a long time tests.
 
So we guess there would be possibly some mistake in your DLLs if you did some update or uninstall before, or it also would be some possibility that you made some misusage in your sample codes for the ECW image layer. It would be very helpful if you can extract some codes to recreate the problem for us to recreate this problem.
 
Another option is you can use the MapSuite 3.0 for your project because it uses the latest ECW library which can be used in .net 3.5 and no one complains about this  kind of problem up to now.
 
Any all, thanks for your posts!
 
Let me know if any more questions.
 
Thanks.
 
Yale
code.thinkgeo.com
You are not authorized to post a reply.

Active Forums 4.1