Hi. I run Moneydance in Ubuntu 22.04.2 and it periodically stops accepting keyboard input - not just in tet fields, but key shortcuts, keyboard navigation, everything related to keyboard. I have to quit and relaunch it for it to accept keyboard input again.

Moneydance is written in Java. Has anyone heard of Java apps dropping keyboard connectivity?

  • JoeyJoeJoeJr@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    11 months ago

    That sounds like a threading issue. If the app tries to run a task on its main thread, and that task takes a long time (in particular, longer than expected), it could cause the UI to lock up.

    Do mouse interactions still work? Does anything on the UI update at all? If not, I’d bet on a task getting stuck on the main thread.

    Note that this doesn’t have to be an intense task - you may not see a CPU/network/disk spike. It could be a deadlock scenario, where multiple threads are waiting for the same resources, and each locks some, but not all of the resources. None can move forward, no work is done, everything just hangs waiting for resources locked by other threads.

    • Mike Wooskey@lemmy.d.thewooskeys.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 months ago

      Thanks for the reply! When Moneydance loses keyboard connectivity, the mouse still works and the UI is accessible via the mouse, so it sounds like perhaps not an issue with a locked UI due to a long-processing or deadlock thread.

      I did find another user having this issue with Moneydance, and someone (not sure if they’re a user or with Moneydance) seems to think the problem is specific to Mondeydance.

      • JoeyJoeJoeJr@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        11 months ago

        Hmm, strange. The last comment from Dan (second to last comment on the thread) makes it sound like their is another thread, and other users with the same problem:

        Whew, I found the other thread and am happy to see that others are encountering this too, and it’s not some super duper weird thing with just my computer…

        I tried searching a bit to see if I could find it quickly, but didn’t turn anything up. Maybe if you comment there, though, they could link you to the other thread, and they might have more info.