knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
14.45k stars 1.32k forks source link

Uploading 2 images in a row (among other actions) crashes editor interface #1826

Closed 3-w-c closed 1 month ago

3-w-c commented 4 months ago

Version:

Description of the bug and steps to reproduce:

Campaign content editor interface crashes, especially after trying to insert 2 images consecutively.

  1. Deploy a listmonk instance (docker swarm config here: https://git.coopcloud.tech/coop-cloud/listmonk/src/branch/main/compose.yml, manually set SMTP details and uploads path in admin)
  2. Create a new campaign
  3. Edit campaign content
  4. Click insert » image, upload from local computer
  5. Click the image upload toolbar button

Then, the interface crashes, preventing further edits, scrolling or saving.

No errors are shown in the browser console or network tab of developer tools.

Uploading images is the most reliable way to reproduce this problem, but it also happens sometimes when inserting a link, sometimes when trying to bold some text, etc.

I looked for similar issues in the bugtracker here but couldn't find any.

Screenshots:

The interface post-crash:

image

Video demonstration: https://nextcloud.autonomic.zone/s/n4DCa9CpTcr3J2n

knadh commented 4 months ago

Hi @3-w-c. The editor component is TinyMCE.

On Firefox 123, I am unable to reproduce this issue though. The below screenshot shows two images (2K resolution) which I inserted and resized. I am able to insert more images without any slowdown or freezing of the editor. image

3-w-c commented 4 months ago

Thanks for reply @knadh!

Which browser are you using?

Happens on both Firefox and Chromium.

Are the images very large in size (MBs)?

No, the image in the screenshot of the shells is 22 kb.

Are there any browser plugins that may be interfering?

It happens with a chromium profile with no active plugins.

knadh commented 4 months ago

hm, I'm unable to reproduce this on Firefox 123 or Chromium 123.

image

It would be great if someone else could confirm.

3-w-c commented 4 months ago

Thanks for trying @knadh :pray:

@3-w-c this happens the moment you upload any two images?

Yes.

Does this happen on a new campaign or only when a campaign has a specific body?

New campaign: no.

However, if I copy/paste the HTML from a problematic campaign into the new campaign, then the problem starts happening again.