Listener order dependency with two UtteranceQueues sharing an Announcer
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- accessibility
Research direction
Reproduce the issue with two UtteranceQueues sharing one Announcer, keeping the first queue nonempty. Start by tracing how UtteranceQueues are stepped through the stepTimer listener order and how readyToSpeak is consumed; done means both queues can announce rather than the later queue being blocked indefinitely.
Written by the indexing model from the issue text.
Description
If you share an Announcer between two UtteranceQueues and an UtteranceQueue doesn't empty it is is possible that the second UtteranceQueue will never get to announce because the Announcer is used up (never readyToSpeak ) by the first UtteranceQueue.
UtteranceQueues are stepped, and the order that they are stepped is determined by stepTimer listener order (i.e. order of UtteranceQueue creation). If the first UtteranceQueue in listener order always has Utterances, the second one may never speak.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phetsims/utterance-queue
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
phetsims/utterance-queue#125 ·
-
phetsims/utterance-queue#122 · 2 comments · 1 assignee ·
-
phetsims/utterance-queue#121 · 1 assignee ·
-
Remove addToFront Open
phetsims/utterance-queue#120 · 1 assignee ·
-
dev:voicing type:i18n
Difficulty 5/5 Over a week Newbie friendliness 25/100
phetsims/utterance-queue#119 · 1 comment ·
All issues in phetsims/utterance-queue
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
TanStack/tanstack.com#1293 ·