[mapguide-internals] fdogdal, ECW, etc
Jason Birch
Jason.Birch at nanaimo.ca
Thu May 10 17:09:13 EDT 2007
Something weird going on here.
With the new version built indicating single threading. My initial
"Test Connection" worked, but when I tried to save the data connection,
I got:
--------------------------
(3440|300) Please try your operation later as the resource was busy:
Session:37f
fd6da-0000-1000-8000-00b0d0aafe49_en_D8D260190AFC0AFB0AFA//FeatureSource
EditorsS
cratch/SessionVersion1.FeatureSource
Exception occurred in method
MgServerResourceService.RemoveCachedFdoConnection a
t line 2234 in file
c:\build_bond_area\mapguide_open_source_v1.2\build_11.8\mgde
v\server\src\services\resource\ServerResourceService.cpp
(3440|2912) Please try your operation later as the resource was busy:
Session:37
ffd6da-0000-1000-8000-00b0d0aafe49_en_D8D260190AFC0AFB0AFA//FeatureSourc
eEditors
Scratch/SessionVersion1.FeatureSource
Exception occurred in method
MgServerResourceService.RemoveCachedFdoConnection a
t line 2234 in file
c:\build_bond_area\mapguide_open_source_v1.2\build_11.8\mgde
v\server\src\services\resource\ServerResourceService.cpp
(3440|2940) Cannot create any more connections to the OSGeo.Gdal FDO
provider.
Exception occurred in method MgFdoConnectionManager.Open at line 257 in
file c:\
build_bond_area\mapguide_open_source_v1.2\build_11.8\mgdev\server\src\co
mmon\man
ager\FdoConnectionManager.cpp
--------------------------
So, Frank built a version that pretended that it was multi-threading,
and while the error about "Cannot create any more connections" went
away, I still got this in between "Test Connection" and save:
--------------------------
(4084|3728) Please try your operation later as the resource was busy:
Session:4c
aa2850-0000-1000-8000-00b0d0aafe49_en_D8D260190AFC0AFB0AFA//FeatureSourc
eEditors
Scratch/SessionVersion0.FeatureSource
Exception occurred in method
MgServerResourceService.RemoveCachedFdoConnection a
t line 2234 in file
c:\build_bond_area\mapguide_open_source_v1.2\build_11.8\mgde
v\server\src\services\resource\ServerResourceService.cpp
(4084|3464) Please try your operation later as the resource was busy:
Session:4c
aa2850-0000-1000-8000-00b0d0aafe49_en_D8D260190AFC0AFB0AFA//FeatureSourc
eEditors
Scratch/SessionVersion0.FeatureSource
Exception occurred in method
MgServerResourceService.RemoveCachedFdoConnection a
t line 2234 in file
c:\build_bond_area\mapguide_open_source_v1.2\build_11.8\mgde
v\server\src\services\resource\ServerResourceService.cpp
--------------------------
To me, it looks like the connection to the GDAL provider is not being
closed properly by Studio, or MapAgent, or whatever. Either that. The
other alternative I can think of is that the GDAL provider is not
closing cleanly.
Thoughts?
Jason
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Thursday, May 10, 2007 12:47
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] fdogdal, ECW, etc
Frank,
The error you are seeing " Cannot create any more connections to the
OSGeo.Gdal FDO provider." is a result of trying to create more than one
concurrent connection to the GDAL provider.
Since the GDAL provider is single threaded only 1 thread of the server
is allowed to use the GDAL provider until it releases it. The other
threads that want to use the single threaded provider are blocked for up
to 60 seconds. If they cannot get an exclusive lock on the provider in
this window of time then they will throw this exception. You can
sometimes run into this issue if you forget to close a reader and
therefore the server doesn't know you are actually done with the
provider until eventually the connection becomes old and is removed from
the cache.
The amount of debugging information is something we could improve upon.
Thanks,
Bruce
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Frank
Warmerdam (External)
Sent: May 9, 2007 10:57 PM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] fdogdal, ECW, etc
Folks,
OK, I spent part of the afternoon and evening trying to build and test
fdogdal with ecw/mrsid support (and the remainder of the afternoon
evening trying to rebuild my ego after failure).
I went through a few different scenarios with varying issues. But
ultimately this report captures the normal failure with my own build of
fdogdal, and gdal13.dll
----
C:\Program Files\MapGuideOpenSource\Server\Bin>mgserver /run Running the
server interactively as an application instead of as a service.
(3648|5444) Server starting...
(3648|5444) PROJ4 Coordinate System Library
(3648|5444) Server started.
GDAL: Auto register C:\Program
Files\MapGuideOpenSource\Server\Bin\gdalplugins\g
dal_ECW.dll using GDALRegister_ECW.
ECW: Actually creating ECW driver.
ECW: OpenECW(C:/temp/ecw/World.ecw)
ECW: Open(C:/temp/ecw/World.ecw)
ECW: NCScbmOpenFileView(C:/temp/ecw/World.ecw): eErr = 0
ECW: FileInfo: SizeXY=4320,2153 Bands=3
OriginXY=-180.084,89.75 CellIncrementXY=0.083333,-0.083333
ECW: projection=RAW, datum=RAW
GDAL: GDALOpen(C:/temp/ecw/World.ecw) succeeds as ECW.
(3648|5464) Cannot create any more connections to the OSGeo.Gdal FDO
provider.
Exception occured in method MgFdoConnectionManager.Open at line 257 in
file c:\b
uild_bond_area\mapguide_open_source_v1.2\build_11.8\mgdev\server\src\com
mon\mana
ger\FdoConnectionManager.cpp
----
In this scenario ran MgServer with the CPL_DEBUG environment variable
set to ON. I also had to clear the GDAL_DRIVER_PATH environment
variable but I suspect that was a local issue on my machine, not
something that will happen to everyone.
Can anyone comment on the error message reported by MgServer:
(3648|5464) Cannot create any more connections to the OSGeo.Gdal FDO
provider.
Exception occured in method MgFdoConnectionManager.Open at line 257 in
file
c:\build_bond_area\mapguide_open_source_v1.2\build_11.8\mgdev\server\src
\common\mana
ger\FdoConnectionManager.cpp
This occured some time after selecting an ECW based raster layer (like
one or two minutes later).
I was using WebStudio since I despaired of getting the Studio 2008 beta
downloaded and installed. I don't have much capability to edit a map
configuration with raster data using webstudio, but existing
configurations seem to work ok and I can edit the directory for a data
source object.
I find it painfully difficult to find out what is happening in mapguide.
Is there anything a /debug switch for MgServer that will produce lots of
logging info on what is going on?
Best regards,
--
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo,
http://osgeo.org
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list