Skip to content

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

@hluk

Description

@hluk

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions