Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
>
> Cool, thanks. Even if there is an (easy) solution, it's good to submit the
> point that Pd probably shouldn't stop working completely when a checkbox is
> changed in the settings. :)


Done!

Em ter., 22 de mar. de 2022 às 13:28, Dan Wilcox 
escreveu:

> Cool, thanks. Even if there is an (easy) solution, it's good to submit the
> point that Pd probably shouldn't stop working completely when a checkbox is
> changed in the settings. :)
>
> On Mar 22, 2022, at 2:52 PM, Bruno Rohde  wrote:
>
> Hi Dan,
>
> Iohannes solution (change "use callbacks" state) seems to solve the
> problem. Anyway, I can open an issue to describe that in my case DSP only
> works with callbacks on.
>
> Thanks for the answer and instructions,
>
> cheers
>
> Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox 
> escreveu:
>
>> Yes, please do so with all the relevant info: OS, behavior, steps you
>> tried etc.
>>
>> On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at wrote:
>>
>> Do you think it's worth opening an issue on pd's github?
>>
>>
>> 
>> Dan Wilcox
>> @danomatika 
>> danomatika.com
>> robotcowboy.com
>>
>>
>>
>>
>
> --
> Bruno Faria Rohde
>
>
> 
> Dan Wilcox
> @danomatika 
> danomatika.com
> robotcowboy.com
>
>
>
>

-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi

Hi Jeppi,

I have already explained it in a previous mail.

Christof

On 22.03.2022 17:55, Jeppi Jeppi wrote:
What does the 'use callbacks' exactly do? I guess PD always fills the 
audio buffer by callback (?).


Obtén l'Outlook per a l'Android <https://aka.ms/AAb9ysg>

*From:* Pd-list  on behalf of Bruno 
Rohde 

*Sent:* Tuesday, March 22, 2022 2:52:25 PM
*To:* Dan Wilcox 
*Cc:* Pd-List 
*Subject:* Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04
Hi Dan,

Iohannes solution (change "use callbacks" state) seems to solve the 
problem. Anyway, I can open an issue to describe that in my case DSP 
only works with callbacks on.


Thanks for the answer and instructions,

cheers

Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox 
 escreveu:


Yes, please do so with all the relevant info: OS, behavior, steps
you tried etc.


On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at wrote:

Do you think it's worth opening an issue on pd's github?



Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com>
robotcowboy.com <http://robotcowboy.com>





--
Bruno Faria Rohde

___
Pd-list@lists.iem.at  mailing list
UNSUBSCRIBE and account-management 
->https://lists.puredata.info/listinfo/pd-list___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Jeppi Jeppi
What does the 'use callbacks' exactly do? I guess PD always fills the audio 
buffer by callback (?).

Obtén l'Outlook per a l'Android<https://aka.ms/AAb9ysg>

From: Pd-list  on behalf of Bruno Rohde 

Sent: Tuesday, March 22, 2022 2:52:25 PM
To: Dan Wilcox 
Cc: Pd-List 
Subject: Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

Hi Dan,

Iohannes solution (change "use callbacks" state) seems to solve the problem. 
Anyway, I can open an issue to describe that in my case DSP only works with 
callbacks on.

Thanks for the answer and instructions,

cheers

Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox 
mailto:danomat...@gmail.com>> escreveu:
Yes, please do so with all the relevant info: OS, behavior, steps you tried etc.

On Mar 22, 2022, at 3:00 AM, 
pd-list-requ...@lists.iem.at<mailto:pd-list-requ...@lists.iem.at> wrote:

Do you think it's worth opening an issue on pd's github?


Dan Wilcox
@danomatika<http://twitter.com/danomatika>
danomatika.com<http://danomatika.com>
robotcowboy.com<http://robotcowboy.com>





--
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Dan Wilcox
Yeah, this makes the most sense: try the user value, if it's too low, then use 
the hardware value and print a notice. At the very least, Pd will keep working. 
:) I do something similar in a work project that uses Portaudio and CoreAudio.

