Skip to content

Speak.activity crashes or breaks when Enter is held after typing text #2182

@rommeltrejo

Description

@rommeltrejo

When using Speak.activity, press and holding the Enter key after typing text can cause the activity to repeatedly trigger speech playback until the page or app breaks.

Steps to reproduce

  1. Open Sugarizer
  2. Launch Speak.activity
  3. Type some text in the input box
  4. Press and hold the Enter key
  5. Keep holding Enter while the text starts playing

Expected behavior

  • Pressing Enter should play the typed text
  • Holding Enter should not cause the page or app to break
  • Only one playback should run at a time
  • If Enter remains held, playback should only restart after the current playback finishes

Actual behavior

  • Holding Enter repeatedly triggers playback
  • Repeated key events retrigger playback immediately
  • Playback can overlap or re-enter while speech is already running
  • After repeated triggers, memory usage grows and the page/app can break or become unusable
  • In the Sugarizer app this can end as a blank screen after running out of memory
  • In the try-it website Chrome/Edge prompts the user to reload the page

Environment

  • Windows, Linux, Chrome, Edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions