The Update AI Settings command hangs indefinitely when it is applied to a photo with a Sky mask to which Generative Remove has been copied/synced, and LR must be force quitted.
To reproduce on LR 13.
1. Download this tiny catalog, unzip it, and open it in LR:
https://www.dropbox.com/scl/fi/x5xa41n0lv7dwc9z6f9rh/update-ai-settings-bug.2024.06.30.zip?rlkey=h0j...
Observe that 1.jpg has a Generative Remove applied to it, and 2.jpg has a Sky mask.
2. In Library, select both photos, with 1.jpg most selected.
3. Do Sync Settings with just Remove selected.
4. Select 2.jpg and do Photo > Develop Settings > Update AI Settings. Observe the Updating AI Settings progress window opens but hangs indefinitely:
Clicking Stop has no effect, and you have to Force Quit LR.
5. The same symptoms occur if you invoke the SDK's photo:updateAISettings() on the photo.