This is not something that we (Sigil) can fix. It is an inherent Qt / Windows bug. To make it worse, we can not move to the fixed version: Qt 5.12.0 as it has other bugs which break Sigil. We have aready reported two "fixes" to Qt recent broken patches to them. So we are between a rock and a hard place here. The original bug you found was reported in 2012 and basically nothing was done for 6 years!
It is important to note, as is documented in that bug report, the problem occurs when there is another app or service open that has control or is monitoring the clipboard. The list of things that do that us quite long, Dropbox, Virtual Machines, QtCreator itself, other editors, etc, etc. So restarting just temporarily seems to fix this but given the potential clash, it will reoccur.
Sorry, I do not think we can work around this bug from our end, so the only way for us to fix it would be to build, release, and maintain our own Qt version which is a huge amount of work.
Let's hope Qt rapidlyadopts the two fixes for their recent broken patches that we need in Qt 5.12.2 and then we can move to that release.
KevinH
Quote:
Originally Posted by Tex2002ans
Platform: Windows 10 1809 (believe this is a Windows-only bug)
Sigil Version: 0.9.10
Seems like a Qt bug, might be related to this bug (supposedly fixed in Qt 5.12.0?):
https://bugreports.qt.io/browse/QTBUG-27097
I did a search for "OleSetClipboard: Failed to set mime data", and not many results pop up in Google (~130).
Steps to Reproduce
I don't have a reliable test case, but I was copying/pasting between Google Docs (Chrome) + Microsoft Word 2016 + and Sigil.
Every so often, pressing Ctrl+C in Sigil would fail to copy, and this error would occur:
Code:
Error info: Critical: OleSetClipboard: Failed to set mime data (text/plain, text/html, application/vnd.oasis.opendocument.text) on clipboard: COM error 0xffffffff80070008 (Unknown error 0x0ffffffff80070008) (The parameter is incorrect.)
Sigil version: 0.9.10
Runtime Qt: 5.6.2
Compiled Qt: 5.6.2
Platform: Windows SysInfo ID 192
Every time I would press Ctrl+C, the error would pop up, and nothing would be copied to the clipboard.
If I closed Sigil and reopened, I was able to copy/paste fine.
After the error occurred, if I went to something like Notepad++ and copied plain text... it seems like I could sometimes get Sigil working again. But once it got into this funk, restarting Sigil was pretty much the only reliable way to clear it out.
|