Repository navigation
Description
Description
Since updating from Text Grab 4.10.0 to 4.16.0, the application no longer terminates automatically after a successful Fullscreen OCR operation.
The OCR itself works correctly, the recognized text is copied to the clipboard, and the Fullscreen window closes. However, the Text-Grab.exe process remains running in the background without any visible window.
This behavior did not occur with version 4.10.0.
Steps to reproduce
-
Make sure Text Grab is not already running.
-
Disable Run in the background in Settings.
-
Disable Auto start Text Grab when you login.
-
Disable the following options:
- Send output to Edit Text Window by default
- Insert captured text into the focused app
- All additional post-capture actions
-
Launch Text Grab from the command line:
Text-Grab.exe Fullscreen
-
Select a screen region containing text.
-
Complete the OCR operation.
-
Check whether
Text-Grab.exeis still running.
Expected behavior
After completing the OCR operation, copying the recognized text to the clipboard, and closing the Fullscreen window, Text Grab should terminate automatically when background mode is disabled.
This was the behavior in version 4.10.0.
Actual behavior
- OCR recognition completes successfully.
- The recognized text is available in the clipboard.
- The Fullscreen window closes completely.
- No Text Grab window remains visible.
- The
Text-Grab.exeprocess continues running indefinitely.
The process can be confirmed using PowerShell:
Get-CimInstance Win32_Process -Filter "Name='Text-Grab.exe'" |
Select-Object ProcessId, ParentProcessId, CommandLineExample output:
ProcessId ParentProcessId CommandLine
--------- --------------- -----------
45992 44764 Text-Grab.exe Fullscreen
Additional test: Cancel with Esc
When launching Text Grab using the same command but pressing Esc to cancel before performing OCR, the application terminates correctly.
Therefore, the issue only occurs after a successful OCR operation.
Versions tested
- 4.10.0: Works correctly; the process terminates after OCR.
- 4.16.0: Regression; the process remains running after OCR.
Intermediate versions have not been tested.
Possible cause
The issue appears to be related to the application shutdown sequence after successful OCR processing.
The relevant methods may include:
OutputUtilities.HandleTextFromOcr()WindowUtilities.CloseAllFullscreenGrabs()WindowUtilities.ShouldShutDown()
The shutdown logic has changed between versions 4.10.0 and 4.16.0, including the use of TtsService.RunWhenIdle().
This is only a possible area for investigation; the exact cause has not been confirmed.
Additional information
The issue is reproducible with background mode disabled and all additional output/post-capture options disabled.
It affects command-line usage where Text Grab is expected to perform a single OCR operation and exit without leaving a background process.
Activity
TheJoeFin commentedon Nov 12, 2026
I am seeing this issue too, thank you for reporting
Re-check shutdown when the grab overlay closes (#705)
TheJoeFin commentedon Nov 23, 2026
@vurumalla92 thank you for the offer, but this has already been fixed in dev. Feel free to test out with this beta1 release https://github.com/TheJoeFin/Text-Grab/releases/tag/v4.17.0-beta1