hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.26k stars 430 forks source link

Global object gets corrupted after some time in Display command runner process #2542

Closed hluk closed 7 months ago

hluk commented 8 months ago

Can be reproduced with the following code after browsing over ~100 items in the item list:

[Command]
Command="
    copyq:
    if (!global.plugins)
      popup('Global object is corrupted')"
Display=true
Icon=\xf15b
Name=TEST GLOBAL

Same situation with the long running command that checks "filter" command to enable/disable menu/toolbar actions:

[Command]
Command="
    __test__"
Icon=\xf15b
InMenu=true
MatchCommand="
    copyq:
    if (!global.mimeText)
      popup('Global object is corrupted')"
Name=TEST GLOBAL

Version info (both Qt 5 and Qt 6 are affected):

❯ qt5/copyq version
CopyQ Clipboard Manager 7.1.0-25-g5335fc65
Qt: 5.15.11
KNotifications: 5.111.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Fedora Linux 39 (Workstation Edition)

❯ qt6/copyq version
CopyQ Clipboard Manager 7.1.0-23-gafab7c8e
Qt: 6.5.2
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Fedora Linux 39 (Workstation Edition)