Custom Python script tool produces result but crashes mxd

732
1
04-09-2012 06:30 AM
johnodonnell
New Contributor
I've produced a relatively simple Python script that strings together several geoprocessing tasks in order to calculate the volume of a stormwater detention pond. I've been working on this for a week or so, and just recently I started having trouble running the tool. Whereas before I would see a geoprocessing window after clicking "OK" to begin the process, now nothing pops up. The script tool finishes and produces the results I expect, but then the mxd becomes completely unresponsive. Clicking anywhere inside the mxd just makes a "ding" noise. It's as if the window that formerly was visible is now hidden somewhere and waiting for me to click "OK" in reply to a message that the process completed. I feel like I'm missing something insanely simple, but for the life of me I can't figure it out. Please help!

Running Windows 7 64, ArcEditor SP 4
Tags (2)
0 Kudos
1 Reply
johnodonnell
New Contributor
Alright, I seem to have solved the issue, and boy is it strange.

It all seems to be related to the use of multiple displays. On Thursday of last week I connected to a large HDTV to demonstrate the function of my script to my superiors. I dragged the geoprocessing dialog box to the big screen so we could watch it work and return messages. It seems that ArcMap somehow and for some reason remembered the location of the dialog box and tried to project it there even after I was disconnected from the display. So back at my desk, my process was running, and upon finishing it was waiting for a response from me (basically to close the dialog box). But since it was nowhere to be seen on the current display configuration, I had no way of interacting with it. Only by reconnecting to the HDTV in our conference room was I able to see the box and drag it back into my laptop display. It now remembers the location and I can see it when running the script.

I'm not sure where the fault lies with this bug, but does anybody else have experience with it?
0 Kudos