UV island stack detection is broken in Blender 5.22

I wanted to stack these grid UV islands, but the default setting won’t stack them. When I switched to Topology and Scale mode, Blender threw an error.

Hi, I checked on my test files and can not confirm the bug. Could you attach your blend file?

Sorry, this file contains private information, but I still can’t stack the UVs.Can you fix it based on the error message?

I need a reproducible example, because in my configuration everything is working correctly. Does the bug happen in all your files or only in this?

We don’t need your entire scene. You can do the following:

  1. Repeat the steps that lead to the issue.
  2. If you are in **Sync - Off** mode, click the **Zen Sync** button located in the top left corner of the UV Editor. This will switch you to **UV Sync Selection** while preserving your current selection

3. Switch to the 3D View and invert your selection.
4. Delete all the geometry that becomes selected after the inversion.
5. Switch to Object mode and delete any objects that are unrelated to the issue.
6. Save the file separately and send it to us.