It seems that no matter what I do, the footnotes are not quite right. On every other page, it might start with 2, with 1 being at the end of the list on the previous page, or similar. No matter how many times I re-run it, it always tells me to re-run it to fix cross-references.
I have tried
zref-perpage, and even the ancient
This FAQ doesn't give me much hope.
perpage package almost works. It certainly works in small examples but not in a book with 800 pages.
I'm using the memoir class. Each page has about 10-40 footnotes.
I'm using lualatex.
The first problematic footnote doesn't appear until page 38.
As this answer suggests, the "reference oscillates which page it is on".
Here is the simplest example. The issue is present on page 26 where the list of footnotes starts with 34.