FSRS optimisation fails - "The provided FSRS parameters are invalid"

I’m experiencing a persistent problem with FSRS optimisation that I have reproduced on two separate Windows PCs running different versions of Anki.

When I click Optimise Current Preset, I receive the following error:

Error: The provided FSRS parameters are invalid. Leave them blank to use the default values.

Resetting the parameters to their default values does not resolve the problem.

System information

PC 1

Anki 26.09.4 (c06370ff)
Python 3.13.17 Qt 6.11.2 PyQt 6.11.0
Platform: Windows-11-10.0.26200-SP0

PC 2

Anki 26.09.2 (bb0dd6d1)
Python 3.13.15 Qt 6.11.2 PyQt 6.11.0
Platform: Windows-11-10.0.26300-SP0

I regularly use Anki across these two PCs and my phone, and sync consistently when switching between devices.

Collection and configuration

  • Default preset shared by six decks.

  • FSRS enabled.

  • Desired retention: 90%.

  • Historical retention: 90%.

  • Maximum interval: 36,500 days.

  • Ignore cards reviewed before: 01/01/1970.

  • Reschedule cards on change: disabled.

The FSRS interface initially displayed 0 reviews, despite a substantial review history.

Searching in the browser using:

preset:Default -is:suspended -is:new

returns 12,143 cards. The Reviews column shows non-zero review counts for the cards inspected.

I also noticed some cards with unusually distant due dates (e.g. 2054 and 2062), although I don’t know whether this is related.

Troubleshooting already attempted

  1. Check Database. This returned the following:

    Found 5 new cards with a due number >= 1,000,000 - consider repositioning them in the Browse screen.
    Fixed 2 invalid card properties.
    Added last review time to 11113 cards.
    Database rebuilt and optimised.

    Optimisation continued to fail after these repairs.

  2. Reset FSRS parameters using the reset button. The interface correctly displayed “Default parameters”, but optimisation returned the same error.

  3. Disabled “Check health when optimizing”. Same error.

  4. Saved the default parameters and restarted Anki. Same error.

  5. Attempted to start Anki in safe mode by holding Shift during launch. I don’t think I have any add-ons anyway, but this made no difference.

  6. Restricted the optimisation search to a single deck, using:

    deck:"Stats, maths, analytics" -is:suspended
    

    Same error.

  7. Attempted optimisation on a second PC running Anki 26.09.2. Identical error.

Original FSRS parameters

Before resetting, my parameters were:

0.0918, 9.8510, 16.5697, 41.7564, 5.9258,
0.4364, 3.1248, 0.0012, 2.3011, 0.1122,
1.2683, 1.1230, 0.1378, 0.2094, 1.0092,
0.3231, 1.4752, 0.9559, 0.9490, 0.0802,
0.1000

Questions

  • Why might FSRS return an invalid parameters error when the parameter field has already been reset to defaults?

  • Could this indicate an issue with the underlying review logs or collection data?

  • Is the initial report of zero reviews diagnostically significant?

  • Are there further diagnostic checks I can perform to isolate the cause?

I have backed up my entire collection. Given the extent of my review history, I would prefer to avoid resetting card progress or making substantial scheduling changes.

Any assistance would be appreciated.

If all of your devices are otherwise fully synced, I suggest –

  • Blank out your parameters on one device and save.
  • Force a one-way sync and upload to AnkiWeb.
  • On all of your other devices, sync to and download from AnkiWeb.
  • Then Optimize on one device and resume syncing normally.

Thanks Danika

I’ve set FSRS paramaters back to “Default parameters (Press “⁨Optimize Current Preset⁩” periodically to allow FSRS to better adjust to your memory)”, which I assume is what you mean by blank.

But when I hit “optimise current preset” I get the same error as before, i.e.

Have I missed something?

Regards

DannyC

Did you do the steps in between?
Do you get the same error when you optimize on your AnkiMobile device(s)?

Thanks Danika

Yes, I followed all the steps.

I got the same error message on my second PC, and a similar message on my iPhone (AnkiMobile v. 26.10.1 if it matters).

Regards Danny

I suggest you share a sample deck, after you’ve verified that it still has the problem, so that someone can take a look.

I don’t know what is going on with that preset. But if it’s only happening in the one preset, your quickest route away from it might be to just make a new preset. You can add all of the settings you have now, reassign each top-level deck to it, and then use Save to all Subdecks for each of them. When you’re done, you can delete the old preset, and even change the name of your new one to that, if you like.

Thanks Danika and Zorn.

I’ve now tried both suggestions.

