nextcloud / nextcloud/whiteboard

bug: uploading big images fails

Open
#270 8 comments 0 reactions 1 assignee View on GitHub

@grnd-alt is already working on this.

Since Nov 28, 2024.

1. to develop bug high
Dominant language
JavaScript
Stars
215
Forks
39
Avg merge
1d 3h
Merged PRs (30d)
32

Description

I'm facing a very odd issue with whiteboard, depending on image size it won't sync the images or store them in the file.
Here are some logs from the backend, at the beginning what happens when I paste a small image, the file gets uploaded with no issue and the log only says "added image". After that what happens when trying to paste a big image.

nextcloud-whiteboard-server-1 | [9929] Syncing room data
nextcloud-whiteboard-server-1 | [9929] Room data synced. Users: 1, Last edited by: [USER], files: 1
nextcloud-whiteboard-server-1 | [9929] roAnAi9dKQUtudk_AAAP added image d3a4bf5be442a9252949352dc0a60ef3f23d6ac4
nextcloud-whiteboard-server-1 | [9929] Syncing room data
nextcloud-whiteboard-server-1 | [9929] Room data synced. Users: 1, Last edited by: [USER], files: 2
nextcloud-whiteboard-server-1 | [9929] Syncing room data
nextcloud-whiteboard-server-1 | [9929] Room data synced. Users: 1, Last edited by: [USER], files: 2
nextcloud-whiteboard-server-1 | [socket:roAnAi9dKQUtudk_AAAP] Disposing room
nextcloud-whiteboard-server-1 | [9929] [USER] has disconnected
nextcloud-whiteboard-server-1 | socket rooms [ '9929' ]
nextcloud-whiteboard-server-1 | [9929] [USER] has left 9929
nextcloud-whiteboard-server-1 | [9929] Syncing room data
nextcloud-whiteboard-server-1 | [9929] Room data synced. Users: 0, Last edited by: [USER], files: 2
nextcloud-whiteboard-server-1 | [9929] Disposing room
nextcloud-whiteboard-server-1 | [9929] Saving room data to server: 11 elements, 2 files
nextcloud-whiteboard-server-1 | [9929] Room is empty, removed from cache
nextcloud-whiteboard-server-1 | decodedData {
nextcloud-whiteboard-server-1 | userid: '[USER]',
nextcloud-whiteboard-server-1 | fileId: 9929,
nextcloud-whiteboard-server-1 | isFileReadOnly: false,
nextcloud-whiteboard-server-1 | user: {
nextcloud-whiteboard-server-1 | id: '[USER]',
nextcloud-whiteboard-server-1 | name: '[USER]'
nextcloud-whiteboard-server-1 | },
nextcloud-whiteboard-server-1 | iat: 1731406027,
nextcloud-whiteboard-server-1 | exp: 1731406927
nextcloud-whiteboard-server-1 | }
nextcloud-whiteboard-server-1 | [9929] qDVEl6VuM_dXDy99AAAR has joined 9929
nextcloud-whiteboard-server-1 | [9929] Syncing room data
nextcloud-whiteboard-server-1 | [9929] No data provided or existing, fetching from server...
nextcloud-whiteboard-server-1 | [9929] Fetched data from server:
nextcloud-whiteboard-server-1 | {
nextcloud-whiteboard-server-1 | data: {
nextcloud-whiteboard-server-1 | elements: [
nextcloud-whiteboard-server-1 | [Object], [Object],
nextcloud-whiteboard-server-1 | [Object], [Object],
nextcloud-whiteboard-server-1 | [Object], [Object],
nextcloud-whiteboard-server-1 | [Object], [Object],
nextcloud-whiteboard-server-1 | [Object], [Object],
nextcloud-whiteboard-server-1 | [Object]
nextcloud-whiteboard-server-1 | ],
nextcloud-whiteboard-server-1 | files: {
nextcloud-whiteboard-server-1 | '3e09d77fda06353c26a8df38ecb02ba42119eca7': [Object],
nextcloud-whiteboard-server-1 | d3a4bf5be442a9252949352dc0a60ef3f23d6ac4: [Object]
nextcloud-whiteboard-server-1 | }
nextcloud-whiteboard-server-1 | }
nextcloud-whiteboard-server-1 | }
nextcloud-whiteboard-server-1 | [9929] Room data synced. Users: 1, Last edited by: null, files: 2

All the [Object] elements in the room are missing images, excluded 2. An odd behaviour is that visually the image is shown in the screen of thw user, but not synced. When opening the whiteboard again, if one pastes the same image again the old instances will show the image again.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.