My ArcGIS Pro 3.3 (in Windows 11) crashes when running the Delete GP Tool and specifying a path, while a custom Add-In is running. It works without the Add-In. I attempted to replicate the behavior with an Esri Sample Add-In, and was able to cause a somewhat similar crash behavior with WorkingWithQueryDefinitionFilters adding a layer to the map.
Does this happen for anyone else? Any idea what causes it? Are there any related known bugs?
My current guess is maybe it relates to the ArcGIS.Desktop.Mapping.Events subscriptions.
Step to replicate:
- Build the WorkingWithQueryDefinitionFilters Add-In (I'm using Visual Studio Professional 2022)
https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/WorkingWithQueryDefinitionFilters - Open ArcGIS Pro 3.3 with the WorkingWithQueryDefinitionFilters Add-In ‘installed’
- Add a geodatabase feature class to a new map
- Right click the layer in the Contents dockpane > Click Definition Query Filters
- Drag and drop a layer onto the map (from Catalog dockpane)
(or create a new feature class that gets automatically added to the map) - Pro crashes
For reference, I haven't had any problems with the custom Add-In in ArcGIS Pro 3.2. I've had similar problems with shapefiles in 3.3. The crash doesn't happen before the Definition Query Filters dockpane is opened, but will happen if it's opened then closed.
The following error was in the .dmp file after the custom Add-In crash: "FrameworkApplication.CreateInstance error": Missing class or assembly name: esri_mapping_snapChipToggleButton
One related side question: I noticed that specifying a path in the Delete GP Tool no longer removes map layers from the map that have that path as a data source. Is that expected behavior? Does anyone know when (which version) that change occurred?
Thanks much!