<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Haris,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes.  A significant portion of the Server connection management
logic was rewritten for MGOS 2.1.  However, since Autodesk has no vested
interest in the GDAL Provider (they didn&#8217;t write it) it might make more
sense to have someone from the community look at it.  I have dug around in that
code before and I assume you have as well.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I would be concerned about making significant changes to the
Server connection management logic.  Any significant change could impact
stability with all other Fdo Providers.  Hopefully we are just looking at simple
bug fixes or low impact changes.  It would be very time consuming to set up a
test environment for all of the open source providers.  And personally I would
not check in major code changes to a key area like this without some fairly
serious testing, especially if we want to do it on the released 2.1 branch.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I also believe there are three areas where instability can creep
in:  GDAL Provider code, Server code, and Server use cases against the GDAL Provider. 
It might be wise to qualify the statement &#8220;basically completely thread
safe&#8221; with &#8220;for specific use cases&#8221;.  I am not sure that complete
thread safety is a guarantee without 100% code coverage.  One liners can be a killer
for multi-threaded apps.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In any case, the MapGuide Server code base and the GDAL code
base have to be analysed together to see what the interaction behaviour is.  I
guess we should move this discussion to the &#8211;internals list so the PSC
and the developers can decide who should take a crack at the initial
investigation, and whether any funding is available to support the investigation.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Trevor<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Haris
Kurtagic<br>
<b>Sent:</b> December 28, 2009 10:55 AM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> Re: [mapguide-users] [MGOS 2.1]few map with Ecw, need restart
mapguide service<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>In 2.0 release I fixed MG connection problems which caused
MG to crash mostly on GDAL provider.&nbsp;<o:p></o:p></p>

<div>

<p class=MsoNormal>We had discussion in PSC and somebody (ADSK ?) took
different approach to implement changes in 2.1. It would be fine that the one
who implemented that changes perhaps look again.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>From what I read here it seems it is very similar problem as
before and it was not GDAL provider problem but MG connection manager. It is
just that under GDAL provider those problems came out most obviously.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>GDAL provider is basically compeletly thread safe (many
locks there).<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>So, my first feeling is that it is more probably MG problem
then GDAL provider problem, again.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Haris<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>On Mon, Dec 28, 2009 at 6:28 AM, Andy Morsell &lt;<a
href="mailto:amorsell@spatialgis.com">amorsell@spatialgis.com</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal>Trevor,<br>
What would it require, in terms of funding, to have you spend enough time<br>
examining the provider and problems to come up with an approach and labor<br>
estimate to improve it? &nbsp;Maybe we can collectively raise enough money from<br>
contributors to fund the functional specifications determination and then<br>
see if we can fund the full project after.<br>
<br>
Thanks,<br>
<span style='color:#888888'><br>
Andy Morsell, P.E.<br>
Spatial Integrators, Inc.<br>
47° 46' N 116° 49' W<br>
<a href="http://www.SpatialGIS.com" target="_blank">www.SpatialGIS.com</a></span><o:p></o:p></p>

<div>

<p class=MsoNormal><br>
-----Original Message-----<br>
From: <a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>[mailto:<a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>]
On Behalf Of Trevor Wekel<br>
Sent: Sunday, December 27, 2009 9:15 PM<br>
To: MapGuide Users Mail List<o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal>Subject: RE: [mapguide-users] [MGOS 2.1]few map with Ecw,
need restart<br>
mapguide service<br>
<br>
<br>
Just as a point of reference, I have been involved with MapGuide and raster<br>
since the MapGuide 6.x days. &nbsp;Stable multi-threaded performance is
difficult<br>
to achieve due to the sheer number of third party libraries involved.
&nbsp;From<br>
what I recall, Autodesk spent at least two developer months in the last<br>
release getting the Autodesk Raster Provider to the stable and relatively<br>
scalable state it is in currently.<br>
<br>
This is not an easy task. &nbsp;Each file format has to tested, analysed, and<br>
fixed separately because the underlying &quot;codec&quot; libraries are all
different<br>
and come from different vendors. &nbsp;In other words, stability with TIFF data<br>
does not guarantee stability with ECW or MrSID. &nbsp;In some cases, the vendor<br>
libraries may not be 100% thread safe. &nbsp;MapGuide is a heavily
multi-threaded<br>
application. &nbsp;If there is a thread safety problem, it is almost guaranteed<br>
that MapGuide will trip over it at some point.<br>
<br>
This makes testing and validation especially painful. &nbsp;I would consider a
24<br>
hour load test on a 4 core machine to be a bare minimum test run for<br>
stability. &nbsp;8+ cores would be preferable.<br>
<br>
I personally like working on raster integration in MapGuide. &nbsp;However, I<br>
also have enough background to know that it can be a bit of a black hole as<br>
far as development resources go. &nbsp;Hopefully we as a community can raise<br>
enough funds through Project Sponsorship to pay a developer to bury his head<br>
in the raster provider for a couple of months.<br>
<br>
Thanks,<br>
Trevor<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a><br>
[mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>]
On Behalf Of Jason Birch<br>
Sent: December 27, 2009 6:47 PM<br>
To: MapGuide Users Mail List<br>
Subject: Re: [mapguide-users] [MGOS 2.1]few map with Ecw, need restart<br>
mapguide service<br>
<br>
It has been pretty decent for me with tiled, overviewed GeoTiffs and<br>
connection cache disabled...<br>
<br>
Folks, this is a known problem, but unless someone steps up to fix it,<br>
it is unlikely to get resolved. &nbsp;ADSK has a proprietary raster<br>
provider, so don't have a vested interest in diagnosing and fixing<br>
this problem.<br>
<br>
As I see it, there are two options: wait and hope someone steps in and<br>
fixes it, or pay someone with the experience and ability (Trevor,<br>
Haris, maybe Frank, Kenneth, UV, maybe others) to do it.<br>
<br>
Raster in MGOS has been a pain point for at least two releases, so I<br>
wouldn't hold my breath on the first option...<br>
<br>
Jason<br>
<br>
On 2009-12-27, isca &lt;<a href="mailto:mapguide2007@gmail.com">mapguide2007@gmail.com</a>&gt;
wrote:<br>
&gt;<br>
&gt; It seems the GDAL provider still acts very unstable under MGOS 2.1. There<br>
&gt; has<br>
&gt; been logged a ticket for this. Refer to #1196 MapGuide unresponsive using<br>
&gt; GDAL provider.<br>
&gt;<br>
&gt;<br>
&gt; lunab54 wrote:<br>
&gt;&gt;<br>
&gt;&gt; I make another experience<br>
&gt;&gt;<br>
&gt;&gt; i get an old unused windows 2003 server and i installed MapGuide 2.1
with<br>
&gt;&gt; ecw support<br>
&gt;&gt;<br>
&gt;&gt; miracle ! mapguide with gdal ecw layer run well like service (not
debug<br>
&gt;&gt; mode)<br>
&gt;&gt;<br>
&gt;&gt; so i copied the c:\program Files\osgeo\mapguide on the new 2003 server<br>
&gt;&gt; that not run with ecw layer<br>
&gt;&gt;<br>
&gt;&gt; and it's always the same thing : Gdal turn around and the mapguide log<br>
&gt;&gt; said :<br>
&gt;&gt;<br>
&gt;&gt; &lt;2009-12-21T17:46:58&gt; &nbsp; &nbsp; &nbsp; &nbsp;4160 &nbsp;
&nbsp;Ajax Viewer &nbsp; &nbsp; 127.0.0.1<br>
Administrator<br>
&gt;&gt; &nbsp;Error: Failed to stylize layer: LAYER_ECW_DEBUG<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Cannot create any more connections to the
OSGeo.Gdal FDO<br>
provider.<br>
&gt;&gt; &nbsp;StackTrace:<br>
&gt;&gt; &nbsp; - MgMappingUtil.StylizeLayers() line 776 file<br>
&gt;&gt; c:\osgeo\mapguide_21\mgdev\server\src\services\mapping\MappingUtil.cpp<br>
<br>
&gt;&gt;<br>
&gt;&gt; so now i think there is missing something on this system but what ?<br>
&gt;&gt;<br>
&gt;&gt; help...<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt;<br>
<a
href="http://n2.nabble.com/MGOS-2-1-few-map-with-Ecw-need-restart-mapguide-service%0d%0a-tp4177077p4221048.html"
target="_blank">http://n2.nabble.com/MGOS-2-1-few-map-with-Ecw-need-restart-mapguide-service<br>
-tp4177077p4221048.html</a><br>
&gt; Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; mapguide-users mailing list<br>
&gt; <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
&gt;<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br>
<br>
<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</body>

</html>