[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #26 from Michael Weghorn  ---
(In reply to Michael Weghorn from comment #25)
> The Qt version differs. AFAIU, in particular KDE people backported quite
> some things to 5.15, so it's well possible some relevant fix is in the newer
> Qt or KF (KDE Frameworks) version rather than LO.
To illustrate that a bit more, as that currently seems to be the most likely
explanation to me: I kept trying Plasma Wayland on Debian testing every few
months for probably about two years and always switched back to X11 until a few
months ago, when I finally considered it quite ready for my regular daily use.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #25 from Michael Weghorn  ---
(In reply to Stéphane Guillou (stragu) from comment #24)
> (In reply to Michael Weghorn from comment #23)
> > Versions of potentially relevant packages (might e.g. also be related to Qt
> > version etc.):
> > 
> > * firefox-esr115.9.1esr-1~deb12u1
> > * libqt5core5a:amd64 5.15.10+dfsg-7
> > * libqt5waylandclient5:amd64 5.15.10-2+b1
> > * kwin-wayland   4:5.27.10-1
> I've got:
> * firefox (snap) 125.0.2-1   (4173)
> * libqt5core5a   5.15.3+dfsg-2ubuntu0.2
> * libqt5waylandclient5   5.15.3-1
> * kwin-wayland   not installed
> 
> Something obvious here?

The Qt version differs. AFAIU, in particular KDE people backported quite some
things to 5.15, so it's well possible some relevant fix is in the newer Qt or
KF (KDE Frameworks) version rather than LO.

> I just tested on KDE Neon Testing, and could reproduce in 24.2.2 but not
> anymore in today's daily build, so that matches bug 156562.

That would also make sense if the fix was in Qt/KF, as that has newer versions
of those.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #24 from Stéphane Guillou (stragu) 
 ---
(In reply to Michael Weghorn from comment #23)
> @Stéphane:
> I've now submitted 2 more related changes to master to address potential
> races Michael S. noticed in the review of the 24-2 backports of the previous
> ones.
The current daily build doesn't have those yet, so I can still reproduce.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f4ef5435df5560e6b6b061ce4053c71e2819bf51
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland)

Will report back at the next build.

(In reply to Michael Weghorn from comment #21)
> Do you notice any relevant difference in what we're doing (e.g. different
> browser, different kind of text copied,...)?
> 
> Versions of potentially relevant packages (might e.g. also be related to Qt
> version etc.):
> 
> * firefox-esr115.9.1esr-1~deb12u1
> * libqt5core5a:amd64 5.15.10+dfsg-7
> * libqt5waylandclient5:amd64 5.15.10-2+b1
> * kwin-wayland   4:5.27.10-1
I've got:
* firefox (snap) 125.0.2-1   (4173)
* libqt5core5a   5.15.3+dfsg-2ubuntu0.2
* libqt5waylandclient5   5.15.3-1
* kwin-wayland   not installed

Something obvious here?

I just tested on KDE Neon Testing, and could reproduce in 24.2.2 but not
anymore in today's daily build, so that matches bug 156562.

--- Side note: ---

Maybe unrelated, but note that the copy button in LO's About dialog also
behaves weirdly for me in kf5 (cairo+wayland): pasting works inside LO, but
can't paste it outside. I can however: click the button, paste on canvas, then
copy again from canvas, and then paste outside LO.
This is not reproduced on KDE Neon Testing at all.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #23 from Michael Weghorn  ---
@Stéphane:
I've now submitted 2 more related changes to master to address potential races
Michael S. noticed in the review of the 24-2 backports of the previous ones.

I don't really expect they should be causing the issue you still describe, but
maybe it's still worth retesting.

Commits:

commit 893deef4f77f19d7b2d31df09260a34affe1
Author: Michael Weghorn
Date:   Fri Apr 26 14:39:14 2024 +0200

qt: Avoid race on QtTransferable member

commit 621cfc0e4120ab2b381b54268fe39bd19257df9b
Author: Michael Weghorn
Date:   Fri Apr 26 15:04:24 2024 +0200

qt: Guard clipboard mime data with SolarMutex

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #22 from Michael Weghorn  ---
@Stéphane: 
Note also that LO does not create a deep copy of the clipboard when you hit
Ctrl+Shift+V, but pastes whatever is in the clipboard when you confirm the
dialog (same with gtk3), so if for some reason the clipboard content changes or
is cleared, that might be related.

Does copying somewhere else, e.g. to a text editor work after it failed in LO?

What's the output of `wl-paste --list` and `wl-paste --type=text/plain` at the
following 2 points in time?

1) after you press Ctrl+Shift+V (i.e. before pasting)
2) after selecting to paste as plain text and seeing the error message in LO

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #21 from Michael Weghorn  ---
(In reply to Stéphane Guillou (stragu) from comment #19)
> Actually, I can still reproduce in the latest daily build:
> 
> Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: bdf3b5ce49b0e4ee1b4525d344cfb037ef473059
> CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland)
> Locale: en-AU (en_AU.UTF-8); UI: en-US
> 
> On Ubuntu 22.04 + GNOME 42.9. As described in comment 15. Am I missing
> something?

It works for me with the exact same daily build in a KDE Plasma Wayland session
on Debian testing, sample screencast copying from Firefox: attachment 193707.

Do you notice any relevant difference in what we're doing (e.g. different
browser, different kind of text copied,...)?

Versions of potentially relevant packages (might e.g. also be related to Qt
version etc.):

* firefox-esr115.9.1esr-1~deb12u1
* libqt5core5a:amd64 5.15.10+dfsg-7
* libqt5waylandclient5:amd64 5.15.10-2+b1
* kwin-wayland   4:5.27.10-1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #20 from Michael Weghorn  ---
Created attachment 193707
  --> https://bugs.documentfoundation.org/attachment.cgi?id=193707=edit
Screencast of it working on Debian testing (KDE Plasma Wayland)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #19 from Stéphane Guillou (stragu) 
 ---
(In reply to Michael Weghorn from comment #16)
> It works fine for me with either a local development build (git master) or a
> current TDF daily build.
Actually, I can still reproduce in the latest daily build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: bdf3b5ce49b0e4ee1b4525d344cfb037ef473059
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-AU (en_AU.UTF-8); UI: en-US

On Ubuntu 22.04 + GNOME 42.9. As described in comment 15. Am I missing
something?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #18 from Stéphane Guillou (stragu) 
 ---
(In reply to Michael Weghorn from comment #17)
> It does. 
> Backports for 24-2 now pending in Gerrit
Fabulous, thank you for the quick response, Michael! :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

Michael Weghorn  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #17 from Michael Weghorn  ---
(In reply to Michael Weghorn from comment #16)
> I'm doing a local 24-2 build to see whether cherry-picking the tdf#156562
> commits makes this work there as well.

It does.

-> closing as a duplicate of tdf#156562

Backports for 24-2 now pending in Gerrit:
https://gerrit.libreoffice.org/c/core/+/166140
https://gerrit.libreoffice.org/c/core/+/166141

*** This bug has been marked as a duplicate of bug 156562 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

--- Comment #16 from Michael Weghorn  ---
(In reply to Stéphane Guillou (stragu) from comment #15)
> Copying text from Bugzilla, then pasting in Writer using the Ctrl + Shift +
> V dialog fails (tried both unformatted text and HTML).
> After first try, it fails to open the Paste Special dialog a second time
> (until a new copy).
> 
> (...)
> 
> Michael, wondering if you have an idea about this one, following on your fix
> for bug 158947?

It works fine for me with either a local development build (git master) or a
current TDF daily build.

But I can still reproduce the issue with 24.2.2.

So apparently something else is needed besides the fix for tdf#158947.
The fixes for tdf#156562 come to mind, and bibisecting actually points to

commit 1db5b87fe69c2375f1d66974dafcd563303c76db
Author: Michael Weghorn
Date:   Tue Feb 13 13:23:17 2024 +0100

tdf#156562 qt: Sync with system clipboard content if necessary

as the commit from where on this starts.

I'm doing a local 24-2 build to see whether cherry-picking the tdf#156562
commits makes this work there as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 157373] Using the Paste Special dialog ends in "Requested clipboard format is not available" error; can't reopen dialog after

2024-04-15 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157373

Stéphane Guillou (stragu)  changed:

   What|Removed |Added

 Blocks||102495, 100156
Version|7.5.6.2 release |7.0.0.3 release
Summary|Using the Paste Special |Using the Paste Special
   |dialog ends in "Requested   |dialog ends in "Requested
   |clipboard format is not |clipboard format is not
   |available" error|available" error; can't
   ||reopen dialog after
 CC||m.wegh...@posteo.de

--- Comment #15 from Stéphane Guillou (stragu) 
 ---
Reproduced with:

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

As well as 7.0.0.3.

Copying text from Bugzilla, then pasting in Writer using the Ctrl + Shift + V
dialog fails (tried both unformatted text and HTML).
After first try, it fails to open the Paste Special dialog a second time (until
a new copy).

Not reproduced with gtk3 VCL plugin nor with kf5 (cairo+xcb). (Which is why I'm
surprised by comment 8 - deppy, maybe you can test once more by launching LO
like in comment 14?)

Michael, wondering if you have an idea about this one, following on your fix
for bug 158947?


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=100156
[Bug 100156] [META] Wayland-related bugs
https://bugs.documentfoundation.org/show_bug.cgi?id=102495
[Bug 102495] [META] KDE (kf5) VCL backend bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.