Stack overflow

It happens to all Max programmers, you are happily patching away… and then suddenly Max will pop-up the top most patch window and display a yellow alert at the top of it.

The message should be dismissed by clicking the cross icon to the right of the message. But if you don’t change your message flow the error will likely pop-up again. What is wrong?


Remember that things happen in Max only when messages are being exchanged between the objects. If you see this error then somewhere in your patch an object that sends a message, receives a message back for every message it sends. And then sends a message again upon reception, ad infinitum. Max cannot deal with this situation. You should revise your message path (change the patch cords) to prevent this from happening.

You can find the object that signals the problem by clicking on the object name at the left of the yellow error message. Max will expose the window that contains the object and highlight it.

The patch on the right has the problematic message path. The button object sends a bang to the message box, the message box reacts by sending it’s contents (a message with the integer 1), the + object adds it’s internally stored value (the first time it is 0) to the received integer and sends a message with the result, that message is immediately send through the loopback patch cord to itself, that result causes another addition (again 0 is added) and the result is send, and … the error message is displayed.


This problem can be resolved by removing the patch cord that connects the outlet and the inlet of the + object. Of course at this point your patch does not accumulate values anymore. To get the require functionality you should use the right inlet of the + object.

The labmark tutorial is your friend

A great idea coined by Pieter Jan Stappers. One of our labmarks with hold all relevant details and tips to make the labmark theme work for ID-Studiolab members. It’s called the Labmark Tutorial. I’ve setup it up today and it is open for business.

On the menu are:

  • a sample page which shows the most frequently used WordPress or HTML tricks used in the texts fields of posts or pages
  • a page listing all the posts in the basics category
  • of course you can always search the labmark to find what you want to do