Skip to content

Click-loop errors are swallowed and shown as a normal 'Stopped' #42

Closed

Description

@TMHSDigital

Summary

If a click fails inside the loop (coordinates out of bounds after a resolution or monitor change, a PyAutoGUI error, an unexpected exception), the loop logs a WARNING and exits, and the UI reports a normal "Stopped". The user isn't told that anything went wrong.

Why it matters

Users see the clicker stop after 0 or a few clicks with no explanation. The only trace is %APPDATA%\WindowsAutoclicker\autoclicker.log, which the README never mentions. exceptions.py already has create_user_friendly_error(), but the background path doesn't use it.

Evidence

  • autoclicker/core/click_engine.py:338-345:
    except Exception as e:
        _log.warning("Click loop error: %s", e)
    finally:
        self._request_stop()
        if not self._safety_fired and on_click_complete:
            on_click_complete()
  • CoordinateError / ClickEngineError raised in _perform_click (:451-475, :512-518) end up here.
  • gui/main_window.py:342-345 paints "Stopped" for every completion.

Suggested approach

Done when

  • A forced CoordinateError mid-run shows an error status/dialog instead of "Stopped" (unit test using the _bare_app() pattern).
  • The session log records reason=error.

Activity

  1. added
    bug
    priority: medium
    ux
    on Oct 4, 2026
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

    bugpriority: mediumux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions