<p></p>
<blockquote>
<pre><code>1. the problem only occurs with some newer GTK/VTE versions, and it appears mostly on Manjaro, no Geany devs can replicate it on their systems AFAIK (one uses Arch, but none use Manjaro)
</code></pre>
</blockquote>
<p dir="auto">JFTR, I was the one using Arch but recently switched to Debian :D.</p>
<p dir="auto">More important is, I can reliably reproduce the crash. <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/intact/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/intact">@intact</a> gave the relevant hint in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="898953619" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2813" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2813/hovercard?comment_id=957352017&comment_type=issue_comment" href="https://github.com/geany/geany/issues/2813#issuecomment-957352017">#2813 (comment)</a>: it happens when the VTE has never been shown before. If you manually switch to the VTE tab and back to another, then paste text using <code>Ctrl-Shift-v</code> it works, without initially switching to the tab, it crashes.</p>
<p dir="auto">So, even if it might be a bug rather in libvte, we can easily workaround this by manually realizing the VTE widget. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1097172525" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/3091" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/3091/hovercard" href="https://github.com/geany/geany/pull/3091">#3091</a> attempts to do this.<br>
I'm not sure but I think this should not have any bad consequences or side effects. With this change, I can no longer reproduce the crash.</p>
<p dir="auto">Another approach could be to switch to the VTE tab when text is pasted, this could be even extended to all actions from the popup menu handler to ensure the VTE is visible if any such action is triggered. However, this would be a bigger change to the user experience and might be unexpected.</p>
<p dir="auto">I suggest to rather manually realize the widget so it is mapped and fully initialized to fix/workaround the crash and not change Geany's behavior in this regard.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2813#issuecomment-1008282517">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2WSCTJOADI7Q7Y3B3UVFYZVANCNFSM45LNFSQA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ7FA347XSWSXTXO5R3UVFYZVA5CNFSM45LNFSQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHQMSXFI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/issues/2813/1008282517</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2813#issuecomment-1008282517",
"url": "https://github.com/geany/geany/issues/2813#issuecomment-1008282517",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>