Skip to content

[BUG] App freezes on Windows (not responding) when activated in the app that was started under admin privileges #434

@hubaksis

Description

@hubaksis

Bug Description

Handy hangs while interacting with the app that was started under the administrator privileges.

How to reproduce

  1. Start Notepad under Administrator Privileges (Run as Administrator).
  2. Press Ctrl + Space to activate Push to talk.
  3. The app doesn't show any activity while talking, doesn't disappear, doesn't stop when Ctrl + Space is released, cannot be closed by pressing the 'cross'. It could only be killed via the Task manager

System Information

App Version: 0.6.5 and 0.6.4
Operating System: Windows 11 Pro 25H2
CPU: 11th Gen Intel(R) Core(TM) i7-11700K
GPU: NVidia GTX 1650

Workaround

Start the program with administrator privileges. Then the issue doesn't happen.

Debug log of the 'failed' session.

I noticed that after pressing 'Push to talk combination' it almost immediately shows 'Transcribing' and then hangs, despite me holding Ctrl + Space the buttons.

[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start called for binding: transcribe
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Microphone mode - always_on: false
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] On-demand mode: Starting recording first, then audio feedback
[2025-12-11][02:41:46][handy_app_lib::managers::audio][INFO] Microphone stream initialized in 2.7515ms
[2025-12-11][02:41:46][handy_app_lib::managers::audio][DEBUG] Recording started for binding transcribe
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Recording started in 2.7877ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start completed in 14.4057ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::stop called for binding: transcribe
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::stop completed in 5.4315ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Starting async transcription task for binding: transcribe
[2025-12-11][02:41:46][handy_app_lib::audio_toolkit::audio::recorder][INFO] Using device: Ok("Microphone (Realtek(R) Audio)")
Sample rate: 48000
Channels: 2
Format: F32
[2025-12-11][02:41:46][handy_app_lib::managers::audio][DEBUG] Microphone stream stopped
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Recording stopped and samples retrieved in 93.1661ms, sample count: 0
[2025-12-11][02:41:46][handy_app_lib::managers::transcription][DEBUG] Audio vector length: 0
[2025-12-11][02:41:46][handy_app_lib::managers::transcription][DEBUG] Empty audio vector
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Transcription completed in 12.9µs: ''
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Handling delayed audio feedback/mute sequence
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start called for binding: transcribe
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Microphone mode - always_on: false
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] On-demand mode: Starting recording first, then audio feedback
[2025-12-11][02:41:46][handy_app_lib::managers::audio][INFO] Microphone stream initialized in 2.6413ms
[2025-12-11][02:41:46][handy_app_lib::managers::audio][DEBUG] Recording started for binding transcribe
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Recording started in 2.6913ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start completed in 13.4217ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::stop called for binding: transcribe
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::stop completed in 5.4833ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Starting async transcription task for binding: transcribe
[2025-12-11][02:41:46][handy_app_lib::audio_toolkit::audio::recorder][INFO] Using device: Ok("Microphone (Realtek(R) Audio)")
Sample rate: 48000
Channels: 2
Format: F32
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start called for binding: transcribe
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Microphone mode - always_on: false
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] On-demand mode: Starting recording first, then audio feedback
[2025-12-11][02:41:46][handy_app_lib::managers::audio][DEBUG] Microphone stream already active
[2025-12-11][02:41:46][handy_app_lib::managers::audio][DEBUG] Microphone stream stopped
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Recording stopped and samples retrieved in 91.7672ms, sample count: 0
[2025-12-11][02:41:46][handy_app_lib::managers::audio][DEBUG] Recording started for binding transcribe
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Recording started in 73.3364ms
[2025-12-11][02:41:46][handy_app_lib::managers::transcription][DEBUG] Audio vector length: 0
[2025-12-11][02:41:46][handy_app_lib::managers::transcription][DEBUG] Empty audio vector
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start completed in 79.2228ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Transcription completed in 85.8µs: ''
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::stop called for binding: transcribe
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Handling delayed audio feedback/mute sequence
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::stop completed in 5.4862ms
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Starting async transcription task for binding: transcribe
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] TranscribeAction::start called for binding: transcribe
[2025-12-11][02:41:46][enigo][DEBUG] using default settings
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mconnection established on windows�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] �[93mlocation()�[0m
[2025-12-11][02:41:46][enigo::platform::win_impl][DEBUG] released all held keys
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Microphone mode - always_on: false
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] On-demand mode: Starting recording first, then audio feedback
[2025-12-11][02:41:46][handy_app_lib::actions][DEBUG] Handling delayed audio feedback/mute sequence

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions