p-e-w / shin

A shell in every text input on your system
GNU General Public License v3.0
278 stars 12 forks source link

GTK applications on GNOME crash/freeze when length of command output exceeds 4083 bytes #2

Open p-e-w opened 2 years ago

p-e-w commented 2 years ago

This can be verified by running the commands

printf %4083s

which works, versus

printf %4084s

which crashes and sometimes freezes, when run from a Shin input inside a GTK application on GNOME. When a crash occurs, stdout contains the message

Error reading events from display: Broken pipe

This does not happen on KDE or Sway, even on the same base system and with the same GTK applications.

My guess is that the number 4083 is 4096 minus the size of the DBus header or something. There appears to be a GNOME-specific limit at work here. The other DEs can handle much larger outputs without any problems.