> On Mar 22, 2022, at 4:33 PM, pd-list-requ...@lists.iem.at wrote:
> 
> Message: 4
> Date: Tue, 22 Mar 2022 16:33:24 +0100
> From: Christof Ressi mailto:i...@christofressi.com>>
> To: pd-list@lists.iem.at <mailto:pd-list@lists.iem.at>
> Subject: Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04
> Message-ID: <9abb25f0-6838-daf3-031f-8e1cf801b...@christofressi.com 
> <mailto:9abb25f0-6838-daf3-031f-8e1cf801b...@christofressi.com>>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
>> Of course, now the displayed settings doesn't always reflect the setting 
>> used internally.
> We could post a little notice that the delay setting has been capped. 
> Probably also for the ASIO backend. But that's just cosmetics.
> 
> @umlaeute: should I push the quick fix below to develop?
> 
> Christof


Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Dan Wilcox
Cool, thanks. Even if there is an (easy) solution, it's good to submit the 
point that Pd probably shouldn't stop working completely when a checkbox is 
changed in the settings. :)

> On Mar 22, 2022, at 2:52 PM, Bruno Rohde  wrote:
> 
> Hi Dan,
> 
> Iohannes solution (change "use callbacks" state) seems to solve the problem. 
> Anyway, I can open an issue to describe that in my case DSP only works with 
> callbacks on.
> 
> Thanks for the answer and instructions,
> 
> cheers
> 
> Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox  > escreveu:
> Yes, please do so with all the relevant info: OS, behavior, steps you tried 
> etc.
> 
>> On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at 
>>  wrote:
>> 
>> Do you think it's worth opening an issue on pd's github?
> 
> 
> Dan Wilcox
> @danomatika 
> danomatika.com 
> robotcowboy.com 
> 
> 
> 
> 
> 
> -- 
> Bruno Faria Rohde


Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Miller Puckette via Pd-list
I think the bug report isn't needed, thanks.

Meanwhile, yes, it would be appropriate to print a message that the delay
got reset, and yes, please do throw it in the develop PR.

thanks
M

On Tue, Mar 22, 2022 at 12:43:08PM -0300, Bruno Rohde wrote:
> As it looks like you guys are working on a quick and simple solution, I'll
> wait a bit to see if it's really necessary to file a bug. If it's still
> relevant, I can do it later.
> 
> Em ter., 22 de mar. de 2022 às 12:33, Christof Ressi 
> escreveu:
> 
> > > Of course, now the displayed settings doesn't always reflect the setting
> > used internally.
> > We could post a little notice that the delay setting has been capped.
> > Probably also for the ASIO backend. But that's just cosmetics.
> >
> > @umlaeute: should I push the quick fix below to develop?
> >
> > Christof
> >
> > On 22.03.2022 16:26, Roman Haefeli wrote:
> > > On Tue, 2022-03-22 at 16:00 +0100, Christof Ressi wrote:
> > >>
> > >> I think the solution is simple:
> > >>
> > >> In jack_open_audio() replace
> > >>
> > >> if (advance_samples < DEFDACBLKSIZE)
> > >>  advance_samples = DEFDACBLKSIZE;
> > >> with
> > >>
> > >> if (advance_samples < jack_blocksize)
> > >>  advance_samples = jack_blocksize;
> > >> @Roman: can you give this a try?
> > > Yeah, it works. Now - without callbacks - it works with any setting for
> > > 'delay (ms)'. Of course, now the displayed settings doesn't always
> > > reflect the setting used internally.
> > >
> > > Roman
> > >
> > >
> > > ___
> > > Pd-list@lists.iem.at mailing list
> > > UNSUBSCRIBE and account-management ->
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=SO2UYD30OVRry_i7Df-5eiHdJjPK6sub3wzpuMKbAGb0-Cgf7gw9gtArLotv71SG&s=JbWk5Yrlukjp0FFg2Wbth7hFRm22tSjDTRlRNnN6Nks&e=
> >  
> >
> >
> >
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwIFaQ&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=SO2UYD30OVRry_i7Df-5eiHdJjPK6sub3wzpuMKbAGb0-Cgf7gw9gtArLotv71SG&s=JbWk5Yrlukjp0FFg2Wbth7hFRm22tSjDTRlRNnN6Nks&e=
> >  
> >
> 
> 
> -- 
> Bruno Faria Rohde

> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=SO2UYD30OVRry_i7Df-5eiHdJjPK6sub3wzpuMKbAGb0-Cgf7gw9gtArLotv71SG&s=JbWk5Yrlukjp0FFg2Wbth7hFRm22tSjDTRlRNnN6Nks&e=
>  




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
As it looks like you guys are working on a quick and simple solution, I'll
wait a bit to see if it's really necessary to file a bug. If it's still
relevant, I can do it later.

Em ter., 22 de mar. de 2022 às 12:33, Christof Ressi 
escreveu:

> > Of course, now the displayed settings doesn't always reflect the setting
> used internally.
> We could post a little notice that the delay setting has been capped.
> Probably also for the ASIO backend. But that's just cosmetics.
>
> @umlaeute: should I push the quick fix below to develop?
>
> Christof
>
> On 22.03.2022 16:26, Roman Haefeli wrote:
> > On Tue, 2022-03-22 at 16:00 +0100, Christof Ressi wrote:
> >>
> >> I think the solution is simple:
> >>
> >> In jack_open_audio() replace
> >>
> >> if (advance_samples < DEFDACBLKSIZE)
> >>  advance_samples = DEFDACBLKSIZE;
> >> with
> >>
> >> if (advance_samples < jack_blocksize)
> >>  advance_samples = jack_blocksize;
> >> @Roman: can you give this a try?
> > Yeah, it works. Now - without callbacks - it works with any setting for
> > 'delay (ms)'. Of course, now the displayed settings doesn't always
> > reflect the setting used internally.
> >
> > Roman
> >
> >
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi

Of course, now the displayed settings doesn't always reflect the setting used 
internally.
We could post a little notice that the delay setting has been capped. 
Probably also for the ASIO backend. But that's just cosmetics.


@umlaeute: should I push the quick fix below to develop?

Christof

On 22.03.2022 16:26, Roman Haefeli wrote:

On Tue, 2022-03-22 at 16:00 +0100, Christof Ressi wrote:


I think the solution is simple:

In jack_open_audio() replace

if (advance_samples < DEFDACBLKSIZE)
 advance_samples = DEFDACBLKSIZE;
with

if (advance_samples < jack_blocksize)
 advance_samples = jack_blocksize;
@Roman: can you give this a try?

Yeah, it works. Now - without callbacks - it works with any setting for
'delay (ms)'. Of course, now the displayed settings doesn't always
reflect the setting used internally.

Roman


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 16:00 +0100, Christof Ressi wrote:
> 
> 
> I think the solution is simple:
> 
> In jack_open_audio() replace
> 
> if (advance_samples < DEFDACBLKSIZE)
> advance_samples = DEFDACBLKSIZE;
> with
> 
> if (advance_samples < jack_blocksize)
> advance_samples = jack_blocksize;
> @Roman: can you give this a try?

Yeah, it works. Now - without callbacks - it works with any setting for
'delay (ms)'. Of course, now the displayed settings doesn't always
reflect the setting used internally. 

Roman



signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Actually, I just remember that I fixed a very similar issue with the 
ASIO backend. However, it was a bit more nasty, because Pd would simply 
crash if the "Delay" value was too low :-) My solution was too simply 
cap the value at the hardware blocksize:


https://github.com/pure-data/pure-data/blob/3ae0388c2ba354e2b5d818c1422b7484c4a491bf/src/s_audio.c#L357

---

The problem with the Jack backend is that it caps at *Pd's* blocksize 
(64 samples) - which is often lower than the Jack buffersize. 
Consequently, the Jack callback might never have a chance to fill the 
ring buffer.


I think the solution is simple:

In /jack_open_audio()/ replace

if (advance_samples < DEFDACBLKSIZE)
advance_samples = DEFDACBLKSIZE;

with

if (advance_samples < jack_blocksize)
advance_samples = jack_blocksize;

@Roman: can you give this a try?

Christof

On 22.03.2022 15:39, Roman Haefeli wrote:

On Tue, 2022-03-22 at 15:23 +0100, IOhannes m zmoelnig wrote:

On 3/22/22 15:06, Roman Haefeli wrote:

On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote:

Anyway, I can open an issue to describe that in my case DSP
only
works with callbacks on.

   Yes, please! The Jack backend is supposed to work regardless of
