Skip to content

clip.py frequently hangs in Emacs on WSLg #426

Description

@wolfmanstout

It is entirely possible that this is a Windows 11 bug, but I'm filing it here to help others make an informed decision about whether to upgrade.

I have observed frequent hangs when I enable context sensitive dictation, but only on my Windows 11 machine, not my Windows 10 machine. These hangs happen frequently and in multiple applications (e.g. Firefox and Emacs running in WSL), arising from clip.py. Here are the most typical traces:

    8: user\wolfmanstout_talon\code\dictation.py:339 | after = actions.edit.selected_text()
    7:                talon\scripting\actions.py:75  | # edit.selected_text()
    6:                  talon\scripting\types.py:366 | 
    5:      user\wolfmanstout_talon\code\edit.py:12  | actions.edit.copy()
    4:                             contextlib.py:126 | 
    3:                             talon\clip.py:189 | 
    2:                             talon\clip.py:129 | 
    1:                             talon\clip.py:59  | 
    9: user\wolfmanstout_talon\code\dictation.py:295 | text = actions.edit.selected_text()
    8:                talon\scripting\actions.py:75  | # edit.selected_text()
    7:                  talon\scripting\types.py:366 | 
    6:      user\wolfmanstout_talon\code\edit.py:11  | with clip.capture() as s:
    5:                             contextlib.py:119 | 
    4:                             talon\clip.py:185 | 
    3:                             contextlib.py:119 | 
    2:                             talon\clip.py:165 | 
    1:                             talon\clip.py:59  | 

When this happens I've see problematic behavior elsewhere in the operating system even after killing Talon, e.g. Firefox may hang if I paste something in or the Windows start button search feature may not work. I haven't seen these issues when Talon is not interacting with the clipboard.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions