Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List reporting output stops when executing a 'stop' message #63

Open
menderchuck opened this issue Feb 20, 2018 · 3 comments
Open

List reporting output stops when executing a 'stop' message #63

menderchuck opened this issue Feb 20, 2018 · 3 comments

Comments

@menderchuck
Copy link

List reporting output stops when executing a 'stop' message.

In a patch with a moderate use of scheduled clocks, sending a 'stop' message stops the transport but also stops the list output.

Steps to reproduce:

  1. Send play message.
  2. Send stop message.

Notice that the list output has stopped. Also, notice that the last reported 'play' state remains 1.

Taking a look at the source, it seems like the intent is for list output to stop when the transport is in stopped state. However, constant list output while in stopped state has been the behavior since 1.0. In this case, the clock is being set and then unset on each subsequent perform callback.

The problem that causes the list output to stop (the reporting clock is never rescheduled) is the fact that the scheduled clock ( clock_delay(x->clock, 0) ) is being unset before it fires the reporting callback.

Here's the test patch which is a little weird, but it was the first idea that reproduced the problem. I/O vector size should be set to 64 or less.


----------begin_max5_patcher----------
1637.3oc2btzaiaCDG+rymBA0asYCH4PpG8VaOrm5odnnXwh.YaZGsQVxPO1
MoK18ydoHoTbbhkGulxEQI.1xTOl4+73mXHjyWuZl+7hGjU9d+p2G7lM6qWM
aldn1AlY+7L+MIOrHKoReX94xuTL+S9Wa1Us7gZ8vYEIKmmjutaGU0OlI06o
aj7lMo4YxZ8kg9zfEM06O51j5E2klu91R4hZiywn2Pt1iBQsuEPZekwtg38Q
6ojtTaLkq8NJzYRykt9wsRyEwW6gdercue6pqZe4ZjxdUVgxWOr5VUTtIQ6q
A30K6v5kBhVMJDraDp2FVvT+9KTYxFYsr7VYdxbiKRNTvv+5yIfnTxbY4Ykt
GP9Lk7E8xGfAkOYxIeZLfV9w+en9WGBzjuMYw8dq7RU+tR+a5YEhBOdCBk1F
hh4CEhBNHPP0Vq5ZUwhz7ceqe3WtQ6Q3xXVsWl27QqNx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mX9SGTQ4RYo96O43a58lPZuooW.S+5VVL9Vdu4B0aZ1Evzr
W2zv3a58PF8lledlFikeQijYMpR1t8yxxJ6AqMg+ljOUT1+su0eSZt4if9ik
xOm1c7b8HIkKtKsVtntozr3bOX+FV4uoPIv7lTa4rRbWYWDu8VWr7jMlS82Z
VlV7W0I0MU29mx7FyxtoD0pjlr5mGHludUZV1hhLi6MqeOy76VeNeydu1Nb+
w9AOxMrXNkFoBK2.THjEn2RsgPryzLsmCs6j3BdLg0dn7.VHWn2JhABncKxd
mF6IaQnwFKPhiHbyVpgnJas6okju1rBmrv1UkzN51xhsEkcoT0oF2e7M0EqK
SVlJyq64UlTrIba9dgq169qcp+FU.Ms6b1stqOYbeUVpJA92sY2gRD6DVM+W
ZX2W5J5NSewr9v+dVirasXeceIYwBkAdVhFngA7v1PdPe1KtcH5H3fkEeI+j
8vm7Kgp9iGqKOFIO7OdL4zcPBKVv00ugg.vzAyHFkRA26fuuTJ+A7PczCZ+o
cKZPTPqa5Zm6ejYYEe4j8tHlfpCZgQzHpFUHTQTwy598WUn7rz+0x1or1ChP
hbk.z+Gq38EYKOY2usTjnS+hXFUnUBcW7kSbvRCto0CQRaTcN7f.H1VNFFZJ
LUA1X34g14qGaAoNmuc0+ADNPd3J
-----------end_max5_patcher-----------
@steadykammer
Copy link
Collaborator

steadykammer commented Mar 6, 2018

hi there @menderchuck . sorry for delay in reply - i had to take a couple weeks off for a different project.
firstly, surely you meant "signal vector size should be set to 64 or less", not "I/O vector size should be set to 64 or less"?
i see the source code is funky regards ordering of clock, but for me i cannot reproduce the play staying at '1' bug. also, i am struggling to understand why we need all the scheduled events in your demo patch? they all just carry on fine. am i missing something?

@menderchuck
Copy link
Author

menderchuck commented Mar 8, 2018 via email

@steadykammer
Copy link
Collaborator

steadykammer commented Mar 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants