hluk / CopyQ

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

CopyQ crashing on KDE wayland and showing notification when selecting text #1887

Open 33Fraise33 opened 2 years ago

33Fraise33 commented 2 years ago

Describe the bug CopyQ gives an error in my system notification when selecting text.

To Reproduce Steps to reproduce the behavior:

  1. Select text just after a reboot

Expected behavior CopyQ works as expected

Screenshots TBA

Version, OS and Environment

CopyQ Clipboard Manager 6.0.1-11-g7a03c3b6
Qt: 5.15.2
KNotifications: 5.90.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Manjaro Linux

Error log in journalctl:

PID: 1820 (copyq)
           UID: 1000 (gianni)
           GID: 1000 (gianni)
        Signal: 11 (SEGV)
     Timestamp: Mon 2022-01-24 18:47:35 CET (7min ago)
  Command Line: /usr/bin/copyq --clipboard-access monitorClipboard
    Executable: /usr/bin/copyq
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (gianni)
       Boot ID: dc36c317986e4ab49e58c9555657e87f
    Machine ID: 43d4c52dd1ce4ffd978c619a4343c768
      Hostname: Fraise-T14
       Storage: /var/lib/systemd/coredump/core.copyq.1000.dc36c317986e4ab49e58c9555657e87f.1820.1643046455000000.zst (present)
     Disk Size: 1.4M
       Message: Process 1820 (copyq) of user 1000 dumped core.

                Module linux-vdso.so.1 with build-id 1c27de4fba5d2610b4cd3d44e154018f7e38a18e
                Module libwebp.so.7 with build-id 0add7a572705244ed810b7e722cce7da0dcfb62c
                Module libwebpdemux.so.2 with build-id 7bc15ac239db643015e169a2c6cc822156eb999a
                Module libwebpmux.so.3 with build-id 4232d5263a45719ba12f58ed7d8cae3a0fc887de
                Module libqwebp.so with build-id 0aa3bb06c8b9370b0f026c56246f8153fdd5be41
                Module libqwbmp.so with build-id 3ca3d2ff12c56b6e0f99311277f983e093f112cf
                Module libtiff.so.5 with build-id e8d89a0fb0847641ddb75c5f03fa89d68155a75d
                Module libqtiff.so with build-id dda51dc7321967c46c7279ad1b5c142093cc71f8
                Module libqsvg.so with build-id 98c7307027e4348d4bd210f0f57634803188f91d
                Module libQt5Pdf.so.5 with build-id 49f559e2bd92d287ff89de57567ad33ea9a59843
                Module libqpdf.so with build-id 90ab3c235820851313b6b662dbda15e8e2b10365
                Module liblcms2.so.2 with build-id 92d69ecb51e7b4dee5a17936b6ac947a2a2042a5
                Module libmng.so.2 with build-id 2de13b8bba73f358ab2e323aa2209c2e2fc886e7
                Module libqmng.so with build-id 13f764a4374591ed00ba81f145d8481ce9d58534
                Module libqjpeg.so with build-id 44a91112646b234ee6ef409f82923b5b84a81b5f
                Module libjasper.so.4 with build-id 062fa02a47172a8bf53b976a67eea42a61f37f0f
                Module libqjp2.so with build-id 7ec36ae483b0b05dd01001ebcf311122418ab32f
                Module libqico.so with build-id 655ef986c638a613fd9f4f935e58eed209833910
                Module libqicns.so with build-id 05cd7e5790337687254a7ca1c23bfe17495068bd
                Module libqgif.so with build-id 340b343d23e1f6c6359ebaff7f793fe1d652d798
                Module kimg_xcf.so with build-id 0cbe2e882a3436129559e2c328774ecdfd5e4901
                Module kimg_tga.so with build-id 65c111094d339d56a3d55109b73370eb624d9c0d
                Module kimg_rgb.so with build-id 48fb36ce3e5d182c39885a899a738cac1b8ddf6b
                Module kimg_ras.so with build-id 4eebe999cbaead7a9c005907bcb52f10ff7e9157
                Module kimg_psd.so with build-id c731345a05015a7db442c987e134baf188e33a57
                Module kimg_pic.so with build-id 45b62e011e4d566ed511476125efcb88836c4873
                Module kimg_pcx.so with build-id b2af032c5351f3336b1544ca28872bb08db592ba
                Module kimg_ora.so with build-id 1010721c697f0bb2873f88d1f226c1f6bbd59680
                Module kimg_kra.so with build-id ddc12f851793c34d603ee394fc810f0c98f64a3f
                Module libmvec.so.1 with build-id 9aa05e22565568b778a97933527b3c64bdb8418b
                Module libx265.so.199 with build-id 22130b9b0d2aa957b148b0fdeb27e3fd04f0fb58
                Module libde265.so.0 with build-id d1ea0fbd83f7dd3dd2b0ce3d356006d305093d7a
                Module libheif.so.1 with build-id 5edeb8cfd3e472f2ead12893189f124bfe2c10a9
                Module kimg_heif.so with build-id c5e59ef98eb3ca9c2e004d2e12c429605ca28631
                Module kimg_hdr.so with build-id f420b8aad0260d6d49f85c389a67a0589385df18
                Module libIlmThread-3_1.so.30 with build-id 7a7f351560123573af9fc37c94f7089df23d56e4
                Module libIex-3_1.so.30 with build-id 1c58fcdc2df582117ed00e5565fbd3c999b1817e
                Module libImath-3_1.so.29 with build-id a6382ff94f639bb105265ceb819bdac92a7a9ae3
                Module libOpenEXR-3_1.so.30 with build-id cf4ea6ee92a2067f6b7cd7d1676512ba9a3d94f5
                Module kimg_exr.so with build-id e3e25598bf407ca5a7bdde9bdd745b171dc33907
                Module kimg_eps.so with build-id a66a3b7849b1c199be4b6ed1b509d8b75489c579
                Module libjpeg.so.8 with build-id 879ca18a2f58c25d77ba881db3a44a5676ef6c7d
                Module libyuv.so with build-id c7a5e1943921367b12460b618d38ce4afd1e6caf
                Module libaom.so.3 with build-id 17c2d78932dffd790b290358a144c2b0ef5ddd17
                Module libSvtAv1Enc.so.0 with build-id 16a86797b9743608665ae8dffaebba7d492f7d05
                Module librav1e.so.0 with build-id 2e9e70e2433e4d2955a870f2de730172729fbe4f
                Module libdav1d.so.5 with build-id 82862181dbe48302fde94240f68e17fb6f9a03c7
                Module libavif.so.13 with build-id cdc4233bc1ff2e9b419e9bf8aaf8b5a94cf0bd87
                Module kimg_avif.so with build-id 912c6efab859000065709113048d182f3cdc2067
                Module kimg_ani.so with build-id 933e82daed1632b2f11ab3ece9a755c2b83d898f
                Module libitemtext.so with build-id db29a61a918e7cf6f8431b1afcfb4fda8b7d389f
                Module libitemtags.so with build-id 965bd788addd0843a2689047b43e86534aa69f85
                Module libitemsync.so with build-id 4ccbd0ac03f8495725521c85eae34697861a23ea
                Module libitempinned.so with build-id eedf670965a394b157e9d1c7c82f26f2e2ceb797
                Module libitemnotes.so with build-id b0c8238a7accf56f5a55d11a99ffbe13da3c0903
                Module libitemimage.so with build-id bbbe97f5ece69d48756964d25f67bbc5ce187b22
                Module libitemfakevim.so with build-id c2e4ae1bc54f276fa9b99da46eac6e6dff84e787
                Module libitemencrypted.so with build-id 1eff3d4d9f59e9196b24f06b0e6bb81e7ba6d4ef
                Module libgmp.so.10 with build-id e58d34ab389d1b649c24195c2d145e3ff2e58290
                Module libhogweed.so.6 with build-id 2d70cff7b1841b4d9ca4e8e7726cd4b944c07fdc
                Module libnettle.so.8 with build-id 9a878e513c02007598fcf1e2e286c2203f13536e
                Module libunistring.so.2 with build-id 015ac6d6bcb60b7d8bea31a80d1941b06e8636ab
                Module libidn2.so.0 with build-id 1ce2b50ad9f9821c2c629b521cf5a3c99593d332
                Module libp11-kit.so.0 with build-id cc372ea3c28c4d3dfc633b4d2e933c8584d2af16
                Module libusbmuxd-2.0.so.6 with build-id fd9f05e7f5b0da4e15972f75b61fd9b4b9f06dbe
                Module libtasn1.so.6 with build-id ee3429ca5e94718aea4fe5249fc859e0cd88e4e9
                Module libgnutls.so.30 with build-id 50f3a52ba3db67b822fd5888790238eb548b64aa
                Module libblkid.so.1 with build-id 057b6bc8eebd42d1f5cafe4f4ac72646aae1f2c5
                Module libQt5QmlModels.so.5 with build-id 0caff8beb5f70b5cc77a2fd8644ef7476de7cf45
                Module libKF5DBusAddons.so.5 with build-id 2d3ca02cc76d878e00280b05ec8728c677dbd6b1
                Module libplist-2.0.so.3 with build-id f16bdd42b3d750ba0a150d286248f5dc50cc76cb
                Module libimobiledevice-1.0.so.6 with build-id bc258677480403cc2df4f0efcfc97e06af826ddc
                Module libudev.so.1 with build-id e7bd18780bd5753c14f8561be78e4e78ae0266ee
                Module libKF5Archive.so.5 with build-id 1edf6dc1ca4d38f0ebf6113fb089778b93085676
                Module libQt5PrintSupport.so.5 with build-id 263ca57e5af79a8e516fe51c4780eac11300d4bc
                Module libKF5GlobalAccel.so.5 with build-id 76523e2497f0431f013016b5230a674a9bb7aece
                Module libmount.so.1 with build-id 39e178b712b6635a8681182f7a9fbb64e6074aee
                Module libacl.so.1 with build-id 35319ea4baa70564deddffb113c0961002bc394c
                Module libKF5AuthCore.so.5 with build-id d6c222c5566f4c7fc50695fdc36143a1b210bac0
                Module libKF5Crash.so.5 with build-id bb5c5cd905cfdd34bd246bed989f3989ec8bde08
                Module libQt5QuickTemplates2.so.5 with build-id 5b85feae506f4520c3df2d9c80d0086b93149c1c
                Module libQt5Quick.so.5 with build-id 2dca83de5d1ef02b8ef03fef5f18b531a2457e42
                Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
                Module libXrender.so.1 with build-id 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3
                Module libKF5Service.so.5 with build-id d1b849804483cf5e5d045fb60432203206c2ed38
                Module libKF5KIOGui.so.5 with build-id 14950f98ef994c6b071d1444459d0ce69c79b008
                Module libQt5Xml.so.5 with build-id 6cdf028838bdf9341b52d534475cd2ca774b4f00
                Module libKF5Codecs.so.5 with build-id 72a2a63e7416a55d354a4aff199a3b6a0bf03e3c
                Module libKF5GuiAddons.so.5 with build-id 3f8ebbfcec6b33d97aeb5234522e8d0a0b4c6b22
                Module libKF5ItemViews.so.5 with build-id e4757fd171ae6c4275382d433ed3bb697638686e
                Module libKF5Solid.so.5 with build-id 662e79a4f3becf542fa4cda8ada6723bb78295e1
                Module libKF5Bookmarks.so.5 with build-id df102985b23ad32db0b0dd1eb13541377ac4ebeb
                Module libKF5WidgetsAddons.so.5 with build-id 1ecb6c8da7ea562d7aff1acbdd19c74a1f9d393f
                Module libKF5I18n.so.5 with build-id 141662ef754d2d992a1a32082b2f2ddb830676b8
                Module libKF5ConfigGui.so.5 with build-id 82585efd4a6c6078d45ba753f17a9a7e3f3e45ff
                Module libKF5ConfigWidgets.so.5 with build-id 2152b99ad82c9be1096abfc4be7f9cc431114dd4
                Module libKF5IconThemes.so.5 with build-id a96c9d2a2b3585355c7efbb93eb6b74ffc9813fd
                Module libKF5XmlGui.so.5 with build-id 3d58ac806211e72b35b32ed884b9b610fad1da41
                Module libKF5Completion.so.5 with build-id 1a0549c505fa36da417ea35e97883267ef76177e
                Module libKF5JobWidgets.so.5 with build-id 0690aa6a286cc9e7f6122343c79faab444957bc4
                Module libKF5KIOCore.so.5 with build-id 97b93006b6a35dead8be176937e30c1b75640ac9
                Module libQt5QuickControls2.so.5 with build-id d8db3098c7ed9086fef0fda7ea6b19339b339eb6
                Module libXcursor.so.1 with build-id eb6315bcd7526aaf51b0a1307efdc587cea0a152
                Module libKF5WaylandClient.so.5 with build-id 62d9d21d32df6ff25802eeef87b59e7b0895af39
                Module libKF5KIOWidgets.so.5 with build-id 5ada62a44b5f4d375c9911d0cf27d836f966ee3c
                Module libKF5KIOFileWidgets.so.5 with build-id f4885b022b1e5569aa1ff09c47eb2c9480e54154
                Module KDEPlasmaPlatformTheme.so with build-id cb6f0e1d98c13616ab294b7a6eceeeabf5adafc0
                Module libcomposeplatforminputcontextplugin.so with build-id 26bd09471401fabdf91ef10ea2d91ee6065b42ad
                Module libqwayland-generic.so with build-id 1c28a414499ebba15ebbee297c1131a5a1e23098
                Module libgpg-error.so.0 with build-id 3801187d42c4955bd93c605451430cdf1b164e63
                Module libbrotlicommon.so.1 with build-id a4ba3f4b4571c8272343b621da812a6e24a202a7
                Module libogg.so.0 with build-id ca0cae30a809f10db1f16e54a23b4e5ff7b2c54c
                Module libvorbis.so.0 with build-id ad0a6c1af8f219b4e314090b6e8847223d424cbe
                Module libicudata.so.70 with build-id e1dcc2a88cfaafed882d09c90c668af0eed4efed
                Module libgcrypt.so.20 with build-id db45f5d5e0f7af1e77324fea1885f974619ad268
                Module libcap.so.2 with build-id f56c6cd6ad4d35053340d7ff2f8f954498796739
                Module liblz4.so.1 with build-id e63600ab23b2f6997f42fac2fa56e1f02ce159a1
                Module liblzma.so.5 with build-id 8b615460aa230708c5183f16bede67aa0437d95e
                Module librt.so.1 with build-id 75484da2d6f1515189eefa076e0a40328834cd16
                Module libresolv.so.2 with build-id c915c72668282861a813f7ea3c0780f37b681dc0
                Module libkeyutils.so.1 with build-id ac405ddd17be10ce538da3211415ee50c8f8df79
                Module libkrb5support.so.0 with build-id adf65240a4d2aba772d7a0772b4d015469934113
                Module libcom_err.so.2 with build-id be99503e12b86d78d6ede2f0d1ffb66408a37576
                Module libk5crypto.so.3 with build-id eb8220b8f36675aac769450be4cb6bb7f97ec38a
                Module libkrb5.so.3 with build-id 72d26767c5cb1097db75a5f5bff88860233c902b
                Module libgraphite2.so.3 with build-id 47761dc11e553f519cde97ed9ee985be12ccdae2
                Module libGLX.so.0 with build-id 2a08836c6e6126ce9ff4496b6aacaf29ae9b4e7b
                Module libGLdispatch.so.0 with build-id 501765b3a78d668860fa54229b18107473aeda4c
                Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767
                Module libbrotlidec.so.1 with build-id 45defc036e918e0140a72f1fbce6e7692d38241d
                Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
                Module libexpat.so.1 with build-id 64e977cfebfe7539f428dec3b388f5d0498b3108
                Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955
                Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff
                Module libdbus-1.so.3 with build-id 74f2ab9c60512f3a93c932c3f627564d42e0b11e
                Module libltdl.so.7 with build-id 64bc54a40a0b6e4209a2c712364b4ae653c3f5b2
                Module libtdb.so.1 with build-id bec061530310665480ee91395b4eb0a937750a03
                Module libvorbisfile.so.3 with build-id 0010b21da05e318b42e718d90738febf58028141
                Module libxcb-keysyms.so.1 with build-id 333e5eb4075795f947c924a2085f17e2e2ae7147
                Module ld-linux-x86-64.so.2 with build-id 040cc3dd10461562f177df39e3be2f3704258c3c
                Module libzstd.so.1 with build-id ea8f70c7c6816cee97c9890081a80259ca44d397
                Module libpcre2-16.so.0 with build-id 195fbccafbcff538ce13805ba687514fb614c5ed
                Module libicuuc.so.70 with build-id 2e245c2bf12f95fd8ab79b3a4be99524677cbd70
                Module libicui18n.so.70 with build-id 95af755fca990df26753a7d720b8e3ae24270e42
                Module libdouble-conversion.so.3 with build-id d162eb67b00f523a3f146b1077ae00fe04d5fb85
                Module libsystemd.so.0 with build-id 6a2a26aa5fff87c1eb61137339bc55a53956c9ac
                Module libcrypto.so.1.1 with build-id 4c926b672d97886b123e03a008387aecf0786de4
                Module libssl.so.1.1 with build-id 1024424ab33a3767da03f4fdb1fc1b02479f160f
                Module libgssapi_krb5.so.2 with build-id e6e098ad51ce7bdd3dbe902d7b0f69a90f8a9e08
                Module libmd4c.so.0 with build-id 2151dba72cdc9960097e6e960a58a2f03c8bb96e
                Module libharfbuzz.so.0 with build-id 1d9dee49dd99162c3f83eb3259c3c88c6b4cd7fe
                Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
                Module libGL.so.1 with build-id 912ac4f37a9fa2d5abcf7a9088c9983cfe46f12a
                Module libffi.so.8 with build-id f90d8b734f6de9b25faedb8cbfab7054dafc0a42
                Module libxkbcommon.so.0 with build-id 1f1bc7527e57c886c3df5803068122e1971d4724
                Module libglib-2.0.so.0 with build-id 220436a4e27f39372710df014d2517c0387eefa4
                Module libfreetype.so.6 with build-id 26c5f833068ff72660d1975cbc2074c3eb47fad8
                Module libfontconfig.so.1 with build-id 1103a641395c7d3b42e49b793d3a9ea927c77bf6
                Module libwayland-cursor.so.0 with build-id 79d7e67af210407c2afe92ba8c189c8648a6474c
                Module libpthread.so.0 with build-id 07c8f95b4f3251d08550217ad8a1f31066229996
                Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26
                Module libdl.so.2 with build-id 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
                Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222
                Module libXi.so.6 with build-id 16603be937a02a7e61b0b0395d064be7efd86f49
                Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa
                Module libQt5DBus.so.5 with build-id 2e76850f86958307f5d749c780f9f2587e14c9ff
                Module libdbusmenu-qt5.so.2 with build-id 346cd54093968d3de9e61cc329e9512d248dce18
                Module libQt5TextToSpeech.so.5 with build-id 99b56b543380180d6f5c8c984f01d80487672cff
                Module libcanberra.so.0 with build-id 379ed64f9d1408a83806cd5d94dc5bb903765615
                Module libKF5WindowSystem.so.5 with build-id 10d0f0de888eb46a1fddcb91ef4ea4dcb3f117f2
                Module libKF5ConfigCore.so.5 with build-id c58e94e4adb85b1097f065447c2af4cc585906ff
                Module libKF5CoreAddons.so.5 with build-id 42164ce0f5987f623e5285b1ecd65ceeb0bfce2e
                Module libc.so.6 with build-id 4b406737057708c0e4c642345a703c47a61c73dc
                Module libgcc_s.so.1 with build-id 7f8508bb914546ada778809b64b99d234337d835
                Module libm.so.6 with build-id 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
                Module libstdc++.so.6 with build-id 9b5eeeb149bf3c4efe787fb398b44f00507aec87
                Module libQt5Core.so.5 with build-id b1ac453e8b3748ea2e73b0c967572c7554cb6aa7
                Module libQt5Network.so.5 with build-id 5d5febbf1fc5bc522602a1f1751a9931fc05b78e
                Module libQt5Gui.so.5 with build-id ca68d8455101af745dd69abdd6032e8d462e29aa
                Module libQt5Widgets.so.5 with build-id 6a0d5c607ebb61f064b121c6b7e82469bedc8461
                Module libwayland-client.so.0 with build-id 0a237f2fd096bada4ca381eec5d64474c4078be4
                Module libQt5WaylandClient.so.5 with build-id 4f424ea126c05eeb7b071c67d7dad2a2b6a82481
                Module libQt5Qml.so.5 with build-id 212307572d9d92b0cb4d236fda1fe3f354b01093
                Module libQt5Svg.so.5 with build-id 8032519f22f34473a8cfdae1d933f60042a40aa1
                Module libQt5X11Extras.so.5 with build-id e41614d2e35852f913bf00633d635cfbf5a90dce
                Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478
                Module libXtst.so.6 with build-id 96411faea62997274e362f263e65082e601a787b
                Module libKF5Notifications.so.5 with build-id cf776e57e2e8be19d6ccaec217f91db22751d115
                Module copyq with build-id b2e86b866bd74dbf12a4e973d321d2fa7a1a2a50
                Stack trace of thread 1820:
                #0  0x00007f0eb19d126e _ZN15QtSharedPointer20ExternalRefCountData9getAndRefEPK7QObject (libQt5Core.so.5 + 0x11f26e)
                #1  0x000055fcc5677757 _Z9cloneDataRK9QMimeData11QStringListPb (copyq + 0x10d757)
                #2  0x000055fcc576df06 _ZN20X11PlatformClipboard19updateClipboardDataEPNS_13ClipboardDataE (copyq + 0x203f06)
                #3  0x000055fcc576ed96 _ZN20X11PlatformClipboard5checkEv (copyq + 0x204d96)
                #4  0x00007f0eb1b6eda3 n/a (libQt5Core.so.5 + 0x2bcda3)
                #5  0x00007f0eb1b7110f _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2bf10f)
                #6  0x00007f0eb1b61e16 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2afe16)
                #7  0x000055fcc576d45f _ZThn16_N27ApplicationExceptionHandlerI15QGuiApplicationE6notifyEP7QObjectP6QEvent (copyq + 0x20345f)
                #8  0x00007f0eb1b3e17a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28c17a)
                #9  0x00007f0eb1b88cb5 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x2d6cb5)
                #10 0x00007f0eb1b8929a n/a (libQt5Core.so.5 + 0x2d729a)
                #11 0x00007f0eb0ea6fd3 g_main_context_dispatch (libglib-2.0.so.0 + 0x54fd3)
                #12 0x00007f0eb0efd049 n/a (libglib-2.0.so.0 + 0xab049)
                #13 0x00007f0eb0ea4545 g_main_context_iteration (libglib-2.0.so.0 + 0x52545)
                #14 0x00007f0eb1b8945a _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d745a)
                #15 0x00007f0eb1b3645b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x28445b)
                #16 0x000055fcc578efb7 _ZN10Scriptable16monitorClipboardEv (copyq + 0x224fb7)
                #17 0x000055fcc5647d3b _ZN10Scriptable11qt_metacallEN11QMetaObject4CallEiPPv (copyq + 0xddd3b)
                #18 0x00007f0eb3042c16 n/a (libQt5Qml.so.5 + 0x27cc16)
                #19 0x00007f0eb2f44ef8 n/a (libQt5Qml.so.5 + 0x17eef8)
                #20 0x00007f0eb2f46eb2 _ZNK3QV413QObjectMethod12callInternalEPKNS_5ValueES3_i (libQt5Qml.so.5 + 0x180eb2)
                #21 0x00007f0eb2f67a4d _ZN3QV47Runtime11CallElement4callEPNS_15ExecutionEngineERKNS_5ValueES6_PS4_i (libQt5Qml.so.5 + 0x1a1a4d)
                #22 0x00007f0eb2f56d9a n/a (libQt5Qml.so.5 + 0x190d9a)
                #23 0x00007f0eb2f5a6c5 n/a (libQt5Qml.so.5 + 0x1946c5)
                #24 0x00007f0eb2f080d8 n/a (libQt5Qml.so.5 + 0x1420d8)
                #25 0x00007f0eb2f0a67b n/a (libQt5Qml.so.5 + 0x14467b)
                #26 0x00007f0eb2f6c951 _ZN3QV47Runtime12CallProperty4callEPNS_15ExecutionEngineERKNS_5ValueEiPS4_i (libQt5Qml.so.5 + 0x1a6951)
                #27 0x00007f0eb2f56baf n/a (libQt5Qml.so.5 + 0x190baf)
                #28 0x00007f0eb2f5a6c5 n/a (libQt5Qml.so.5 + 0x1946c5)
                #29 0x00007f0eb2f080d8 n/a (libQt5Qml.so.5 + 0x1420d8)
                #30 0x00007f0eb2ecab10 _ZN8QJSValue16callWithInstanceERKS_RK5QListIS_E (libQt5Qml.so.5 + 0x104b10)
                #31 0x000055fcc57834f7 _ZN10Scriptable4callERK7QStringP8QJSValueRK5QListIS3_E (copyq + 0x2194f7)
                #32 0x000055fcc578fc40 _ZN10Scriptable22executeArgumentsSimpleERK11QStringList (copyq + 0x225c40)
                #33 0x000055fcc578ffa4 _ZN10Scriptable16executeArgumentsERK11QStringList (copyq + 0x225fa4)
                #34 0x000055fcc5657d4a _ZN15ClipboardClient5startERK11QStringList (copyq + 0xedd4a)
                #35 0x00007f0eb1b6eda3 n/a (libQt5Core.so.5 + 0x2bcda3)
                #36 0x00007f0eb1b7110f _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2bf10f)
                #37 0x00007f0eb1b61e16 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2afe16)
                #38 0x000055fcc576d45f _ZThn16_N27ApplicationExceptionHandlerI15QGuiApplicationE6notifyEP7QObjectP6QEvent (copyq + 0x20345f)
                #39 0x00007f0eb1b3e17a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28c17a)
                #40 0x00007f0eb1b88cb5 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x2d6cb5)
                #41 0x00007f0eb1b8929a n/a (libQt5Core.so.5 + 0x2d729a)
                #42 0x00007f0eb0ea6fd3 g_main_context_dispatch (libglib-2.0.so.0 + 0x54fd3)
                #43 0x00007f0eb0efd049 n/a (libglib-2.0.so.0 + 0xab049)
                #44 0x00007f0eb0ea4545 g_main_context_iteration (libglib-2.0.so.0 + 0x52545)
                #45 0x00007f0eb1b8945a _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d745a)
                #46 0x00007f0eb1b3645b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x28445b)
                #47 0x00007f0eb1b41ba7 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x28fba7)
                #48 0x000055fcc576762a n/a (copyq + 0x1fd62a)
                #49 0x000055fcc563a5ea main (copyq + 0xd05ea)
                #50 0x00007f0eb1396b25 __libc_start_main (libc.so.6 + 0x27b25)
                #51 0x000055fcc563b28e _start (copyq + 0xd128e)

                Stack trace of thread 1825:
                #0  0x00007f0eb1462b2f __poll (libc.so.6 + 0xf3b2f)
                #1  0x00007f0eb2cee166 n/a (libQt5WaylandClient.so.5 + 0x75166)
                #2  0x00007f0eb199688c n/a (libQt5Core.so.5 + 0xe488c)
                #3  0x00007f0eb10bd259 start_thread (libpthread.so.0 + 0x9259)
                #4  0x00007f0eb146d5e3 __clone (libc.so.6 + 0xfe5e3)

                Stack trace of thread 1826:
                #0  0x00007f0eb1462b2f __poll (libc.so.6 + 0xf3b2f)
                #1  0x00007f0eb0efcfd6 n/a (libglib-2.0.so.0 + 0xaafd6)
                #2  0x00007f0eb0ea4545 g_main_context_iteration (libglib-2.0.so.0 + 0x52545)
                #3  0x00007f0eb1b8945a _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d745a)
                #4  0x00007f0eb1b3645b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x28445b)
                #5  0x00007f0eb1999ac6 _ZN7QThread4execEv (libQt5Core.so.5 + 0xe7ac6)
                #6  0x00007f0eb116e3c9 n/a (libQt5DBus.so.5 + 0x233c9)
                #7  0x00007f0eb199688c n/a (libQt5Core.so.5 + 0xe488c)
                #8  0x00007f0eb10bd259 start_thread (libpthread.so.0 + 0x9259)
                #9  0x00007f0eb146d5e3 __clone (libc.so.6 + 0xfe5e3)

                Stack trace of thread 1824:
                #0  0x00007f0eb1462b2f __poll (libc.so.6 + 0xf3b2f)
                #1  0x00007f0eb2cee166 n/a (libQt5WaylandClient.so.5 + 0x75166)
                #2  0x00007f0eb199688c n/a (libQt5Core.so.5 + 0xe488c)
                #3  0x00007f0eb10bd259 start_thread (libpthread.so.0 + 0x9259)
                #4  0x00007f0eb146d5e3 __clone (libc.so.6 + 0xfe5e3)
                ELF object binary architecture: AMD x86-64
