Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: NotATether on December 06, 2020, 06:45:48 AM



Title: [Linux] Long-standing Qt bug prevents copying from Bitcoin core and Electrum
Post by: NotATether on December 06, 2020, 06:45:48 AM
Copying to clipboard eventually does not work if you leave an application made with Qt open for a certain period of time. I noticed this today when I tried to copy addresses from Bitcoin Core, which I've left open for several weeks. This is 100% not a Bitcoin Core or Electrum problem, but it's particularly annoying for those because it stops me form copying addresses. It starts working again if you restart the program in question.

It has a bug report open here https://bugreports.qt.io/browse/QTCREATORBUG-18438 but activity seems to be dead on there.

I can reproduce this issue with Qt 5.9.8 on Linux. It doesn't matter which desktop environment I'm using, I tested with KDE, Fluxbox and LXDE.

Is there any workaround for this bug short of restarting the program?


Title: Re: [Linux] Long-standing Qt bug prevents copying from Bitcoin core and Electrum
Post by: LoyceV on December 06, 2020, 10:39:04 AM
Thanks for posting this, I noticed this too last week, but didn't know what caused it. It made me restart my desktop environment, which solved the problem.


Title: Re: [Linux] Long-standing Qt bug prevents copying from Bitcoin core and Electrum
Post by: NotATether on December 06, 2020, 10:52:16 AM
Thanks for posting this, I noticed this too last week, but didn't know what caused it. It made me restart my desktop environment, which solved the problem.

AFAIK, restarting the whole desktop environment isn't necessary, only the faulty program. For example when Electrum bugged on my LXDE desktop, I only had to close it and relaunch it again. It must be something about the QClipboard (https://doc.qt.io/qt-5/qclipboard.html) class that they use, though this is a wild guess, I have not ran the programs in question through a debugger.


Title: Re: [Linux] Long-standing Qt bug prevents copying from Bitcoin core and Electrum
Post by: NotATether on April 09, 2021, 12:41:49 PM
Bump. This is irritating me to the point that I'm contemplating opening a formal bug report.


Title: Re: [Linux] Long-standing Qt bug prevents copying from Bitcoin core and Electrum
Post by: seoincorporation on April 12, 2021, 03:30:19 PM
Looks like the right place to report that bug and let them fixed it's in the next link: https://codereview.qt-project.org/

The weird part is that a Copy paste bug already has been reported and fixed as you can see in the next link.

https://codereview.qt-project.org/c/qt/qtbase/+/45534

That community is really active and they should be able to help us with this, I hope it gets fixed soon because a bug like this is really annoying.