Navigation

    Migaku Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Anki Error (not crashing) when I try to open selected word in Dictionairy

    Migaku Anki Addon
    4
    4
    54
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hajiboy last edited by

      Already tried:
      Oprating System: Linux (Ubuntu)

      • change hotkey with working ones from other commands
      • change video driver even though there are only two for me
        b8846d9c-3b1a-4bb0-8111-95ceda1d1450-image.png
      • restart anki, browser
      • try to copy the word via ctrl + c
      • tried to use the command from: within anki itself, browser, within the dictionairy itself
      • all of them give me the following error:
      Error 
      An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. 
      If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem. 
      When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. 
      Debug info:
      Anki 2.1.49 (dc80804a) Python 3.8.1 Qt 5.15.1 PyQt 5.15.1
      Platform: Linux
      Flags: frz=True ao=True sv=2
      Add-ons, last update check: 2022-03-04 17:01:57
      Add-ons possibly involved: ⁨Migaku Anki Add-on⁩
      
      Caught exception:
      Traceback (most recent call last):
        File "/home/maikel/.local/share/Anki2/addons21/1846879528/global_hotkeys.py", line 184, in on_action_fired
          self.request_seltected_text(action)
        File "/home/maikel/.local/share/Anki2/addons21/1846879528/global_hotkeys.py", line 197, in request_seltected_text
          self.keyboard_controller.release(key)
        File "/home/maikel/.local/share/Anki2/addons21/1846879528/lib/shared/pynput/keyboard/_base.py", line 427, in release
          self._handle(resolved, False)
        File "/home/maikel/.local/share/Anki2/addons21/1846879528/lib/shared/pynput/keyboard/_xorg.py", line 243, in _handle
          Xlib.ext.xtest.fake_input(
        File "contextlib.py", line 120, in __exit__
        File "/home/maikel/.local/share/Anki2/addons21/1846879528/lib/shared/pynput/_util/xorg.py", line 82, in display_manager
          raise X11Error(errors)
      pynput._util.xorg.X11Error: [(BadValue(<Xlib.display._BaseDisplay object at 0x7fb2740882e0>, b'\x00\x027\x00\x00\x00\x00\x00\x02\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), None)]
      

      Thanks in advance!

      SteviMigaku 1 Reply Last reply Reply Quote 0
      • JuliusMigaku
        JuliusMigaku @Bent last edited by

        @bent @hajiboy I do indeed have the same issue, but I don't know myself how to fix it (I just don't use global hotkeys).

        @hajiboy since you are using ubuntu, I expect you are not using flatpak
        Could it be that you're using wayland (if you're familiar with the terminology)?

        1 Reply Last reply Reply Quote 0
        • Bent
          Bent last edited by

          Took me a while, but I think you are using Flatpack version of Anki?

          In that case Anki doesn't get access to the X Server and thus cannot press Ctrl+C to get the selectted text. I'm not quite sure how to get it working using that install. I think @JuliusMigaku had this problem before actually and might be able to help.

          If you have alternative ways to install Anki you could also try those.

          JuliusMigaku 1 Reply Last reply Reply Quote 0
          • SteviMigaku
            SteviMigaku @hajiboy last edited by

            @hajiboy
            @Bent Where you able to take a look?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post