EROOR: This method should not be called on the main thread as it may lead to UI unresponsiveness

I’m new to C++ and plugin development. I’ve got some background in JS and some Python mainly doing web development stuff.

I’m Using XCode version 15.2 and after 1+ hours trying to get it to attach to Ableton Live 12, it’s now finally opening Live but immediately closing it with hundred of errors in Xcode saying:

This method should not be called on the main thread as it may lead to UI unresponsiveness.

There are no pointers to there the error is, and I can not find a solution for this anywhere. Has anyone else had this issue?

1 Like
  • Is the project a blank/new project, or have you made any changes?
  • Do you get the same behaviour with any of the JUCE example plugins? You could try opening examples/Plugins/AudioPluginDemo.h in the Projucer to generate a demo project, and then testing the plugin in Live.
  • Can you post the stack trace at the point of the first error? Alternatively, can you see the name of the function that’s being called, and the thread where it’s being called?