# Bug COMMS-860 - Uploading image to work package activity crashes CKEditor with “Maximum call stack size exceeded”

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-860

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  – 2026-05-26 |
| Priority | High |
| Module | Modules and project features / Text editor / CKEditor5 |
| Target versions | 17.6.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket | Bugs |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Tom Hykel |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Log in to OpenProject

2.  Open a work package

3.  Go to the **Activity** section

4.  Upload a picture of around **2000 px**

5.  Observe the editor after the upload

### What is the buggy behavior?

After uploading the image, the CKEditor component crashes and shows:

> “An error occurred within CKEditor  
> unexpected-error  
> Original error: RangeError: Maximum call stack size exceeded”

The editor/activity input becomes unusable.

A flickering/re-rendering behavior was also observed in the activity editor UI. It occurs frequently during image uploads to the activity section.

A video demonstrating the flickering behavior has been attached to this comment.

### What is the expected behavior?

The image should upload successfully and appear in the activity section without crashing the editor.

If the image is too large or invalid, OpenProject should show a clear validation/error message instead of a CKEditor crash.

### Logs

Visible UI error:

> `RangeError: Maximum call stack size exceeded`

Browser console logs not collected yet.

### Screenshots and other files

*<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/921351/content">*

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

  - Hosted cloud edition

  - Packaged installation
    
      - What distribution?

  - Docker All-in-one container

  - Docker-compose installation

  - Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
