this post was submitted on 05 Aug 2023
4 points (83.3% liked)

Linux

48186 readers
1181 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

top 3 comments
sorted by: hot top controversial new old
[–] JoeyJoeJoeJr@lemmy.ml 4 points 1 year ago (1 children)

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.com 2 points 1 year ago (1 children)

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 2 points 1 year 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.