I suspect it has something to do with the way the license dialog is shown (it's opened as a separate window). Perhaps something is going wrong there, although I'm not entirely sure what. The only way I can see a stack overflow happening is if the modal window callback is being called instantly when the window is opened. Maybe this helps narrow it down? Since this considers the licensing code, if you have any more questions, let's chat via email!