Error report on Anki

Hello I am having this report everytime I open up my Anki Deck:

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows-10-10.0.22621
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2023-09-17 15:33:58

Caught exception:
Traceback (most recent call last):
File “aqt.browser.browser”, line 240, in resizeEvent
AttributeError: ‘Browser’ object has no attribute ‘auto_layout’

Does anyone know this?

Does ‘reset window sizes’ in the preferences screen before opening the browser help?

1 Like

It did help. However, everytime I close the Browse menu on a full screen and reopen the Browse menu, the same error pops up. For me to not have the error show up again I have to minimize the Browser tab and exit it before I reopen the tab it again.

@abdo are you able to reproduce this?

I remember hitting this once or twice randomly. I can’t reproduce it reliably though.
The resize event is probably triggered by ensureWidgetInScreenBoundaries(). Should be fixable by setting self.auto_layout = True before restoreGeom().

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.