the
"callback" setting.

But not regardless of the "delay (ms)" setting. If it is too low,
Pd
won't process audio. I don't know if there is a way to know
beforehand
what 'too low' is. It isn't necessarily a bug in Pd, I'd say.

it's probably a bug in Pd if the DSP and the GUI both freeze.

Indeed, if the buffer is set too small, then Pd GUI freezes!

 From my anecdotal testing, it looks like the critical value is
predictable. As Christof said, the buffer cannot be smaller than JACK's
blocksize.

For instance with JACK @ 256 samples @ 44.1kHz (5.8ms):
   - Pd works with 6ms
   - Pd freezes with 5ms

I guess the dialog could be designed in a way to set a lower boundary
that is dependent on the detected JACK blocksize. I don't know,
however, if Pd is able to detect the blocksize before DSP is turned on.

Roman
  


___
Pd-list@lists.iem.at  mailing list
UNSUBSCRIBE and account-management 
->https://lists.puredata.info/listinfo/pd-list___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 15:23 +0100, IOhannes m zmoelnig wrote:
> On 3/22/22 15:06, Roman Haefeli wrote:
> > On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote:
> > > > Anyway, I can open an issue to describe that in my case DSP
> > > > only
> > > > works with callbacks on.
> > >   Yes, please! The Jack backend is supposed to work regardless of
> > > the
> > > "callback" setting.
> > 
> > But not regardless of the "delay (ms)" setting. If it is too low,
> > Pd
> > won't process audio. I don't know if there is a way to know
> > beforehand
> > what 'too low' is. It isn't necessarily a bug in Pd, I'd say.
> 
> it's probably a bug in Pd if the DSP and the GUI both freeze.

Indeed, if the buffer is set too small, then Pd GUI freezes! 

From my anecdotal testing, it looks like the critical value is
predictable. As Christof said, the buffer cannot be smaller than JACK's
blocksize. 

For instance with JACK @ 256 samples @ 44.1kHz (5.8ms):
  - Pd works with 6ms
  - Pd freezes with 5ms

I guess the dialog could be designed in a way to set a lower boundary
that is dependent on the detected JACK blocksize. I don't know,
however, if Pd is able to detect the blocksize before DSP is turned on.

Roman 
 


signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
>
> Actually, there *is* a bug: Pd should not just output silence if the user
> accidentally sets a too small value for "Delay". It should either clamp the
> value or post a warning. It would be great if you could file a bug report.
>

Agreed, I'll file the bug report.

Em ter., 22 de mar. de 2022 às 11:34, Christof Ressi 
escreveu:

> good that we could figure out the problem!
>
> So, that is not a bug, but maybe this limit should be clearly stated
> somewhere to avoid confusion.
>
> Actually, there *is* a bug: Pd should not just output silence if the user
> accidentally sets a too small value for "Delay". It should either clamp the
> value or post a warning. It would be great if you could file a bug report.
>
> Christof
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi

good that we could figure out the problem!

So, that is not a bug, but maybe this limit should be clearly stated 
somewhere to avoid confusion. 
Actually, there *is* a bug: Pd should not just output silence if the 
user accidentally sets a too small value for "Delay". It should either 
clamp the value or post a warning. It would be great if you could file a 
bug report.


Christof
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
Thanks Christof and Roman for the clarification, now I understand it a
little!

Actually, before Pd 0.52, the polling scheduler did not really work
> correctly together with the Jack backend, i.e. the "Delay" setting was
> basically ignored and it just did double buffering. This has been fixed.
>
> Anyway, Pd should make sure that "Delay" is not smaller than the Jack
> buffer size, thus preventing silent output. If that's not the case,
> please file a bug report!
>

You're right! I was using a 10ms delay with 512 buffer size / 3 periods on
Jack.
As soon as I changed to 12ms DSP worked normally. I used 10ms on Pd for a
long time, but it was ignored as you said, and now it has turned into my
"problem".

So, that is not a bug, but maybe this limit should be clearly stated
somewhere to avoid confusion.

Thank you all so much!


Em ter., 22 de mar. de 2022 às 11:08, Christof Ressi 
escreveu:

