Re: [PD] [list] example3.pd crash on Pd-0.48.1 / Linux

2018-04-04 Thread IOhannes m zmoelnig
On 2018-04-04 10:26, Roman Haefeli wrote:
> On Mit, 2018-04-04 at 02:52 +0900, Jonghyun Kim wrote:
>> Hi list,
>>
>> The problematic patch is:
>>
>> pd/doc/5.reference/example3.pd
> 
> It's actually in the help of [list] in the serializer example.
> 
>> this patch only crashed on 0.48.1. It's ok on old version of Pd.
>>
>> I don't know why?
> 
> It's a bug in the documentation. [list store] understands the 'get'
> method, but not the 'range' method, it seems. I guess this was changed
> somewhere along the development of [list store] and was forgotten to
> adjust in the serializing example.
> 
> Change the message box to 'get $1 1' and it works.
> 
> Since you discovered this you might want to file a bug report about
> this (unless Miller reads it here anyway). 

the change seems to have been on purpose [ec179065].
but it seems that the help-patch has not been updated accordingly.

afaict, there has neever been any Pd-release that included the "range"
message (although some test releases - 0.48test1,2,3 - did include it)


btw, the bug can be pretty easily found when running Pd from the
cmdline, printing to stderr:

```
$ pd -stderr
[...]
error: list store: no method for 'range'
```

the Pd-console is imply to slow to keep up with posting the errors (and
eventually will crash, because it safes all the error messages and in
case of an infinite loop it will exhaust all available memory; i think
this is far more serious bug)


[ec179065]
https://github.com/pure-data/pure-data/commit/ec179065b925c253355d0b4debc5cc4a49615d89




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


Re: [PD] [list] example3.pd crash on Pd-0.48.1 / Linux

2018-04-04 Thread Roman Haefeli
On Mit, 2018-04-04 at 02:52 +0900, Jonghyun Kim wrote:
> Hi list,
> 
> The problematic patch is:
> 
> pd/doc/5.reference/example3.pd

It's actually in the help of [list] in the serializer example.

> this patch only crashed on 0.48.1. It's ok on old version of Pd.
> 
> I don't know why?

It's a bug in the documentation. [list store] understands the 'get'
method, but not the 'range' method, it seems. I guess this was changed
somewhere along the development of [list store] and was forgotten to
adjust in the serializing example.

Change the message box to 'get $1 1' and it works.

Since you discovered this you might want to file a bug report about
this (unless Miller reads it here anyway). 


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] [list] example3.pd crash on Pd-0.48.1 / Linux

2018-04-04 Thread IOhannes m zmoelnig
On 2018-04-03 19:52, Jonghyun Kim wrote:
> I don't know why?
please fix the fan-out beforehand :-)

fgamsdr
IOhannes



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


[PD] [list] example3.pd crash on Pd-0.48.1 / Linux

2018-04-04 Thread Jonghyun Kim
Hi list,

The problematic patch is:

pd/doc/5.reference/example3.pd

it hangs when it started.

==

Error log:

$ pd pd-hangs-serialize.pd
watchdog: signaling pd...
watchdog: signaling pd...
*max size for a Tcl value (2147483647 bytes) exceeded*
watchdog: signaling pd...
watchdog: signaling pd...
*Aborted (core dumped)*
watchdog: signaling pd...
watchdog: signaling pd...
^CPd: signal 2
kim@computer:~/$

==

this patch only crashed on 0.48.1. It's ok on old version of Pd.

I don't know why?
#N canvas 721 528 651 481 10;
#X obj 134 433 print;
#X obj 122 318 until;
#X msg 148 262 1 2 3 4 a b c;
#X text 95 128 example 3: serializing a message without delays;
#X text 82 161 The "until" object can be used as shown to iterate through
all the items of a list.;
#X text 285 217 <- click to test;
#X text 250 245 First store list \, then start the loop;
#X text 225 269 "until" bangs its output until told to stop by a "bang"
to its right inlet.;
#X text 230 330 Store the remaining list.;
#X obj 135 401 list store;
#X obj 148 285 t b b l;
#X obj 122 343 f;
#X obj 160 344 + 1;
#X msg 174 318 0, f 2;
#X msg 121 372 range \$1 1;
#X text 147 54 /usr/local/lib/pd/doc/5.reference/example3.pd;
#X text 70 29 TEST;
#X obj 104 203 loadbang;
#X obj 104 224 delay 1000;
#X connect 1 0 11 0;
#X connect 2 0 10 0;
#X connect 9 0 0 0;
#X connect 9 1 1 1;
#X connect 10 0 1 0;
#X connect 10 1 13 0;
#X connect 10 2 9 1;
#X connect 11 0 12 0;
#X connect 11 0 14 0;
#X connect 12 0 11 1;
#X connect 13 0 11 1;
#X connect 14 0 9 0;
#X connect 17 0 18 0;
#X connect 18 0 2 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list