cosmic-term icon indicating copy to clipboard operation
cosmic-term copied to clipboard

[BUG] Stacking terminal/editor becomes unresponsive/unusable, with varied symptoms (cannot select/copy/type).

Open zsilet opened this issue 1 year ago • 10 comments

I noticed today that upon right-clicking in cosmic-term, the menu persists until a subsequent right-click.

I do not remember this being the case before (been using cosmic since July). The context menu stays even if:

  1. I left click/type in the terminal
  2. Switch to a different window on the same workspace
  3. Switch to a different workspace and come back.

Quick video here: https://photos.app.goo.gl/p8PXfgxQgUG9C9FB9

I found a similar sounding issue in the cosmic-files database, not sure if related: https://github.com/pop-os/cosmic-files/issues/389

I have attached my current cosmic versions. sys_info_sw_2024-Sep-10-1610.txt

zsilet avatar Sep 10 '24 20:09 zsilet

As of the date of this comment (Jan 8-9), this issue has popped up again and is happening very often.

In addition to the initial symptom of the right-menu sticking around:

  • I also lose the ability to select/copy from the terminal window.
  • If I have split terminals, I lose the ability to type entirely into the (previously out of focus) terminal pane.

Exiting/restarting the terminal fixes the issue, but it happens again after 15-30 minutes.

My currently running version is cosmic-term/noble,noble,now 0.1.0~1736285623~24.04~4fd9731

zsilet avatar Jan 09 '25 03:01 zsilet

Issue still reproducible(recurring) as of Feb 18 2025 update. cosmic-term/noble,now 0.1.0~1737658298~24.04~23a5851

zsilet avatar Feb 19 '25 15:02 zsilet

It would be nice if the menu closed by left-clicking on the terminal of course but also by pressing the esc key.

Etienne-TR avatar Mar 07 '25 21:03 Etienne-TR

In addition to all the above symptoms, I just noticed something else that seems to only happen when the bug is manifesting itself, namely that attempting to select via the mouse is causing my terminal window to be horizontally resized (as if I am clicking/dragging the border of the window). This is with recent (early March) updates.

zsilet avatar Mar 12 '25 15:03 zsilet

I have replicated the same symptoms in Cosmic Edit as well this morning. Right-click is persisting, and trying to select text is causing the entire window to resize. Current versions I am running:

cosmic-edit/noble,noble,now 0.1.0~1741529916~24.04~bd5009a amd64 [installed,automatic] cosmic-term/noble,now 0.1.0~1741899959~24.04~91f252c amd64 [installed]

zsilet avatar Mar 18 '25 14:03 zsilet

Updating headline to clearly reflect that issue makes terminal/editor unusable once it happens.

zsilet avatar Mar 18 '25 19:03 zsilet

Adding my latest hardware and cosmic version info. reproduced again with this latest setup, demo video: https://photos.app.goo.gl/6uSAf566Upgsvktz5

sys_info_hw_2025-Mar-18-1351.txt sys_info_sw_2025-Mar-18-1351.txt

zsilet avatar Mar 18 '25 20:03 zsilet

Not able to replicate here on any of the systems I have on hand. Would you be able to replicate within a live environment?

mmstick avatar Mar 18 '25 21:03 mmstick

I have it replicated on my own machine as we speak, is that what you mean by a live environment? Is there anything I should try to capture?

zsilet avatar Mar 19 '25 12:03 zsilet

@mmstick As suspected, I have strong evidence that the issue has to do with stacking the terminal/editor etc with other applications. Once a misbehaving window is unstacked, the issue goes away. Here is an example sequence where the issue happened:

  1. Have a single un-stacked terminal window running.
  2. Stack Brave browser with terminal. After switching focus to terminal, issue happened.
  3. Remove browser from stack (terminal left as single entry in stack), issue is still visible.
  4. Add browser back to stack, remove terminal from stack. Terminal works fine.
  5. Add terminal back to stack, issue is again visible.
  6. Remove browser from stack, then remove terminal from stack as well, issue is gone.

Note that although I was able to cause the issue once, as stated above, I was unable to reproduce it thereafter, so there is still some mystery to it. I have updated the bug record with the above info.

zsilet avatar Mar 21 '25 16:03 zsilet

@mmstick @jackpot51 I just want to mention that this issue is still easily reproducible in on my system, making cosmic apps impractical to use in a stack. It would be great if someone could look into it. Jeremy mentioned months ago "I manged to reproduce this issue by using cosmic-term in stacks more often. Right click will clear the context menu, but left clicks and key presses don't appear to work. " which is exactly what I am seeing.

Furthermore, I was able to replicate the issue within a few hours of a fresh install on a separate partition (same computer).

zsilet avatar Dec 12 '25 16:12 zsilet