@out t knows max character limit (or does it)

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
pedrnun
Posts: 74
Joined: Sun Jan 17, 2016 3:23 am
Contact:

@out t knows max character limit (or does it)

Post by pedrnun » Sat Feb 10, 2018 2:25 am

Hi everyone!

I'm aware that bach objects do not suffer from the same limit to number of characters in a message that regular max objects have. But I'd never witnessed what would happen in a situation where a message going from bach to max exceeded that limit.

Today, I found something in this regard that puzzled me and I would like to share.
I was using [bach.comb] object with attribute @out t so to connect it to a message object. Not on purpose, I exceeded the mentioned limit and... no output! I found that strange (I did not realise immediately the limit issue) and checked it with a [bach.portal] object. It seemed to be working... (and the limit became evident).

Well, my first conclusion was that [bach.comb] knows when the limit is going to be exceeded and prevents outputting a truncated message but [bach.portal] doesn't care for it and always spits out whatever it can. But the problem is that [bach.comb] is actually outputting something, although the message object isn't able to render it.

Just to be sure, I added a [bach.iter] after [bach.comb] (the native one) and I was glad to realise it was working as expected (as long as no @out t was used). If I add it after [bach.portal] or after [bach.comb @out t], I get bach.iter: Bad input llll - which proves [bach.comb @out t] is outputting something. So, why the different behaviour regarding the message object? Is it on purpose or is it a bug? (I'm just curious. It really doesn't make any difference as one will never be able to use truncated max type messages.)

Here, are my experiments:

Code: Select all

<pre><code>
----------begin_max5_patcher----------
956.3ocyXssahCCD84vWwn7xtUhEE6beep+G6VUYHdgzRribb.pp5+95KIsr
sPwPBq5CXjG63yLmwykjmm34Omui13C+D9E3487DOOiHs.ut4d9UjcKVSZLa
yeAuphxj9SsqIo6jF4yakPo7aMvRNu.jb3QFeKHWQjpgR1xFfHnvVt3Q0Dfz
njReBZVwaWW.bldJvHxxMTnorfNa1rdHVWxnK3sLCNgcBajOslZ.teakElo7
4O7ivvdgr1pR1Zpzn6n2Dxak8RC5jVSjKzJ58B5BokQxSSmELExRmEOEPYg5
IQJQvc5G4kISzCScj3pnMMjkzOPbeWcx.JGvA.FA2zutUCkOUSs5huObmS1N
5f1N9f1N5j1NJKxPA45QL9BscFcqR293cFxhUyJkTAbqZ6EzZ4J.C2pTPPdb
dXZ2O23Cb9YvGgmlOhxL+kF8FgzqFjMzh6UXpdl6IRonTESXCt7dkW772PEM
kblB34Tgdwrff.jYQCqdtb6wBH2VJW46DCk0KrVPaTGkJJjy1yziCwl6.H8X
P2vql8vBwBwF9LwPtVbvAibDFFMzfJb5onnDy8gz7SSQmcjXn8rsTDNWmK5h
CDG9kkD+wzuiwWS+dvf86Q9ioKzZsWIWHLmqReRYEf1YBpxJouVY4lalpK4R
2UqTIZgadZ7H4oyy5sW0XX9fb0Gy30cOrl9GopSBJrToT.spV9DPXE+loWTT
tb0dqJEsrEDEU.p9S9NjCn3N95lC11A1IFKXTYrDjg2hhMgHgWgRuJ1bNDMz
fDz4jR3SBRRBx2qBaZ9WkBruK8xESSwmnFRBxljHL9JTDoibwgI5+hyiGV+b
Vt8yZQaNgszUlI5Lt.gOtM10TVjoPYbvGt+TSDjJppcy6oLxbq9DLxgT0bgj
r1kdXOGBBONDTeDl8MYPAeYBwTfH4riRWmAUMR4hPg1jPg1TvFdJZbZO4Rye
LRshjMloA9j.AhP0ERUi5c6P52qc3sfePyO5Bcrn.S5ADN8qRHvoqSexjJNl
LYTiPPIl2JDgxt1Do4bMck8tuWkQ4zx+W1sg2JVzyM88o.uodEzFYIyTDduM
o+bA6sItnvpTGtNgqP+tS8vPq+xMpfk6FDRNYi18LHbz0rcBHznykN.L5vNQ
z0G3jqx0mTWfNZDbq3n+WH4TzHBeMbjHm7jwiPzHxAfhFCbbwskbZtzlikTW
2kT1.qFTUspG3lsmN0LsjYmZ9ho9B5lx98aJI6SDpBFRUl+VgsRztLaqY9Ub
Evr1xNrUH+xj+Rg+mJL
-----------end_max5_patcher-----------
</code></pre>
Best,
Pedro Louzeiro

andreaagostini
Posts: 209
Joined: Fri Dec 03, 2010 1:51 pm

Re: @out t knows max character limit (or does it)

Post by andreaagostini » Mon Feb 19, 2018 10:05 am

Hi Pedro,
thanks for the report. This looks like a tricky one, I'll look into it.
Can you please give me more info about your system?
Cheers,
andrea

andreaagostini
Posts: 209
Joined: Fri Dec 03, 2010 1:51 pm

Re: @out t knows max character limit (or does it)

Post by andreaagostini » Mon Feb 19, 2018 2:11 pm

... by the way, have a look at this:

<pre><code>
----------begin_max5_patcher----------
690.3oc6WtraiBCEFdM7TXwpYjRqvl6yp48XTUjgXkPEwfLlLoSUd2GiOPKc
ZBwMAZ5hYCHeA+6ymOWLOaa4jVtmU6f9A5WHKqmssrzc01gUWaKmsz8YEzZ8
zb3reWl9nyBXHIauT2cJMay8EL9Z4l9w3MaKajELo9Cwc8VIX0LtjJyK4KEr
LIHtWn28tKPDbb6K2tGnG59pZ4SELsP8qNrzxmpXvB3jyUK0CupcN+cRSkYa
x4qOlrAsuhfFjABmuRqpxjuCmzqcMcGa0RUep0YIUJE4oMR.iVufMKmcLQsx
JU6kTlncvXWWWrdvC118OOXu31hdRXTqYiSR9TQONIbfrXW2QYe7Ml8aY00z
0rKCvDvuBL3KAvmftjSSWBACZpoav3vMzY57F+SAxiDEFgXY4E0H7wIF4LDy
C1vAjKlXKtLpEC5pSGjLd5fnKhZfC43PgJnaYRlXIiSSAK0cbf4C663qhWoT
95OdbbuzZ+snwcz7b95j1KHDx7G9ol0qW0.SR54+EtfifUwnRkIjP7Fm+yR9
s.npguu9EFOJGClZ2tpRgjVf9oxPPxwClm2XOLT5Fh6UmEihAx+cmNIHcC+.
9SXm45FDyhw4EFa7cARtYWEX1Jp6EEXbQ8nI3j8E6+aHL562fyaBQePmDb9i
6Iuf7v33QyONyDHdX3r+34EGx.8DbJx4+6eEqUos+2Bl5xFQV+FsOKK5UcVw
pk4b8cOFNoj2LoRwJHAK9nmFFKsIJGeyTN53J6dcJ2tp3yIcHLoqRIOSrwfi
aijqyFCLQZeXRWmR9lnj2DnjQzDOKdLF4rRlBZZRpfYIpvH5NGIBLIZL4cAi
PRWZUU2MN0hzJgptyik5sUzBcybNzzS2Tv1k2OeecOTgpTfTUGnQ.EU1GB+D
ky1RkAxax6rQkxGr+KfcU9rE
-----------end_max5_patcher-----------
</code></pre>

This little experiment seems to suggest that [bach.portal @out t] behaves just as [any other object @out t] when it tries to output an llll that is too long for a Max message. On the other hand, we shouldn't rely on message boxes for this, because I think they can hold up to 4096 items. So, I'd say temporarily that the surprising behavior you discovered is not bach's fault, but Max's. I'll investigate it further, anyway.

Cheers,
andrea

pedrnun
Posts: 74
Joined: Sun Jan 17, 2016 3:23 am
Contact:

Re: @out t knows max character limit (or does it)

Post by pedrnun » Wed Feb 21, 2018 2:42 am

Thanks!
I'm on a MacBook Pro late 2009 2,53 GHz Intel Core 2 Duo running Yosemite and Max 7.3.4.
I've just realised I had Max running in 32-bit mode, though.
Now, I've set it to 64-bit and my original test resulted in a spinning wheel!... It works fine up to the 20 items input llll (although, noticeably slower than in 32-bit mode, which is curious). But with 21 items, Max hangs.
Cheers!
P.L.

Post Reply