I'm working on an add-in for Microsoft Outlook, and we've been encountering an issue with Outlook 2016 crashing on dialog close, intermittently. For further context, we’ve noticed this occurs on Version 1807, Build 10325.20082.
When we try to close the dialog, the CPU usage on Outlook 2016 goes up significantly, crashing Outlook 2016 after the dialog is closed. We have debugged this but aren’t able to see any error lines on the console. This issue with Outlook 2016 crashing also seems to also be affecting other add-ons (Dropbox, Boomerang and Salesforce) in production.
We have noticed this bug is prevalent in the current version (Version 1807, Build 10325.20082). It wasn’t a problem on the prior versions from a few weeks ago.
Code Sample:
Office.context.ui.displayDialogAsync(dialogURL, {
height: 60,
width: 33,
displayInIframe: true,
}, dialogCallback.bind(self, handleDialogMessage));
let handleDialogMessage = function(dialog, args) {
dialog.close();
event.completed(); // event = argument for manifest button click
}
Thank you for your help!