[Github-comments] [geany/geany] Geany crashes when I press "Ctrl + Shift + V" (#2813)

Enrico Tröger notifications at xxxxx
Sun Jan 9 11:48:42 UTC 2022


>     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)

JFTR, I was the one using Arch but recently switched to Debian :D.

More important is, I can reliably reproduce the crash. @intact gave the relevant hint in https://github.com/geany/geany/issues/2813#issuecomment-957352017: 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 `Ctrl-Shift-v` it works, without initially switching to the tab, it crashes.

So, even if it might be a bug rather in libvte, we can easily workaround this by manually realizing the VTE widget. #3091 attempts to do this.
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.

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.

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.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2813#issuecomment-1008282517
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/2813/1008282517 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220109/f5258810/attachment-0001.htm>


More information about the Github-comments mailing list