howdy icon indicating copy to clipboard operation
howdy copied to clipboard

BrokenPipeError during unlock

Open damian-ds7 opened this issue 1 year ago • 19 comments

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

damian-ds7 avatar Oct 30 '24 22:10 damian-ds7

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

hnasheralneam avatar Nov 13 '24 23:11 hnasheralneam

Has anyone been able to solve this problem?

gguman avatar Dec 22 '24 21:12 gguman

Having the same issue on Arch Linux with howdy-beta-git installed from AUR.

chenxiex avatar Dec 26 '24 16:12 chenxiex

+1

Hamster1962 avatar Dec 26 '24 16:12 Hamster1962

+1

a15355447898a avatar Dec 27 '24 06:12 a15355447898a

I'm getting this too n arch and howdy-beta-git

rylos avatar Jan 16 '25 09:01 rylos

I wish somebody can fix this issue

Hunter9812 avatar Jan 18 '25 14:01 Hunter9812

+1

NoahHallows avatar Jan 28 '25 07:01 NoahHallows

+1

awaLiny2333 avatar Feb 04 '25 15:02 awaLiny2333

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.

russ1217 avatar Feb 12 '25 12:02 russ1217

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 import authsticky File "/usr/lib/howdy-gtk/authsticky.py", line 158, in 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.

russ1217 avatar Feb 12 '25 12:02 russ1217

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.

Hamster1962 avatar Feb 12 '25 20:02 Hamster1962

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

rylos avatar Feb 12 '25 20:02 rylos

That is helpful, which text editor are you using because my Micro spacing is all different. does that matter?

Hamster1962 avatar Feb 12 '25 20:02 Hamster1962

Bingo, I did it, I used Sublime Text editor and it made it much clearer where the indents should be.

We did it ....... yay.

Hamster1962 avatar Feb 12 '25 21:02 Hamster1962

i ues visual source code. sorry that copy paste may have caused the format problem.

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: RyLoS @.> Sent: Thursday, February 13, 2025 4:24:32 AM To: boltgolt/howdy @.> Cc: russ1217 @.>; Comment @.> Subject: Re: [boltgolt/howdy] BrokenPipeError during unlock (Issue #968)

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.png (view on web)https://github.com/user-attachments/assets/7e36172a-b03a-4375-8c66-05ed07f3a79a

― Reply to this email directly, view it on GitHubhttps://github.com/boltgolt/howdy/issues/968#issuecomment-2654764826, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIN7DEKGUDL5DCN7E7LL4232POUYBAVCNFSM6AAAAABQ5DCVQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJUG43DIOBSGY. You are receiving this because you commented.Message ID: @.***>

russ1217 avatar Feb 13 '25 12:02 russ1217

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!

BettridgeKameron avatar Apr 26 '25 23:04 BettridgeKameron

Thanks, i can confirm its working in Fedora 42 KDE.

frijheid avatar Jun 09 '25 13:06 frijheid

Fixes it on Arch 6.15.1-arch1-2! Thank you @russ1217!

dekay7 avatar Jun 10 '25 19:06 dekay7

Thanks all, merged on beta branch now

boltgolt avatar Jun 22 '25 08:06 boltgolt