Severe browser freeze (3GB+ RAM spike) when closing Viewer in Deck boards with high attachment counts
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend, performance
Línea de trabajo
The report points at the Viewer overlay that opens from a Deck card attachment and at the list of attachments it builds for the board, including archived cards. Start by reproducing with a board that has many image attachments and watching memory in the browser profiler while closing the Viewer. Done means closing the Viewer no longer causes the memory spike, and the attachment list is limited to what the slideshow needs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Describe the bug
When viewing an image attachment in a Deck board that contains a massive number of total attachments (accumulated over 2+ years), closing the Viewer app (clicking the "X") causes a severe Javascript memory leak. The browser tab's RAM usage violently spikes—sometimes upwards of 3GB—and completely locks up/freezes the tab
This appears to be a garbage collection/DOM teardown issue caused by the Viewer app loading a massive background array of every single attachment associated with the Board ID, including attachments on Archived cards.
To Reproduce
teps to reproduce the behavior:
1. Operate a Deck board with thousands of image attachments (JPG/PNG).
2. Archive the vast majority of the cards containing these attachments over time.
3. Left-click an image attachment on an active card to open the Nextcloud Viewer overlay.
4. Click the "X" in the top right to close the Viewer.
Observe the system task manager: The browser tab's RAM usage spikes to 3GB+ and the tab completely freezes for an extended period while the JS engine attempts garbage collection.
Expected behavior
The Viewer should close instantly with minimal memory overhead, regardless of how many attachments are on the board. Ideally, the Viewer should paginate the slideshow array or exclude attachments from Archived cards entirely to prevent the payload from growing infinitely and causing a 3GB memory spike over the lifespan of a board.
Screenshots
If applicable, add screenshots to help explain your problem.
Client details:
- OS: Many diffrent OS's, Mac, Linux (ubuntu, solus, fedora) and Windows
- Browser firefox, chrome
- Version 34.0.4 SNAP
- Device: desktop
Server details
Operating system:
Ubuntu 24.04.5 LTS x86_64
Nextcloud version: (see Nextcloud admin page)
34.0.4 (installed from snap)
Where did you install Nextcloud from:
snap store
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No Errors Found.
List of activated apps:
Enabled:
- activity: 7.0.0
- admin_audit: 1.24.0
- announcementcenter: 7.5.1
- appstore: 1.0.0
- bookmarks: 16.2.7
- bruteforcesettings: 7.0.0
- calendar: 6.6.2
- cloud_federation_api: 1.18.0
- comments: 1.24.0
- contacts: 8.9.1
- contactsinteraction: 1.15.0
- dashboard: 7.14.0
- dav: 1.40.0
- deck: 1.18.5
- external: 9.0.1
- federatedfilesharing: 1.24.0
- files: 2.6.0
- files_downloadlimit: 5.2.0
- files_external: 1.26.0
- files_lock: 34.0.1
- files_pdfviewer: 7.0.0
- files_reminders: 1.7.0
- files_sharing: 1.26.0
- files_trashbin: 1.24.0
- files_versions: 1.27.0
- firstrunwizard: 7.0.0-dev.0
- forms: 5.4.0
- groupfolders: 22.0.6
- guests: 4.10.0
- integration_giphy: 2.3.0
- logreader: 7.0.0
- lookup_server_connector: 1.22.0
- nextcloud_announcements: 6.0.0
- notes: 6.1.0
- notifications: 7.0.0-dev.1
- oauth2: 1.22.0
- office: 1.0.0
- password_policy: 6.0.0-dev.0
- passwords: 2026.10.20
- previewgenerator: 5.15.0
- privacy: 6.0.0-dev.1
- profile: 1.3.0
- provisioning_api: 1.24.0
- related_resources: 5.0.0-dev.0
- richdocuments: 11.1.2
- richdocumentscode: 26.4.402
- serverinfo: 6.0.0
- settings: 1.17.0
- sharebymail: 1.24.0
- spreed: 24.0.5
- support: 6.0.0
- survey_client: 6.0.0-dev.0
- systemtags: 1.24.0
- tasks: 0.18.1
- text: 8.0.0
- theming: 2.9.0
- theming_customcss: 1.22.0
- twofactor_backupcodes: 1.23.0
- twofactor_totp: 16.0.0
- user_status: 1.14.0
- viewer: 7.0.0-dev.0
- weather_status: 1.14.0
- webhook_listeners: 1.6.0
- workflowengine: 2.16.0
Disabled: - app_api: 34.0.0 (installed 32.0.0)
- circles: 34.0.0 (installed 29.0.0-dev)
- encryption: 2.22.0 (installed 2.22.0)
- federation: 1.24.0 (installed 1.24.0)
- mail: 5.12.4 (installed 5.12.4)
- metadata: 0.24.0 (installed 0.24.0)
- photos: 7.0.0 (installed 5.0.0)
- recommendations: 7.0.0 (installed 4.0.0)
- suspicious_login: 12.0.0-dev.0 (installed 5.0.0)
- twofactor_nextcloud_notification: 8.0.0
- user_ldap: 1.25.0
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration:
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Logs
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.4k
- Forks
- 358
- Merge medio
- 2 d 18 h
- PR fusionados (30 d)
- 83
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/deck
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
CSV export leaves trailing commas in tags and assigned-user fieldsPosiblemente ocupada @Kumar-s75 la tomó hace 39 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Board clone API failure is treated as a successful board responsePosiblemente ocupada @Kumar-s75 la tomó hace 39 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nextcloud/deck#8334 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
1. to develop bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nextcloud/deck#8146 · 2 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/deck
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
gkjohnson/three-mesh-bvh#933 ·
-
scope: curriculum status: waiting triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
freeCodeCamp/freeCodeCamp#71076 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
HarperFast/harper#3275 ·
Los mantenedores suelen responder en 1 día
-
liveQuery: a late rejection from an aborted (superseded) query run still reaches observer.errorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
steerion-labs/bounded-agent-runtime#93 ·
Los mantenedores suelen responder en 1 día