Our company is currently using the D365 Omnichannel Customer Service Workspace app.
We have included our own session template, in which we open 2tabs that are case forms, a Power Platform custom page and a tab with a contact form.
The only noteworthy element in the case forms is that we have included the rich text editor.
With these sessions, our customer service colleagues answer emails (emails are writting within the text editor. The send button includes a custom button).
After about 30 emails, the live JavaScript memory is at around 2.000.000k and the browser tab crashes completely:
We have indentified that there is a memory leak of around 40-50mb every time we open and close an email session. For this memory leak to happen, we merely need to open the session and close the session with the close button in the session tab.
We also took memory snapshots. We see that all windows that we have opened during our time in the Customer Service Workspace are kept in memory as detached elements. The screenshot below is after we opened an email session twice.
We look at the detached elements above and zoom in on them. We are looking at what might reference these elements to stay in memory. Only we are surprised to see none of our own JS code or custom elements. We only see contexts from out of the box js scripts. Such as the “clientsdk?version1:2”, “core.services.js” and “pa.core.bundle1.js”.
We are talking to Microsoft but so far we haven't got any answers, while it does seem to be an issue from the Microsoft side.
Does anyone else encounter this issue? How might we fix this?