News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Copy & Paste isn't working?

Started by NerdIII, December 09, 2010, 08:17:35 AM

Previous topic - Next topic

CronosTs

Hi How are you? So I also have this problem, I honestly do not know what to do,

Usage: Codeblocks 10:05
The Arc linux


I look Responder

schizofrenikh

#16
I confirm this bug on Debian amd64 testing 15 of may 2011. This is occurring with both 10.05 form official repositories and the one from apt.jenslody.de.
Maybe its connected with some other library rather than codeblocks itself?

I encountered the problem after one of recent updates I made. I attach my apt log. Maybe it will be useful somehow.

Jenna

Quote from: ultimA on April 07, 2011, 07:51:03 AM
Now, I am NOT suggesting increasing the loop count. But rather, plz someone figure out what the real problem is.

I think I found the cause, but it's a wxWidgets bug and I'm not sure if we can find a really reliable workaround inside C::B.
I just opened a ticket on wxWidgets.org: http://trac.wxwidgets.org/ticket/13245.

Let's see what happens.

killerbot

Quote from: ollydbg on April 07, 2011, 08:19:14 AM
using the blame function of SVN, then found it was change in:

killerbot  2008-8-16 2:15:17             
* copy/cut-paste fixes in linux
* copy/move fixes on linux when drag and drop of selected text with the mouse


this solution back then (which did solve the issue then as far as I can recall) was handed over by Eranif (if I remember well), the guy who develops CodeLite.

I am not up to speed with the current issue, is it something recently new, has it to do with the fix from 2008 or got that fix reverted in the meantime due to other updates ? Anyone with the full picture ?

Jenna

Quote from: killerbot on May 23, 2011, 11:32:15 PM
Quote from: ollydbg on April 07, 2011, 08:19:14 AM
using the blame function of SVN, then found it was change in:

killerbot  2008-8-16 2:15:17             
* copy/cut-paste fixes in linux
* copy/move fixes on linux when drag and drop of selected text with the mouse


this solution back then (which did solve the issue then as far as I can recall) was handed over by Eranif (if I remember well), the guy who develops CodeLite.

I am not up to speed with the current issue, is it something recently new, has it to do with the fix from 2008 or got that fix reverted in the meantime due to other updates ? Anyone with the full picture ?
No, it's not reverted and the bug seems to occur only with some window-managers (on gnome 3 I never saw it, but on xfce it often happens).
Unfortunately it is not really fixed by my patch for wxWidgets (even if the code is wrong without it anyway).
On my test-xfce (without eranif's patch/hack) it happens only every 20 or 30 times at the moment (not every second as before), but it should work reliable.


Jenna

The wxWidgets changes I posted do definitely not fix the issue.

I attach a patch that hopefully is a better workaround than the hack we have in trunk at the moment.

I also build a test-version for debian/ubuntu and added it to my repo.

If you want to use apt (or dselect, synaptic or whatever) you need to add the following entries to /etc/apt/sources.list :
deb http://apt.jenslody.de/ any test
deb-src http://apt.jenslody.de/ any test

and remove entries for the normal nightlies, debugger branch or release.

Alternatively you can download the deb's directly from http://apt.jenslody.de/pool/test/c/codeblocks/ .

schizofrenikh

#21
Big THANKS for taking care of this bug.
It's really annoying and I though it was forgotten.

1. I confirm the bug is not fixed in the version provided by jens. It's still present on my up to date debian wheezy installation and build 7157 from jens test repository. It's even worse now. When checking for presence of this bug I do a lot of copy/paste. Usually the data is pasted correctly, sometimes it is not pasted(one in 3 to 5 tries), but on rare occasions(but enough often to reproduce the behavior in less than a minute, ~ones in 50 tries) the whole application crashes and gives me an option to send some crash log(sometimes it doesn't, it just disappears). I sent the log twice.
2. I confirm using xfce4. Moreover after checking the apt-get log i found that quite some packages for both gtk and xfce4 were updated. Especially xfce looks much different than previous version. The problem is with both stable and testing builds of C::B and I think the stable one worked well before the updates.

EDIT: added info about crashes

Jenna

Quote from: schizofrenikh on May 25, 2011, 01:10:36 PM
1. I confirm the bug is not fixed in the version provided by jens. It's still present on my up to date debian wheezy installation and build 7157 from jens test repository.
Which output do you get in C::B's log, if you copy some text to the clipboard ?

schizofrenikh

#23
here is the log and crash report.
I was using C::B with xfce.
The crash happened on copy/paste tries.

BuBuaBu

I made some research on google, and find some interesting talk :

https://bbs.archlinux.org/viewtopic.php?id=113100
https://bugs.launchpad.net/inkscape/+bug/418242

So, according to these threads, the bug is cause by some app, like clipman and xfce4-settings-helper on XFCE
That could explain why we havn't it on gnome desktop


schizofrenikh

The problem just vanished.
I checked the log and found updates:
xfce4-settings:amd64 (4.8.1-4, 4.8.2-1)
xfce4-session:amd64 (4.8.1-2, 4.8.1-3)
among many others but these are the most suspicious in the light of what BuBuaBu posted.

The tested version was 7157 from jens repos. I get a message that 0 retries were needed in Code::Blocks tab under logs&others I will check newer build later. I work both with clipboard helper on and off.

Thank you everybody for your help. I hope this problem won't come back again.

BuBuaBu

Indeed, new xfce-settings version has been released !
in the change log :
- Start using the gsd clipboard manager again (bug #7588)

I read different bug in xfce bugzilla, but nothing like ours.

I check wxscintilla, wxGTK and xfce source code, but can't find the reason.

Hope this will not happen again.


oBFusCATed

I've bumped in this issue while debugging this https://sourceforge.net/p/codeblocks/tickets/524/
Which is the same as this one http://forums.next.codeblocks.org/index.php/topic,22033.0.html
And it is pretty easy to reproduce with the ubuntu 17.04 release.

After some digging I've reverted most patches related to the original issue described in the topic and it seems everything works correctly (after a little addition to ClaimSelection to not use the primary clipboard in wx2.8).

The changes could be found in the experiments/copy_paste branch in my github repo: https://github.com/obfuscated/codeblocks_sf/tree/experiments/copy_paste
I'll be happy if more people test this, before I push it to the svn trunk.

I've tested this on ubuntu 17.04, gentoo+enlightenment (wx2.8 and wx3.0). Tomorrow I'll test centos6+wx28. So testing anything that is different from these combinations will be very welcome.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]