Recently I have started seeing that, AEM author starts throwing JS error and doesnt load any component. Starts happening after a few deployments. Needs a restart to bring it back to normal. Screenshot attached. Anyone else facing this issue?
Can you check the error log at that time and post your findings here. You could potentially find something there.
Check if any of the custom client lib is having OOTB client lib categories. If we use OOTB categories, the custom js will be included as part of OOTB js and if the custom js is having any error, that might break the complete authoring interface.
Never know when that js object will be undefined/null. Better check you custom clientlibs with cq.authoring.editor/cq.authoring.editor.core categories and check where you are turning off the event. Have a condition before turning off.
Hope this will resolve your issue.