Bug 106106 - Unexpected bookmark DdeLink appears after copying text, switching focus to NetBeans and back again
Summary: Unexpected bookmark DdeLink appears after copying text, switching focus to Ne...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 137534 (view as bug list)
Depends on:
Blocks: Bookmarks
  Show dependency treegraph
 
Reported: 2017-02-20 14:54 UTC by Dmitry
Modified: 2023-11-30 16:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
if you use VLC to open this, you need to disable 'hardware encoding', or just use another video player (366.85 KB, video/mp4)
2023-11-30 15:28 UTC, J22Gim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2017-02-20 14:54:22 UTC
Really, very strange thing.

Software:
* Debian 8.6;
* MATE 1.8.1 (prev. Gnome 2) desktop;
* NetBeans 8.1.
* UTF-8 system charset.

Now bug.
1) Open Libreoffice Writer and NetBeans
2) Type some text in Writer.
3) Copy text or its part in Writer.
4) Switch to NetBeans, and return back (by ALT+TAB or by MOUSE)
5) Bookmark appears! Looks like "__DdeLink__3155_2031347635".

This bug also appears when I switch between MATE's desktops by "CTRL+ALT+[LEFT|RIGHT]", when NetBeans is on one desktop, Write on another.

Another reproducing:
1) Open Libreoffice Writer and NetBeans
2) Put NetBeans on the desktop #2, open text editor (gedit) on the same desktop and switch to it. Now gedit hide NetBeans.
3) Go back to desktop #1, type some text in Writer.
4) Copy text or its part in Writer.
5) Switch to desktop #2 (on gedit) and return back -- NOTHING.
6) Switch to desktop #2 on gedit, switch to NetBeans (by ALT+TAB or by MOUSE) and return back -- same bug.
7) You can also don't switch to NetBeans exactly, just minimize gedit, NetBeans will become ahead, and bug will appear.

I thought this bug have something common with enabled JVM, but it's disabling did not help.
Sometimes I often switch from Writer to NetBeans, and bookmarks appears and appears. And there is no way to delete them all (it'll be fine to have this feature!).
There are NO hot keys in NetBeans or Writer for "ALT+TAB". System hot key (MATE's) was not changed.
Any other text editor -- gedit, browsers (firefox, chrome), calc, another Writer document does not effect.
I suppose, the reason is that NetBeans and Libreoffice Writer both uses the root of /tmp dir.
Comment 1 Xisco Faulí 2017-02-21 15:40:43 UTC
Yes, Indeed it's a strange thing.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 Dmitry 2017-02-22 14:28:04 UTC
(In reply to Xisco Faulí from comment #1)
> Yes, Indeed it's a strange thing.
> Could you please try to reproduce it with the latest version of LibreOffice
> from https://www.libreoffice.org/download/libreoffice-fresh/ ?
> I have set the bug's status to 'NEEDINFO'. Please change it back to
> 'UNCONFIRMED' if the bug is still present in the latest version.

Updated to v.5.3.0.3 (ID 7074905676c47b82bbcfbea1aeefc84afe1c50e1), Russian language (ru_RU.UTF-8).
Bug still exists.
Comment 3 Dmitry 2017-02-22 14:30:04 UTC
Little addition.
When __DdeLink_... appears I can press CTRL+Z, and it will disappear.
Comment 4 Buovjaga 2017-03-04 16:40:55 UTC
Holy guacamole, you are right! I tried with Ubuntu 16.10 and Netbeans 8.1.
Having the Navigator visible in the sidebar one will immediately see the bookmark.

Version: 5.4.0.0.alpha0+
Build ID: a296a69c984b17cfbcd249cf6bdc191d08dff2a6
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF-dbg, Branch:master, Time: 2017-02-06_01:05:34
Locale: en-US (en_US.UTF-8); Calc: group
Comment 5 QA Administrators 2018-07-27 02:41:58 UTC Comment hidden (obsolete)
Comment 6 Dmitry 2018-08-15 17:51:16 UTC
Libreoffice 6.0.6.2
ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
Debian 9.5.
Linux 4.9.
gtk2.
Locale: ru_RU.UTF-8.

Confirm, that bug still exists.
Comment 7 QA Administrators 2021-06-19 03:54:47 UTC Comment hidden (obsolete)
Comment 8 Buovjaga 2021-07-29 12:37:14 UTC
*** Bug 137534 has been marked as a duplicate of this bug. ***
Comment 9 David 2022-01-17 19:02:05 UTC
I have experienced this issue when using Qlipper.
Comment 10 J22Gim 2023-11-30 15:27:43 UTC
I have something similar, also with qlipper. I think I filled a bug but I can't find it. I found a straightforward way to reproduce the magic appearance of a DdeLink.

With qilipper running:
1. Open a brand new Writer file
2. Write anything (eg 'AAA')
3. Copy AAA to the clipboard
4. Press ENTER, and the phantom link appears

Without qlipper:
Everything works as expected.

Please see the attached video file with a screencast (if you use VLC you will see an empty screen, you have to use another video player or disable 'Hardware encoding' on VLC)
Comment 11 J22Gim 2023-11-30 15:28:32 UTC
Created attachment 191144 [details]
if you use VLC to open this, you need to disable 'hardware encoding', or just use another video player
Comment 12 Buovjaga 2023-11-30 16:29:22 UTC
(In reply to J22Gim from comment #10)
> I have something similar, also with qlipper. I think I filled a bug but I
> can't find it. I found a straightforward way to reproduce the magic
> appearance of a DdeLink.
> 
> With qilipper running:
> 1. Open a brand new Writer file
> 2. Write anything (eg 'AAA')
> 3. Copy AAA to the clipboard
> 4. Press ENTER, and the phantom link appears
> 
> Without qlipper:
> Everything works as expected.
> 
> Please see the attached video file with a screencast (if you use VLC you
> will see an empty screen, you have to use another video player or disable
> 'Hardware encoding' on VLC)

Thanks for bringing this up. Mike Kaganski found that NetBeans has a clipboard history & listener: https://github.com/apache/netbeans/blob/348b0cd2951cabc5dcc06e2f5f585a0a1b345fdd/ide/editor/src/org/netbeans/modules/editor/impl/actions/clipboardhistory/ClipboardHistory.java

So it seems to be the same story as qlipper in your bug 151401. Let's close this as well.

Anyone affected can report this to NetBeans: https://github.com/apache/netbeans/issues