> On 22.03.2022 15:00, Roman Haefeli wrote:
>
> >  From my experience,
> > setting it too low causes Pd to not process audio at all. In my
> > experience, this value is below 5ms, but this probably depends on
> > JACK's blocksize setting.
>
> This might actually explain the issue!
>
> @Bruno: what is you current value of "Delay" in the audio settings and
> what is your Jack buffer size?
>
> Actually, before Pd 0.52, the polling scheduler did not really work
> correctly together with the Jack backend, i.e. the "Delay" setting was
> basically ignored and it just did double buffering. This has been fixed.
>
> Anyway, Pd should make sure that "Delay" is not smaller than the Jack
> buffer size, thus preventing silent output. If that's not the case,
> please file a bug report!
>
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread IOhannes m zmoelnig

On 3/22/22 15:06, Roman Haefeli wrote:

On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote:

Anyway, I can open an issue to describe that in my case DSP only
works with callbacks on.

  Yes, please! The Jack backend is supposed to work regardless of the
"callback" setting.


But not regardless of the "delay (ms)" setting. If it is too low, Pd
won't process audio. I don't know if there is a way to know beforehand
what 'too low' is. It isn't necessarily a bug in Pd, I'd say.



it's probably a bug in Pd if the DSP and the GUI both freeze.
(e.g. a solution as suggested by christof is to ensure the value is sane 
- at least if we have some possibility to determine that beforehand)


gfmadr
IOhannes


OpenPGP_signature
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi

On 22.03.2022 15:00, Roman Haefeli wrote:


 From my experience,
setting it too low causes Pd to not process audio at all. In my
experience, this value is below 5ms, but this probably depends on
JACK's blocksize setting.


This might actually explain the issue!

@Bruno: what is you current value of "Delay" in the audio settings and 
what is your Jack buffer size?


Actually, before Pd 0.52, the polling scheduler did not really work 
correctly together with the Jack backend, i.e. the "Delay" setting was 
basically ignored and it just did double buffering. This has been fixed.


Anyway, Pd should make sure that "Delay" is not smaller than the Jack 
buffer size, thus preventing silent output. If that's not the case, 
please file a bug report!





___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 14:56 +0100, Christof Ressi wrote:
> > Anyway, I can open an issue to describe that in my case DSP only
> > works with callbacks on.
>  Yes, please! The Jack backend is supposed to work regardless of the
> "callback" setting.

But not regardless of the "delay (ms)" setting. If it is too low, Pd
won't process audio. I don't know if there is a way to know beforehand
what 'too low' is. It isn't necessarily a bug in Pd, I'd say.

Roman


signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Roman Haefeli
On Tue, 2022-03-22 at 10:45 -0300, Bruno Rohde wrote:
> > Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog.
> 
> That did the trick, with callbacks ON DSP works. I never used it
> before, and to be honest, I don't know what this does, but for now it
> solved the problem.
> Could you (or someone) explain briefly what this is for? Is there any
> impact elsewhere (maybe performance) by using it enabled?

From what I understand, using callbacks means that Pd processes audio
as soon as it is provided by JACK. This means, Pd doesn't add
additional latency as JACK client. But it also means, that when Pd
isn't quick enought with writing back processed data, the whole JACK
process with all clients experiences a drop-out.

Without callbacks, Pd is less tightly coupled to JACK and uses a
ringbuffer for input and output. The size of the ringbuffer is set in
the 'delay(ms)' setting in the audio settings. From my experience,
setting it too low causes Pd to not process audio at all. In my
experience, this value is below 5ms, but this probably depends on
JACK's blocksize setting. 

Roman


signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Anyway, I can open an issue to describe that in my case DSP only works 
with callbacks on.
Yes, please! The Jack backend is supposed to work regardless of the 
"callback" setting.


Christof

On 22.03.2022 14:52, Bruno Rohde wrote:

Hi Dan,

Iohannes solution (change "use callbacks" state) seems to solve the 
problem. Anyway, I can open an issue to describe that in my case DSP 
only works with callbacks on.


Thanks for the answer and instructions,

cheers

Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox 
 escreveu:


Yes, please do so with all the relevant info: OS, behavior, steps
you tried etc.


On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at wrote:

Do you think it's worth opening an issue on pd's github?



Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 





--
Bruno Faria Rohde

___
Pd-list@lists.iem.at  mailing list
UNSUBSCRIBE and account-management 
->https://lists.puredata.info/listinfo/pd-list___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Christof Ressi
Could you (or someone) explain briefly what this is for? 
If "callbacks" is ON, Pd runs directly in the audio callback. This gives 
you lower latencies, but less "leeway" for CPU fluctuations - unless you 
increase the hardware/jack buffer size accordingly.


If "callbacks" is OFF, Pd uses a polling scheduler which runs 
independently from the audio callback and exchanges audio via a 
(lock-free) ringbuffer. This ringbuffer essentially adds some extra 
latency, so that Pd is allowed to "fall behind", as long as it can catch 
up again. You can control the latency with the "Delay" setting, 
independently from the actual hardware/jack buffer size, which can be 
quite useful.


As a rule of thumb: don't use "callbacks" unless you *know* that you 
need it :-)


Christof

On 22.03.2022 14:45, Bruno Rohde wrote:


Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog.


That did the trick, with callbacks ON DSP works. I never used it 
before, and to be honest, I don't know what this does, but for now it 
solved the problem.
Could you (or someone) explain briefly what this is for? Is there any 
impact elsewhere (maybe performance) by using it enabled?


Anyway, thank you so much for the hint.

Cheers


Em ter., 22 de mar. de 2022 às 03:46, IOhannes m zmölnig 
 escreveu:


Am 21. März 2022 14:18:21 MEZ schrieb Bruno Rohde
:
 anyone have any information about this problem? Any tips on how to
>investigate the cause and solution for it?
>

Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog.


mfg.sfg.jfd
IOhannes


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list



--
Bruno Faria Rohde

___
Pd-list@lists.iem.at  mailing list
UNSUBSCRIBE and account-management 
->https://lists.puredata.info/listinfo/pd-list___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
Hi Dan,

Iohannes solution (change "use callbacks" state) seems to solve the
problem. Anyway, I can open an issue to describe that in my case DSP only
works with callbacks on.

Thanks for the answer and instructions,

cheers

Em ter., 22 de mar. de 2022 às 06:37, Dan Wilcox 
escreveu:

> Yes, please do so with all the relevant info: OS, behavior, steps you
> tried etc.
>
> On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at wrote:
>
> Do you think it's worth opening an issue on pd's github?
>
>
> 
> Dan Wilcox
> @danomatika 
> danomatika.com
> robotcowboy.com
>
>
>
>

-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Bruno Rohde
>
> Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog.
>

That did the trick, with callbacks ON DSP works. I never used it before,
and to be honest, I don't know what this does, but for now it solved the
problem.
Could you (or someone) explain briefly what this is for? Is there any
impact elsewhere (maybe performance) by using it enabled?

Anyway, thank you so much for the hint.

Cheers


Em ter., 22 de mar. de 2022 às 03:46, IOhannes m zmölnig 
escreveu:

> Am 21. März 2022 14:18:21 MEZ schrieb Bruno Rohde :
>  anyone have any information about this problem? Any tips on how to
> >investigate the cause and solution for it?
> >
>
> Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog.
>
>
> mfg.sfg.jfd
> IOhannes
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-22 Thread Dan Wilcox
Yes, please do so with all the relevant info: OS, behavior, steps you tried etc.

> On Mar 22, 2022, at 3:00 AM, pd-list-requ...@lists.iem.at wrote:
> 
> Do you think it's worth opening an issue on pd's github?


Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread IOhannes m zmölnig
Am 21. März 2022 14:18:21 MEZ schrieb Bruno Rohde :
 anyone have any information about this problem? Any tips on how to
>investigate the cause and solution for it?
>

Turn OFF (or ON) the "use callbacks" checkbox in the audio dialog.


mfg.sfg.jfd
IOhannes


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Bruno Rohde
>
> You know that you can increase Pd's debugging level and/or
> start it with the -verbose flag to get more detailed error messages.
> Does Pd post anything there when you start DSP?


Yes, I know, but there's no info about the problem, that's the main reason
I came to ask here (for the first time in 10 years using Pd, btw).

On the jackd side: Are you getting any messages from jackd, for example
> by looking at qjackctl's "Messages"?
>

I see nothing special from jackd side, looks like everything is working
properly, and Pd shows up in patchbays like qjackctl and catia. Starting
jackd via terminal with -v(erbose) and comparing 0.51.4 (audio ok) and
0.52.1 (no audio) the output looks the same.

And do you have a second alternative sound card you could try?
>

Not now, but it doesn't seem it will make a difference in this case. When I
have my other sound card in the next few days I'll try again.

Do you think it's worth opening an issue on pd's github?

Thank you for the support,

Cheers


Em seg., 21 de mar. de 2022 às 19:58, Peter P. 
escreveu:

> * Bruno Rohde  [2022-03-21 18:20]:
> > I just installed the latest version enabling the "jammy" repo (the one
> that
> > has 0.52-1), and the result was the same, no DSP using Jack.
> > No luck so far :(
> But great that you tried it and hence gathered more information about your
> problem. You know that you can increase Pd's debugging level and/or
> start it with the -verbose flag to get more detailed error messages.
> Does Pd post anything there when you start DSP?
>
> On the jackd side: Are you getting any messages from jackd, for example
> by looking at qjackctl's "Messages"?
>
> And do you have a second alternative sound card you could try?
>
> cheersz, P
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Peter P.
* Bruno Rohde  [2022-03-21 18:20]:
> I just installed the latest version enabling the "jammy" repo (the one that
> has 0.52-1), and the result was the same, no DSP using Jack.
> No luck so far :(
But great that you tried it and hence gathered more information about your
problem. You know that you can increase Pd's debugging level and/or
start it with the -verbose flag to get more detailed error messages.
Does Pd post anything there when you start DSP?

On the jackd side: Are you getting any messages from jackd, for example
by looking at qjackctl's "Messages"?

And do you have a second alternative sound card you could try?

cheersz, P



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Bruno Rohde
I just installed the latest version enabling the "jammy" repo (the one that
has 0.52-1), and the result was the same, no DSP using Jack.
No luck so far :(

Em seg., 21 de mar. de 2022 às 13:14, Peter P. 
escreveu:

> * Bruno Rohde  [2022-03-21 16:31]:
> > Hi Peter,
> >
> >
> > > Bruno, which version of Pd is available on Ubuntu via the apt package
> > > manager?
> > >
> >
> > puredata/focal-updates,focal-updates,now 0.50.2-3ubuntu0.1 all
> [installed]
>
> Does Ubuntu have the latest and greatest Pd in its backports perhaps?
> https://help.ubuntu.com/community/UbuntuBackports
>
>
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Peter P.
* Bruno Rohde  [2022-03-21 16:31]:
> Hi Peter,
> 
> 
> > Bruno, which version of Pd is available on Ubuntu via the apt package
> > manager?
> >
> 
> puredata/focal-updates,focal-updates,now 0.50.2-3ubuntu0.1 all [installed]

Does Ubuntu have the latest and greatest Pd in its backports perhaps?
https://help.ubuntu.com/community/UbuntuBackports





___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Bruno Rohde
Hi Peter,


> Bruno, which version of Pd is available on Ubuntu via the apt package
> manager?
>

puredata/focal-updates,focal-updates,now 0.50.2-3ubuntu0.1 all [installed]

Any reason you want to compile it yourself?
>

to use the latest version; compiling always worked, it is the first time I
have this problem.


> Does it work when you specify
>  $ pd -nosound
> ?
>

GUI works as expected when using -nosound, no more freezing


> Does it work with a different audio driver architecture, eg. alsa?
>

Yes, I tried ALSA and it works, so it must be something related to Jack


>
> Does a pd (any version) installed via apt work?


Yes, 0.50.2 works normally, as any other version I compiled previous to
0.52-0


Thank you for the hints!

Bruno


Em seg., 21 de mar. de 2022 às 10:41, Peter P. 
escreveu:

> Bruno, which version of Pd is available on Ubuntu via the apt package
> manager? On Debian it is
>
>  $ apt --all-versions list puredata
>  Listing... Done
>  puredata/bullseye-backports,bullseye-backports,now 0.52.1+ds0-1~bpo11+1
> all [installed]
>  puredata/stable,stable 0.51.4-1 all
>  puredata/oldstable,oldstable 0.49.0-3 all
>
> Any reason you want to compile it yourself?
>
> Does it work when you specify
>  $ pd -nosound
> ?
> Does it work with a different audio driver architecture, eg. alsa?
>
> Does a pd (any version) installed via apt work?
>
> and so on and so forth... ;)
>
> best, P
>
> * Bruno Rohde  [2022-03-21 14:27]:
> > Hi friends,
> >
> > I have a problem running Pd 0.52-1 on Ubuntu Studio 20.04 using Jack. I
> > compile the project the same way I always did, but in this version the
> DSP
> > doesn't work (Test Audio and Midi), and the GUI partially works (on other
> > patches). The last version I can run normally is 0.51.4 (0.52-0 tests
> > didn't work either). Running Pd with the -verbose flag does not show any
> > relevant information. I also didn't find similar reports here on the list
> > and on the net.
> >
> > (system info)
> > $ uname -a
> > Linux brunorohde-desktop 5.13.0-35-lowlatency #40~20.04.1-Ubuntu SMP
> > PREEMPT Mon Mar 7 10:14:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> >
> > (compilation)
> > ./autogen.sh
> > ./configure --enable-jack
> > ./make
> >
> > Does anyone have any information about this problem? Any tips on how to
> > investigate the cause and solution for it?
> >
> > Thanks
> >
> > Bruno
> >
> > --
> > Bruno Faria Rohde
>
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Peter P.
Bruno, which version of Pd is available on Ubuntu via the apt package
manager? On Debian it is 

 $ apt --all-versions list puredata
 Listing... Done
 puredata/bullseye-backports,bullseye-backports,now 0.52.1+ds0-1~bpo11+1 all 
[installed]
 puredata/stable,stable 0.51.4-1 all
 puredata/oldstable,oldstable 0.49.0-3 all

Any reason you want to compile it yourself?

Does it work when you specify
 $ pd -nosound
?
Does it work with a different audio driver architecture, eg. alsa?

Does a pd (any version) installed via apt work?

and so on and so forth... ;)

best, P

* Bruno Rohde  [2022-03-21 14:27]:
> Hi friends,
> 
> I have a problem running Pd 0.52-1 on Ubuntu Studio 20.04 using Jack. I
> compile the project the same way I always did, but in this version the DSP
> doesn't work (Test Audio and Midi), and the GUI partially works (on other
> patches). The last version I can run normally is 0.51.4 (0.52-0 tests
> didn't work either). Running Pd with the -verbose flag does not show any
> relevant information. I also didn't find similar reports here on the list
> and on the net.
> 
> (system info)
> $ uname -a
> Linux brunorohde-desktop 5.13.0-35-lowlatency #40~20.04.1-Ubuntu SMP
> PREEMPT Mon Mar 7 10:14:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> 
> (compilation)
> ./autogen.sh
> ./configure --enable-jack
> ./make
> 
> Does anyone have any information about this problem? Any tips on how to
> investigate the cause and solution for it?
> 
> Thanks
> 
> Bruno
> 
> -- 
> Bruno Faria Rohde

> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Pd 0.52-1 - frozen dsp and gui in ubuntu 20.04

2022-03-21 Thread Bruno Rohde
Hi friends,

I have a problem running Pd 0.52-1 on Ubuntu Studio 20.04 using Jack. I
compile the project the same way I always did, but in this version the DSP
doesn't work (Test Audio and Midi), and the GUI partially works (on other
patches). The last version I can run normally is 0.51.4 (0.52-0 tests
didn't work either). Running Pd with the -verbose flag does not show any
relevant information. I also didn't find similar reports here on the list
and on the net.

(system info)
$ uname -a
Linux brunorohde-desktop 5.13.0-35-lowlatency #40~20.04.1-Ubuntu SMP
PREEMPT Mon Mar 7 10:14:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

(compilation)
./autogen.sh
./configure --enable-jack
./make

Does anyone have any information about this problem? Any tips on how to
investigate the cause and solution for it?

Thanks

Bruno

-- 
Bruno Faria Rohde
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list