<div dir="ltr"><div dir="ltr"><div dir="ltr">Hmm, it does not crash when [serial_print any] is disconnected. You can quit normally. <div><br></div><div>This may be relevant:</div><div><br></div><div>Pd console reports no errors when communication fails when trying too fast updates (with [serial_print any] disconnected less than 30 ms). <div><br></div><div>I uploaded a similar setup (pd patch+arduino sketch) to the folder. Here it does not crash even if updates are sent every 1 ms. And the pd console starts to write error messages when the communication is too fast (starts around 7 ms). </div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre 9 apr. 2021 kl 15:37 skrev Martin Peach <<a href="mailto:chakekatzil@gmail.com">chakekatzil@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Does it still crash if you disconnect the [serial_print-any]<br>
abstraction from [comport]?<br>
<br>
Martin<br>
<br>
On Fri, Apr 9, 2021 at 7:45 AM Nicklas Lundberg <<a href="mailto:nlundberg@gmail.com" target="_blank">nlundberg@gmail.com</a>> wrote:<br>
>><br>
>> On Fri, 2021-04-09 at 09:31 +0200, Nicklas Lundberg wrote:<br>
>><br>
>> > [comport] is communicating with an Arduino Nano over USB to control<br>
>> > PWM pins.<br>
>> ><br>
>> > If [comport] is receiving messages faster than 50 ms Pd will freeze,<br>
>> > has to be force quitted, system gets sluggish, and the computer has<br>
>> > to be restarted.<br>
>> ><br>
>> > I can replicate it and it happens every time. I wonder if this should<br>
>> > be reported as a bug or if it is expected behavior in the specific<br>
>> > setting.<br>
>><br>
>><br>
>> While not suggesting that I'd be able to help, can you provide some<br>
>> more information, ideally providing a minimal patch that triggers the<br>
>> behaviour?<br>
>><br>
>> Also what versions are involved: OS, Pd, comport?<br>
>><br>
>> Roman<br>
><br>
><br>
> Pd/Arduino codes and crash instructions in this folder:<br>
><br>
> <a href="https://drive.google.com/drive/folders/1oDxeFCc63tvdgP6CWguJmBdfekAAMOrQ?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/drive/folders/1oDxeFCc63tvdgP6CWguJmBdfekAAMOrQ?usp=sharing</a><br>
><br>
> comport 1.1.1<br>
> Pd-0.51-4<br>
> MacOS Mojave 10.14.6<br>
> MacBook Air 11" mid 2012<br>
><br>
> to crash pd and computer:<br>
> Upload sketch to Ardunio (Nano)<br>
> Open comport serial communication<br>
> activate dsp<br>
> Set metro object to less than 50 ms<br>
> Toggle metro on to crash<br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>