Python crashes running stand alone script, composite locator, AGS 10.1 SP1 desktop

3443
6
04-05-2013 10:28 AM
JeffSpees
New Contributor II
I have a Python script with a composite locator that works when run from the Python window in ArcMap, but crashes when run standalone.  I am running ArcGIS 10.1 SP1 (Build 3143) Desktop Standard(ArcEditor) on a Windows 7 64 bit.  Also I can run the script in the Python window in ArcMap or standalone if I change the locator to a individual locator.  The locators are from StreetMap Premium 2012 R3  -  USA_2012R3_NT_AddressPoint' and 'USA_2012R3_NT_Composite' . 

The message Windows message from the crash is:

Description:
  Stopped working

Problem signature:
  Problem Event Name: APPCRASH
  Application Name: python.exe
  Application Version: 0.0.0.0
  Application Timestamp: 4df4ba7c
  Fault Module Name: Geocoding.dll
  Fault Module Version: 10.1.1.3143
  Fault Module Timestamp: 5058d4a0
  Exception Code: c0000005
  Exception Offset: 000a58be
  OS Version: 6.1.7601.2.1.0.256.48
  Locale ID: 1033

It appears that the problem is with running a composite locator as a standalone Python script.

Thanks,
Jeff
Tags (2)
0 Kudos
6 Replies
MikaMäkelä
New Contributor
I have faced exactly the same issue with composite locator at AGS 10.1 SP1 desktop. Composite locator works fine when running it from ArcGIS Desktop Python window but when running it from standalone Python script it crash. Individual locators are working without issues in both cases. For test purposes I have made composite locator with only one connected locator and that work fine. When adding second one it stops working. For locator we are using our own localized street network data.

Error stack when running script from PyScripter:
Traceback (most recent call last):
File "<string>", line 70, in execInThread
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\netref.py", line 123, in __call__
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\netref.py", line 45, in syncreq
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\protocol.py", line 343, in sync_request
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\protocol.py", line 305, in serve
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\protocol.py", line 265, in _recv
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\channel.py", line 36, in recv
File "C:\Program Files (x86)\PyScripter\Lib\rpyc-python2x.zip\rpyc\core\stream.py", line 105, in read
EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host

My setup is AGS10.1 SP1, Windows 7 x64.
0 Kudos
JamesTanis
New Contributor
Add me to the list I am having this exact same issue.
0 Kudos
StacyRendall1
Occasional Contributor III
I also had this issue, but just gave up on using the Composite locator, and wrote a Python script that replicates this function:
- geocodes using locator1
- passes addresses not geocoded by locator1 to locator2
- and so on (no limit on the number of geocoders)...

It also uses Parallel Python for multiprocessing support.

I can share this code if requested...
0 Kudos
StacyRendall1
Occasional Contributor III
Just curoius: has anyone tested the composite locator with 1.01 SP1 or 64bit background geoprocessing installed?

More info on installing SP1 and 64bit background geoprocessing here.
0 Kudos
StacyRendall1
Occasional Contributor III
If it is useful to anyone I have posted an Arcpy script for Parallelised Composite Geocoding (as described above) to my blog:
http://pythongisandstuff.wordpress.com/2013/07/31/parallelised-composite-geocoding-script/
0 Kudos
MikaMäkelä
New Contributor
I got composite locator run succesfully on 10.2 environment. I tried both Python x64 and x86 versions. x64 is working properly but x86 gives an error message. This solved my issue. My test environment is: Win 2008 Server, ArcGIS Server and Desktop 10.2.
0 Kudos