You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assertion failed: About to add the priority listener twice and only one should exist on the Utterance. The listener should have been removed by removeOthersAndUpdateUtteranceWrapper.
#1337
Closed
zepumph opened this issue
Jan 20, 2022
· 4 comments
I found a bug based on recent work going on in UtteranceQueue around phetsims/joist#752.
@jessegreenberg, I think what is happening, is that when you use a single Utterance to spam a bunch of alerts through the queue for voicing, the Priority listener is still attached to that Utterance while it is speaking. Thus, if you try to add that same utterance to the queue again, it will error out because the listener is still in the map. Perhaps we need to be less strict? I'm not really sure. Over to you, let me know if you want to discuss this further.
The text was updated successfully, but these errors were encountered:
I found a bug based on recent work going on in UtteranceQueue around phetsims/joist#752.
@jessegreenberg, I think what is happening, is that when you use a single Utterance to spam a bunch of alerts through the queue for voicing, the Priority listener is still attached to that Utterance while it is speaking. Thus, if you try to add that same utterance to the queue again, it will error out because the listener is still in the map. Perhaps we need to be less strict? I'm not really sure. Over to you, let me know if you want to discuss this further.
The text was updated successfully, but these errors were encountered: