Opening/previewing Nextcloud Talk attachments crashes the browser


I have a problem opening attachments sent via Nextcloud Talk. Each time I open an uploaded attachment in the view window, it takes several minutes and sometimes crashes the browser completely preceding it with the message: ““Webpage is slowing down your browser””. The problem has existed for several editions of Nextcloud and each subsequent update changes nothing. I’m currently using version 27.1.5 with no abnormalities in the “security warnings and configuration” section and the rest of Nextcloud’s applications work flawlessly. The problem occurs on all browsers (Firefox, Opera, Edge, Chrome etc.).

I don’t see any anomalies in the Nextcloud log that could cause this type of problem. Where should I start looking for a solution?

Nextcloud version (eg, 24.0.1): 27.1.5
Talk Server version (eg, 14.0.2): 17.1.6
Custom Signaling server configured: `no
Custom TURN server configured: no
Custom STUN server configured: no

Operating system (eg, Windows/Ubuntu/…): 20.04 LTS
Browser name and version (eg, Chrome v101): Firefox 119.01

Is this the first time you’ve seen this error? _(Y/N): N

Steps to replicate it:

  1. Login to Nextcloud Talk
  2. Send attachment
  3. Open attachment in a preview window