You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that my Mint Tea app hangs on the start occasionally.
Sometimes the app is snappy but sometimes displays the initial screen and ignores all the future key events (or takes about 20 seconds to process a keyboard event).
When such a problem happens, I see that strace spams with errors:
It is not clear to me whether the EAGAIN errors are a problem, as the traces from a good run has a lot of them too.
Here are two traces for a good and a hanging run (the pointers have been renamed to reduce differences between the traces and simplify comparison):
I noticed that my Mint Tea app hangs on the start occasionally.
Sometimes the app is snappy but sometimes displays the initial screen and ignores all the future key events (or takes about 20 seconds to process a keyboard event).
When such a problem happens, I see that
strace
spams with errors:I forked minttea and added some logging, and I observed that Mint Tea hangs on receiving and processing Frame events here:
minttea/minttea/program.ml
Line 14 in 7a64431
You can try to reproduce the problem using the following project:
It uses OCaml 5.1.1 and pinned from GitHub versions of all Mint Tea ecosystem dependencies.
Run the project by executing
dune exec bin/main.exe
and try pressing numbers 1,2,3 or arrows or hjkl or q to quit.Expected behaviour: The TUI app is immediately responsive and rerenders instantly
Actual behaviour: The TUI app sometimes hangs and stops responding to input key events
I'm on Windows 11 and running my project through WSL2 and Ubuntu.
The text was updated successfully, but these errors were encountered: