So, I had an Esri software crash, I know this is not that strange. But I did see that the GPU spiked when it crashed. I have an NVIDIA Quadro P4000. Does this mean the GPU caused the crash? Or that the crash caused the GPU to spike. Knowing which one came first will help in troubleshooting this.
All I was doing was adding a toolbox to the project, with a map view open.
Do this first
The code example works and you should get a report like this if all is good.
A test on one of my toolboxes
Analyzing Python script PolygonlineTools for use within ArcGISPro:
Malcolm, I apologize that you're experiencing a crash in ArcGIS Pro. When the crash occurs, are you presented with the serious application error dialog? Please make sure you're submitting these with an email address and description of the issue. You can read more about how these are handled here: Report software errors—ArcGIS Pro | ArcGIS Desktop
For now, would you mind sending me the offending toolbox so I can see if I can reproduce the crash?