bug in pattrstorage ?

Oct 4, 2013 at 5:35am

bug in pattrstorage ?

Hello, i have a new error I didn’t get before (max5 & max6.1).
To reproduce just launch the help file provided.
You’ll get a “pattrstorage: alias must be unique” message in the max window.
What is it ?
Why ?
Thx

#267017
Oct 4, 2013 at 5:37am

And here’s the attachment.

Attachments:
  1. Test-Preset.zip
#267018
Oct 5, 2013 at 5:08pm

i have the same message, not sure why.

#267166
Oct 5, 2013 at 9:18pm

Explicitly set the name of the pattr object using the @name syntax. That seems to fix it.

#267182
Oct 6, 2013 at 12:45am

Yeah METAMAX, thx.

And also maybe I found what happen:
On launch, first alias is set by loadbang, then pattstorage recall alias saved in it. if it’s the same, you’ll get error message.

#267185
Oct 6, 2013 at 12:54am

@METAMAX: after testing, it doesn’t fix at all…

I don’t know exactly how to reproduce but after several “store preset”, “save patch” and “reopen”. the message appears again.

But now I’m quite sure where is the problem:

0- open Test-preset.maxhelp
1a- alias is set in pattrstorage with a loadbang -> configA
2- SAVE the patch
3- when you launch the patch again : first alias is set by loadbang (configA), second pattstorage recall alias saved in it (configA).
-> if it’s same you have the error message.

now
0- open Test-preset.maxhelp
1b- then SET alias with a message -> configB or configC
2- SAVE the patch
3- when you launch the patch again : first alias is set by loadbang (configA), second pattstorage recall alias saved in it (configB or configC).
-> you can see alias is not this one loadbanged but this one who was saved (configB or configC), then there’s not error message but alias is wrong.

Attachments:
  1. Test-Preset1.zip
#267188
Oct 6, 2013 at 1:35am

Well one thing is for sure.. patterstorage is confusing.

Not sure if this would work but have you tried using [closebang] or a combination of [closebang] and [loadbang] to handle the conflict?

#267194
Oct 6, 2013 at 1:37am

No I didn’t. Just I stopped using alias… It was only for two pattr in a patch, so…

#267195

You must be logged in to reply to this topic.