howdy: BrokenPipeError during unlock

After updating Fedora to 41 whenever I use howdy in the terminal this error gets printed.

Exception ignored in: <_io.BufferedWriter name=4>
BrokenPipeError: [Errno 32] Broken pipe

Howdy still works everywhere and I didn’t find any issues. Similar issue was created not long ago (#916 ) but that was only when using hotkey RubberStamp. I never set anything like that up.


I’ve searched for similar issues already, and my issue has not been reported yet.

Linux distribution (if applicable): Fedora 41

Howdy version (sudo howdy version): Howdy 3.0.0 BETA

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 15
  • Comments: 20 (1 by maintainers)

Commits related to this issue

Most upvoted comments

I think it is due to the howdy_gtk synchronization issue. I tried to modify the code at line 90 in compare.py to the following:

	try:
		if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe
			gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
			gtk_proc.stdin.flush()
	except IOError:
		pass

It seems that the Error message disappears.

I think it is due to the howdy_gtk synchronization issue. I tried to modify the code at line 90 in compare.py to the following:

	try:
		if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe
			gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
			gtk_proc.stdin.flush()
	except IOError:
		pass

It seems that the Error message disappears.

Fixes it on howdy-beta on fedora 42 as well!

BTW, I am using wayland KDE on archlinux. i think howdy_gtk cannot be initialized correctly. If I turn on option gtk_stdout to “true” in howdy config. Here is the runtime error message:

Traceback (most recent call last): File “/usr/lib/howdy-gtk/init.py”, line 5, in <module> import authsticky File “/usr/lib/howdy-gtk/authsticky.py”, line 158, in <module> window = StickyWindow() File “/usr/lib/howdy-gtk/authsticky.py”, line 33, in init gtk.Window.init(self) ~~~~~~~~~~~~~~~~~~~^^^^^^ File “/usr/lib/python3.13/site-packages/gi/overrides/Gtk.py”, line 505, in init raise RuntimeError( "Gtk couldn’t be initialized. " “Use Gtk.init_check() if you want to handle this case.”) RuntimeError: Gtk couldn’t be initialized. Use Gtk.init_check() if you want to handle this case.

That is why in the compare.py:

gtk_proc.stdin.write(bytearray(message.encode(“utf-8”))) gtk_proc.stdin.flush()

fails and generates the annoying error message.

I’m having the same issue on Fedora 41 (KDE spin)

Thanks all, merged on beta branch now

Hi russ1217. The text you added above does seem to get rid of the error but afterwards i get other errors, reference tabs, spaces and indents. Can you please advise an idiots guide to adding the extra line ‘if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe’

Is it the text editor I’m using? Or can you link me to a modified Compare.py file please

We are nearly there.

Double check the indents, this is the screenshot so you can check it out.

Image