New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird copy and paste bug involving multiple instances of Geany #2503
Comments
It works fine here with Geany 1.37 (master) on Ubuntu 20.04 in Gnome/X11 as well as Geany 1.36 on Windows 7. Perhaps it's a bug in your unspecified version of Geany or OS. |
Sorry, I should have specified those things, mind fart on my part.
If it's not reproducible I might have a closer look myself. |
WFM, Linux Mint (Ubuntu 18.04) Cinnamon Geany 1.37 (git >= 82590af), en_AU.UTF-8 GTK 3.22.30, GLib 2.56.4 |
@chrisgraham are you using Wayland do you know? |
No I'm not. I wonder if it is related to https://bugs.gentoo.org/189230 (which is https://sourceforge.net/p/scintilla/bugs/626/). Edit: I can actually also reproduce with just one instance. Copy something, close it, open it, and paste fails (but paste works in anything else). |
Might be a GTK 2 thing, @chrisgraham can you build a GTK 3 version to try? |
Noted. I can say with my debugging so far that EDIT interesting, seems to be reading invalid memory if I try and then call
EDIT: It's not invalid memory, just gdb cannot get at MMAPed memory (I think). |
I really tried hard to debug this, and I'm completely stuck. I can clarify the bug. It's definitely at least partly a Scintilla issue, not specific to Geany. I can reproduce it in MySQL Workbench (which I've most definitely not compiled myself). GTK3 vs GTK2 is not an issue (of note I was on GTK2 as the And it's not directly an issue with pasting from a closed program. It's an issue of pasting via the old-school X11 clipboard, which is invoked if the program has been closed. If I try and copy and paste in from NEdit (old X11 text editor) it won't paste even when NEdit is still running. EDIT: Actually NEdit is a red herring. The issue there is it doesn't save to the clipboard with a utf-8 target, and Scintilla/GTK both assumes utf-8. It's only with the Scintilla editing area. Pasting into say 'find in files' works just fine. I debugged this all the way down to the call to My best guess is something incorrect is being passed down from Scintilla via GTK to I couldn't work out any way to set up verbose Xorg logging to see if it would give any errors. I am on a 3-monitor system.
I probably spent way more time than this bug is worth, but I got obsessive :S. |
Thanks very much for trying anyway, without being able to reproduce it I'm not sure what else we can do right now. |
I don't know if it is relevant, but my logged in X11 session is vt2, and the gdm login screen is on vt1. i.e. I can ctrl+alt+f1 and it will go to the login screen, and it will then click back to vt2 after re-logging in. |
Fixed upstream https://sourceforge.net/p/scintilla/bugs/2175/ :) |
If I open a second instance of Geany, copy something to the clipboard, close that instance, and then try and paste into that second instance, nothing happens. This is using the drop-down menu, the context menu, and ctrl+v.
However, I can then paste into other applications and it works fine.
So somehow there is some issue with Geany accessing clipboard data from a closed version of itself that other applications don't suffer.
The text was updated successfully, but these errors were encountered: