bugGNU TeXmacs - Bugs: bug #57684, Copy/paste works once every two...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57684: Copy/paste works once every two attempts

Submitter:  Jeroen Wouters <jeronim>
Submitted:  Tue 28 Jan 2020 11:42:13 AM UTC
   
 
Category:  User Interface Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Jump to the original submission

Sat 06 Mar 2021 04:08:46 PM UTC, comment #14: 

OK, since there are no further complaints, I will close this bug.

Joris van der Hoeven <vdhoeven>
Group administrator
Tue 24 Nov 2020 11:31:59 PM UTC, comment #13: 

I can't reproduce this bug anymore in Fedora 33. Neither in With, nor Wayland.

Jeroen Wouters <jeronim>
Group Member
Fri 30 Oct 2020 11:38:21 PM UTC, comment #12: 

The bugzilla link also suggests to try

XDG_SESSION_TYPE=x11 texmacs

Does this work under X11?

I can reproduce the bug on a virtual machine with Fedora and
both this trick and the one with QT_QPA_PLATFORM work.

I will set both variables on startup.
A cleaner solution would be welcome.

Joris van der Hoeven <vdhoeven>
Group administrator
Wed 08 Jul 2020 04:27:23 PM UTC, comment #11: 

I'm on X11, and I am affected by this issue. QT_QPA_PLATFORM=xcb doesn't help for me.

Andreas Kloeckner <inducer>
Tue 07 Jul 2020 04:57:01 PM UTC, comment #10: 

This issue seems to be related to Wayland. If I run texmacs as

QT_QPA_PLATFORM=xcb texmacs

everything works: copy-paste in TeXmacs and to and from other prgrams.

See also here: https://bugzilla.redhat.com/show_bug.cgi?id=1769060

I came across this fix while researching another issue in recent versions: menus are opened in the wrong location, together with an error message

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()


Let me know if I should file a separate bug for that.

Jeroen Wouters <jeronim>
Group Member
Mon 11 May 2020 08:04:32 AM UTC, comment #9: 

I'm still getting the bug with TeXmacs 1.99.12 and Ubuntu 20.04 LTS. Gnome version is 3.36.1.

Denis Rosset <denisrosset>
Tue 05 May 2020 01:19:32 PM UTC, comment #8: 

After upgrading to Fedora 32 copy-paste now works inside an unpatched TeXmacs 1.99.12 from the Fedora repos. Copying to or from TeXmacs to other programs doesn't work, though.

Copy-paste seems to be fully functional in a virtual machine running Debian unstable (also to and from other programs).

Jeroen Wouters <jeronim>
Group Member
Tue 14 Apr 2020 08:14:33 AM UTC, comment #7: 

Are there any more progress on understanding this bug? I do not have a Linux machine to test myself at the moment. But I can help fix it, if you want.

Massimiliano Gubinelli <mgubi>
Group administrator
Thu 27 Feb 2020 09:57:04 AM UTC, comment #6: 

comment #5:

> Gnome 3.34.3 also.


I have tested on a Debian testing VM and I get the same results as with Fedora. The builds from texmacs.org and from git sources have faulty copy-paste. When applying the attached qt.diff patch, copy-paste works within texmacs, but not from texmacs to other programs.

(file #48508)

Jeroen Wouters <jeronim>
Group Member
Wed 26 Feb 2020 04:15:40 PM UTC, comment #5: 

Gnome 3.34.3 also.

Andreas Kloeckner <inducer>
Wed 26 Feb 2020 03:46:04 PM UTC, comment #4: 

comment #3:

> Thanks for continuing to investigate. However, I tried that, it didn't help for me. (unless I somehow did it wrong)


What desktop environment are you using? I tried this on GNOME 3.34.4

Jeroen Wouters <jeronim>
Group Member
Sat 22 Feb 2020 12:56:23 AM UTC, comment #3: 

Thanks for continuing to investigate. However, I tried that, it didn't help for me. (unless I somehow did it wrong)

Andreas Kloeckner <inducer>
Fri 21 Feb 2020 09:34:04 PM UTC, comment #2: 

I'd like to add some more observations.

The error message "Cannot set X11 selection owner" seems to originate from line 353 in qt_gui.cpp:

cb->setMimeData (md, mode);


Commenting out lines 345 to 350 in qt_gui.cpp somehow seems to fix copy-paste within texmacs, but breaks copy-paste from texmacs to other programmes.

Jeroen Wouters <jeronim>
Group Member
Thu 20 Feb 2020 04:48:16 PM UTC, comment #1: 

I'm also affected by this. This is with svn r12695 built from source against Debian's Qt 5.12.5+dfsg-8. It's super annoying.

Andreas Kloeckner <inducer>
Tue 28 Jan 2020 11:42:13 AM UTC, original submission:  

I am using 1.99.12 on Fedora 31 from the rpm packages on texmacs.org

Whenever using copy/paste, the contents are only copied after two attempts. During the first attempt, the console displays the following error:

Clipboard::setData: Cannot set X11 selection owner for CLIPBOARD

Jeroen Wouters <jeronim>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #48508:  qt.diff added by jeronim (919B - text/x-patch - commenting out setText())

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Updated the item)
  • -email is unavailable- added by denisrosset (Posted a comment)
  • -email is unavailable- added by mgubi (Posted a comment)
  • -email is unavailable- added by inducer (Posted a comment)
  • -email is unavailable- added by inducer (Also affected)
  • -email is unavailable- added by jeronim (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-06 vdhoeven StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2020-10-30 vdhoeven StatusNone Ready For Test
        Assigned toNone vdhoeven
    2020-10-23 vdhoeven Item GroupNone Error
    2020-02-27 jeronim Attached File- Added qt.diff, #48508
    2020-02-20 inducer Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code