Duplicate Script Inclusion

I have a problem whereby my scripts and CSS are getting included twice. I know this is typically a symptom of renderPartial() being called with the processOutput flag set to true, but I have double checked all my renderPartials and I’m fairly sure none of them are causing the issue.

I have a main layout and one with a left sidebar, using decorators to embed the left sidebar layout in the main layout. It seems scripts are getting included both at the top and bottom of the main layout and at $content.

Simply calling the main layout without the sidebar layout doesn’t seem to help. It seems processOutput() is run both on render() and beginContent(), am I just misunderstanding the decorator functionality?

Any tips would be greatly appreciated.

Fixed it, never mind. I had overridden renderPartial() in my custom controller and there was a bug in that code.