<p>(Thanks for all your replies to my issues <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=811085" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elextr">@elextr</a> - I know I've been posting a lot and fixing nothing myself, but I have too many backlogged commitments right now to start making pull requests.)</p>
<p>This patch resolves the problem, simply by matching the spawn API line limit to the messaging window limit...</p>
<pre><code>diff --git a/src/spawn.c b/src/spawn.c
index 1560d71a..5fdea3b5 100644
--- a/src/spawn.c
+++ b/src/spawn.c
@@ -1219,7 +1219,7 @@ gboolean spawn_with_callbacks(const gchar *working_directory, const gchar *comma
                                {
                                        sc->cb.read = stdout_cb;
                                        sc->max_length = stdout_max_length ? stdout_max_length :
-                                               line_buffered ? 24576 : DEFAULT_IO_LENGTH;
+                                               line_buffered ? 1024 : DEFAULT_IO_LENGTH;
                                }
                                else
                                {
</code></pre>
<p>I have tested.</p>
<p>I don't see the patch as causing harm, but I haven't done a full review of every use of the spawn API to see what they are doing with their line output.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2247?email_source=notifications&email_token=AAIOWJ64OL57I47UQARPVILQI7KQNA5CNFSM4IKC6NS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6L4OCI#issuecomment-530040585">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZ4W7SJA7K2FC4MXBLQI7KQNANCNFSM4IKC6NSQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3E35IZGL4AZWRMMBDQI7KQNA5CNFSM4IKC6NS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6L4OCI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2247?email_source=notifications\u0026email_token=AAIOWJ64OL57I47UQARPVILQI7KQNA5CNFSM4IKC6NS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6L4OCI#issuecomment-530040585",
"url": "https://github.com/geany/geany/issues/2247?email_source=notifications\u0026email_token=AAIOWJ64OL57I47UQARPVILQI7KQNA5CNFSM4IKC6NS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6L4OCI#issuecomment-530040585",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>