<div dir="auto"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div><div dir="auto">Alright, I will do some more testing the coming days. </div><div dir="auto">My guess is that your computer is more powerful than mine, but if Pd crash it seems like something is wrong. Did you try the other patch? It never crash Pd at all, plus it gives error messages in Pd console when having to fast metro settings (which is handy imo). And I have experienced this crash/freeze behavior on two different Mac (with different osx), both cases using Pduino. </div><div dir="auto"><br></div><div dir="auto">Regarding the 13 bug I have tested that and had different result on the same system. I got the impression that it depended on what usb port I used. But it was in the mids of freezes and hard resets.</div><div dir="auto"><br></div><div dir="auto">I think I will do a clean install of osx and see if it makes a difference.<br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Date: Sun, 11 Apr 2021 17:26:48 +0300<br>
From: Alexandros <br>
<br>
I had a look at your setup. In my computer I could lower [metro] down to <br>
3ms without issues. At 2ms Pd crashed. One thing to note: upload the <br>
following code to your Arduino board:<br>
<br>
void setup() {<br>
 ??? Serial.begin(115200);<br>
}<br>
<br>
void loop() {<br>
 ??? Serial.write(13);<br>
 ??? delay(500);<br>
}<br>
<br>
In Pd connect [comport] to [print]. If Pd prints 13 you should be good <br>
to go with the [serial_print] abstraction (and I don't know what's wrong <br>
and why your computer crashes, TBH). If Pd prints 10 then you need the <br>
[serial_print13] abstraction (it might be counter intuitive that when <br>
you don't get 13 printed you need [serial_print13], but that's how I've <br>
named them...). In my computer I get a 10 printed, on my Raspberry Pi <br>
with a Teensy I get 13. I have no idea why this happens, it seems to <br>
depend on the hardware.<br>
<br>
On 10/4/21 11:26 ?.?., Nicklas Lundberg wrote:<br>
> Thank you for doing this. It may also be relevant that I experienced <br>
> the exact same of freeze/crash behavior when using Pduino.<br>
><br>
>     Date: Fri, 9 Apr 2021 17:14:18 +0300<br>
>     From: Alexandros <<a href="mailto:adrcki@gmail.com" target="_blank" rel="noreferrer">adrcki@gmail.com</a> <mailto:<a href="mailto:adrcki@gmail.com" target="_blank" rel="noreferrer">adrcki@gmail.com</a>>><br>
>     To: <a href="mailto:pd-list@lists.iem.at" target="_blank" rel="noreferrer">pd-list@lists.iem.at</a> <mailto:<a href="mailto:pd-list@lists.iem.at" target="_blank" rel="noreferrer">pd-list@lists.iem.at</a>><br>
>     ...<br>
>     This has to do with the abstraction I made then. We did discuss<br>
>     about it<br>
>     on Pd's forum, but it didn't occur to me that this could be the case.<br>
>     I'll have a look at it and get back to you.<br>
><br>
>     On 9/4/21 5:10 ?.?., Nicklas Lundberg wrote:<br>
>     > Hmm, it does not crash when [serial_print any] is disconnected. You<br>
>     > can quit normally.<br>
>     ><br>
>     > This may be relevant:<br>
>     ><br>
>     > Pd console reports no errors when communication fails when<br>
>     trying too<br>
>     > fast updates (with [serial_print any] disconnected less than 30 ms).<br>
>     ><br>
>     > I uploaded a similar setup (pd patch+arduino sketch) to the folder.<br>
>     > Here it does not crash even if updates are sent every 1 ms. And<br>
>     the pd<br>
>     > console starts to write error messages when the communication is<br>
>     too<br>
>     > fast (starts around 7 ms).<br>
</blockquote></div></div></div>