Weirdness when Esc pressed in full-screen Browse window

  • start Anki on Windows (Windows 11) with all add-ons disabled
  • open Browse window
  • hit F11 (to make Browse window full-screen)
  • hit Esc
    • (the Browse window disappears)
    • (in the main window, the File/Edit/View/Tools/Help menu disappears!)
    • (you can restore this menu by hitting F11 twice, to make the main window full-screen and then normal again)
  • open Browse window again
    • (Error message: “Anki encountered a problem. Please follow the troubleshooting steps.”)

Copy Debug Info:

Anki 23.12.1 (1a1d4d54)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):
File “aqt.browser.browser”, line 243, in resizeEvent
File “aqt.browser.browser”, line 232, in maybe_update_layout
AttributeError: ‘Browser’ object has no attribute ‘aspect_ratio’


  • (File/Edit/Views/Tools/Help menu disappears as described above:)

Screenshot 2023-12-30 184822
Screenshot 2023-12-30 184719

1 Like

Incidentally, someone made another report here in August where the missing Browser attribute was ‘auto_layout’ instead of ‘aspect_ratio’.

However there were no steps given to reproduce it.

@abdo are you able to reproduce this?

I can reproduce this issue.

Anki 23.12.1 (1a1d4d54)  
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22621

Traceback (most recent call last):
  File "aqt.browser.browser", line 243, in resizeEvent
  File "aqt.browser.browser", line 232, in maybe_update_layout
AttributeError: 'Browser' object has no attribute 'aspect_ratio'

And the File/Edit/Views/Tools/Help menu does disappear. However when my cursor moves, it appears again.

Yes, I can reproduce it on Windows 10.

1 Like

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