calcurse: Hard hang when opening TODO notes

This has happened twice in the last hour for me, when I was reviewing my TODO list.

It could be linked with auto-saving feature? I.e. in the second of the auto-save you press n on a TODO item with a note – calcurse hangs.

strace shows me this once it happens:

futex(0x6346a0, FUTEX_WAIT_PRIVATE, 2, NULL

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 36 (36 by maintainers)

Most upvoted comments

On a higher level, I think we should figure out a way to deal with hooks getting stuck. What I suggested above is only a partial solution to this problem.

If the periodic save interval is 1 minute and one of the hooks freezes for some reason, do we keep waiting for that hook forever (thereby silently disabling the periodic save feature)? Do we just kill the hook after some timeout? Do we display a warning and let the user decide what to do? Do we just run the periodic safe again in the next minute, risking potential interaction between the two parallel save operations (I don’t think this one is a good idea)?

Yes and no.

With the fix in hooks.c the two routines (in wins.c) from the first fix are no longer called. But those changes are needed in any case, in my opinion. So I would keep both.