hluk commented 2 years ago

Thanks for providing the stack trace.

I'm assuming this is crashing on accessing no longer valid clipboard data provided by Qt, but I'm not sure how is that possible since the access is wrapped in a safe pointer and checked before use.

Maybe some problem with linked Qt libraries. Where is the copyq binary/package coming from?

Does the app run natively on Wayland or as an X11 app (XWayland)? To run the app natively you may need to set environment variable QT_QPA_PLATFORM=xcb before starting it (see also known issues).

33Fraise33 commented 2 years ago

I am using the installer from the aur with the latest git fixes: https://aur.archlinux.org/packages/copyq-git/

I will try to run it natively to see if that helps for my case

hluk commented 2 years ago

Ah, sorry, I meant start the app with QT_QPA_PLATFORM=wayland - setting xcb will run in the X11 compatibility mode. Or try both modes :) - not sure which one is default in the system.

33Fraise33 commented 2 years ago

Is there a way to see from the application in what mode it is running ?

hluk commented 2 years ago

Is there a way to see from the application in what mode it is running ?

If you also start the app with COPYQ_LOG_LEVEL=DEBUG env variable set, one of the first lines logged (and printed on stderr when started from terminal) would be DEBUG: [default] QtInfo: Using Wayland clipboard access.

❯ env COPYQ_LOG_LEVEL=DEBUG QT_QPA_PLATFORM=wayland copyq
DEBUG: Server "/home/lholecek/.config/copyq/.copyq_s" started.
DEBUG: [default] QtInfo: Using Wayland clipboard access
...