IntegralValueOutOfRange for filtered deck

Created a filtered deck within AnkiDroid (deck:the_deck is:due, by increasing intervals) for some 900 due reviews. Used without issue to about 500 due reviews on both droid and desktop.

Emptied the deck, thought twice and rebuilt it (both on desktop).

Now this error (persists after database check) when clicking on the filtered deck:

Anki 2.1.34 (340c749d) Python 3.8.5 Qt 5.15.1 PyQt 5.15.1
Platform: Linux
Flags: frz=False ao=False sv=2
Add-ons, last update check: 2020-09-13 16:02:08

Caught exception:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/aqt/", line 37, in cmd
    return json.dumps(self.onCmd(str))
  File "/usr/lib/python3.8/site-packages/aqt/", line 123, in _onCmd
    return self._onBridgeCmd(str)
  File "/usr/lib/python3.8/site-packages/aqt/", line 574, in _onBridgeCmd
    return self.onBridgeCmd(cmd)
  File "/usr/lib/python3.8/site-packages/aqt/", line 74, in _linkHandler
  File "/usr/lib/python3.8/site-packages/aqt/", line 96, in _selDeck
  File "/usr/lib/python3.8/site-packages/aqt/", line 1083, in onOverview
  File "/usr/lib/python3.8/site-packages/aqt/", line 663, in moveToState
    getattr(self, "_" + state + "State")(oldState, *args)
  File "/usr/lib/python3.8/site-packages/aqt/", line 682, in _overviewState
  File "/usr/lib/python3.8/site-packages/aqt/", line 53, in show
  File "/usr/lib/python3.8/site-packages/aqt/", line 58, in refresh
  File "/usr/lib/python3.8/site-packages/aqt/", line 260, in _renderBottom
  File "/usr/lib/python3.8/site-packages/anki/", line 1251, in haveBuried
    info = self.congratulations_info()
  File "/usr/lib/python3.8/site-packages/anki/", line 1234, in congratulations_info
    return self.col.backend.congrats_info()
  File "/usr/lib/python3.8/site-packages/anki/", line 175, in congrats_info
    output.ParseFromString(self._run_command(20, input))
  File "/usr/lib/python3.8/site-packages/anki/", line 270, in _run_command
    raise proto_exception_to_native(err)
anki.rsbackend.DBError: DBError { info: "IntegralValueOutOfRange(5, -99951)", kind: Other }

Error persists when deleting the filtered deck (emptying not offered), DB check, and recreating it again.

Thanks for the report, I’ll look into it.