Liresol / anki-custom-shortcuts

Custom Keyboard Shortcuts for Anki 2.1
MIT License
61 stars 14 forks source link

Addon crashes Anki when using Browse #215

Open jacobcassidy opened 12 months ago

jacobcassidy commented 12 months ago

When resizing or clicking around inside the Anki Browse window, Anki will crash when this add-on is active on macOS 14 using Anki version ⁨2.1.66 (70506aeb)⁩

jacobcassidy commented 12 months ago

A quick workaround for anyone who runs into this issue is to set all browse settings in the config file to <nop> to deactivate them. Such as:

{
    "window_browser add note": "<nop>",
    "window_browser add tag": "<nop>",
    "window_browser change deck": "<nop>",
    "window_browser change note type": "<nop>",
    "window_browser clear unused tags": "<nop>",
    "window_browser close": "<nop>",
    "window_browser delete": "<nop>",
    "window_browser filter": "<nop>",
    "window_browser find": "<nop>",
    "window_browser find and replace": "<nop>",
    "window_browser find duplicates": "<nop>",
    "window_browser first card": "<nop>",
    "window_browser flag_blue": "<nop>",
    "window_browser flag_green": "<nop>",
    "window_browser flag_orange": "<nop>",
    "window_browser flag_red": "<nop>",
    "window_browser forget card": "<nop>",
    "window_browser goto card list": "<nop>",
    "window_browser goto next note": "<nop>",
    "window_browser goto note": "<nop>",
    "window_browser goto previous note": "<nop>",
    "window_browser goto sidebar": "<nop>",
    "window_browser guide": "<nop>",
    "window_browser info": "<nop>",
    "window_browser invert selection": "<nop>",
    "window_browser last card": "<nop>",
    "window_browser manage note types": "<nop>",
    "window_browser preview": "<nop>",
    "window_browser remove current filter": "<nop>",
    "window_browser remove tag": "<nop>",
    "window_browser reposition": "<nop>",
    "window_browser reschedule": "<nop>",
    "window_browser save current filter": "<nop>",
    "window_browser select all": "<nop>",
    "window_browser select notes": "<nop>",
    "window_browser sidebar search": "<nop>",
    "window_browser sidebar select": "<nop>",
    "window_browser suspend": "<nop>",
    "window_browser toggle mark": "<nop>",
    "window_browser undo": "<nop>",
}
NameLessGO commented 11 months ago

@jacobcassidy Does the problem still persists?

Could you try Tools -> Preferences -> Reset windows size

we had a quite a few users from mac, including me, with anki crashing which was fixed by resetting windows

jacobcassidy commented 11 months ago

@NameLessGO I deactivated this addon a while ago as I ran into many other issues that caused Anki to crash often. As far as I know, no changes have been made to the addon (no pushes to this repo).

Update: I reactivated the addon and used your recommended Anki > Preferences > Reset Window Sizes, and so far, no crashes. Thanks!