New preset: I created a new preset and assigned a single deck (Stats, maths, analytics) to it. Optimisation returned the same invalid parameters error.

Interestingly, both Help Me Decide and the FSRS Simulator ran successfully.

Isolated deck: I exported that deck as an .apkg file, including scheduling information and deck presets. I then created a separate Anki profile, imported the deck with learning progress and presets retained, and enabled FSRS.

Optimisation again returned the identical error.

So I now have a standalone deck that reproduces the problem.

Zorn, I’m happy to share this deck for investigation, if that’s a thing.

I really appreciate you trying all of these things. This is a bit of a mystery.

If you click 3 times in the FSRS parameters box, it should reveal the parameters there. What are they (as text please)? Are they the same on all of your devices?

If it is small enough, you can attach it here. [The platform is pretty strict about filetypes, so you might need to add another extension to the end of it before you attach it.] Or you can share it somewhere generic and give us a link. [If the platform doesn’t like the link, you can put it in a code-block like the ones you used above.]

Hi Danika

Thanks for sticking with me.

When I triple clicked in the parameters box, I got an error message.

Please see attached a link to one of my decks. When I tested FSRS in isolation on this deck it still reproduced the error:


https://www.swisstransfer.com/dl/01a2216e-cda8-75e7-9871-f508ca26de59
```

Regards

Daniel

What I found so far:

  • All your cards have been rescheduled 149 days ago (2026-07-02).
  • The non-cloze cards (including image occlusion cards) are fine. You can move them into their own deck with a new preset and optimize that.

If you have access to a backup from before 2026-07-02, does optimizing work there?

Also, was that rescheduling made with an addon or using the built-in “reschedule cards on change” feature?


OK, I think it’s a regression in Anki. I can optimize the deck in AnkiDroid 2.25.2 (Anki 26.05), but I can’t optimize your deck in AnkiDroid 2.26.0alpha16 (Anki 26.09.4)

Thanks Zorn

It’s very kind of you to have such a close look.

I’m pretty sure any reschedule is due to the reschedule cards on change feature.

Unfortunately, I don’t have a backup. Lesson learned.

I’m not sure where to go from here. I guess my fallback is either go for a non-optimised FSRS or revert to the older SM-2 scheduler? What I don’t want is anything that further imperils my Anki decks.

Regards

Danny

Happy to help.

As I said, I think it’s a bug that should be fixed. You can change the title to add “[BUG]” so that the devs notice.

For the time being, you can use an older version of Anki to optimize your parameters. The latest version has security fixes so you shouldn’t just use the old version unless you use it completely offline and you trust the decks you have.

So, make a backup, delete Anki, install an old version, optimize, delete Anki, and finally install the latest version.

Also, it’s worth checking out the FSRS helper addon. I’m not familiar with it, but maybe one of its features can, um… help.

Thanks Zorn. I’m happy to flag this as a bug, but I don’t appear to have permission to edit the topic title.

Danika, would you mind adding [BUG] to the title?

For now, I’ll continue using FSRS with default parameters and await a fix.

No one ever needs to do that. It doesn’t accomplish anything except making the title harder to read.

Unless you’ve done something to delete them, you should have dozens of automatic backups that Anki maintains for you (on each device). Restoring an Automatic Backup (Recovering from Data Loss) - Anki Docs

If you want to get a recent set of optimized parameters to start from, you can make a fresh (temporary) profile and import one of those backup COLPKG files there to copy the parameters.

I’m concerned that what’s in there isn’t actually the default parameters, so I don’t want to leave you there to study with that.

What about replacing what’s there with the current default parameters –

0.212, 1.2931, 2.3065, 8.2956, 6.4133, 0.8334, 3.0194, 0.001, 1.8722, 0.1666, 0.796, 1.4835, 0.0614, 0.2629, 1.6483, 0.6014, 1.8729, 0.5425, 0.0912, 0.0658, 0.1542

– then save and exit the Options screen, and re-open it to optimize? [If that doesn’t help, you can Edit > Undo to get you back to where you were before.]

The only way to share Anki bugs is through this forum. The bug reports get mixed with generic problems and the topic gets closed automatically within a month of inactivity. This has happened before: one example.

If “[BUG]” makes it harder to read, then why not make a category specific to Anki bugs? New users post in the wrong category all the time so this won’t be a new problem.

I share your frustration that issues posted here don’t always get timely attention from the dev team. I’m working on solutions to that – but this isn’t one of them.

Unfortunately, that provoked the same issue.

Thank you for the advice on backups as well.