Closed CelikE closed 1 year ago
My guess is that main window for some reason loses focus and is automatically closed because of "Close When Unfocused" option.
You can disable this with: copyq config close_on_unfocus false
My guess is that main window for some reason loses focus and is automatically closed because of "Close When Unfocused" option.
You can disable this with:
copyq config close_on_unfocus false
Unfortunately this didn't help.
I have no idea why the main window would close without specific user action like pressing Alt+F4 or ESC or clicking on close button in window title.
BTW, you can launch copyq with following command to get very verbose log (not sure if there can be anything helpful):
env QT_LOGGING_RULES='*.debug=true' COPYQ_LOG_LEVEL=DEBUG copyq
I have no idea why the main window would close without specific user action like pressing Alt+F4 or ESC or clicking on close button in window title.
BTW, you can launch copyq with following command to get very verbose log (not sure if there can be anything helpful):
env QT_LOGGING_RULES='*.debug=true' COPYQ_LOG_LEVEL=DEBUG copyq
I will take a look at the log and see if I can find something.
Log below is the only thing I could find on the matter. It seems like it works at intended (correct me if I'm wrong) and in the end it just log closed
.
I have a slight suspicion that wayland
introduced in Ubuntu 21.04 is the problem. Will run some tests on my other machines that run on the exact same system as this.
DEBUG: [qt.qpa.menu] QtDebug: 0 "" "opened"
DEBUG: [qt.qpa.menu] QtDebug: 0
DEBUG: Focus window is "code – settings.xml"
DEBUG: Updating tray menu
DEBUG: [qt.qpa.menu] QtDebug: 133 ""
DEBUG: [qt.qpa.menu] QtDebug: 133 ""
DEBUG: [qt.qpa.menu] QtDebug: 133 ""
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=133, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, ""))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 134 ""
DEBUG: [qt.qpa.menu] QtDebug: 134 ""
DEBUG: [qt.qpa.menu] QtDebug: 134 "&1. packageDimension"
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=134, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_1. packageDimension"))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 135 ""
DEBUG: [qt.qpa.menu] QtDebug: 135 ""
DEBUG: [qt.qpa.menu] QtDebug: 135 ""
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=135, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, ""))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 136 ""
DEBUG: [qt.qpa.menu] QtDebug: 136 ""
DEBUG: [qt.qpa.menu] QtDebug: 136 "&2. DEBUG: [qt.qpa.m…e\" \"clicked\" ... (11 lines)"
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=136, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_2. DEBUG: [qt.qpa.m…e\" \"clicked\" ... (11 lines)"))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 137 ""
DEBUG: [qt.qpa.menu] QtDebug: 137 ""
DEBUG: [qt.qpa.menu] QtDebug: 137 ""
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=137, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, ""))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 138 ""
DEBUG: [qt.qpa.menu] QtDebug: 138 ""
DEBUG: [qt.qpa.menu] QtDebug: 138 "&3. calculat"
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=138, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_3. calculat"))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 139 ""
DEBUG: [qt.qpa.menu] QtDebug: 139 ""
DEBUG: [qt.qpa.menu] QtDebug: 139 ""
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=139, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, ""))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 140 ""
DEBUG: [qt.qpa.menu] QtDebug: 140 ""
DEBUG: [qt.qpa.menu] QtDebug: 140 "&4. DEBUG: [qt.qpa.m…e\" \"clicked\" ... (12 lines)"
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=140, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_4. DEBUG: [qt.qpa.m…e\" \"clicked\" ... (12 lines)"))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 141 ""
DEBUG: [qt.qpa.menu] QtDebug: 141 ""
DEBUG: [qt.qpa.menu] QtDebug: 141 ""
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=141, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, ""))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 142 ""
DEBUG: [qt.qpa.menu] QtDebug: 142 ""
DEBUG: [qt.qpa.menu] QtDebug: 142 "&5. copyq toggle"
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=142, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_5. copyq toggle")("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 134 "&1. packageDimension"
DEBUG: [qt.qpa.menu] QtDebug: QVector(QDBusMenuItem(id=134, properties=QMap(("enabled", QVariant(bool, true))("icon-data", QVariant(QByteArray, "\x89PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\b\x06\x00\x00\x00\x1F\xF3\xFF""a\x00\x00\x00\tpHYs\x00\x00\x0E\xC4\x00\x00\x0E\xC4\x01\x95+\x0E\x1B\x00\x00\x01oIDAT8\x8D\xA5\x93\xB1J#Q\x14\x86\xBF{\x1Dg0wM Bp\xB2\x16K\xF2\x06\xB2\xE5\xEEVy\x03\x89/`\x91V\xCB@`\x92I\xED\xA3,\x16\xDB\xA5\x0F(\xB2\xB0\xDD""2d\x9B\x80""E\x8A\x89""1H\x82L2sl\x8C\x86""8\xBA\x03\xFE\xD5\xE5\xBF\xE7|\xFC\xF7p.|Pj\xD3\xE8v\xBB\xD5\xE5r\xD9\xD1Z_x\x9E\xF7""33\xA0\xDDn\xFF\x03\x0E""D\xC4J\x92\xE4\\k}\xAA\x94\x12`!\"\xDF;\x9D\xCE\x9F""4\x80^\x1D""D\xE4\x0B\xE0(\xA5\xB6&\x93\xC9\xDE\xD3\x9D\x03|\n\x82\xE0\x07\x90K\x03Xif\xB1X\xAC\xC7q\xDC\x8F\xA2\xC8\x06\x98N\xA7w\xC0\xF6\xBB\t\xD6\x15\x04\x81""7\x9F\xCF""C\x11\xB9\x11\x91\x1B\xCB\xB2n\x9B\xCD\xE6\x89\x88\xBC\x9AY*\xC0q\x9C\xDD|>\x7F""d\x8C\xA9\x1B""c\xEA\xA5R\xA9""d\xDB\xB6\xDFj\xB5.<\xCF\xB3\xFF\xFB\x84MEQ\xE4\xCE""f\xB3\xB3""0\f\xCB\x83\xC1\xE0\x10\xB8\x02$3\xA0Z\xAD\xFA\"\xF2`\x8C\xC1\x18\xF3\xB7\xDF\xEF\xFF\x06\x16\x99\x01\x80VJ\xE5\x00\xC6\xE3\xF1>\xB0\xB3\x02<\xCF@)5\xC9""B\x12\x11\xCD\xDA\xFE<'p]\xB7\xEC\xFB\xFE\xD7$I\xACZ\xAD\xF6-c\xB2\x17@\xA3\xD1X\x00\x97\x80\xAAT*\xEE[\rq\x1C\xC7\xA9\x80UB@\n\x85\xC2\xAF\xE1px<\x1A\x8D>o6\xF7z\xBD\xEB\xA7: \xE5""3\xADI\x03\xBB)\xBE\x00\xF7\xEB\x90\x0F\xE9\x11\x95\x86\x88uL\x03\x8DX\x00\x00\x00\x00IEND\xAE""B`\x82"))("label", QVariant(QString, "_1. packageDimension"))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.menu] QtDebug: 0 depth -1 ("type", "children-display")
DEBUG: [qt.qpa.menu] QtDebug: 0 depth -1 ("type", "children-display") 0 QMap(("children-display", QVariant(QString, "submenu"))) revision 1 QDBusMenuLayoutItem(id=0, properties=QMap(("children-display", QVariant(QString, "submenu"))), 16 children)
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12327
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12328
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12328
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12328
DEBUG: [qt.qpa.menu] QtDebug: 0 depth -1 ("type", "children-display")
DEBUG: [qt.qpa.menu] QtDebug: 0 depth -1 ("type", "children-display") 0 QMap(("children-display", QVariant(QString, "submenu"))) revision 1 QDBusMenuLayoutItem(id=0, properties=QMap(("children-display", QVariant(QString, "submenu"))), 16 children)
DEBUG: [qt.qpa.menu] QtDebug: (134, 136, 138, 140, 142) () => QVector(QDBusMenuItem(id=134, properties=QMap(("enabled", QVariant(bool, true))("icon-data", QVariant(QByteArray, "\x89PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\b\x06\x00\x00\x00\x1F\xF3\xFF""a\x00\x00\x00\tpHYs\x00\x00\x0E\xC4\x00\x00\x0E\xC4\x01\x95+\x0E\x1B\x00\x00\x01oIDAT8\x8D\xA5\x93\xB1J#Q\x14\x86\xBF{\x1Dg0wM Bp\xB2\x16K\xF2\x06\xB2\xE5\xEEVy\x03\x89/`\x91V\xCB@`\x92I\xED\xA3,\x16\xDB\xA5\x0F(\xB2\xB0\xDD""2d\x9B\x80""E\x8A\x89""1H\x82L2sl\x8C\x86""8\xBA\x03\xFE\xD5\xE5\xBF\xE7|\xFC\xF7p.|Pj\xD3\xE8v\xBB\xD5\xE5r\xD9\xD1Z_x\x9E\xF7""33\xA0\xDDn\xFF\x03\x0E""D\xC4J\x92\xE4\\k}\xAA\x94\x12`!\"\xDF;\x9D\xCE\x9F""4\x80^\x1D""D\xE4\x0B\xE0(\xA5\xB6&\x93\xC9\xDE\xD3\x9D\x03|\n\x82\xE0\x07\x90K\x03Xif\xB1X\xAC\xC7q\xDC\x8F\xA2\xC8\x06\x98N\xA7w\xC0\xF6\xBB\t\xD6\x15\x04\x81""7\x9F\xCF""C\x11\xB9\x11\x91\x1B\xCB\xB2n\x9B\xCD\xE6\x89\x88\xBC\x9AY*\xC0q\x9C\xDD|>\x7F""d\x8C\xA9\x1B""c\xEA\xA5R\xA9""d\xDB\xB6\xDFj\xB5.<\xCF\xB3\xFF\xFB\x84MEQ\xE4\xCE""f\xB3\xB3""0\f\xCB\x83\xC1\xE0\x10\xB8\x02$3\xA0Z\xAD\xFA\"\xF2`\x8C\xC1\x18\xF3\xB7\xDF\xEF\xFF\x06\x16\x99\x01\x80VJ\xE5\x00\xC6\xE3\xF1>\xB0\xB3\x02<\xCF@)5\xC9""B\x12\x11\xCD\xDA\xFE<'p]\xB7\xEC\xFB\xFE\xD7$I\xACZ\xAD\xF6-c\xB2\x17@\xA3\xD1X\x00\x97\x80\xAAT*\xEE[\rq\x1C\xC7\xA9\x80UB@\n\x85\xC2\xAF\xE1px<\x1A\x8D>o6\xF7z\xBD\xEB\xA7: \xE5""3\xADI\x03\xBB)\xBE\x00\xF7\xEB\x90\x0F\xE9\x11\x95\x86\x88uL\x03\x8DX\x00\x00\x00\x00IEND\xAE""B`\x82"))("label", QVariant(QString, "_1. packageDimension"))("visible", QVariant(bool, true)))), QDBusMenuItem(id=136, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_2. DEBUG: [qt.qpa.m…e\" \"clicked\" ... (11 lines)"))("visible", QVariant(bool, true)))), QDBusMenuItem(id=138, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_3. calculat"))("visible", QVariant(bool, true)))), QDBusMenuItem(id=140, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_4. DEBUG: [qt.qpa.m…e\" \"clicked\" ... (12 lines)"))("visible", QVariant(bool, true)))), QDBusMenuItem(id=142, properties=QMap(("enabled", QVariant(bool, true))("label", QVariant(QString, "_5. copyq -e \"toggle()\""))("visible", QVariant(bool, true)))))
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12331
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12331
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12331
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12331
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12334
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12334
DEBUG: [qt.qpa.menu] QtDebug: 5 "&Show/Hide" "clicked"
DEBUG: Focus window is "mc – product_bundles.xml"
DEBUG: [qt.gui.shortcutmap] QtDebug: QShortcutMap::addShortcut(QMenuBar(0x5644d5ff0010, name = "menu_bar"), QKeySequence("Alt+F"), Qt::WindowShortcut) = -380
DEBUG: [qt.gui.shortcutmap] QtDebug: QShortcutMap::addShortcut(QMenuBar(0x5644d5ff0010, name = "menu_bar"), QKeySequence("Alt+E"), Qt::WindowShortcut) = -381
DEBUG: [qt.gui.shortcutmap] QtDebug: QShortcutMap::addShortcut(QMenuBar(0x5644d5ff0010, name = "menu_bar"), QKeySequence("Alt+I"), Qt::WindowShortcut) = -382
DEBUG: [qt.gui.shortcutmap] QtDebug: QShortcutMap::addShortcut(QMenuBar(0x5644d5ff0010, name = "menu_bar"), QKeySequence("Alt+T"), Qt::WindowShortcut) = -383
DEBUG: [qt.gui.shortcutmap] QtDebug: QShortcutMap::addShortcut(QMenuBar(0x5644d5ff0010, name = "menu_bar"), QKeySequence("Alt+H"), Qt::WindowShortcut) = -384
DEBUG: Raising window "packageDimension — CopyQ"
DEBUG: [qt.qpa.events] QtDebug: Event | XCB_PROPERTY_NOTIFY(28) | sequence: 12342
DEBUG: [qt.qpa.menu] QtDebug: 0 "" "closed"
DEBUG: Geometry: Window "MainWindow": Restore geometry "Options/MainWindow_geometry_1920x1200": 967x837,2396,494 -> 967x837,2436,485
I have this problem also, ubuntu 22.04, it sometimes works, sometimes doesn't. @CelikE did you get any closer to finding a solution?
@torbjorn I was unable to find a solution to the issue. However, I have since transitioned to EndeavourOS and have not encountered any further difficulties with CopyQ.
CopyQ main window closes instantly when trying to open, if containing saved items. If clipboard is empty, the main window opens/closes as expected. As soon as I copy something and try to open it the main window again, it instantly closes.
Test
copyq show test
to open a new Tab, and worked fine. Opening and closing the main window worked as expected.clipboard
tab and the main window closes.Also ran with
env COPYQ_LOG_LEVEL=DEBUG copyq
and got the followingLooked at
DEBUG: [default] QtInfo: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Tried to run CopyQ withenv QT_QPA_PLATFORM=xcb copyq
and still the same issue.System Application Version 4.1.0 OS Ubuntu 21.04