# Bug in "deck and card info sidebar during review" add-on

**URL:** <https://forums.ankiweb.net/t/bug-in-deck-and-card-info-sidebar-during-review-add-on/66119>\
**Category:** Add-ons\
**Created:** [August 24, 2025, 7:42pm UTC](https://forums.ankiweb.net/t/bug-in-deck-and-card-info-sidebar-during-review-add-on/66119 "2025-08-24T19:42:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lead\_earth](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lead\_earth](https://forums.ankiweb.net/u/lead_earth)\
**Post date:** [August 24, 2025, 7:42pm UTC](https://forums.ankiweb.net/t/bug-in-deck-and-card-info-sidebar-during-review-add-on/66119/1 "2025-08-24T19:42:34Z")

</div>

I already posted this bug report in [the thread for the specific add-on](https://forums.ankiweb.net/t/deck-and-card-info-sidebar-during-review-official-thread/549/30), but a week has passed with no response and the thread seems to have gone dead unfortunately. Hence the new one.

The add-on is called [deck and card info sidebar during review](https://ankiweb.net/shared/info/673114053).

Here’s what I’m seeing, approximately every day during my reviews:

 ![Screenshot 2025-08-18 at 5.46.36 PM](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/a/d/ad006489dbc39a14d7ee93da04c059cef8a593e8.png)

After this, the add-on stops updating the sidebar that it creates with details about the current and previous cards.

Here’s what I get from “Copy Debug Info”:

```python
Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.5-arm64-arm-64bit-Mach-O

Traceback (most recent call last):
  File "/Users/MY-USERNAME/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/webview.py", line 188, in cmd
    return json.dumps(self.onCmd(str))
                      ~~~~~~~~~~ ^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/webview.py", line 275, in _onCmd
    return self._onBridgeCmd(str)
           ~~~~~~~~~~~~~~~~~ ^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/webview.py", line 806, in _onBridgeCmd
    return self.onBridgeCmd(cmd)
           ~~~~~~~~~~~~~~~~ ^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/overview.py", line 99, in _linkHandler
    self.mw.moveToState("review")
    ~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py", line 782, in moveToState
    gui_hooks.state_did_change(state, oldState)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/_aqt/hooks.py", line 4897, in __call__
    hook(new_state, old_state)
    ~~~~ ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/Anki2/addons21/673114053/ __init__.py", line 94, in maybe_restore_sidebar
    cs.show()
    ~~~~~~~ ^^
  File "/Users/MY-USERNAME/Library/Application Support/Anki2/addons21/673114053/sidebar_base.py", line 125, in show
    self.setup_style()
    ~~~~~~~~~~~~~~~~ ^^
  File "/Users/MY-USERNAME/Library/Application Support/Anki2/addons21/673114053/sidebar_base.py", line 59, in setup_style
    self.set_day_style()
    ~~~~~~~~~~~~~~~~~~ ^^
  File "/Users/MY-USERNAME/Library/Application Support/Anki2/addons21/673114053/sidebar_base.py", line 81, in set_day_style
    update_contents_of_sidebar(self)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/Anki2/addons21/673114053/sidebar_set_contents.py", line 58, in update_contents_of_sidebar
    txt += revlog_data_mod(self, card, gc('num_of_revs', 3))
           ~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/MY-USERNAME/Library/Application Support/Anki2/addons21/673114053/revlog.py", line 36, in revlog_data_mod
    tstr = ["Lrn", "Rev", "ReLn", "Filt", "Resch"][_type]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^
IndexError: list index out of range

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Browser ['874215009', 2024-10-27T10:20, 'None', '']
AnkiWebView Inspector ['31746032', 2023-06-27T15:26, 'None', '']
Change Note Creation Times ['217650262', 2023-10-18T22:59, 'None', '']
Custom Stats Range ['84374528', 2023-12-06T12:29, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2023-11-01T05:17, 'None', '']
Edit Field During Review Cloze ['385888438', 2025-08-04T10:13, '6.23', mod]
FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings ['759844606', 2025-08-17T21:42, 'None', '']
Field AutoComplete ['511710206', 2025-01-29T02:01, 'None', mod]
Highlight Search Results in the Browser ['225180905', 2023-10-21T15:17, 'None', '']
LPCG LyricsPoetry Cloze Generator ['2084557901', 2023-12-06T22:43, 'None', '']
More Decks Stats and Time Left ['1556734708', 2025-06-23T16:44, 'None', '']
Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T02:26, 'None', '']
Progress bar Actual ['1882716549', 2025-05-18T02:31, 'None', '']
Review Heatmap ['1771074083', 2022-06-29T21:43, 'None', '']
Search Stats Extended ['1613056169', 2025-07-30T19:05, 'None', mod]
See Previous Card Ratings in Reviewer ['1906641654', 2025-01-20T23:13, 'None', '']
Statistics for Note Types Card Types and Tags ['16703369', 2022-03-14T17:14, 'None', '']
Switch Note Type Hotkey ['565948788', 2021-10-03T23:46, 'None', '']
True Retention ['613684242', 2017-11-19T15:43, 'None', '']
deck and card info sidebar during review ['673114053', 2022-08-16T06:30, 'None', '']

===IDs of active AnkiWeb add-ons===
1556734708 1613056169 16703369 1771074083 1882716549 1906641654 2084557901 217650262 225180905 24411424 266436365 31746032 385888438 511710206 565948788 613684242 673114053 759844606 84374528 874215009

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

```

I also had an interesting little chat with ChatGPT about the output above:

> The key line is:
> 
> ```python
> tstr = ["Lrn", "Rev", "ReLn", "Filt", "Resch"][_type]
> IndexError: list index out of range
> 
> ```
> 
> That means \_type sometimes has a value outside the expected range 0–4. The add-on assumes every review log entry has one of those five types, but Anki 25.07.5 (or FSRS-related logging) is producing a different \_type value that isn’t accounted for.
> 
> So the issue:
> 
> - The add-on’s revlog.py doesn’t handle newer/different revlog types introduced in recent Anki versions.
> 
> - When such an entry appears in your revlog, the add-on crashes every time the sidebar tries to show review data.
> 
> It isn’t a core Anki bug — it’s that this add-on is outdated and doesn’t handle new \_type codes.

Can anyone help?

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [August 24, 2025, 11:56pm UTC](https://forums.ankiweb.net/t/bug-in-deck-and-card-info-sidebar-during-review-add-on/66119/2 "2025-08-24T23:56:10Z")

</div>

Have you considered using another one of the add-ons that displays the Card Info – like [Card Info During Review](https://ankiweb.net/shared/info/2179254157) or [Extended Card Stats During Review](https://ankiweb.net/shared/info/1008566916) (on which your add-on was based)?

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [August 26, 2025, 5:50am UTC](https://forums.ankiweb.net/t/bug-in-deck-and-card-info-sidebar-during-review-add-on/66119/3 "2025-08-26T05:50:31Z")

</div>

Card Info During Review should work in the latest version of Anki 25.07, Extended Card Stats During Review does not work for now. Other the popular button add-on [Advanced Review Bottom Bar](https://ankiweb.net/shared/info/1136455830) has an option to display card info in the sidebar.
