Skip to content

Text Grab 4.16.0 remains running in the background after successful Fullscreen OCR #705

Open

Description

@jOeOOeOj

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

  1. Make sure Text Grab is not already running.

  2. Disable Run in the background in Settings.

  3. Disable Auto start Text Grab when you login.

  4. Disable the following options:

    • Send output to Edit Text Window by default
    • Insert captured text into the focused app
    • All additional post-capture actions
  5. Launch Text Grab from the command line:

    Text-Grab.exe Fullscreen
  6. Select a screen region containing text.

  7. Complete the OCR operation.

  8. Check whether Text-Grab.exe is 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.exe process continues running indefinitely.

The process can be confirmed using PowerShell:

Get-CimInstance Win32_Process -Filter "Name='Text-Grab.exe'" |
    Select-Object ProcessId, ParentProcessId, CommandLine

Example 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

  1. added
    bug
    on Nov 11, 2026
  2. TheJoeFin commented on Nov 12, 2026

    @TheJoeFin
    Owner

    I am seeing this issue too, thank you for reporting

  3. TheJoeFin commented on Nov 23, 2026

    @TheJoeFin
    Owner

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions