I am encountering a weird behaviour in QGIS 3.20 on Windows.
Steps to reproduce:
- Create an empty project
- Create a SHP layer.
- Add a few features.
- Save the changes to disk
At this point everything is fine. Features still appears.
- I create a spacial index for the layer
- Add a new feature
- Save changes to disk.
- Zoom out/in
- The latest features disapears.
This problem dosn't happen on my Linux machine, but happens on Windows.
I found out that on save, on my Linux box, the .qix file is deleted, whereas on Windows it is not. When deleting the .qix file on Windows, the features reappears. This seems the be a common issue dating back a few years.
How can I make the features stay or make the deletion of the .qix happen?
I found this issue on the qgis tracker, I know this is a QGIS bug, and I'm looking for a workaround.