# Found a tiny bug in the "Clear Stimuli Display"-action

**URL:** <https://mworks.discourse.group/t/found-a-tiny-bug-in-the-clear-stimuli-display-action/886>\
**Category:** Support\
**Created:** [April 19, 2023, 8:22pm UTC](https://mworks.discourse.group/t/found-a-tiny-bug-in-the-clear-stimuli-display-action/886 "2023-04-19T20:22:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbrockhausen](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/rbrockhausen/32/633_2.png) [@rbrockhausen](https://mworks.discourse.group/u/rbrockhausen)\
**Post date:** [April 19, 2023, 8:22pm UTC](https://mworks.discourse.group/t/found-a-tiny-bug-in-the-clear-stimuli-display-action/886/1 "2023-04-19T20:22:41Z")

</div>

Hallo Chris,

I maybe found a tiny inconvenience in the action “Clear Stimulus Display”. I programmed a Dynamic Stimulus which will be reseted after a “stopPlaying()”. This happens when I dequeue the stimulus (with the dequeue action). When I use “Clear Stimulus Display”-action instead no “stopPlaying()” will be sent to the stimulus.  
It is not a big thing (we can use dequeue stimulus), but could maybe create a problem in the far future?

Lieben Gruß aus Göttingen  
Ralf

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [April 20, 2023, 3:29pm UTC](https://mworks.discourse.group/t/found-a-tiny-bug-in-the-clear-stimuli-display-action/886/2 "2023-04-20T15:29:56Z")

</div>

Hi Ralf,

Good to hear from you!

Yes, this was an issue, but I believe it is fixed as of [MWorks 0.12](https://mworks.github.io/news/2023/04/12/0.12-released/). Specifically, if the dynamic stimulus has [autoplay](https://mworks.github.io/documentation/latest/components/moving_dots.html#autoplay) set to YES, clearing the display will invoke `stopPlaying` on the stimulus. (As you noted, this already happened when dequeuing the stimulus and updating the display.)

If autoplay is NO, then dequeuing the stimulus or clearing the display will _not_ invoke `stopPlaying`. In that case, you need to invoke [Stop Dynamic Stimulus](https://mworks.github.io/documentation/latest/components/stop_dynamic_stimulus.html) explicitly.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![rbrockhausen](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/rbrockhausen/32/633_2.png) [@rbrockhausen](https://mworks.discourse.group/u/rbrockhausen)\
**Post date:** [April 25, 2023, 8:36am UTC](https://mworks.discourse.group/t/found-a-tiny-bug-in-the-clear-stimuli-display-action/886/3 "2023-04-25T08:36:47Z")

</div>

Hallo Chris,  
thanks a lot for your answer/explanation. I’m looking forward (and I’m a tiny bit scared) switching to Works 0.12. The eyeLink-plugin creates still some problems (because this library is still compiled for intel-chips, which mean the server must run in emulation mode). Still working on that problem 🕶  
Lieben Gruß  
Ralf

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [April 25, 2023, 11:29am UTC](https://mworks.discourse.group/t/found-a-tiny-bug-in-the-clear-stimuli-display-action/886/4 "2023-04-25T11:29:48Z")

</div>


