Select to view content in your preferred language

Load script into Py Window - CRASH

1122
8
07-29-2010 07:02 AM
TedCronin
MVP Alum
Simple script loaded into Py Window causes a crash, see attachment crash dumps.  This is in Catalog.
0 Kudos
8 Replies
TedCronin
MVP Alum
Loading script into ArcMap py window, crash report attached, along with ANOTHER catalog crash.
0 Kudos
DanPatterson_Retired
MVP Emeritus
I can't open the zip, it says it is invalid, maybe too many periods etc in the filename
0 Kudos
KevinHibma
Esri Regular Contributor
Ted,

You mentioned these are crash dumps...
If so you can just use the submit (assuming you have internet connectivity on those machines). Trust that we do get them when submitted, and they are examined.

Just as a note, not everyone has the ability to fully diagnose them, however through the submission processes they are handled by the appropriate people.

Could you post the script you're loading? If so I can try to repro the issue with that.
0 Kudos
TedCronin
MVP Alum
This has been duped on three machines, 2 XP and 1 Win7.  it has been duped where ArcGIS Hijacks Python and a normal Python install, or classic ArcGIS Python Install.  Seems like another beta was warranted.  XP versions are 32 and 64 bit.  Also, duped using ArcSDE 10 and ArcSDE 931 on the back end.  SQL Server 2005 SP3 for both SDE versions.

Besides this it seems like python.exe does not like ListFeatureClasses, ListWorkspaces, and ListVersions, it does however, like ListDatasets.
0 Kudos
TedCronin
MVP Alum
Ted,

You mentioned these are crash dumps...
If so you can just use the submit (assuming you have internet connectivity on those machines). Trust that we do get them when submitted, and they are examined.

Just as a note, not everyone has the ability to fully diagnose them, however through the submission processes they are handled by the appropriate people.

Could you post the script you're loading? If so I can try to repro the issue with that.


I submit to ensure that they are seen today and not 6 months from now, like past crash reports. Besides, I have been trying not to crash ArcMap since Final, so now I think I will go back to trying to crash ArcMap, because some of this behaves like a beta, and crashes are FUN.

I will submit the code soon, trying to make a video so I can load to Youtube.  Here is a video I submitted yesterday, http://www.youtube.com/watch?v=6N5c8SmIJKE, sent the link to Ash and Ghis.
0 Kudos
TedCronin
MVP Alum
So, I am starting to think Pre Release was a bit more stable than final.  So here is the code from the video minus my goofs.  I am thinking this is related to SQL Server.

import arcpy
from arcpy import env as ENV
ENV.workspace = r"Database Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde"
wrksp = ENV.workspace
print wrksp
versionsListCrash = arcpy.ListVersions()
versionsListCrash.remove ('dbo.DEFAULT')
versionsListCrash.remove ('ACR_FINAL.Master')

for version in versionsListCrash:

    print version
    arcpy.management.ReconcileVersion (wrksp, version, "ACR_FINAL.Master", "BY_OBJECT", "FAVOR_TARGET_VERSION", "NO_LOCK_AQUIRED", "NO_ABORT", "NO_POST")


Also, note, Support has a copy of my TestServer, Andrew B, I believe. 

Thank you Support for turning me on to these videos, this was an excellent idea and will be used a lot for 10

Video Located Here:

http://www.youtube.com/watch?v=-WkCXvVDALk
0 Kudos
KevinHibma
Esri Regular Contributor
Thanks, Ted.
With the script I was able to repro. (actually brought Russell in on it)

It was worth noting though - if you step through the script, or bring it in line by line to the Py Window, it works.

This is logged as NIM059517 -arcpy.ListVersions creates an invalid list when run as a script or debug

The best I could tell for some reason the ListVersions was creating weird output which would then cause the next command to choke. However it doesnt always do the weird list...only sometimes. Regardless, I've sent this to the right people and hopefully we can get it into SP1.

Thanks for posting the original script.
0 Kudos
TedCronin
MVP Alum
Hip, Hip, Hooray!!!  Hip, Hip, Hooray!!!!  😛

I was starting to question my sanity.  I actually reinstalled everything yesterday, so now I can go back and put back all my python Xtras.

Cool thing about this is we now have a path for support, for getting py methods fixed.  I will have more.
0 Kudos